/* YourCityMatch — city-at-dusk theme on top of Bootstrap 5 */
:root {
    --ink: #1c2333;
    --ink-2: #2d3752;
    --ink-soft: #5b6170;
    --coral: #ff6b4a;
    --coral-dark: #e8532f;
    --glow: #ffc857;
    --dusk: #cdbfdc;
    --sand: #f6f1ea;
    --paper: #fffdf9;
    --line: #e7ded2;
    --ok: #2f8f6b;
    --radius: 18px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--sand);
    --bs-link-color: var(--coral-dark);
    --bs-link-color-rgb: 232, 83, 47;
    --bs-link-hover-color: var(--ink);
    --bs-link-hover-color-rgb: 28, 35, 51;
    --bs-border-radius: 12px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(255, 200, 87, .22), transparent 60%),
        radial-gradient(900px 420px at -10% 10%, rgba(205, 191, 220, .45), transparent 60%),
        var(--sand);
    -webkit-font-smoothing: antialiased;
}
.site-main { flex: 1 0 auto; }

.skip-link {
    position: absolute; left: 1rem; top: 1rem; z-index: 2000;
    background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* ---- Header ---------------------------------------------------------- */
.site-header { padding: .6rem 0; }
.navbar-brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
    color: var(--ink); letter-spacing: -.01em;
}
.navbar-brand:hover { color: var(--ink); }
.nav-link { color: var(--ink); font-weight: 600; }
.nav-link:hover, .nav-link:focus { color: var(--coral-dark); }
.nav-hello { color: var(--ink-soft); font-weight: 500; }

/* ---- Buttons --------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 999px; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-coral {
    --bs-btn-color: #fff; --bs-btn-bg: var(--coral); --bs-btn-border-color: var(--coral);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--coral-dark); --bs-btn-hover-border-color: var(--coral-dark);
    --bs-btn-active-bg: var(--coral-dark); --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 255, 107, 74;
    box-shadow: 0 8px 20px -10px rgba(232, 83, 47, .8);
}
.btn-outline-ink {
    --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: var(--ink); --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 28, 35, 51;
}
.btn-choice {
    --bs-btn-color: var(--ink); --bs-btn-bg: var(--paper); --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--ink-soft);
    font-weight: 600; padding: .5rem 1.1rem;
}
.btn-choice {
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
}
.btn-check:checked + .btn-choice,
.btn-check:checked + .btn-choice:hover,
.btn-check:checked + .btn-choice:active {
    background: var(--ink); color: #fff; border-color: var(--ink); opacity: 1;
}
.btn-check:checked + .btn-choice:hover { background: var(--ink-2); }
.btn-check:focus-visible + .btn-choice { box-shadow: 0 0 0 .25rem rgba(255, 107, 74, .35); }

/* ---- Forms ----------------------------------------------------------- */
.form-label { font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.form-control, .form-select {
    background-color: #fff; border-color: var(--line); padding: .65rem .85rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--coral); box-shadow: 0 0 0 .22rem rgba(255, 107, 74, .18);
}
.input-group .btn { border-radius: 0 12px 12px 0; font-weight: 600; border-color: var(--line); }
.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { float: none; width: auto; }
.consent { padding: .9rem 1rem .9rem 2.6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.form-text { color: var(--ink-soft); }

/* ---- Auth cards ------------------------------------------------------ */
.auth-wrap { padding: 2.5rem 0 3rem; }
.auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: 0 30px 60px -40px rgba(28, 35, 51, .45);
}
@media (max-width: 575.98px) { .auth-card { padding: 1.5rem; } }
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800;
    color: var(--coral-dark); margin-bottom: .4rem;
}
.auth-title, .dash-title, .hero-title, .prose-page h1 {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
}
.auth-title { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.auth-sub { color: var(--ink-soft); margin-bottom: 1.5rem; }
.auth-alt { text-align: center; margin: 1.5rem 0 0; color: var(--ink-soft); }
.result-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; font-size: 1.8rem; font-weight: 800;
}
.result-ok { background: #e3f4ec; color: var(--ok); }
.result-bad { background: #ffe9e3; color: var(--coral-dark); }
.flash-stack { padding-top: .5rem; }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding: 3.5rem 0 4rem; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 1.2rem; }
.hero-title span { color: var(--coral-dark); }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.city-chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.city-chips li {
    padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line); font-weight: 700; font-size: .9rem;
}
.hero-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem 1.5rem; box-shadow: 0 30px 60px -35px rgba(28, 35, 51, .5);
    transform: rotate(-1.5deg);
}
.hero-card-2 { margin: -0.5rem 0 0 3rem; transform: rotate(2deg); opacity: .92; }
.hc-row { display: flex; justify-content: space-between; align-items: center; }
.hc-cat {
    background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px;
}
.hc-when { font-weight: 800; color: var(--coral-dark); }
.hc-title { font-family: var(--font-display); font-size: 1.35rem; margin: .8rem 0 .3rem; }
.hc-meta { color: var(--ink-soft); margin: 0; font-size: .92rem; }
.hc-lock { font-size: .85rem; font-weight: 700; color: var(--ink-2); background: #fff4d6; padding: .3rem .7rem; border-radius: 8px; }

/* ---- Dashboard ------------------------------------------------------- */
.dash { padding: 2rem 0 3rem; }
.dash-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }
.status-banner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1rem; row-gap: .6rem;
    border-radius: var(--radius); padding: 1.1rem 1.3rem; border: 1px solid;
}
.status-banner form { margin: 0 !important; }
@media (max-width: 767.98px) {
    .status-banner { grid-template-columns: auto 1fr; align-items: start; }
    .status-banner .status-dot { margin-top: .4rem; }
    .status-banner form { grid-column: 2; }
}
.status-banner strong { margin-right: .35rem; }
.status-pending { background: #fff7e2; border-color: #f3dfa5; }
.status-ok { background: #e6f5ee; border-color: #b9e1cf; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.status-pending .status-dot { background: var(--glow); box-shadow: 0 0 0 5px rgba(255, 200, 87, .3); animation: pulse 2s infinite; }
.status-ok .status-dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(47, 143, 107, .2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 200, 87, .05); } }
@media (prefers-reduced-motion: reduce) { .status-pending .status-dot { animation: none; } }
.panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.panel-fill { height: 100%; }
.panel-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.panel-ink { background: var(--ink); color: #f1ede6; border-color: var(--ink); }
.panel-ink .panel-title { color: #fff; }
.how-list { padding-left: 1.2rem; margin: 0; display: grid; gap: .8rem; }
.how-list b { color: var(--glow); }
.form-control:disabled { background: #f7f3ee; }

/* ---- Content pages --------------------------------------------------- */
.prose-page { padding: 2.5rem 0 3rem; max-width: 760px; }
.prose-page .container { max-width: 760px; }
.error-page { padding: 5rem 0; }
.error-code {
    font-family: var(--font-display); font-size: 5rem; font-weight: 700; line-height: 1;
    color: var(--coral); margin-bottom: .5rem;
}
.debug-trace {
    background: var(--ink); color: #f1ede6; padding: 1rem; border-radius: 12px;
    font-size: .8rem; white-space: pre-wrap; max-height: 420px; overflow: auto;
}

/* ---- Footer + skyline ------------------------------------------------ */
.site-footer { margin-top: 2rem; }
.skyline {
    height: 170px;
    background: url("../img/skyline.svg") center bottom / auto 100% repeat-x;
}
.footer-bar { background: var(--ink); color: #c9cbd3; padding: 1.1rem 0; font-size: .9rem; }
.footer-bar a { color: #fff; text-decoration: none; }
.footer-bar a:hover { color: var(--glow); }
@media (max-width: 767.98px) { .skyline { height: 110px; } }

/* ======================================================================
   Phase 2 — profile, verification, vouching, admin
   ====================================================================== */

/* Status banner variants + signup steps */
.status-action { background: #fff1ec; border-color: #ffc9b8; }
.status-action .status-dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 107, 74, .2); }
.status-warn { background: #fff4ef; border-color: #ffcfbf; }
.status-warn .status-dot { background: var(--coral-dark); }
.signup-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.signup-steps li {
    display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .88rem; color: var(--ink-soft);
    background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .9rem .25rem .3rem;
}
.signup-steps li span {
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--line); color: var(--ink); font-size: .78rem;
}
.signup-steps li.active { color: var(--ink); border-color: var(--ink); }
.signup-steps li.active span { background: var(--coral); color: #fff; }
.signup-steps li.done span { background: var(--ok); color: #fff; }

/* Vouch prompt + badge */
.vouch-prompt {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
    background: var(--paper); border: 1px dashed #d8cbb8; border-radius: var(--radius); padding: 1rem 1.3rem;
}
.vouch-input { max-width: 280px; }
.badge-vouch { background: #e6f5ee; color: var(--ok); border: 1px solid #b9e1cf; font-weight: 700; }
.vouch-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.vouch-list li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .9rem; }

/* Progress meter (width via classes — inline styles are blocked by the CSP) */
.meter { height: 12px; border-radius: 999px; background: #efe7dc; }
.meter .progress-bar { background: linear-gradient(90deg, var(--coral), var(--glow)); border-radius: 999px; transition: width .35s ease; }
.meter-0 { width: 0; } .meter-20 { width: 20%; } .meter-40 { width: 40%; } .meter-60 { width: 60%; }
.meter-80 { width: 80%; } .meter-100 { width: 100%; background: var(--ok) !important; }
.meter-pct { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.checklist, .todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checklist li, .todo-list li { position: relative; padding-left: 1.7rem; font-size: .92rem; }
.checklist li::before, .todo-list li::before {
    content: ""; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem;
    border: 2px solid #d8cbb8; border-radius: 50%;
}
.checklist li.done { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(91, 97, 112, .4); }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.checklist li.done::after { content: "✓"; position: absolute; left: .27rem; top: .02rem; color: #fff; font-size: .75rem; font-weight: 800; }

/* Profile editor */
.sticky-col { position: sticky; top: 1rem; }
.save-bar {
    position: sticky; bottom: 0; z-index: 5; padding: .9rem 0 1rem;
    background: linear-gradient(180deg, rgba(246, 241, 234, 0), var(--sand) 35%);
}
.avatar-preview {
    width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none;
    background: var(--ink); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 10px 30px -15px rgba(28, 35, 51, .6);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { color: var(--glow); font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.btn-choice-sm { padding: .35rem .8rem; font-size: .88rem; }
.avail-grid { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: .4rem .6rem; align-items: center; max-width: 520px; }
.avail-head { font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.avail-row { font-weight: 700; font-size: .9rem; padding-right: .5rem; }
.avail-grid .btn-choice { color: transparent; }
.avail-grid .btn-check:checked + .btn-choice { color: #fff; }

/* Tag input */
.tag-box { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; cursor: text; min-height: 48px; padding: .45rem .55rem; }
.tag-box:focus-within { border-color: var(--coral); box-shadow: 0 0 0 .22rem rgba(255, 107, 74, .18); }
.tag-input.is-invalid .tag-box { border-color: var(--bs-danger); }
.tag-list { display: contents; list-style: none; margin: 0; padding: 0; }
.tag {
    display: inline-flex; align-items: center; gap: .2rem; background: var(--ink); color: #fff;
    border-radius: 999px; padding: .2rem .25rem .2rem .75rem; font-weight: 600; font-size: .88rem;
}
.tag-x {
    border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 22px; height: 22px; border-radius: 50%;
    line-height: 1; font-size: 1rem; display: grid; place-items: center; padding: 0;
}
.tag-x:hover, .tag-x:focus-visible { background: var(--coral); outline: none; }
.tag-entry { flex: 1 1 140px; border: 0; outline: 0; min-width: 120px; background: transparent; padding: .2rem; }

/* Verification page */
.review-state { text-align: center; padding: 1rem 0; }
.result-wait { background: #fff7e2; color: #a07400; }

/* Toasts */
.ycm-toast { background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(28, 35, 51, .8); }
.toast-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); font-size: .75rem; margin-right: .35rem; }
.nav-admin { color: var(--coral-dark); }

/* ---------------------------------------------------------------- Admin */
.admin-body { background: #f3eee7; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav {
    background: var(--ink); color: #c9cbd3; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .2rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-main .nav-pills .nav-link { color: var(--ink); font-weight: 700; border-radius: 999px; }
.admin-main .nav-pills .nav-link.active { background: var(--ink); color: #fff; }
.admin-nav .navbar-brand { color: #fff; margin-bottom: 1.4rem; font-size: 1.15rem; }
.admin-nav a.nav-item-link {
    display: flex; justify-content: space-between; align-items: center; color: #d8dae1; text-decoration: none;
    padding: .55rem .8rem; border-radius: 10px; font-weight: 600;
}
.admin-nav a.nav-item-link:hover { background: var(--ink-2); color: #fff; }
.admin-nav a.nav-item-link.active { background: var(--coral); color: #fff; }
.admin-nav .nav-count { background: var(--glow); color: var(--ink); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 800; }
.admin-nav .stub-tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.admin-nav .admin-me { margin-top: auto; font-size: .85rem; border-top: 1px solid var(--ink-2); padding-top: 1rem; }
.admin-main { padding: 1.8rem 2.2rem 3rem; min-width: 0; }
.admin-title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-bottom: .2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.kpi-fill { height: 100%; }
.kpi-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.kpi-label { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.admin-table { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-table table { margin: 0; }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: #faf7f2; white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.doc-thumb { width: 72px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #faf7f2; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--ink-soft); }
.doc-full { max-width: 100%; max-height: 70vh; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pill { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); background: #fff; }
.pill-pending { background: #fff7e2; border-color: #f3dfa5; }
.pill-id_pending { background: #fff1ec; border-color: #ffc9b8; }
.pill-verified, .pill-approved, .pill-accepted { background: #e6f5ee; border-color: #b9e1cf; color: #1f6b4f; }
.pill-suspended, .pill-rejected { background: #ffe9e3; border-color: #ffc0ad; color: #a3361b; }
.pill-banned { background: var(--ink); color: #fff; border-color: var(--ink); }
.detail-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 20px -12px rgba(28, 35, 51, .7); }
.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; }
.dl-grid dt { color: var(--ink-soft); font-weight: 600; font-size: .88rem; }
.dl-grid dd { margin: 0; }
.tag-static { display: inline-block; background: #efe7dc; border-radius: 999px; padding: .15rem .65rem; margin: 0 .25rem .3rem 0; font-size: .85rem; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.action-card { border-radius: 14px; padding: 1rem; border: 1px solid var(--line); background: #fff; }
@media (max-width: 991.98px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .8rem 1rem; position: static; height: auto; }
    .admin-nav .navbar-brand { margin: 0 1rem 0 0; }
    .admin-nav .admin-me { margin: 0 0 0 auto; border: 0; padding: 0; }
    .admin-main { padding: 1.2rem 1rem 2rem; }
}

/* ======================================================================
   Phase 3 — activities, search
   ====================================================================== */
.btn-city {
    border: 1px solid var(--line); background: rgba(255, 255, 255, .75); border-radius: 999px;
    font-weight: 700; padding: .3rem .85rem; font-size: .9rem; color: var(--ink);
}
.btn-city:hover, .btn-city:focus-visible { border-color: var(--ink); background: #fff; }
.dropdown-item.active, .dropdown-item:active { background: var(--ink); }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
}
.fb-field { flex: 0 1 190px; }
.fb-grow { flex: 1 1 240px; }
.fb-dates { flex: 0 1 160px; }
.fb-submit { flex: 0 0 120px; }
.fb-field .form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
[hidden] { display: none !important; }

.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.act-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.act-card:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -30px rgba(28, 35, 51, .6); }
@media (prefers-reduced-motion: reduce) { .act-card { transition: none; } .act-card:hover { transform: none; } }
.act-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #efe7dc; overflow: hidden; }
.act-media img { width: 100%; height: 100%; object-fit: cover; }
.act-emoji {
    width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.2rem;
    background: linear-gradient(135deg, #fff1ec, #f3e9ff);
}
.act-emoji-lg { font-size: 5rem; }
.act-emoji-sm { width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem; flex: none; }
.act-badge { position: absolute; top: .7rem; left: .7rem; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: .2rem .65rem; }
.act-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.act-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; color: var(--ink); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.act-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; margin: .2rem 0 0; }
.act-title a { color: var(--ink); text-decoration: none; }
.act-title a:hover { color: var(--coral-dark); }
.act-when { font-weight: 700; margin: 0; }
.act-when small { font-weight: 600; }
.act-where { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.act-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .88rem; }
.host-chip { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-width: 0; }
.host-blur { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.host-blur-lg { width: 56px; height: 56px; }
.host-blur-empty { display: inline-block; background: radial-gradient(circle at 50% 35%, #c9bfd6 0 30%, transparent 31%), linear-gradient(#e6dff0, #d6cce4); }
.spots { font-weight: 800; color: var(--ok); white-space: nowrap; }
.spots-full { color: var(--coral-dark); }
.act-actions { display: flex; gap: .5rem; margin-top: .6rem; }
.act-actions .btn { flex: 1; }

.act-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #efe7dc; border: 1px solid var(--line); }
.act-hero img { width: 100%; height: 100%; object-fit: cover; }
.act-desc { white-space: normal; font-size: 1.05rem; }
.act-facts { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 1rem; margin: 0; }
.act-facts dt { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.act-facts dd { margin: 0; }
.act-photo-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #efe7dc; display: grid; place-items: center; font-size: 2rem; }
.act-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.empty-state { text-align: center; background: var(--paper); border: 1px dashed #d8cbb8; border-radius: var(--radius); padding: 3rem 1rem; }
.empty-emoji { font-size: 3rem; line-height: 1; margin-bottom: .6rem; }
.pill-tabs .nav-link { color: var(--ink); font-weight: 700; border-radius: 999px; }
.pill-tabs .nav-link.active { background: var(--ink); color: #fff; }
.mine-list { display: grid; gap: .7rem; }
.mine-row { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1rem; }
.min-w-0 { min-width: 0; }

/* ======================================================================
   Phase 4 — requests, reveal, chat, notifications
   ====================================================================== */
.bell { position: relative; font-size: 1.15rem; padding-right: .9rem !important; }
.bell-count {
    position: absolute; top: .15rem; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.tab-count { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; margin-left: .2rem; }
.pill-tabs .nav-link.active .tab-count { background: #fff; color: var(--ink); }

.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.req-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.req-for { font-size: .9rem; font-weight: 700; }
.req-who { display: flex; align-items: center; gap: .8rem; }
.req-avatar {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, #e6dff0, #fff1ec); color: var(--ink-soft); font-weight: 800; font-size: 1.2rem;
}
.req-tags { display: flex; flex-wrap: wrap; }
.tag-shared { background: #fff3c4; border: 1px solid #f3d36b; }
.req-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.req-decline summary { list-style: none; }
.req-decline summary::-webkit-details-marker { display: none; }
.req-decline[open] { flex-basis: 100%; }
.req-state { border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; }
.req-pending { background: #fff7e2; border: 1px solid #f3dfa5; }
.req-declined { background: #f3eee7; border: 1px solid var(--line); }
.btn-state { background: #efe7dc; color: var(--ink); font-weight: 700; flex: 1; opacity: 1 !important; }
.btn-state-ok { background: #e6f5ee; color: #1f6b4f; }

.guest-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.guest-list li { display: flex; align-items: center; gap: .6rem; }
.guest-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #efe7dc; font-weight: 800; flex: none; }
.guest-you { background: var(--ink); color: var(--glow); }
.host-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 8px 20px -12px rgba(28, 35, 51, .7); }
.host-revealed { border-color: #b9e1cf; background: linear-gradient(180deg, #f2faf6, var(--paper)); }

.inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.inbox-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.inbox-row:hover { border-color: var(--ink-soft); }
.inbox-row.unread { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset; }
.inbox-row.unread .inbox-last { font-weight: 700; }
.inbox-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #efe7dc; font-weight: 800; font-size: 1.2rem; }
.unread-badge { background: var(--coral); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }

.chat-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; height: min(72vh, 720px); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #efe7dc; font-weight: 800; flex: none; }
.chat-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; }
.chat-menu { position: relative; }
.chat-menu summary { list-style: none; }
.chat-menu summary::-webkit-details-marker { display: none; }
.chat-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; box-shadow: 0 20px 40px -20px rgba(28, 35, 51, .5); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .45rem; background: #fbf8f3; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-soft); max-width: 22rem; }
.chat-ended { background: #f3eee7; color: var(--ink-soft); text-align: center; padding: .6rem 1rem; font-weight: 600; font-size: .9rem; }
.msg { max-width: 78%; align-self: flex-start; }
.msg-mine { align-self: flex-end; }
.msg-body { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .55rem .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-mine .msg-body { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 16px 16px 4px 16px; }
.msg-time { font-size: .7rem; color: var(--ink-soft); margin: .15rem .4rem 0; }
.msg-mine .msg-time { text-align: right; }
.chat-seen { text-align: right; padding: 0 1rem; min-height: 1.1rem; }
.chat-compose { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-compose textarea { resize: none; max-height: 160px; }
.profile-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.notif-list a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.notif-list li.unread a { border-color: var(--coral); background: #fff6f2; font-weight: 600; }
.notif-icon { font-size: 1.3rem; }
@media (max-width: 575.98px) { .msg { max-width: 92%; } .chat-panel { height: 75vh; } }

/* ---------------------------------------------------------------- Phase 5: membership, lockout, email queue */
.billing-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.billing-row:first-child { padding-top: 0; }
.billing-k { color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.billing-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.25rem; }
.billing-list { padding-left: 0; list-style: none; margin: 0 0 1rem; }
.billing-list li { position: relative; padding: .3rem 0 .3rem 1.6rem; }
.billing-list li::before { content: "✓"; position: absolute; left: 0; top: .3rem; color: var(--ok); font-weight: 700; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: .25rem 0 1rem; color: var(--ink); }
.locked-wall { border-top: 6px solid var(--coral); }
.locked-host-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.membership-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; justify-content: space-between;
    background: #fff4e0; border: 1px solid #f3d9a6; border-radius: 14px; padding: .75rem 1rem; margin-top: 1rem; }
.membership-banner.is-urgent { background: #ffe9e3; border-color: #f6c3b5; }
.chat-locked { margin: 0; padding: 1rem; border-top: 1px solid var(--line); background: #fff4e0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.stat-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.stat-v { font-size: 1.4rem; font-weight: 700; }
.email-preview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; white-space: pre-wrap; max-height: 60vh; overflow: auto; }
@media (max-width: 575.98px) { .billing-row { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------------------------------------------------------------- Phase 6: moderation, GDPR, ratings, SEO, admin */
.safety-panel { background: #eef7f2; border: 1px solid #cfe8db; border-radius: var(--radius); padding: 1rem 1.15rem; margin-top: 1rem; }
.safety-title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .5rem; }
.safety-panel ul { padding-left: 1.1rem; margin: 0; font-size: .9rem; }
.safety-panel li { margin-bottom: .25rem; }
.legal-text h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.legal-text p, .legal-text li { line-height: 1.6; }
.report-pop { display: inline-block; }
.report-quote { border-left: 3px solid var(--line); padding: .25rem .6rem; font-size: .85rem; color: var(--ink-soft); margin: 0 0 .6rem; }
.msg-report { color: inherit; opacity: .6; font-size: .75rem; }
.msg-report:hover { opacity: 1; }
.chip-repeat { background: #eaf2ff; color: #23408e; }
.chip-active { background: var(--ink); color: #fff; }
.chip-empty { opacity: .55; }
.chip-count { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; text-align: center; }
.cat-nav { display: flex; flex-wrap: wrap; gap: .45rem; }
.cat-nav .chip { text-decoration: none; color: var(--ink); }
.public-list { display: grid; gap: .75rem; }
.public-card { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.public-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .15rem; }
.removed-placeholder { max-width: 560px; margin: 2rem auto; }
.danger-zone { border-color: #f3c7bd; }
.host-rating { color: #b7791f; font-weight: 600; }
.rate-cta { background: #fff8e8; border-color: #f3dfa9; }
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: .25rem; border: 0; padding: 0; }
.star-rating legend { width: 100%; float: none; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { font-size: 2.2rem; line-height: 1; color: #d9d2c5; cursor: pointer; transition: color .1s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #f5a623; }
.star-rating input:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.star-rating.is-invalid label { color: #f0b3a5; }
.photo-removed { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; background: #f1ece4; color: var(--ink-soft); font-size: .75rem; text-align: center; padding: .5rem; }
.user-timeline li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.user-timeline li:last-child { border-bottom: 0; }
.tl-icon { width: 1.6rem; text-align: center; flex-shrink: 0; }
.tl-staff { background: #fbf6ee; }
.mod-chat li { padding: .5rem .75rem; border-radius: 10px; margin-bottom: .35rem; background: #f6f3ee; }
.mod-chat li.from-reported { background: #fff1ec; }
.mod-chat li.reported-msg { outline: 2px solid #e8532f; }
.kpi-link { color: inherit; text-decoration: none; transition: box-shadow .15s; }
a.kpi-link:hover { box-shadow: 0 8px 24px -16px rgba(28,35,51,.5); }
.icon-input { width: 4.2rem; text-align: center; }
.input-narrow { max-width: 240px; }
.breadcrumb a { color: var(--coral-dark); }
@media (max-width: 575.98px) {
    .public-card { flex-wrap: wrap; }
    .public-card .text-end { width: 100%; text-align: left !important; display: flex; align-items: center; gap: .75rem; }
    .public-card .text-end .btn { margin-top: 0 !important; }
    .report-pop .chat-pop { right: auto; left: 0; }
}

/* ---- Matches (cards built on .act-card) ---------------------------------- */
.match-card .act-media { text-decoration: none; }
.match-card .act-media img { object-position: center 30%; }
.match-initial { font-family: var(--font-display); font-weight: 700; font-size: 4rem; color: var(--ink-soft); }
.match-card .act-meta .chip { min-width: 0; max-width: 100%; }
.match-last { min-width: 0; color: var(--ink-soft); }

/* ---- Header: main links left, the member's own items right ---------------- */
@media (min-width: 768px) {
    .nav-main { margin-left: 1rem; }
    .nav-user .nav-hello { padding-left: .25rem; padding-right: .5rem; }
}
@media (max-width: 767.98px) {
    .nav-user { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem; }
}
