/* ============================================================
   YAARON — design tokens
   ============================================================ */
:root {
  --black: #171717;
  --ink-80: #171717CC;
  --cream: #FFF7EA;
  --cream-dim: #F3EADA;
  --surface: #FFFFFF;
  --yellow: #FFD447;
  --yellow-dk: #E8B800;
  --coral: #FF6B5E;
  --coral-dim: #FDEAE8;
  --mint: #A8E6CF;
  --mint-dk: #14532D;
  --grey-900: #2A2A28;
  --grey-600: #6B6B68;
  --grey-400: #A8A29A;
  --grey-200: #EFE7D8;
  --green: #2E7D4F;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(23,23,23,.06);
  --shadow-md: 0 10px 30px rgba(23,23,23,.10);
  --shadow-lg: 0 24px 60px rgba(23,23,23,.16);

  --ease-spring: cubic-bezier(.2,.8,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Poppins', sans-serif; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }

:focus-visible { outline: 2.5px solid var(--black); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Avatar (shared identity element across every screen)
   ============================================================ */
.avatar {
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins'; font-weight: 800; color: rgba(255,255,255,.92);
  flex-shrink: 0;
}

/* Logo mark (toggle pill) */
.toggle-pill { position: relative; display: inline-flex; align-items: center; background: var(--yellow); border-radius: var(--radius-pill); padding: 4px; }
.toggle-pill .knob { background: var(--cream); border-radius: 50%; width: 18px; height: 18px; margin-left: auto; }
.toggle-pill .track-label { font-family: 'Poppins'; font-weight: 700; color: var(--black); font-size: 12px; padding-left: 8px; }
.toggle-pill.off { background: var(--grey-200); }
.toggle-pill.off .track-label { color: var(--grey-600); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: 'Poppins'; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }

/* ============================================================
   App header (desktop nav; collapses to just the logo on mobile,
   since the bottom tab bar carries navigation there)
   ============================================================ */
.app-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200); }
.app-header nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; }
.app-header .nav-links { display: flex; gap: 8px; font-size: 13.5px; font-weight: 700; align-items: center; }
.app-header .nav-links a { opacity: .6; transition: opacity .15s, background .15s, color .15s; padding: 8px 14px; border-radius: var(--radius-pill); }
.app-header .nav-links a.active { opacity: 1; background: var(--yellow); color: var(--black); }
.app-header .nav-links a:hover { opacity: 1; }
.app-header .nav-links a.btn-ghost, .app-header .nav-links a.nav-cta { padding: 9px 16px; }
.app-header .nav-links a.nav-cta { background: var(--yellow); color: var(--black); opacity: 1; font-weight: 800; box-shadow: var(--shadow-sm); }
/* Top tabs stay visible on mobile too — the switch/dashboard/matches/profile
   row is the primary nav, not just the bottom tab bar. */
@media (max-width: 720px) {
  .app-header .wrap { padding: 0 14px; }
  .app-header nav { flex-wrap: wrap; row-gap: 8px; padding: 10px 0; }
  .app-header .nav-links { gap: 4px; width: 100%; overflow-x: auto; }
  .app-header .nav-links a { padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; border-radius: var(--radius-pill); transition: transform .15s var(--ease-spring), box-shadow .15s ease, opacity .15s ease; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--black); color: var(--cream); padding: 13px 24px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary.full { width: 100%; padding: 15px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--black); padding: 12px 20px; border: 1.5px solid var(--grey-200); }
.btn-ghost:hover { border-color: var(--black); }
.btn-accent { background: var(--yellow); color: var(--black); padding: 13px 22px; }

/* ============================================================
   Auth pages (login / signup)
   ============================================================ */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 18px; position: relative; overflow: hidden; }
.auth-shell::before, .auth-shell::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0;
}
.auth-shell::before { width: 340px; height: 340px; background: var(--yellow); top: -120px; left: -100px; }
.auth-shell::after { width: 300px; height: 300px; background: var(--coral); bottom: -100px; right: -90px; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-lg); animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.auth-card .brand-mark { margin-bottom: 8px; }
.auth-card h1 { font-size: 25px; margin-top: 18px; letter-spacing: -.03em; }
.auth-card .sub { color: var(--grey-600); font-size: 14px; margin-top: 6px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--grey-900); }
.field .input-wrap { position: relative; display: flex; align-items: center; }
.field .input-wrap svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--grey-400); pointer-events: none; }
.field input { width: 100%; font-family: 'Inter'; font-size: 15px; padding: 12px 14px 12px 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--grey-200); background: var(--grey-200); transition: border-color .15s ease, background .15s ease; }
.field input:focus { outline: none; border-color: var(--black); background: var(--surface); }
.field .input-wrap:has(.toggle-pw-btn) input { padding-right: 42px; }
.field .input-wrap .toggle-pw-btn { position: absolute; right: 10px; left: auto; width: auto; height: auto; background: none; border: none; padding: 5px; cursor: pointer; color: var(--grey-400); display: flex; pointer-events: auto; }
.field .input-wrap .toggle-pw-btn svg { position: static; width: 18px; height: 18px; }
.field .input-wrap .toggle-pw-btn:hover { color: var(--black); }
.forgot-link { display: block; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--grey-600); margin-top: -7px; }
.forgot-link:hover { color: var(--black); }
.form-error { background: var(--coral-dim); color: #B3261E; font-size: 13px; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 4px; font-weight: 500; }
.form-notice { background: rgba(168, 230, 207, .35); color: #1D6B4C; font-size: 13px; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 4px; font-weight: 500; }
.switch-link { text-align: center; font-size: 13.5px; margin-top: 22px; color: var(--grey-600); }
.switch-link a { font-weight: 700; color: var(--black); border-bottom: 1.5px solid var(--yellow); }
.link-btn { display: block; width: 100%; text-align: center; background: none; border: none; font-family: 'Inter'; font-size: 13px; font-weight: 700; color: var(--grey-600); cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--black); text-decoration: underline; }

/* ============================================================
   Static content pages (safety / terms)
   ============================================================ */
.static-page { max-width: 680px; margin: 0 auto; padding: 48px 22px 80px; }
.static-page .back-link { display: inline-block; font-size: 13px; font-weight: 700; color: var(--grey-600); margin-bottom: 22px; }
.static-page h1 { font-size: 30px; letter-spacing: -.03em; }
.static-page .updated { font-size: 12.5px; color: var(--grey-400); margin-top: 6px; margin-bottom: 30px; }
.static-page h2 { font-size: 18px; margin-top: 30px; margin-bottom: 10px; }
.static-page p, .static-page li { font-size: 14.5px; line-height: 1.7; color: var(--ink-80); }
.static-page ul, .static-page ol { padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.static-page .callout { background: var(--grey-200); border-radius: var(--radius-md); padding: 16px 18px; font-size: 13.5px; line-height: 1.6; color: var(--grey-900); margin: 20px 0; }
.static-page .callout.mint { background: rgba(168,230,207,.35); }
.static-page .callout strong { color: var(--black); }

/* ============================================================
   App shell body padding (leaves room for the fixed bottom tab bar)
   ============================================================ */
.app-body { padding-bottom: 96px; min-height: 100vh; }
@media (min-width: 721px) { .app-body { padding-bottom: 40px; } }

/* ============================================================
   Bottom tab bar (mobile-primary navigation)
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--grey-200);
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
}
@media (min-width: 721px) { .tabbar { display: none; } }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--grey-400); padding: 4px 20px; border-radius: var(--radius-md); transition: color .15s ease; }
.tab-item svg { width: 22px; height: 22px; }
.tab-item span { font-size: 10.5px; font-weight: 700; }
.tab-item.active { color: var(--black); }
.tab-item.active svg { color: var(--black); }

/* ============================================================
   Dashboard — swipe stack
   ============================================================ */
.swipe-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 4px; }
.swipe-topbar h1 { font-size: 22px; letter-spacing: -.03em; }
.swipe-topbar .sub { font-size: 13.5px; color: var(--grey-600); margin-top: 2px; }

.chip-row { display: flex; gap: 9px; flex-wrap: wrap; padding: 18px 0 6px; overflow-x: auto; }
.chip { background: var(--surface); border: 1.5px solid var(--grey-200); border-radius: var(--radius-pill); padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chip.active { background: var(--black); color: var(--cream); border-color: var(--black); }

/* Swipe vs. Browse-list view switch on the Discover screen */
.view-toggle { display: inline-flex; gap: 3px; background: var(--grey-200); border-radius: var(--radius-pill); padding: 3px; margin: 4px 0 0; }
.view-toggle button { border: none; background: transparent; cursor: pointer; font-family: 'Inter'; font-weight: 700; font-size: 12.5px; padding: 7px 15px; border-radius: var(--radius-pill); color: var(--grey-600); transition: background .15s ease, color .15s ease; }
.view-toggle button.active { background: var(--surface); color: var(--black); box-shadow: var(--shadow-sm); }

.discover-shell { display: flex; flex-direction: column; }
.discover-shell .wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.stack-stage { position: relative; max-width: 400px; width: 100%; margin: 18px auto 0; height: 500px; }
@media (max-width: 720px) {
  .discover-shell { height: calc(100dvh - 57px); padding-bottom: 84px; overflow: hidden; }
  .discover-shell .stack-stage { flex: 1; min-height: 0; max-height: none; height: auto; margin-top: 12px; }
  .discover-shell .swipe-actions { flex-shrink: 0; margin-top: 14px; margin-bottom: 4px; }
}

/* Browse list view — every open plan shown at once, each with an explicit
   "Choose" action, for people who'd rather scan a list than swipe cards. */
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-bottom: 20px; overflow-y: auto; }
.plan-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1.5px solid var(--grey-200); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.plan-row .avatar { width: 44px; height: 44px; font-size: 16px; }
.plan-row .info { flex: 1; min-width: 0; }
.plan-row .info .desc { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plan-row .info .meta { font-size: 12px; color: var(--grey-600); margin-top: 3px; }
.plan-row .choose-btn { background: var(--yellow); color: var(--black); border: none; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 800; font-size: 12.5px; cursor: pointer; flex-shrink: 0; transition: transform .15s var(--ease-spring); }
.plan-row .choose-btn:active { transform: scale(.94); }
.plan-row .choose-btn:disabled { opacity: .55; cursor: default; }

.swipe-card {
  position: absolute; inset: 0;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
  user-select: none; touch-action: none;
  transition: transform .4s var(--ease-spring), opacity .3s ease;
}
.swipe-card.dragging { transition: none; }
.swipe-card .card-photo { height: 56%; position: relative; display: flex; align-items: center; justify-content: center; }
.swipe-card .card-photo .avatar-big { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.swipe-card .yaar-badge { position: absolute; top: 16px; left: 16px; background: rgba(23,23,23,.5); backdrop-filter: blur(6px); color: white; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: var(--radius-pill); }
.swipe-card .verified-chip { position: absolute; top: 16px; right: 16px; background: var(--mint); color: var(--mint-dk); font-size: 10.5px; font-weight: 800; padding: 6px 11px; border-radius: var(--radius-pill); }

.swipe-card .decision-badge {
  position: absolute; top: 22px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: white; opacity: 0; transform: scale(.7) rotate(-15deg);
  transition: opacity .12s ease, transform .12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.swipe-card .decision-badge svg { width: 26px; height: 26px; }
.decision-badge.like { left: 20px; color: var(--green); }
.decision-badge.pass { right: 20px; color: var(--coral); transform: scale(.7) rotate(15deg); }

.swipe-card .card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.swipe-card .plan-desc { font-family: 'Poppins'; font-weight: 700; font-size: 18px; line-height: 1.3; }
.swipe-card .plan-meta { font-size: 13px; color: var(--grey-600); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.swipe-card .creator-row { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--grey-200); font-size: 13px; font-weight: 600; color: var(--grey-900); display: flex; align-items: center; gap: 8px; }
.swipe-card .creator-row .avatar { width: 22px; height: 22px; font-size: 10px; }

.stack-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--grey-600); padding: 34px; background: var(--surface); border-radius: var(--radius-lg); border: 1.5px dashed var(--grey-200); }
.stack-empty svg { width: 44px; height: 44px; color: var(--grey-400); margin-bottom: 6px; }
.stack-empty p:first-of-type { margin-top: 8px; font-weight: 700; color: var(--grey-900); font-size: 15px; }
.stack-empty p { font-size: 13px; }
.stack-empty .btn { margin-top: 16px; }

.swipe-actions { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.swipe-btn { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: transform .15s var(--ease-spring); }
.swipe-btn svg { width: 24px; height: 24px; }
.swipe-btn:active { transform: scale(.88); }
.swipe-btn.pass { background: var(--surface); color: var(--coral); }
.swipe-btn.like { background: var(--yellow); color: var(--black); }

.fab { position: fixed; right: 20px; bottom: 100px; z-index: 44; width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--cream); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); border: none; cursor: pointer; }
.fab svg { width: 24px; height: 24px; }
@media (min-width: 721px) { .fab { bottom: 30px; } }

.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--black); color: var(--cream); padding: 13px 22px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 200; box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 721px) { .toast { bottom: 40px; } }

.modal-overlay { position: fixed; inset: 0; background: rgba(23,23,23,.5); display: none; align-items: center; justify-content: center; z-index: 150; padding: 20px; }
.modal-overlay.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 420px; animation: rise .3s var(--ease-out); }
.modal-box h3 { font-size: 19px; margin-bottom: 4px; }
.modal-box .modal-sub { font-size: 13px; color: var(--grey-600); margin-bottom: 18px; }
.modal-close { float: right; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--grey-600); line-height: 1; }
.modal-box form { display: flex; flex-direction: column; gap: 11px; }
.modal-box select, .modal-box input { font-family: 'Inter'; font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--grey-200); background: var(--grey-200); }
.modal-box select:focus, .modal-box input:focus { outline: none; border-color: var(--black); background: var(--surface); }
.modal-box button[type="submit"] { background: var(--yellow); color: var(--black); border: none; padding: 13px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; margin-top: 4px; }

/* ============================================================
   Matches
   ============================================================ */
.match-card { background: var(--surface); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); border-left: 3px solid transparent; transition: box-shadow .15s ease; }
.match-card:hover { box-shadow: var(--shadow-md); }
.match-card.accepted { border-left-color: var(--mint-dk); }
.match-card.pending { border-left-color: var(--yellow-dk); }
.match-card .avatar { width: 46px; height: 46px; font-size: 17px; }
.match-card .info { flex: 1; min-width: 0; }
.match-card .info .desc { font-weight: 700; font-size: 14.5px; }
.match-card .info .meta { font-size: 12px; color: var(--grey-600); margin-top: 3px; }
.match-card .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 560px) {
  .match-card { flex-wrap: wrap; row-gap: 12px; }
  .match-card .info { flex-basis: calc(100% - 60px); }
  .match-card .side { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .match-actions { flex: 1; }
  .match-actions a, .match-actions button { flex: 1; text-align: center; }
}
.status-pill { font-size: 10.5px; font-weight: 800; padding: 4px 11px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .03em; }
.status-pill.pending { background: #FFF3D6; color: #92700C; }
.status-pill.accepted { background: var(--mint); color: var(--mint-dk); }
.status-pill.declined, .status-pill.expired { background: var(--grey-200); color: var(--grey-600); }
.match-actions { display: flex; gap: 8px; }
.match-actions button, .match-actions a { border: none; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.match-actions .accept { background: var(--black); color: var(--cream); }
.match-actions .decline { background: var(--grey-200); }

/* ============================================================
   Meetup / map
   ============================================================ */
.meetup-banner { background: var(--black); color: var(--cream); padding: 16px 0; }
.meetup-banner .wrap { display: flex; align-items: center; gap: 12px; }
.meetup-banner .info { flex: 1; min-width: 0; }
.meetup-banner .plan-desc { font-weight: 700; font-size: 14.5px; }
.meetup-banner .expiry { font-size: 11.5px; color: var(--grey-400); margin-top: 2px; }
#map { height: 55vh; width: 100%; }
.share-panel { background: var(--surface); margin: -18px 16px 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 18px; position: relative; z-index: 5; }
.toggle-switch { position: relative; display: inline-flex; align-items: center; width: 52px; height: 30px; background: var(--grey-200); border-radius: var(--radius-pill); cursor: pointer; transition: background .3s; flex-shrink: 0; }
.toggle-switch.on { background: var(--yellow); }
.toggle-switch .dot { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: white; border-radius: 50%; transition: transform .3s var(--ease-spring); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle-switch.on .dot { transform: translateX(22px); }
.share-toggle-row { display: flex; align-items: center; gap: 14px; }
.share-toggle-row .label { font-size: 14px; font-weight: 700; flex: 1; }
.safety-note { font-size: 12px; color: var(--grey-600); margin-top: 12px; line-height: 1.5; }
#authError { max-width: 460px; margin: 90px auto; text-align: center; padding: 0 20px; }
#authError h2 { font-size: 22px; }
#authError p { color: var(--grey-600); margin-top: 10px; font-size: 14px; }

/* ============================================================
   Profile
   ============================================================ */
.profile-hero { display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; text-align: center; }
.profile-hero .avatar { width: 84px; height: 84px; font-size: 32px; }
.profile-hero h1 { margin-top: 14px; font-size: 22px; }
.profile-hero .email { font-size: 13px; color: var(--grey-600); margin-top: 2px; }
.profile-hero .verify-status { margin-top: 10px; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--grey-200); color: var(--grey-600); }
.profile-section { background: var(--surface); border-radius: var(--radius-md); padding: 20px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.profile-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-600); margin-bottom: 14px; }
.profile-form { display: flex; flex-direction: column; gap: 13px; }
.profile-form textarea { resize: vertical; min-height: 70px; font-family: 'Inter'; }
.logout-row { margin-top: 20px; text-align: center; }
.logout-row a { font-size: 13.5px; color: var(--coral); font-weight: 700; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--grey-600); }

/* ============================================================
   "Switch on" moment — plays once after login/signup
   ============================================================ */
.switchon-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.switchon-overlay.show { opacity: 1; pointer-events: auto; }
.switchon-overlay.hide { opacity: 0; }
.switchon-toggle {
  width: 120px; height: 60px; border-radius: var(--radius-pill);
  background: var(--grey-900); display: flex; align-items: center; padding: 5px;
  transition: background .5s ease;
}
.switchon-toggle.on { background: var(--yellow); }
.switchon-knob {
  width: 50px; height: 50px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins'; font-weight: 800; font-size: 12px; color: var(--black);
  transform: translateX(0); transition: transform .5s var(--ease-spring);
}
.switchon-toggle.on .switchon-knob { transform: translateX(60px); }
.switchon-text { color: var(--cream); font-family: 'Poppins'; font-weight: 600; font-size: 15px; }
.switchon-brand { color: var(--grey-600); font-family: 'Poppins'; font-weight: 800; font-size: 12px; letter-spacing: .15em; margin-top: -8px; }

@media (prefers-reduced-motion: reduce) {
  .switchon-toggle, .switchon-knob { transition: none; }
}

/* ============================================================
   General motion polish
   ============================================================ */
.chip:active { transform: scale(.94); }
.tab-item:active { transform: scale(.9); }
.swipe-card { animation: card-enter .3s var(--ease-out); }
@keyframes card-enter { from { opacity: 0; } to { opacity: 1; } }
.match-card, .stat-card { animation: card-enter .3s var(--ease-out) backwards; }

/* ============================================================
   Post-a-plan modal — date chips, location picker, photo picker
   ============================================================ */
.modal-box-wide { max-width: 460px; max-height: 88vh; overflow-y: auto; }
.field-group { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--grey-900); }
.optional-tag { font-weight: 500; color: var(--grey-400); text-transform: none; letter-spacing: 0; }

.date-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.date-chip { background: var(--grey-200); border: 1.5px solid transparent; border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Inter'; color: var(--grey-900); transition: background .15s ease, color .15s ease; }
.date-chip.active { background: var(--yellow); color: var(--black); }
.custom-date-input { font-family: 'Inter'; font-size: 14px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--grey-200); background: var(--grey-200); }

.location-results { display: flex; flex-direction: column; gap: 2px; max-height: 160px; overflow-y: auto; }
.location-result { font-size: 12.5px; padding: 9px 11px; border-radius: var(--radius-sm); cursor: pointer; background: var(--grey-200); }
.location-result:hover { background: var(--yellow); }
.location-use-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: transparent; border: 1.5px dashed var(--grey-200); color: var(--grey-900); font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: var(--radius-pill); cursor: pointer; font-family: 'Inter'; }
.location-use-btn svg { width: 14px; height: 14px; }
.location-use-btn:hover { border-color: var(--black); }
.location-map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1.5px solid var(--grey-200); }
#locationMap { height: 180px; width: 100%; }
.location-map-hint { font-size: 11.5px; color: var(--grey-600); padding: 8px 11px; background: var(--grey-200); }
.map-link { color: var(--coral); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--coral); }

.photo-picker { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--grey-200); border-radius: var(--radius-md); padding: 16px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--grey-600); transition: border-color .15s ease, color .15s ease; }
.photo-picker:hover { border-color: var(--black); color: var(--black); }
.photo-picker svg { width: 18px; height: 18px; }
.photo-preview-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.photo-preview-wrap img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.photo-remove-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(23,23,23,.65); color: white; font-size: 17px; line-height: 1; cursor: pointer; }

.plan-row-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); background-size: cover; background-position: center; flex-shrink: 0; }

/* ============================================================
   Group chat
   ============================================================ */
.chat-header { border-bottom: 1px solid var(--grey-200); padding: 14px 0; }
.chat-back-link { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--grey-600); margin-bottom: 8px; }
.chat-back-link:hover { color: var(--black); }
.chat-header-desc { font-family: 'Poppins'; font-weight: 700; font-size: 16px; }
.chat-header-members { font-size: 12.5px; color: var(--grey-600); margin-top: 3px; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; max-width: 700px; margin: 0 auto; height: calc(100dvh - 160px); overflow-y: auto; }
.chat-bubble-row { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.chat-bubble-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble { background: var(--surface); border: 1.5px solid var(--grey-200); border-radius: var(--radius-md); padding: 9px 13px; }
.chat-bubble-row.mine .chat-bubble { background: var(--yellow); border-color: var(--yellow); }
.chat-bubble-name { font-size: 11px; font-weight: 700; color: var(--coral); margin-bottom: 2px; }
.chat-bubble-text { font-size: 14px; line-height: 1.4; word-break: break-word; }
.chat-input-row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--grey-200); max-width: 700px; margin: 0 auto; }
@media (min-width: 721px) { .chat-input-row { border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); } }
.chat-input-row input { flex: 1; font-family: 'Inter'; font-size: 14px; padding: 12px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--grey-200); background: var(--grey-200); }
.chat-input-row input:focus { outline: none; border-color: var(--black); background: var(--surface); }
.chat-input-row button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-input-row button svg { width: 19px; height: 19px; }
