/* --- BRANDING VARIABLES (FOREST GREEN THEME) --- */
:root { 
    --primary: #0F3D3E; --accent: #36D1DC; --bg: #f3f4f6; 
    --success: #10b981; --danger: #ef4444; --gray: #6b7280; --warning: #f59e0b; 
}
html, body { height: 100%; margin: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: #111827; display: flex; flex-direction: column; }
.hero, .container { flex-shrink: 0; }
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; flex-grow: 1; }
footer { background: var(--primary); padding: 30px; text-align: center; color: #9ca3af; font-size: 0.9rem; border-top: 5px solid var(--accent); flex-shrink: 0; }
h1, h2, h3, .logo-text { font-family: 'Nunito', sans-serif; }

/* --- NAVIGATION --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: var(--primary); border-bottom: 1px solid #064e3b; position: sticky; top: 0; z-index: 9999999; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.logo-container { display: inline-flex; align-items: center; background: white; padding: 8px 20px 8px 10px; border-radius: 99px; gap: 12px; cursor: pointer; transition: transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.logo-container:hover { transform: scale(1.05); }
.logo-icon-h { width: 40px; height: 40px; background-color: var(--primary); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; flex-shrink: 0; }
.pulse-h { position: absolute; border-radius: 50%; border: 1.5px solid transparent; background: linear-gradient(var(--primary), var(--primary)) padding-box, conic-gradient(from 0deg, var(--accent), transparent, var(--accent)) border-box; opacity: 0; animation: pulse-kf 4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.pin-h { position: absolute; width: 14px; height: 14px; background-color: rgba(255,255,255,0.1); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; top: 18%; right: 18%; animation: pin-kf 4s infinite; }
.logo-dot { width: 6px; height: 6px; background: white; border-radius: 50%; z-index: 10; }
.pin-dot { width: 4px; height: 4px; background: var(--primary); border-radius: 50%; }
.logo-text { font-size: 1.2rem; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; margin: 0; }
.logo-text span { color: var(--accent); }
@keyframes pulse-kf { 0% { width: 5px; height: 5px; opacity: 0; transform: rotate(0deg); } 10% { opacity: 0.8; } 100% { width: 150px; height: 150px; opacity: 0; transform: rotate(180deg); } }
@keyframes pin-kf { 0%, 55% { background-color: rgba(255,255,255,0.1); transform: rotate(-45deg) scale(0.9); } 65% { background-color: var(--accent); box-shadow: 0 0 10px var(--accent); transform: rotate(-45deg) scale(1.1); } 85%, 100% { background-color: var(--accent); transform: rotate(-45deg) scale(1); } }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-item, #authStatus button { cursor: pointer; font-weight: 700; color: #e2e8f0; font-size: 0.9rem; border: 1px solid transparent; padding: 8px 16px; border-radius: 50px; transition: all 0.2s; background: transparent; text-decoration: none; position: relative; }
.nav-item:hover { color: var(--accent); background: rgba(255,255,255,0.1); }
.nav-item.active-view { background: var(--accent); color: var(--primary); }
#authStatus button { background: var(--accent); color: var(--primary); padding: 8px 20px; border-radius: 50px; font-weight: 900; box-shadow: 0 4px 10px rgba(54, 209, 220, 0.3); }
#authStatus button:hover { background: white; }
#navAdmin { color: var(--accent); border: 1px solid var(--accent); font-weight: 800; }
.badge-count { position: absolute; top: -2px; right: -2px; background-color: #ef4444; color: white; font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; min-width: 16px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2); border: 2px solid var(--primary); }

.hero { background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%); padding: 60px 20px; text-align: center; border-bottom: 1px solid #d1d5db; }
.hero-logo-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
.logo-icon-v { width: 140px; height: 140px; background-color: var(--primary); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 40px; box-shadow: 0 20px 40px rgba(15, 61, 62, 0.3); }
.pulse-v { position: absolute; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(var(--primary), var(--primary)) padding-box, conic-gradient(from 0deg, var(--accent), transparent, var(--accent)) border-box; opacity: 0; animation: pulse-kf 4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.pin-v { position: absolute; width: 35px; height: 35px; background-color: rgba(255,255,255,0.1); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; top: 18%; right: 18%; animation: pin-kf 4s infinite; }
.hero-title { font-size: 3.5rem; font-weight: 900; color: var(--primary); margin: 0; line-height: 1; letter-spacing: -2px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { color: var(--primary); opacity: 0.6; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 0.9rem; margin-top: 10px; }
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; flex: 1; }
.hidden { display: none !important; }
/* Fixed full-screen overlays must respect .hidden (inline display:flex on some modals) */
#faqModal.hidden,
#whyModal.hidden,
#claimModal.hidden,
#roadmapModal.hidden {
    display: none !important;
    pointer-events: none !important;
}
body.wrkpulse-booting #searchSection {
    pointer-events: none;
}
body.wrkpulse-ready #searchSection {
    pointer-events: auto;
}

/* Home → search transition (covers white flash during navigation) */
.wrkpulse-search-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000002;
    background: var(--bg);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.wrkpulse-search-nav-overlay.is-active {
    display: flex;
}
.wrkpulse-search-nav-overlay__card {
    text-align: center;
    max-width: 320px;
}
.wrkpulse-search-nav-overlay__pulse {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    border-top-color: var(--accent);
    animation: wrkpulse-spin 0.85s linear infinite;
}
.wrkpulse-search-nav-overlay__text {
    margin: 0;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05rem;
}
@keyframes wrkpulse-spin {
    to { transform: rotate(360deg); }
}

/* Search results loading (shown before app + Firebase finish) */
.search-skeleton { padding: 8px 0 20px; }
.search-skeleton__label {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    margin: 0 0 16px;
    font-size: 0.95rem;
}
.search-skeleton__card {
    background: #e5e7eb;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 12px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
html.wrkpulse-search-query .search-results-panel {
    min-height: 280px;
}
.search-results-hint {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.search-container { background: white; padding: 30px; border-radius: 20px; max-width: 600px; margin: 0 auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); text-align: left; border: 1px solid #e5e7eb; position: relative; z-index: 10; }
.search-row { display: flex; gap: 10px; margin-bottom: 10px; }
.search-row.location-row { display: grid; grid-template-columns: 2fr 1fr 1fr; } 
.suggestions-box { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #d1d5db; border-radius: 8px; z-index: 100; max-height: 200px; overflow-y: auto; display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.suggestion-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #f3f4f6; color: #374151; }
.suggestion-item:hover { background: #eff6ff; color: var(--primary); }
input, select, textarea { width: 100%; padding: 14px; border: 2px solid #e5e7eb; border-radius: 12px; font-family: inherit; box-sizing: border-box; font-size: 1rem; transition: border 0.2s; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
label { font-weight: 800; font-size: 0.8rem; color: #64748b; display: block; margin: 15px 0 5px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; margin-bottom: 15px; }
.pricing-chip { background: #f0fdfa; color: var(--primary); border: 1px solid #ccfbf1; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.pricing-chip:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.review-chip { background: #fff; border: 1px solid #d1d5db; padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; cursor: pointer; color: #374151; margin-bottom: 5px; transition: all 0.2s; }
.review-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }
button.action { width: 100%; padding: 14px; background: var(--accent); color: var(--primary); border: none; border-radius: 12px; font-weight: 900; cursor: pointer; margin-top: 10px; transition: transform 0.2s, box-shadow 0.2s; font-size: 1.1rem; box-shadow: 0 4px 6px rgba(54, 209, 220, 0.2); }
button.action:hover { transform: translateY(-2px); box-shadow: 0 10px 15px rgba(54, 209, 220, 0.3); background: #22d3ee; }
button.cancel-btn { background: var(--danger); color: white; border: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
button:disabled { opacity: 0.6; cursor: not-allowed; background-color: #9ca3af !important; color: white !important; transform: none !important; box-shadow: none !important; }
.card { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid #e5e7eb; }
.result-card { border: 1px solid #f3f4f6; padding: 20px; margin-bottom: 15px; border-radius: 12px; background: white; display: flex; gap: 15px; align-items: center; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.result-card:hover { box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08); transform: translateY(-1px); border-color: #e5e7eb; }
.result-content { flex: 1; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.status-pending { background: #fee2e2; color: #991b1b; }
.status-chat { background: #dbeafe; color: #1e40af; }
.status-active { background: #dcfce7; color: #166534; }
.status-done { background: #fef3c7; color: #92400e; }
.status-returning { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.review-item { background: #f9fafb; border: 1px solid #e5e7eb; padding: 15px; border-radius: 12px; margin-bottom: 10px; }
.review-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 5px; }
.review-text { font-style: italic; color: #374151; font-size: 0.95rem; line-height: 1.5; }
.review-author { text-align: right; font-weight: 800; font-size: 0.8rem; color: var(--primary); margin-top: 8px; }
.client-score-badge { cursor: pointer; background-color: #fffbeb; color: #b45309; border: 1px solid #fcd34d; padding: 2px 8px; border-radius: 12px; font-weight: bold; font-size: 0.8rem; transition: all 0.2s; text-decoration: underline; margin-left: 5px; }
.client-score-badge:hover { background-color: #fcd34d; color: white; transform: scale(1.05); }
.verified-badge { background-color: #dbeafe; color: #1e40af; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.star-badge { color: #b45309; background: #fffbeb; font-weight:bold; padding: 4px 8px; border-radius: 6px; border: 1px solid #fcd34d; font-size: 0.8rem; display:inline-flex; gap:5px; cursor: pointer; }
.online-text { color: #166534; font-size: 0.8rem; font-weight: bold; display: flex; align-items: center; gap: 5px; background: #dcfce7; padding: 2px 8px; border-radius: 20px; }
.search-sponsored-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #0f766e; background: #ccfbf1; border: 1px solid #5eead4; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.result-card--sponsored { border-color: #99f6e4; box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08); }
.search-availability { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.search-status-offline { font-size: 0.75rem; color: #9ca3af; font-weight: bold; white-space: nowrap; }
.search-status-local { font-size: 0.75rem; color: #6b7280; font-weight: bold; }
.search-opens-hint { font-size: 0.72rem; color: #0f766e; font-weight: 700; line-height: 1.2; }
.search-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.search-card-avatar { width: 60px; height: 60px; min-width: 60px; background: var(--primary); color: white; font-size: 1.5rem; }
.search-card-name { margin: 5px 0; font-size: 1.1rem; }
.search-card-desc { color: #64748b; font-size: 0.85rem; margin: 5px 0; line-height: 1.45; }
.search-card-location { font-size: 0.8rem; color: #6b7280; margin-bottom: 4px; }
.search-distance { font-weight: bold; color: var(--primary); }
.star-badge-sub { font-weight: 600; font-size: 0.72rem; opacity: 0.9; margin-left: 2px; }
.search-verified-badge { font-size: 0.68rem; padding: 2px 7px; }
.search-local-listing-badge { display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.result-card--local-listing { border-left: 3px solid #d1d5db; background: #fafafa; }
.search-results-hint { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #22c55e; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px 0; font-size: 0.88rem; color: #166534; line-height: 1.5; }
.search-results-hint--mixed { background: #f0fdfa; border-color: #99f6e4; border-left-color: var(--accent); color: #0f766e; }
.search-results-hint--web { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #22c55e; color: #166534; }
.search-card-actions { margin-top: 10px; width: 100%; }
.search-card-action-hint { font-size: 0.75rem; color: #64748b; margin: 6px 0 0; line-height: 1.35; }
.search-btn-call { background: var(--primary) !important; color: white !important; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
.search-btn-call:hover { background: #064e3b !important; color: white !important; transform: translateY(-2px); }
.search-claim-link { background: none; border: none; color: #6b7280; text-decoration: underline; font-size: 0.85rem; cursor: pointer; margin-top: 8px; padding: 0; font-family: inherit; }
.search-claim-link:hover { color: var(--primary); }
.match-badge { display: inline-block; background: #ccfbf1; color: var(--primary); font-size: 0.75rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; margin-top: 5px; }
footer { background: var(--primary); padding: 30px; margin-top: auto; text-align: center; color: #9ca3af; font-size: 0.9rem; border-top: 5px solid var(--accent); }
.legal-link { color: #e2e8f0; text-decoration: underline; cursor: pointer; font-weight: bold; margin-left: 10px; }
.avatar-circle { width: 60px; height: 60px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: var(--gray); overflow: hidden; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.upload-group { display: flex; align-items: center; gap: 15px; margin-top: 10px; background: white; padding: 15px; border: 1px solid #e5e7eb; border-radius: 12px; }
.load-more-container { text-align: center; margin: 20px 0; }
.btn-load-more { background: white; color: var(--primary); border: 2px solid var(--primary); padding: 10px 25px; border-radius: 50px; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.btn-load-more:hover { background: var(--primary); color: white; }
.search-results-panel { margin-top: 0; }
.search-results-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.search-results-heading { flex: 1; min-width: 180px; }
.search-results-top h2 { margin: 0; line-height: 1.25; }
.search-results-meta { margin: 6px 0 0 0; font-size: 0.88rem; color: #64748b; font-weight: 600; }
.search-results-meta strong { color: var(--primary); font-weight: 800; }
.btn-new-search { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; background: white; color: var(--primary); border: 2px solid #e5e7eb; border-radius: 50px; font-weight: 800; font-size: 0.88rem; cursor: pointer; font-family: inherit; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.04); white-space: nowrap; }
.btn-new-search:hover { border-color: var(--primary); background: #f0fdfa; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(15, 61, 62, 0.08); }
.btn-new-search i { font-size: 1rem; line-height: 1; }
.search-share-bar { background: #f9fafb; border: 1px solid #e5e7eb; border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.search-share-bar__label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin: 0 0 6px 0; }
.search-share-bar__text { margin: 0 0 12px 0; font-size: 0.9rem; color: #4b5563; line-height: 1.5; }
.search-share-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search-share-btn { flex: 1; min-width: 130px; padding: 12px 16px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform 0.2s, box-shadow 0.2s; }
.search-share-btn--primary { background: var(--accent); color: var(--primary); border: none; box-shadow: 0 4px 6px rgba(54, 209, 220, 0.2); }
.search-share-btn--primary:hover { transform: translateY(-1px); background: #22d3ee; }
.search-share-btn--secondary { background: white; color: var(--primary); border: 2px solid #e5e7eb; }
.search-share-btn--secondary:hover { border-color: var(--primary); }
.btn-back-home { background: #6b7280; color: white; border: none; padding: 12px 24px; border-radius: 50px; cursor: pointer; margin-top: 20px; font-weight: 800; font-size: 0.95rem; width: 100%; max-width: 280px; }
.btn-back-home:hover { background: #4b5563; }
.tab-container { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #e5e7eb; padding-bottom: 0; }
.tab-btn { background: none; border: none; padding: 12px 20px; font-weight: 800; color: #9ca3af; cursor: pointer; font-size: 0.95rem; border-radius: 8px 8px 0 0; position: relative; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { background: white; color: var(--primary); border: 2px solid #e5e7eb; border-bottom: none; margin-bottom: -2px; z-index: 10; border-top: 3px solid var(--accent); }
.tab-content { display: none; padding-top: 10px; }
.tab-content.active { display: block; }
#activeRequestsArea, #historyRequestsArea, #clientActiveList, #clientHistoryList { max-height: 500px; overflow-y: auto; padding-right: 10px; scroll-behavior: smooth; }
.modal { position: fixed; bottom: 20px; right: 20px; width: 350px; background: white; box-shadow: 0 20px 50px rgba(0,0,0,0.2); border-radius: 16px; z-index: 1000; border: 1px solid #e5e7eb; display:flex; flex-direction:column; overflow:hidden;}
#chatModal { height: 450px; }
#ratingModal, #rateClientModal, #warningModal, #reportModal, #trustModal { height: auto; padding: 20px; bottom: 50%; right: 50%; transform: translate(50%, 50%); width: 320px; }
#readReviewsModal, #readClientReviewsModal { height: 400px; padding: 0; }
#legalModal { height: 600px; width: 500px; bottom: 50%; right: 50%; transform: translate(50%, 50%); border-radius: 16px; }
.chat-header, .reviews-header { background: var(--primary); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.chat-body, .reviews-body { padding: 15px; overflow-y: auto; flex: 1; background: #f9fafb; }
.legal-body { padding: 20px; overflow-y: auto; flex: 1; background: #fff; font-size: 0.9rem; line-height: 1.6; color: #374151; }
.legal-section { margin-bottom: 20px; }
.legal-section h4 { color: var(--primary); border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 10px; margin-top: 0; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; margin-bottom: 8px; }
.msg-me { align-self: flex-end; background: var(--accent); color: var(--primary); border-bottom-right-radius: 2px; font-weight: 600; margin-left: auto; }
.msg-them { align-self: flex-start; background: white; color: #1f2937; border: 1px solid #e5e7eb; border-bottom-left-radius: 2px; }
.btn-report-small { color: #ef4444; background: none; border: 1px solid #ef4444; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; font-weight: bold; margin-top: 5px; }
.btn-report-small:hover { background: #fee2e2; }
/* Unified Modal Logic (Desktop + Mobile) */
.modal:not(.hidden) { 
    display: flex !important; 
    flex-direction: column; 
    background: white; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: fixed;
    z-index: 9999;
    /* Desktop Sizing Fix */
    width: 320px; 
    max-width: 90%;
    height: auto;
    max-height: 85vh;
    bottom: 20px;
    right: 20px;
    border-radius: 16px;
}

@media (max-width: 600px) { 
    nav { padding: 15px 20px; flex-direction: column; gap: 10px; } 
    .nav-links { gap: 5px; width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero { padding: 32px 16px; }
    .hero-title { font-size: 2.25rem; }
    .search-container { padding: 20px 16px; margin: 0 12px; }
    .container { margin: 20px auto; padding: 0 12px; }
    .search-results-top { align-items: flex-start; }
    .search-results-top h2 { font-size: 1.35rem; }
    .btn-new-search { width: 100%; }
    .search-share-bar__actions { flex-direction: column; }
    .search-share-btn { width: 100%; min-width: 0; }
    .result-card { flex-direction: column; align-items: stretch; text-align: left; padding: 16px; }
    .result-card .avatar-circle { width: 52px; height: 52px; min-width: 52px; }
    .result-card .action { width: 100%; box-sizing: border-box; }
    .btn-back-home { max-width: none; width: 100%; }
    
    /* Full-Screen Mobile Modals */
    #chatModal:not(.hidden), #readReviewsModal:not(.hidden), #readClientReviewsModal:not(.hidden), #legalModal:not(.hidden), #donateModal:not(.hidden), #loginModal:not(.hidden), #finishProfileModal:not(.hidden), #settingsModal:not(.hidden) { 
        width: 100% !important; height: 100% !important; bottom: 0 !important; right: 0 !important; top:0 !important; left:0 !important; 
        border-radius: 0 !important; transform: none !important; border: none !important; 
        padding-top: 80px !important; padding-bottom: 60px !important; 
        padding-left: 20px !important; padding-right: 20px !important;
        overflow-y: auto !important; position: fixed !important; 
    } 
} 
    .modal { width: 90%; max-height: 90vh; overflow-y: auto; }
    
    /* Clean up Donate Modal specifically */
    #donateModal { padding: 20px !important; }
       
.clean-time-container { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.clean-time-box { flex: 1; display: flex; flex-direction: column; }
.clean-time-box label { font-size: 0.7rem; font-weight: 800; color: #6b7280; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.clean-time-input { background: white; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px; font-size: 1rem; text-align: center; color: #111827; outline: none; transition: border 0.2s; width: 100%; box-sizing: border-box; }
.clean-time-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 209, 220, 0.1); }
@media (max-width: 600px) { .clean-time-container { flex-direction: row !important; } } 
    /* Toast Notifications */
#toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10000; }
.toast { background: #333; color: white; padding: 12px 25px; border-radius: 50px; margin-bottom: 10px; font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Business Portal — profile editor */
.biz-profile-tab { padding-bottom: 88px; }
.biz-profile-heading { margin: 0 0 4px 0; color: var(--primary); font-size: 1.25rem; }
.biz-profile-lead { margin: 0 0 18px 0; font-size: 0.85rem; color: #64748b; line-height: 1.4; }
.biz-profile-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.biz-profile-preview { background: #f8fafc; border: 2px dashed #cbd5e1; box-shadow: none; }
.biz-section-title {
    margin: 0 0 12px 0;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f766e;
}
.biz-field-hint { font-size: 0.78rem; color: #9ca3af; margin: -4px 0 8px 0; }
.biz-profile-save-bar {
    position: sticky;
    bottom: 0;
    margin: 0 -4px;
    padding: 14px 4px 8px;
    background: linear-gradient(180deg, rgba(243,244,246,0) 0%, var(--bg) 28%);
    z-index: 5;
}
.biz-save-btn { width: 100%; max-width: 420px; margin: 0 auto; display: block; padding: 14px 24px; border-radius: 50px; }
.biz-save-msg { display: none; text-align: center; color: var(--success); font-weight: 800; font-size: 0.85rem; margin: 8px 0 0; }
.biz-health-ok {
    background: #dcfce7;
    color: #166534;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.biz-health-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 14px 16px;
    border-radius: 12px;
}
.biz-health-warn h4 { margin: 0 0 10px 0; color: #b45309; font-size: 0.9rem; }
.biz-health-note { margin: 0 0 10px 0; font-size: 0.8rem; color: #92400e; line-height: 1.4; }
.biz-health-checklist { display: flex; flex-direction: column; gap: 7px; margin: 0 0 8px 0; }
.biz-health-check-item {
    font-size: 0.8rem;
    color: #374151;
    display: flex;
    gap: 8px;
    align-items: center;
}
.biz-health-check-item.done { color: #166534; }
.biz-health-check-item.done i { color: #16a34a; }
.biz-health-check-item.missing i { color: #d97706; }
.biz-health-issues { display: flex; flex-direction: column; gap: 8px; }
.biz-health-issue { font-size: 0.8rem; color: #374151; display: flex; gap: 8px; align-items: flex-start; }
.biz-finish-profile-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}
.biz-finish-profile-btn:hover { background: #f0fdfa; }
.pro-finish-profile-modal {
    text-align: left;
    padding: 28px 24px;
    width: min(360px, calc(100vw - 32px));
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    border-radius: 20px;
    box-sizing: border-box;
}
.pro-finish-profile-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pro-finish-profile-checklist li {
    font-size: 0.85rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}
.pro-finish-profile-checklist li i { color: #d97706; font-size: 1rem; flex-shrink: 0; }

/* Business Portal — Status & Hours */
.biz-status-card {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.06);
}
.biz-status-title {
    margin: 0 0 14px 0;
    color: #0f766e;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}
.biz-status-auto-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0 0 14px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #99f6e4;
}
.biz-status-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #0f766e;
    cursor: pointer;
    flex-shrink: 0;
}
.biz-status-auto-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f766e;
    display: block;
}
.biz-status-auto-hint {
    font-size: 0.75rem;
    color: #115e59;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}
.biz-status-times {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}
.biz-status-times .clean-time-box label {
    color: #0f766e;
}
.biz-status-times .clean-time-input {
    border-color: #ccfbf1;
}
.biz-status-visibility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.biz-status-visibility-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #115e59;
    display: block;
}
.biz-status-visibility-hint {
    font-size: 0.75rem;
    color: #0f766e;
    font-weight: 600;
    display: block;
    margin-top: 2px;
    opacity: 0.85;
}
.biz-status-online-btn {
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
    background: #0f766e;
    color: #fff;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.biz-status-online-btn:hover {
    background: #115e59;
}
.biz-status-schedule-hint {
    font-size: 0.78rem;
    color: #115e59;
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.biz-status-schedule {
    margin-bottom: 14px;
}
.biz-hours-week {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}
.biz-hours-day-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}
.biz-hours-day-open {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}
.biz-hours-day-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f766e;
}
.biz-hours-day-sep {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
}
.biz-hours-day-row .clean-time-input {
    padding: 8px 6px;
    font-size: 0.85rem;
}
.biz-hours-quick-btn {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
    padding: 8px 12px;
    width: 100%;
    margin-bottom: 14px;
}
.biz-hours-quick-btn:hover {
    background: #d1fae5;
}
.biz-status-save-hours {
    width: 100%;
    padding: 11px 16px;
    border-radius: 50px;
    border: none;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
}
.biz-status-save-hours:disabled {
    opacity: 0.7;
    cursor: wait;
}
.biz-schedule-save-msg {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #047857;
    margin: 8px 0 0 0;
}
.biz-schedule-save-msg.hidden {
    display: none;
}

/* Business Portal — Growth & Ads */
.biz-growth-card {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.06);
}
.biz-growth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.biz-growth-title {
    margin: 0;
    color: #0f766e;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}
.biz-growth-blurb {
    font-size: 0.82rem;
    color: #115e59;
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.biz-growth-stats {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.8rem;
    color: #374151;
    margin: 0 0 12px 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}
.biz-growth-countdown {
    font-weight: 800;
    color: #0f766e;
}
.biz-growth-clicks strong {
    color: #111827;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
}
.biz-sponsor-renew-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.biz-sponsor-renew-banner strong {
    color: #b45309;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.biz-demand-meter {
    display: none;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.biz-demand-meter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.biz-demand-meter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f766e;
}
.biz-demand-tier-pill {
    font-size: 0.7rem;
    font-weight: 900;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.biz-demand-count-line {
    font-size: 0.82rem;
    color: #115e59;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.biz-demand-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.biz-demand-bar-fill {
    height: 100%;
    width: 8%;
    background: linear-gradient(90deg, #5eead4, #0f766e);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.biz-demand-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1;
}
.biz-demand-upsell {
    display: none;
    font-size: 0.72rem;
    color: #047857;
    margin: 8px 0 0 0;
    line-height: 1.35;
}
.biz-demand-copy-btn {
    display: none;
    margin-top: 8px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}
.biz-demand-copy-btn:hover { background: #d1fae5; }
.biz-sponsor-eligibility {
    font-size: 0.78rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.biz-sponsor-requirements {
    font-size: 0.68rem;
    color: #9ca3af;
    margin: 0 0 12px 0;
    line-height: 1.35;
}
.biz-growth-plan-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.biz-growth-plan-row label {
    margin: 0;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 800;
}
.biz-growth-plan-select {
    border: 1px solid #ccfbf1;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.biz-growth-sponsor-btn {
    width: 100%;
    background: #0f766e;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
}
.biz-growth-sponsor-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
@media (max-width: 480px) {
    .biz-status-card { padding: 14px; }
    .biz-hours-day-row {
        grid-template-columns: 3.5rem 1fr;
        grid-template-rows: auto auto;
    }
    .biz-hours-day-sep { display: none; }
    .biz-hours-day-row .day-end { grid-column: 2; }
    .biz-status-visibility-row {
        flex-direction: column;
        align-items: stretch;
    }
    .biz-status-online-btn { width: 100%; text-align: center; }
    .biz-growth-card { padding: 14px; }
    .biz-growth-stats { flex-direction: column; align-items: flex-start; }
}

/* Phone-match claim banner (Business Portal) */
.phone-match-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-bottom: 2px solid #0f766e;
    padding: 14px 16px;
    position: relative;
    z-index: 1999;
}
.phone-match-banner.hidden { display: none !important; }
.phone-match-banner-inner {
    max-width: 720px;
    margin: 0 auto;
}
.phone-match-banner-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #115e59;
    font-weight: 800;
}
.phone-match-banner-body {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #134e4a;
    line-height: 1.45;
}
.phone-match-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.phone-match-btn-primary {
    width: auto;
    margin: 0;
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 50px;
}
.phone-match-btn-secondary {
    background: #fff;
    border: 2px solid #0f766e;
    color: #0f766e;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}
.phone-match-picker-hint {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: #0f766e;
}
.phone-match-picker-section-title {
    margin: 10px 0 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f766e;
}
.phone-match-picker-section-title:first-child {
    margin-top: 0;
}
.phone-match-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}
.phone-match-picker-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #134e4a;
}
.phone-match-picker-row:has(input:checked) {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.phone-match-picker-row input {
    margin-top: 4px;
    flex-shrink: 0;
}