/* =========================================================
   DinnTro – account & members area (loaded after site.css)
   Sign-up / login / onboarding use .auth; signed-in pages use .app-nav + .app-main
   ========================================================= */

:root {
  --mint-soft: #e7f3ec;
  --pink-soft: #fbe9f2;
  --amber: #a5620b;
  --amber-soft: #fbf0de;
  --primary-soft: #f0ebf6;
}

/* ---------- Shared bits ---------- */
.stack { display: grid; gap: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-line { border: 1.5px solid #d6d1ca; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pill.live, .pill.ok { background: var(--mint-soft); color: #17603f; }
.pill.wait { background: var(--amber-soft); color: var(--amber); }
.pill.no { background: #f3f1ee; color: var(--muted); }
.pill.draft { background: var(--primary-soft); color: var(--primary-600); }
.pill.live::before, .pill.wait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.muted { color: var(--muted); }
.field-err { font-size: 0.82rem; font-weight: 500; color: #b4232f; }
.form input[aria-invalid="true"] { border-color: #b4232f; }
.form-alert { padding: 0.8rem 1rem; border-radius: 8px; background: #fbeaec; color: #8f1c26; font-size: 0.92rem; font-weight: 500; }
.form-hint { font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.form legend { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); padding: 0; margin-bottom: 0.25rem; }
.form legend small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.84rem; color: var(--muted); margin-top: 0.15rem; }

/* loading + error states for live data */
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--bg-soft) 0%, #ece8e2 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.load-card { display: grid; gap: 0.6rem; }
.load-card .skel:first-child { aspect-ratio: 16 / 10; }
.load-card .skel:nth-child(2) { height: 14px; width: 40%; }
.load-card .skel:nth-child(3) { height: 18px; width: 85%; }
.load-card .skel:nth-child(4) { height: 14px; width: 60%; }
.load-rows .skel { height: 116px; margin-bottom: 0.75rem; }
.load-block .skel { height: 220px; }
.err-box { padding: 2rem 1.25rem; text-align: center; border: 1px solid #f0c9cd; border-radius: 10px; background: #fdf4f5; color: #8f1c26; }
.err-box strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--ink); }
.err-box button { margin-top: 0.9rem; }
.avatar-fallback { display: grid; place-items: center; background: var(--surface-2); color: var(--primary-600); font-family: var(--display); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* view-only notice: website shows, app acts */
.app-only { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding: 1rem 1.15rem; border-radius: 8px; background: var(--primary-soft); color: var(--ink-soft); font-size: 0.93rem; }
.app-only svg { flex-shrink: 0; color: var(--primary); }
.app-only p { flex: 1 1 10rem; min-width: 0; }
.app-only strong { color: var(--ink); }
.app-only .text-link { white-space: nowrap; }

/* =========================================================
   AUTH — sign up, log in, verify, reset, onboarding
   ========================================================= */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-panel { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2rem; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-top .brand-logo { height: 46px; filter: none; }
.auth-top .swap { font-size: 0.92rem; color: var(--muted); }
.auth-top .swap a { color: var(--primary); font-weight: 600; }
.auth-top .swap a:hover { text-decoration: underline; }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding-block: 2.5rem; }
.auth-body h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); text-wrap: balance; }
.auth-body .sub { margin-top: 0.5rem; color: var(--muted); }
.auth-body .sub b { color: var(--ink); font-weight: 600; }
.auth-foot { text-align: center; font-size: 0.82rem; color: var(--muted); }
.auth-foot a { text-decoration: underline; }

.auth .form { padding: 0; border: 0; margin-top: 1.75rem; }
.auth .form .btn { justify-self: stretch; }

/* the photo side */
.auth-art { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,23,35,0) 40%, rgba(29,23,35,0.88) 100%); }
.auth-quote { position: absolute; left: clamp(1.5rem, 4vw, 3rem); right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem); z-index: 1; }
.auth-quote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 20ch; }
.auth-quote ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.45rem; color: var(--on-dark-muted); font-size: 0.93rem; }
.auth-quote li { display: flex; gap: 0.55rem; align-items: center; }
.auth-quote li::before { content: "✓"; color: #a7f3d0; font-weight: 700; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* phone / email switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg button { padding: 0.55rem; border-radius: 6px; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,24,32,0.12); }

.phone-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.5rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); padding: 0.3rem 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--primary); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.check { display: flex !important; grid-template-columns: none; gap: 0.6rem !important; align-items: flex-start; font-weight: 500 !important; line-height: 1.5; }
.check input { width: 1.1rem !important; height: 1.1rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--primary); }
.check a { color: var(--primary); text-decoration: underline; }

.or { display: flex; align-items: center; gap: 0.85rem; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.socials-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.socials-auth .btn { gap: 0.55rem; }

/* 6-digit code */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.form .otp input { padding: 0; height: 3.4rem; text-align: center; font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.resend { font-size: 0.9rem; color: var(--muted); }
.resend button { color: var(--primary); font-weight: 600; }
.resend button:disabled { color: var(--muted); cursor: default; }

/* onboarding progress */
.progress { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.progress small { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.progress li { height: 4px; border-radius: 4px; background: var(--line); }
.progress li.done { background: var(--primary); }

/* photo picker */
.avatar-pick { display: flex; align-items: center; gap: 1rem; }
.avatar-pick .ph { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-soft); border: 1.5px dashed #c9c3bb; color: var(--muted); overflow: hidden; }
.avatar-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick label { cursor: pointer; }
.file-btn { display: inline-flex !important; padding: 0.55rem 0.95rem; border: 1.5px solid #d6d1ca; border-radius: 8px; font-size: 0.9rem !important; color: var(--ink) !important; }
.file-btn:hover { border-color: var(--ink); }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* interests */
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.interest { position: relative; display: flex !important; align-items: center; gap: 0.75rem !important; padding: 0.5rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 0.93rem !important; color: var(--ink) !important; transition: border-color 150ms, background 150ms; }
.interest img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest:hover { border-color: #c9c3bb; }
.interest:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.interest:has(input:checked)::after { content: "✓"; margin-left: auto; margin-right: 0.35rem; color: var(--primary); font-weight: 700; }
.interest:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ID upload */
.drop { display: grid !important; place-items: center; gap: 0.35rem !important; padding: 1.5rem 1rem; border: 1.5px dashed #c9c3bb; border-radius: 10px; text-align: center; cursor: pointer; background: var(--bg-soft); }
.drop:hover { border-color: var(--primary); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { color: var(--ink); font-size: 0.95rem; }
.drop span { font-weight: 500; color: var(--muted); }
.drop.has-file { border-style: solid; border-color: var(--mint); background: var(--mint-soft); }
.id-why { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 8px; background: var(--bg-soft); font-size: 0.9rem; color: var(--ink-soft); }
.id-why b { color: var(--ink); }
.actions-row { display: flex; flex-direction: column; gap: 0.6rem; }
.skip { text-align: center; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.skip:hover { color: var(--ink); text-decoration: underline; }

/* =========================================================
   MEMBERS AREA — header, tab bar, page frame
   ========================================================= */
.app-body { background: var(--bg); }
.app-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-nav .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.app-nav .brand-logo { height: 44px; filter: none; }
.app-links { display: flex; gap: 0.25rem; }
.app-links a { padding: 0.5rem 0.85rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.app-links a:hover { background: var(--bg-soft); color: var(--ink); }
.app-links a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.app-tools { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-soft); }
.icon-btn:hover, .icon-btn[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
.get-app { padding: 0.55rem 0.95rem; font-size: 0.88rem; }

.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 0.5rem; padding: 3px 0.6rem 3px 3px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.me-btn:hover { border-color: #c9c3bb; }
.me-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); margin: 0 0.15rem 0 0.1rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 0.4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(28,24,32,0.12); }
.me-menu .who { padding: 0.6rem 0.75rem 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.me-menu .who b { display: block; }
.me-menu .who span { font-size: 0.82rem; color: var(--mint); font-weight: 600; }
.me-menu a { display: block; padding: 0.55rem 0.75rem; border-radius: 6px; font-size: 0.93rem; color: var(--ink-soft); }
.me-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0; }

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 760px) {
  .app-links, .app-tools .get-app, .app-tools .icon-btn, .me-btn [data-me-first], .me-btn::after { display: none; }
  .me-btn { padding: 3px; }
  .app-nav .wrap { height: 60px; }
  .app-nav .brand-logo { height: 38px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 0.35rem max(0.5rem, env(safe-area-inset-right, 0px)) calc(0.35rem + env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 0.15rem; padding: 0.35rem 0; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--primary); }
  .tabbar .dot { position: absolute; top: 4px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
  .app-body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

.app-main { padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(3rem, 6vw, 5rem); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 0.3rem; }
.back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.back::before { content: "←"; }
.back:hover { color: var(--ink); }

/* ---------- Explore ---------- */
.explore-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-bottom: 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.loc { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.9rem; border: 1px solid #d6d1ca; border-radius: 8px; font-weight: 600; font-size: 0.92rem; }
.loc select { border: 0; background: transparent; font: inherit; color: inherit; outline: 0; cursor: pointer; }
.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.fchip { padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid #d6d1ca; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); background: #fff; }
.fchip:hover { border-color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.explore-bar .count { margin-left: auto; font-size: 0.9rem; color: var(--muted); }
.cats.small { grid-template-columns: repeat(8, 1fr); }
.cats.small img { max-width: 84px; }
.cats.small a { font-size: 0.85rem; }
.cats.small a[aria-pressed="true"] { color: var(--primary); }
.cats.small a[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--primary); }
.card a.cover { display: block; }
.card .spots { font-size: 0.85rem; font-weight: 600; color: var(--pink); }
.card .host-line { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.card .host-line img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.card .host-line .verified { margin-top: 0; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed #d6d1ca; border-radius: 10px; }
.empty strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.3rem; }

/* ---------- Party details ---------- */
.party-cover { position: relative; aspect-ratio: 21 / 8; border-radius: 10px; overflow: hidden; background: #eee; margin-bottom: 1.75rem; }
.party-cover img { width: 100%; height: 100%; object-fit: cover; }
.party-cover .tag { left: 1rem; top: 1rem; font-size: 0.82rem; }
@media (max-width: 640px) { .party-cover { aspect-ratio: 16 / 10; } }
.party-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 920px) { .party-grid { grid-template-columns: 1fr; } }
.party-title .when { font-weight: 600; color: var(--primary); }
.party-title h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; margin: 0.3rem 0 0.6rem; text-wrap: balance; }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(odd) { padding-right: 1rem; }
.facts svg { flex-shrink: 0; color: var(--ink-soft); margin-top: 0.15rem; }
.facts b { display: block; font-size: 0.95rem; }
.facts span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts li:nth-child(odd) { padding-right: 0; } }
.prose-sm { margin-top: 2rem; display: grid; gap: 0.75rem; max-width: 42rem; color: var(--ink-soft); }
.prose-sm h2 { font-size: 1.25rem; color: var(--ink); }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rules-list li { position: relative; padding-left: 1.2rem; }
.rules-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--primary); }

.host-card { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; max-width: 42rem; }
.host-card img { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.host-card b { font-family: var(--display); font-size: 1.1rem; }
.host-card .meta { font-size: 0.88rem; color: var(--muted); }
.host-card p { grid-column: 1 / -1; margin-top: 0.75rem; font-size: 0.93rem; color: var(--ink-soft); }

.side-card { position: sticky; top: 92px; display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(28,24,32,0.06); }
.side-card .price { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1; letter-spacing: -0.02em; }
.side-card .price small { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.meter { display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.meter .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--pink); border-radius: 6px; }
.meter b { color: var(--ink); }
.side-card .locked { display: flex; gap: 0.6rem; padding: 0.8rem 0.9rem; border-radius: 8px; background: var(--bg-soft); font-size: 0.88rem; color: var(--ink-soft); }
.side-card .locked svg { flex-shrink: 0; margin-top: 0.15rem; }
.side-card .app-only { padding: 0.9rem 1rem; font-size: 0.88rem; }
@media (max-width: 920px) { .side-card { position: static; } }

/* ---------- My parties ---------- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs button { position: relative; padding: 0.75rem 1rem; font-weight: 600; color: var(--muted); }
.tabs button span { margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--bg-soft); font-size: 0.78rem; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: -1px; height: 2px; background: var(--primary); }
.subhead { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin: 2rem 0 0.75rem; display: flex; gap: 0.5rem; align-items: baseline; }
.subhead:first-of-type { margin-top: 0; }
.subhead span { font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.rows { display: grid; gap: 0.75rem; }
.prow { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color 150ms; }
a.prow:hover { border-color: #c9c3bb; }
a.prow:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.prow > img { width: 132px; height: 92px; border-radius: 6px; object-fit: cover; }
.prow .when { font-size: 0.82rem; font-weight: 600; color: var(--primary); }
.prow h3 { font-size: 1.05rem; margin: 0.15rem 0 0.25rem; }
.prow .meta { font-size: 0.88rem; color: var(--muted); }
.prow .meta b { color: var(--ink); font-weight: 600; }
.prow .right { display: grid; justify-items: end; gap: 0.5rem; text-align: right; font-size: 0.85rem; color: var(--muted); }
.prow.past { opacity: 0.8; }
.prow .addr { display: inline-flex; gap: 0.35rem; align-items: center; margin-top: 0.35rem; font-size: 0.85rem; color: #17603f; font-weight: 600; }
@media (max-width: 640px) {
  .prow { grid-template-columns: 88px minmax(0, 1fr); }
  .prow > img { width: 88px; height: 88px; }
  .prow .right { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; text-align: left; padding-top: 0.6rem; border-top: 1px solid var(--line); }
}
.host-stats { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.host-stats b { color: var(--ink); font-weight: 600; }
.host-stats .new { color: var(--amber); font-weight: 600; }

/* ---------- Hosted party ---------- */
.stat-row.four strong { font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; margin-top: 2rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; }
.panel-head span { font-size: 0.85rem; color: var(--muted); }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.85rem; align-items: center; padding: 0.75rem 1.2rem; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.people b { display: block; font-size: 0.95rem; }
.people small { font-size: 0.82rem; color: var(--muted); }
.people .r { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.kv { margin: 0; padding: 0.4rem 1.2rem 0.8rem; display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Notifications ---------- */
.notes { max-width: 760px; }
.day { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.75rem 0 0.4rem; }
.day:first-child { margin-top: 0; }
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-list li { border-bottom: 1px solid var(--line); }
.note-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; padding: 1rem 0.5rem; border-radius: 6px; }
.note-list a:hover { background: var(--bg-soft); }
.note-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-soft); }
.note-ic.ok { background: var(--mint-soft); color: #17603f; }
.note-ic.req { background: var(--amber-soft); color: var(--amber); }
.note-ic.pay { background: var(--primary-soft); color: var(--primary); }
.note-ic.coin { background: var(--pink-soft); color: var(--pink); }
.note-list p { font-size: 0.95rem; color: var(--ink-soft); }
.note-list p b { color: var(--ink); }
.note-list time { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.note-list .unread p::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.45rem; border-radius: 50%; background: var(--pink); vertical-align: 0.1em; }

/* ---------- Profile ---------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.profile-head > img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.profile-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.profile-head .meta { margin-top: 0.3rem; color: var(--muted); }
.badges { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.7rem; }
@media (max-width: 640px) { .profile-head { grid-template-columns: auto minmax(0, 1fr); } .profile-head > img { width: 80px; height: 80px; } .profile-head .edit { grid-column: 1 / -1; justify-self: start; } }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.chips-static { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chips-static span { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.review header img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.review header b { font-size: 0.93rem; }
.review header small { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.review p { font-size: 0.93rem; color: var(--ink-soft); }
.stars { color: #d99a00; letter-spacing: 0.05em; font-size: 0.85rem; }
.check-items { list-style: none; margin: 0; padding: 0.4rem 1.2rem 0.9rem; }
.check-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.check-items li:last-child { border-bottom: 0; }
.check-items .y { color: #17603f; font-weight: 600; }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.settings-nav { position: sticky; top: 92px; display: grid; gap: 0.15rem; }
.settings-nav a { padding: 0.55rem 0.8rem; border-radius: 6px; font-weight: 600; font-size: 0.93rem; color: var(--ink-soft); }
.settings-nav a:hover { background: var(--bg-soft); }
.settings-sections { display: grid; gap: 1.5rem; max-width: 720px; }
.settings-sections .form { scroll-margin-top: 92px; }
.settings-sections .form h2 { font-size: 1.2rem; }
.settings-sections .form > p { color: var(--muted); font-size: 0.92rem; margin-top: -0.6rem; }
.toggle-row { display: flex !important; justify-content: space-between; align-items: center; gap: 1rem !important; padding: 0.75rem 0; border-bottom: 1px dashed var(--line); font-weight: 500 !important; font-size: 0.95rem !important; color: var(--ink) !important; cursor: pointer; }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); font-size: 0.83rem; }
.switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100% !important; height: 100%; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d6d1ca; transition: background 200ms; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 200ms var(--ease); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--primary); outline-offset: 2px; }
.saved { font-size: 0.88rem; font-weight: 600; color: #17603f; }
.danger-link { color: #b4232f; font-weight: 600; }
@media (max-width: 760px) { .settings { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; overflow-x: auto; gap: 0.25rem; scrollbar-width: none; } .settings-nav a { white-space: nowrap; background: var(--bg-soft); } }

/* footer for members area: slim */
.app-foot { border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: 0.86rem; color: var(--muted); }
.app-foot .wrap { display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.app-foot nav { display: flex; gap: 0.4rem 1.25rem; flex-wrap: wrap; }
.app-foot a:hover { color: var(--ink); text-decoration: underline; }

/* welcome after sign-up */
.welcome-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.welcome-list li { position: relative; display: grid; gap: 0.15rem; padding: 0.9rem 1rem 0.9rem 2.6rem; border: 1px solid var(--line); border-radius: 10px; }
.welcome-list li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--primary); }
.welcome-list b { font-family: var(--display); font-weight: 600; }
.welcome-list span { font-size: 0.9rem; color: var(--muted); }

/* live-data avatars (photo or initials) */
img.hl, img.hc, img.pa, img.ph-img, img.sa { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.host-card .hc { grid-row: span 2; }
.profile-head .ph-img { width: 112px; height: 112px; }
@media (max-width: 640px) { .profile-head .ph-img { width: 80px !important; height: 80px !important; } }
.avatar-pick .ph .sa { width: 100%; height: 100%; }

/* explore city search */
.loc input { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; width: 11rem; min-width: 0; }
.loc button { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.loc:focus-within { border-color: var(--primary); }
.filters + .filters { padding-left: 0.75rem; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .filters + .filters { padding-left: 0; border-left: 0; } .loc { width: 100%; } .loc input { flex: 1; } }

/* API category names arrive lowercase */
.card .tag, .party-cover .tag { text-transform: capitalize; }
