/* ==========================================================
   YewaConnect — Design System
   Light theme: white / light green / deep green / yellow / charcoal
   Mobile-first, fully responsive
   ========================================================== */

:root {
    /* ---- YewaConnect brand colour system ----
       Yewa Green  #075B35  primary brand (buttons, links, active states)
       Opportunity Gold #F5B400  highlights (CTAs, featured, swoosh)
       White #FFFFFF  backgrounds
       Charcoal #1F2937  body text                                   */
    --brand-green: #075B35;
    --brand-green-deep: #004C2B;   /* footer / gradients, matches the skyline art */
    --brand-gold: #F5B400;
    --brand-charcoal: #1F2937;

    --bg: #ffffff;
    --bg-alt: #f1f7f3;
    --bg-card: #ffffff;
    --bg-elevated: #eef5f0;
    --border: #dfe9e2;
    --text: var(--brand-charcoal);
    --text-muted: #4b5563;
    --text-faint: #8a94a3;

    /* Legacy names kept so every existing page picks up the brand:
       --gold is the PRIMARY colour (Yewa Green) throughout the CSS. */
    --gold: var(--brand-green);
    --gold-dim: #05472A;
    --gold-tint: rgba(7, 91, 53, 0.09);

    /* Fresh green — success / verified states, distinct from brand green */
    --green: #2f9a5d;
    /* Opportunity Gold — featured/pending highlights, star ratings.
       --yellow-dim is the darker gold used when gold must be READ as text. */
    --yellow: var(--brand-gold);
    --yellow-dim: #A87800;
    --yellow-tint: rgba(245, 180, 0, 0.18);

    --red: #d64545;
    --blue: #2f80c4;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 28px rgba(7, 54, 32, 0.10);
    /* Typography: Montserrat for brand/headings/buttons, Inter for body copy */
    --font-heading: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font: 'Inter', 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
h1 { font-weight: 700; }
.btn, .nav-links a, .mobile-menu-links a, .card-title, .badge, .stat .value, .tab-link, .module-pill, .dash-nav a,
table.data-table th, .footer-grid h4, label { font-family: var(--font-heading); }
p { margin: 0 0 1em; color: var(--text-muted); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s ease;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
/* Opportunity Gold call-to-action (charcoal text keeps it readable) */
.btn-gold { background: var(--brand-gold); color: var(--brand-charcoal); font-weight: 700; }
.btn-gold:hover { background: #ffc21a; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 180, 0, .35); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--bg-elevated); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #0c1a10; }
.btn-danger { background: var(--red); color: #fff; }

/* ---------- Top navigation ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--text); flex-shrink: 0; }
.brand .dot { color: var(--brand-gold); }
.brand-logo { height: 50px; width: auto; }
.dash-sidebar .brand-logo { height: 44px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
    display: none; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 8px 12px;
}

/* Mobile dropdown menu (hidden on desktop, toggled via JS on mobile) */
.mobile-menu { display: none; flex-direction: column; background: var(--bg-card); border-top: 1px solid var(--border); padding: 6px 20px 20px; }
.mobile-menu.open { display: flex; }
.mobile-menu-links { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-menu-links a { padding: 13px 4px; font-weight: 600; font-size: .95rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mobile-menu-links a.active { color: var(--gold); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu-actions .btn { width: 100%; }

/* ---------- Hero / search ---------- */
.hero {
    background:
        radial-gradient(ellipse at top right, var(--gold-tint), transparent 55%),
        linear-gradient(180deg, var(--bg-alt), var(--bg));
    padding: 64px 0 40px; text-align: center; border-bottom: 3px solid var(--brand-gold);
    position: relative;
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 3rem); max-width: 780px; margin: 0 auto .4em; }
.hero .accent { color: var(--gold); }
.hero .subtitle { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.search-box {
    max-width: 720px; margin: 0 auto; display: flex; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 6px;
    box-shadow: var(--shadow);
}
.search-box input {
    flex: 1; background: none; border: none; color: var(--text); padding: 12px 18px; font-size: 1rem; outline: none;
    min-width: 0;
}
.search-box select {
    background: var(--bg-elevated); border: none; color: var(--text-muted); border-radius: 999px; padding: 0 14px;
}
.module-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.module-pill {
    background: var(--bg-card); border: 1px solid var(--border); padding: 9px 18px; border-radius: 999px;
    font-size: .88rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px;
}
.module-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Town strip ---------- */
.town-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0; -webkit-overflow-scrolling: touch; }
.town-chip {
    flex: 0 0 auto; background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: var(--text-muted); font-weight: 600;
}
.town-chip:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Section headers ---------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 1.5rem; }
.section-head .see-all { color: var(--gold); font-weight: 600; font-size: .9rem; }
.section-alt { background: var(--bg-alt); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3; background: var(--bg-elevated); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 0; color: var(--text); }
.card-meta { font-size: .82rem; color: var(--text-faint); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.card-actions { display: flex; gap: 8px; padding: 0 16px 16px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px;
}
.badge-verified { background: rgba(63, 167, 106, .16); color: var(--green); }
.badge-featured { background: var(--yellow-tint); color: var(--yellow-dim); }
.badge-new { background: rgba(47, 128, 196, .14); color: var(--blue); }
.badge-status-pending { background: var(--yellow-tint); color: var(--yellow-dim); }
.badge-status-active { background: rgba(63, 167, 106, .16); color: var(--green); }
.badge-status-sold { background: rgba(47, 128, 196, .14); color: var(--blue); }
.badge-status-rejected, .badge-status-suspended { background: rgba(214, 69, 69, .13); color: var(--red); }

/* ---------- Stars ---------- */
.stars { color: var(--yellow-dim); letter-spacing: 1px; }
.review-count { color: var(--text-faint); font-size: .82rem; }

/* ---------- Stat blocks ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat .value { font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.stat .label { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
    width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--gold); background: #ffffff; }
textarea.form-control { resize: vertical; min-height: 110px; -webkit-appearance: none; appearance: none; }
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%235a655c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 36px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; vertical-align: middle; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--text-faint); margin-top: 4px; }
.auth-card {
    max-width: 440px; margin: 60px auto; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
}

/* Filter bars (category/town/condition/sort rows on listing pages) */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-select { width: auto; min-width: 140px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: rgba(63, 167, 106, .12); color: #1f7a48; border: 1px solid rgba(63,167,106,.35); }
.alert-error { background: rgba(214, 69, 69, .10); color: var(--red); border: 1px solid rgba(214,69,69,.3); }
.alert-info { background: rgba(47, 128, 196, .10); color: var(--blue); border: 1px solid rgba(47,128,196,.3); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.page-link { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: .88rem; background: var(--bg-card); }
.page-link.active, .page-link:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Dashboard shell (admin + subscriber) ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-sidebar .brand { margin-bottom: 26px; padding: 0 8px; }
.dash-nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 600; font-size: .9rem; margin-bottom: 2px;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--gold-tint); color: var(--gold); }
.dash-nav .group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 18px 0 6px 12px; }
.dash-main { padding: 30px 34px; max-width: 1100px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash-topbar h1 { font-size: 1.4rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data-table th { text-align: left; padding: 12px 16px; background: var(--bg-elevated); color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
table.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); }
table.data-table tr:hover td { background: rgba(27, 107, 60, .03); }

/* ---------- Profile / mini website ---------- */
.profile-hero { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 26px; }
.profile-cover { height: 220px; background: var(--bg-elevated); position: relative; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 20px 26px 26px; display: flex; gap: 18px; align-items: flex-end; margin-top: -50px; position: relative; flex-wrap: wrap; }
.profile-logo { width: 96px; height: 96px; border-radius: var(--radius); border: 4px solid var(--bg-card); background: var(--bg-elevated); overflow: hidden; flex: 0 0 auto; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-link { padding: 12px 18px; font-weight: 700; font-size: .9rem; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-link.active { color: var(--gold); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item:last-child { border-bottom: none; }
.owner-reply { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; font-size: .88rem; }

/* ---------- Plan cards (monetization) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.plan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.plan-card.highlight { border-color: var(--yellow-dim); box-shadow: 0 0 0 1px var(--yellow-dim); }
.plan-card .price { font-size: 1.8rem; font-weight: 800; color: var(--gold); margin: 10px 0; }
.plan-card ul { text-align: left; margin: 16px 0; font-size: .86rem; color: var(--text-muted); }
.plan-card li { padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Footer ---------- */
/* Footer: brand skyline art blends into Yewa Green */
.site-footer { margin-top: 60px; color: rgba(255, 255, 255, .78); }
.footer-skyline {
    height: clamp(70px, 14vw, 185px);
    background: url('../img/footer-skyline.webp') center bottom / cover no-repeat;
    margin-bottom: -1px;
}
.footer-inner { background: var(--brand-green-deep); padding: 26px 0 24px; }
.footer-logo { height: 58px; width: auto; }
.site-footer p { color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-gold); margin-bottom: 12px; }
.footer-grid a { display: block; color: rgba(255, 255, 255, .82); font-size: .88rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-gold); }
.footer-bottom { text-align: center; color: rgba(255, 255, 255, .55); font-size: .82rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-toggle { display: block; }

    .form-row { grid-template-columns: 1fr; }

    .dash { grid-template-columns: 1fr; }
    .dash-sidebar {
        position: static; height: auto; width: 100%;
        border-right: none; border-bottom: 1px solid var(--border);
        padding: 12px 16px;
    }
    .dash-sidebar .brand { margin-bottom: 12px; }
    .dash-nav { display: flex; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .dash-nav a { white-space: nowrap; flex: 0 0 auto; margin-bottom: 0; }
    .dash-nav .group-label { display: none; }
    .dash-main { padding: 22px 16px; max-width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-cover { height: 150px; }
    .profile-info { margin-top: -36px; }
    .profile-logo { width: 76px; height: 76px; }
}

@media (max-width: 640px) {
    .filter-bar { flex-direction: column; }
    .filter-select { width: 100%; min-width: 0; }
    .auth-card { margin: 30px auto; padding: 26px; }
    .hero { padding: 40px 0 30px; }
    .profile-actions { width: 100%; }
    .profile-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
    .search-box { flex-direction: column; border-radius: var(--radius); }
    .search-box select { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .btn { padding: 11px 18px; font-size: .9rem; }
}

/* ==========================================================
   Meet People — profiles, requests, chat
   ========================================================== */
/* Nav gained an 8th link: tighten it between tablet and wide desktop
   so nothing spills before the 860px hamburger kicks in. */
@media (min-width: 861px) and (max-width: 1400px) {
    .navbar-inner { gap: 14px; }
    .brand-logo { height: 42px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: .82rem; }
}
@media (min-width: 861px) and (max-width: 1180px) {
    .brand-logo { height: 36px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: .76rem; }
    .nav-actions .btn-sm { padding: 8px 12px; }
}

.meet-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800;
    line-height: 1; vertical-align: middle;
}

.meet-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); border: 2px solid var(--bg-card); }
.meet-avatar-sm { width: 40px; height: 40px; font-size: 1rem; }
.meet-avatar-md { width: 52px; height: 52px; font-size: 1.25rem; }
.meet-avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.meet-avatar-xl { width: 120px; height: 120px; font-size: 2.8rem; }
.meet-avatar-initial {
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
    color: var(--gold); background: var(--gold-tint);
}

/* How-it-works steps (logged-out landing) */
.meet-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.meet-step span {
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--gold); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.meet-step h3 { font-size: 1.02rem; }
.meet-step p { margin: 0; font-size: .9rem; }

/* Browse cards */
.meet-card-top { display: flex; justify-content: center; padding: 24px 0 0; background: linear-gradient(180deg, var(--bg-alt) 0 55%, transparent 55%); }

/* Profile page */
.meet-profile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 18px; }
.meet-profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.meet-headline { font-size: 1.1rem; color: var(--text); font-weight: 600; margin-bottom: 18px; }
.meet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-box { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.meet-note {
    background: var(--bg-card); border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
    padding: 10px 14px; margin-top: 10px; font-size: .92rem; color: var(--text); font-style: italic;
}
.meet-safety { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: var(--bg-card); }
.meet-safety summary { cursor: pointer; font-weight: 700; color: var(--text-muted); font-size: .9rem; }

/* Requests & chats lists */
.meet-row, .meet-request {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 18px; margin-bottom: 10px;
}
.meet-row { display: flex; gap: 14px; align-items: center; transition: border-color .15s ease; }
a.meet-row:hover { border-color: var(--gold-dim); }
.meet-row-main { flex: 1; min-width: 0; }
.meet-row-title { font-weight: 700; color: var(--text); }
.meet-row-title a:hover { color: var(--gold); }
.meet-row-preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chat */
.meet-chat-wrap { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.meet-chat {
    display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.meet-chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.meet-chat-back { font-size: 1.3rem; color: var(--text-muted); padding: 2px 6px; }
.meet-chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.meet-chat-tip { font-size: .78rem; color: var(--text-muted); background: var(--yellow-tint); border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; margin-bottom: 6px; }
.meet-chat-system { text-align: center; font-size: .75rem; color: var(--text-faint); margin: 4px 0 8px; }
.meet-bubble-row { display: flex; }
.meet-bubble-row.mine { justify-content: flex-end; }
.meet-bubble {
    max-width: 78%; padding: 9px 13px 6px; border-radius: 16px 16px 16px 4px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text); font-size: .93rem; overflow-wrap: anywhere;
}
.meet-bubble-row.mine .meet-bubble { background: var(--gold); border-color: var(--gold); color: #fff; border-radius: 16px 16px 4px 16px; }
.meet-bubble-time { font-size: .68rem; opacity: .65; text-align: right; margin-top: 3px; }
.meet-bubble-intro { font-style: italic; }
.meet-bubble-label { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .7; font-style: normal; margin-bottom: 2px; }
.meet-seen { align-self: flex-end; font-size: .72rem; color: var(--text-faint); margin-top: -2px; }
.meet-seen[hidden] { display: none; }
.meet-chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: var(--bg-card); }
.meet-chat-form textarea { resize: none; min-height: 46px; max-height: 140px; border-radius: 22px; padding: 12px 16px; }

@media (max-width: 640px) {
    .meet-chat-wrap { padding: 0; }
    .meet-chat { height: calc(100vh - 64px); height: calc(100dvh - 64px); border-radius: 0; border-left: 0; border-right: 0; }
    .meet-bubble { max-width: 86%; }
    .meet-profile { padding: 20px; }
    .meet-profile-head { gap: 14px; }
    .meet-avatar-xl { width: 92px; height: 92px; font-size: 2.2rem; }
}

/* ==========================================================
   Homepage header carousel (.hc) — slides & banner adverts
   ========================================================== */
.hc { position: relative; background: var(--brand-green-deep); overflow: hidden; }
.hc-viewport { overflow: hidden; touch-action: pan-y; }
.hc-track { display: flex; transition: transform .7s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.hc-slide {
    position: relative; flex: 0 0 100%; min-width: 100%;
    height: clamp(340px, 38vw, 520px);
    display: flex; align-items: center; color: #fff; overflow: hidden;
}
.hc-media, .hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc-media img { object-fit: cover; }
/* Text slides get a green wash from the left so copy is always readable */
.hc-slide:not(.hc-slide-plain):not(.hc-slide-brand) .hc-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 60, 33, .88) 0%, rgba(0, 60, 33, .55) 45%, rgba(0, 60, 33, 0) 75%);
}
.hc-content { position: relative; z-index: 2; width: 100%; padding-bottom: 60px; }
.hc-text { max-width: 600px; }
.hc-title {
    font-family: var(--font-heading); font-weight: 800; color: #fff;
    font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 0 0 .35em; letter-spacing: -0.02em;
}
.hc-sub { color: rgba(255, 255, 255, .9); font-size: clamp(.95rem, 1.5vw, 1.15rem); margin-bottom: 22px; max-width: 520px; }
.hc-slide:hover .hc-cta { background: #ffc21a; }
.hc-sponsored {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    background: rgba(31, 41, 55, .72); color: #fff; backdrop-filter: blur(4px);
    font-family: var(--font-heading); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
}

/* Built-in brand slides (shown until real slides are added) */
.hc-slide-brand { background: radial-gradient(ellipse at 85% 20%, #0b7a47 0%, var(--brand-green) 40%, var(--brand-green-deep) 100%); }
.hc-brand-art { position: absolute; inset: 0; pointer-events: none; }
.hc-brand-art::before { /* gold + white swoosh, from the brand motif */
    content: ""; position: absolute; right: -6%; top: 8%; width: 62%; height: 70%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cpath d='M20 250 C 180 60, 420 20, 590 120 C 430 60, 220 110, 20 250Z' fill='%23F5B400'/%3E%3Cpath d='M120 270 C 260 140, 450 110, 590 150 C 450 135, 290 170, 120 270Z' fill='%23ffffff' fill-opacity='.18'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .95;
}
.hc-brand-art::after { /* faded skyline along the bottom */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: url('../img/footer-skyline.webp') center bottom / cover no-repeat; opacity: .16; mix-blend-mode: screen;
}
.hc-brand-2 .hc-brand-art::before { transform: scaleX(-1); right: auto; left: 38%; }
.hc-brand-3 { background: radial-gradient(ellipse at 80% 30%, #ffcf3d 0%, var(--brand-gold) 35%, #d99a00 100%); color: var(--brand-charcoal); }
.hc-brand-3 .hc-title { color: var(--brand-charcoal); }
.hc-brand-3 .hc-sub { color: rgba(31, 41, 55, .85); }
.hc-brand-3 .hc-brand-art::before { filter: hue-rotate(95deg) saturate(2) brightness(.45); }
.hc-brand-3 .hc-cta { background: var(--brand-green); color: #fff; }

/* Controls */
.hc-arrow {
    position: absolute; top: 50%; transform: translateY(-80%); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(17, 24, 39, .32); color: #fff; font-size: 1.9rem; line-height: 1;
    backdrop-filter: blur(6px); transition: background .15s ease; display: flex; align-items: center; justify-content: center;
}
.hc-arrow:hover, .hc-arrow:focus-visible { background: var(--brand-gold); color: var(--brand-charcoal); }
.hc-prev { left: 18px; } .hc-next { right: 18px; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 74px; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.hc-dot {
    width: 34px; height: 5px; border: 0; padding: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .38); overflow: hidden; position: relative;
}
.hc-dot span { position: absolute; inset: 0; width: 0; background: var(--brand-gold); border-radius: inherit; }
.hc-dot.active span { width: 100%; }
.hc.playing .hc-dot.active span { animation: hcProgress 6s linear forwards; }
@keyframes hcProgress { from { width: 0; } to { width: 100%; } }
.hc-slide:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: -3px; }

/* Search card that overlaps the bottom of the carousel */
.hero-search { position: relative; z-index: 5; margin-top: -58px; }
.hero-search-card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: 0 18px 44px rgba(0, 60, 33, .16);
    padding: 26px 26px 22px; text-align: center; border-top: 4px solid var(--brand-gold);
}
.hero-search-card h1 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-bottom: 16px; }
.hero-search-card h1 .accent { color: var(--brand-green); }
.hero-search-card .search-box { box-shadow: none; background: var(--bg-elevated); }
.hero-search-card .module-pills { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
    .hc-track { transition: none; }
    .hc.playing .hc-dot.active span { animation: none; }
}
@media (max-width: 860px) {
    .brand-logo { height: 42px; }
}
@media (max-width: 640px) {
    .hc-slide { height: 400px; align-items: flex-end; }
    .hc-slide:not(.hc-slide-plain):not(.hc-slide-brand) .hc-media::after {
        background: linear-gradient(0deg, rgba(0, 60, 33, .92) 0%, rgba(0, 60, 33, .55) 50%, rgba(0, 60, 33, 0) 80%);
    }
    .hc-content { padding-bottom: 92px; }
    .hc-arrow { display: none; }
    .hc-dots { bottom: 70px; }
    .hc-brand-art::before { width: 95%; right: -30%; top: 4%; opacity: .55; }
    .hero-search-card { padding: 20px 16px 16px; }
    .footer-logo { height: 48px; }
}

/* ---------- Advertise box (contact page) ---------- */
.advertise-box {
    margin-top: 30px; padding: 26px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-alt), #fff); border: 1px solid var(--border); border-left: 5px solid var(--brand-gold);
    scroll-margin-top: 90px;
}
.advertise-box h2 { margin-top: 10px; }
.advertise-list { margin: 0 0 16px; display: grid; gap: 6px; color: var(--text); font-size: .93rem; }

/* ---------- Admin: carousel manager ---------- */
.admin-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.slide-thumb { width: 96px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--bg-elevated); }
.slide-thumb-lg { width: 100%; max-width: 420px; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; }
.slide-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 96px; }
.btn[disabled] { opacity: .35; cursor: default; transform: none; }

/* ==========================================================
   One account: sign-up toggle + My Account page
   ========================================================== */
.business-toggle {
    display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
    background: var(--yellow-tint); border: 1px solid rgba(245, 180, 0, .45); border-radius: var(--radius);
    padding: 14px 16px; font-family: var(--font); font-weight: 400;
}
.business-toggle input { margin-top: 3px; flex-shrink: 0; }
.business-toggle strong { font-family: var(--font-heading); color: var(--text); font-size: .92rem; }

.account-business {
    display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 22px 24px; border-radius: var(--radius-lg); margin-bottom: 22px;
    background: linear-gradient(120deg, var(--yellow-tint), #fff 70%); border: 1px solid rgba(245, 180, 0, .45);
}
.account-business.on { background: linear-gradient(120deg, var(--gold-tint), #fff 70%); border-color: var(--border); }
.account-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.account-tile {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}
.account-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.account-tile strong { font-family: var(--font-heading); font-size: .92rem; color: var(--text); }
.account-tile-icon { font-size: 1.5rem; margin-bottom: 4px; }
.account-tile-count { position: absolute; top: 12px; right: 12px; }

/* ==========================================================
   Member area sidebar — Personal Dashboard / Business Dashboard
   (views/partials/member-sidebar.php)
   ========================================================== */
.member-dash { grid-template-columns: 268px 1fr; min-height: calc(100vh - 71px); }
.member-dash .dash-main { width: 100%; }
.member-sidebar {
    top: 71px; height: calc(100vh - 71px);      /* sits under the sticky site navbar */
    padding: 22px 14px 28px; background: var(--bg-alt);
}
.member-menu-toggle { display: none; }
.member-nav { display: flex; flex-direction: column; }

.member-who { padding: 0 12px 16px; margin-bottom: 6px; display: flex; flex-direction: column; }
.member-who-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.member-who strong { font-family: var(--font-heading); color: var(--text); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.member-section-title {
    font-family: var(--font-heading); font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--brand-green); padding: 0 12px; margin: 4px 0 8px;
}
.member-section-note { font-size: .84rem; color: var(--text-muted); padding: 0 12px; margin: 0 0 10px; line-height: 1.45; }
.member-section-note a { color: var(--gold); font-weight: 600; }

/* Every link: fixed-width icon column + left-aligned label, so all text lines up on the left */
.member-link {
    display: grid; grid-template-columns: 24px 1fr auto; align-items: center; column-gap: 10px;
    text-align: left; padding: 10px 12px; margin-bottom: 2px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: 600; font-size: .88rem; color: var(--text-muted);
    border-left: 3px solid transparent;
}
.member-link-icon { width: 24px; text-align: center; font-size: 1rem; line-height: 1; }
.member-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-link:hover { background: var(--gold-tint); color: var(--brand-green); }
.member-link.active { background: #fff; color: var(--brand-green); border-left-color: var(--brand-gold); box-shadow: 0 1px 3px rgba(7, 54, 32, .08); }
.member-link-cta { background: var(--brand-gold); color: var(--brand-charcoal); }
.member-link-cta .member-link-label { white-space: normal; line-height: 1.3; }
.member-link-cta:hover { background: #ffc21a; color: var(--brand-charcoal); }
.member-logout { margin-top: 2px; }

/* The line that separates Personal from Business */
.member-divider { border: 0; border-top: 2px solid #c9dccf; margin: 16px 12px 18px; }
.member-divider-light { border-top-width: 1px; margin: 14px 12px 10px; }

/* Business-start card inside the dashboard: no big auth-page margins */
.member-card { margin: 0; }

@media (max-width: 860px) {
    .member-dash { grid-template-columns: 1fr; min-height: 0; }
    .member-sidebar {
        position: static; height: auto; top: auto; overflow: visible;
        padding: 10px 16px; border-right: none; border-bottom: 1px solid var(--border);
    }
    /* On phones the sidebar folds into a "My Dashboard" button; links stay a left-aligned list */
    .member-menu-toggle {
        display: flex; justify-content: space-between; align-items: center; width: 100%;
        background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 11px 14px; font-family: var(--font-heading); font-weight: 700; font-size: .9rem; color: var(--brand-green); cursor: pointer;
    }
    .member-menu-toggle[aria-expanded="true"] .member-menu-caret { transform: rotate(180deg); }
    .member-nav { display: none; padding-top: 14px; }
    .member-nav.open { display: flex; }
    .member-sidebar .member-link { white-space: normal; }
}
