/* =====================================================================
   Nikah Hub — Design System (Phase 0)
   Emerald + gold, Islamic geometric motifs, mobile-first.
   Sections:
     1. Design tokens (CSS variables)
     2. Base / reset
     3. Layout (app shell, header, screens, bottom tabs)
     4. Components (cards, chips, buttons, hero, event card, sheet, toast)
     5. Utilities & states (focus, reduced motion, responsive)
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. DESIGN TOKENS                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Brand — emerald */
  --emerald-900: #0a3d31;
  --emerald-800: #0e5343;
  --emerald-700: #12715a;   /* primary */
  --emerald-600: #178a6d;
  --emerald-500: #1fa17f;
  --emerald-050: #e7f2ee;

  /* Brand — gold */
  --gold-700: #a67c1a;
  --gold-600: #c39322;
  --gold-500: #d4af37;      /* accent */
  --gold-300: #e8cf86;
  --gold-100: #f6ecc9;

  /* Neutrals / surfaces */
  --cream:     #faf6ee;     /* app background */
  --paper:     #ffffff;     /* card surface */
  --ink:       #23302b;     /* primary text */
  --ink-soft:  #5c6b63;     /* secondary text */
  --ink-faint: #8a978f;     /* tertiary text */
  --line:      #e7ded0;     /* hairline borders */

  /* Semantic */
  --success: #1fa17f;
  --warning: #c9932d;
  --danger:  #c1443a;

  /* Side accent (set per-space in later phases) */
  --side-accent: var(--gold-500);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 61, 49, .06);
  --shadow-md: 0 6px 20px rgba(10, 61, 49, .10);
  --shadow-lg: 0 16px 40px rgba(10, 61, 49, .18);

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 44px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .28s;

  /* Layout metrics */
  --header-h: 60px;
  --tabbar-h: 66px;
  --max-w: 520px;           /* mobile-first content column */
}

/* ------------------------------------------------------------------ */
/* 2. BASE / RESET                                                     */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  /* Subtle geometric wash */
  background-image:
    radial-gradient(circle at 12% -10%, rgba(212,175,55,.08), transparent 40%),
    radial-gradient(circle at 92% 4%, rgba(18,113,90,.07), transparent 42%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.2; }
p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ------------------------------------------------------------------ */
/* 3. LAYOUT — APP SHELL                                               */
/* ------------------------------------------------------------------ */
.app {
  max-width: var(--max-w);
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(10,61,49,.06);
}

/* Header ----------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  background: linear-gradient(180deg, var(--emerald-800), var(--emerald-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}
/* Gold hairline under header, like an ornamental border */
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.header .lantern { flex: 0 0 auto; }
.header .brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.header .brand .bismillah {
  font-family: var(--font-arabic);
  font-size: 13px;
  color: var(--gold-300);
  letter-spacing: .5px;
}
.header .brand .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header .spacer { flex: 1; }

/* Side badge (which space you're in) */
.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-900);
  background: var(--gold-300);
  border: 1px solid var(--gold-500);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.side-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-700); }

/* Screens ---------------------------------------------------------- */
.main {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-4);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--sp-6));
}
.screen { display: none; animation: fade var(--dur) var(--ease); }
.screen.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: var(--sp-6) 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-title::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Bottom tab bar --------------------------------------------------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tab {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur) var(--ease);
}
.tab svg { width: 24px; height: 24px; }
.tab .tab-ico-fill { opacity: 0; transition: opacity var(--dur) var(--ease); }
.tab.is-active { color: var(--emerald-700); }
.tab.is-active .tab-ico-fill { opacity: 1; }
.tab.is-common.is-active { color: var(--gold-600); }
.tab .heart { color: var(--gold-500); }

/* ------------------------------------------------------------------ */
/* 4. COMPONENTS                                                       */
/* ------------------------------------------------------------------ */

/* Card ------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

/* Chip ------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-800);
  background: var(--emerald-050);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.chip--gold { color: var(--gold-700); background: var(--gold-100); }
.chip--outline { background: transparent; border-color: var(--line); color: var(--ink-soft); }

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--emerald-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--emerald-600); }
.btn--gold { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: var(--emerald-900); }
.btn--ghost { background: transparent; color: var(--emerald-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--emerald-050); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* Hero (master countdown) ------------------------------------------ */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  color: #fff;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% -20%, rgba(212,175,55,.28), transparent 55%),
    linear-gradient(160deg, var(--emerald-800), var(--emerald-900));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212,175,55,.35);
}
/* Ornamental geometric corner motifs */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(212,175,55,.16) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .8;
  pointer-events: none;
}
.hero::before { top: -30px; left: -30px; }
.hero::after { bottom: -30px; right: -30px; }
.hero .bismillah-lg {
  font-family: var(--font-arabic);
  font-size: 30px;
  color: var(--gold-300);
  margin-bottom: var(--sp-2);
  direction: rtl;
}
.hero .eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-300); }
.hero .couple { font-family: var(--font-display); font-size: 26px; margin: 6px 0 2px; }
.hero .date { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: var(--sp-4); }
.hero .dua {
  font-size: 12.5px;
  font-style: italic;
  color: rgba(255,255,255,.82);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(212,175,55,.3);
  max-width: 42ch;
  margin-inline: auto;
}

/* Countdown tiles */
.countdown { display: flex; justify-content: center; gap: var(--sp-3); }
.count-tile {
  min-width: 62px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: var(--r-sm);
  padding: 10px 8px;
}
.count-tile .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; }
.count-tile .lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-300); }

/* Event card ------------------------------------------------------- */
.event {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.event .date-stamp {
  flex: 0 0 auto;
  width: 52px;
  text-align: center;
  background: var(--emerald-050);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 4px;
}
.event .date-stamp .d { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--emerald-800); line-height: 1; }
.event .date-stamp .m { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.event .body { flex: 1; min-width: 0; }
.event .name { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.event .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.event .loc { font-size: 13px; color: var(--ink-soft); }
.event .loc .venue { font-weight: 700; color: var(--ink); }
.event .loc .landmark { font-style: italic; color: var(--ink-faint); }
.event .countdown-mini { font-size: 12px; font-weight: 600; color: var(--emerald-700); margin-top: 6px; }
.event--next { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(212,175,55,.18); }

/* Bottom-sheet modal ----------------------------------------------- */
.sheet-scrim {
  position: fixed; inset: 0;
  background: rgba(10,61,49,.5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 50;
}
.sheet-scrim.is-open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%; max-width: var(--max-w);
  background: var(--paper);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-5) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease);
  z-index: 51;
  max-height: 88dvh; overflow-y: auto;
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet .grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--sp-4); }
.sheet h3 { font-size: 20px; margin-bottom: 6px; }
.sheet p { color: var(--ink-soft); font-size: 14px; }
.sheet .sheet-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.sheet .sheet-actions .btn { flex: 1; }

/* Toast ------------------------------------------------------------ */
.toast-wrap {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  width: 100%; max-width: calc(var(--max-w) - 32px);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 60; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--emerald-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(212,175,55,.4);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  animation: toastIn var(--dur) var(--ease);
}
.toast .tick { color: var(--gold-500); flex: 0 0 auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.is-leaving { animation: toastOut var(--dur) var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* Empty / placeholder state (unbuilt screens) ---------------------- */
.placeholder {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--ink-soft);
}
.placeholder .ph-ico {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-4);
  color: var(--gold-500);
  opacity: .9;
}
.placeholder h2 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.placeholder p { font-size: 14px; max-width: 32ch; margin-inline: auto; }
.placeholder .phase-tag {
  display: inline-block; margin-top: var(--sp-4);
  font-size: 12px; font-weight: 600;
  color: var(--emerald-800); background: var(--emerald-050);
  padding: 5px 12px; border-radius: var(--r-pill);
}

/* Quick-actions row ------------------------------------------------ */
.quick-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* 5. UTILITIES & STATES                                              */
/* ------------------------------------------------------------------ */

/* Visible, consistent keyboard focus */
:where(button, a, [tabindex], input, textarea, select):focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.stack > * + * { margin-top: var(--sp-3); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* Larger phones / small tablets: gentle scale-up, stay centered */
@media (min-width: 560px) {
  :root { --max-w: 540px; }
  .app { margin-top: 12px; margin-bottom: 12px; border-radius: 20px; overflow: hidden; min-height: calc(100dvh - 24px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .screen { animation: none; }
}

/* ------------------------------------------------------------------ */
/* 6. ONBOARDING                                                       */
/* ------------------------------------------------------------------ */
.onboard {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: linear-gradient(165deg, var(--emerald-900), var(--emerald-800) 60%, var(--emerald-700));
  background-image:
    radial-gradient(circle at 15% 8%, rgba(212,175,55,.16), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(212,175,55,.12), transparent 40%),
    linear-gradient(165deg, var(--emerald-900), var(--emerald-800) 60%, var(--emerald-700));
}
.onboard-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212,175,55,.35);
  text-align: center;
}
.onb-title { font-size: 28px; margin: 6px 0 2px; color: var(--emerald-800); }
.onb-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: var(--sp-6); }
.onb-step h2 { font-size: 16px; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--sp-4); color: var(--ink); }
.onb-choices { display: flex; flex-direction: column; gap: var(--sp-3); }
.onb-choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-align: left;
  background: var(--emerald-050);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.onb-choice:hover { border-color: var(--gold-500); transform: translateY(-1px); }
.onb-choice span:not(.onb-choice-emoji) { font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.onb-choice small { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.onb-choice-emoji { font-size: 26px; flex: 0 0 auto; }
.onb-back {
  background: none; border: 0; color: var(--ink-faint);
  font-size: 13px; margin-top: var(--sp-4); cursor: pointer;
  text-decoration: underline;
}
.onb-error {
  color: var(--danger); font-size: 13px; background: #fbe9e7;
  border-radius: var(--r-sm); padding: 8px 10px;
}
.field { display: block; text-align: left; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--emerald-600); }

/* ------------------------------------------------------------------ */
/* 7. SEGMENTED CONTROL (Common space sub-nav)                        */
/* ------------------------------------------------------------------ */
.segmented {
  display: flex;
  gap: 4px;
  background: var(--emerald-050);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: var(--sp-5);
}
.seg {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px 6px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.seg.is-active { background: var(--paper); color: var(--emerald-800); box-shadow: var(--shadow-sm); }
.common-panel { display: none; }
.common-panel.is-active { display: block; }

/* Photo grid + viewer --------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--emerald-050);
  border: 1px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .likes-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(10,61,49,.7); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: var(--r-pill);
}
.photo-viewer {
  position: fixed; inset: 0; z-index: 55;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,20,16,.94);
  padding: var(--sp-5);
}
.photo-viewer.is-open { display: flex; }
.photo-viewer img { max-height: 70dvh; border-radius: var(--r-md); }
.viewer-caption { color: #fff; text-align: center; margin-top: var(--sp-4); font-size: 14px; max-width: 40ch; }
.viewer-close {
  position: absolute; top: env(safe-area-inset-top, 16px); right: 16px;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer;
}

/* Emoji row for wishes ---------------------------------------------*/
.emoji-row { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-pick {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--r-pill); padding: 6px 10px; font-size: 16px; cursor: pointer;
}
.emoji-pick.is-active { border-color: var(--gold-500); background: var(--gold-100); }

/* Wish + song cards -------------------------------------------------*/
.wish-card { display: flex; gap: 10px; align-items: flex-start; }
.wish-card .emoji { font-size: 22px; }
.wish-card .who { font-weight: 700; font-size: 13px; }
.wish-card .when { font-size: 11px; color: var(--ink-faint); }
.song-card { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.song-card .meta { font-size: 12px; color: var(--ink-soft); }
.vote-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--r-sm); padding: 6px 10px; cursor: pointer; font-size: 11px;
}
.vote-btn.is-voted { border-color: var(--gold-500); background: var(--gold-100); color: var(--gold-700); }

/* Header icon button (logout) ---------------------------------------*/
.header-icon-btn {
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer;
  margin-left: 6px; flex: 0 0 auto;
}

/* Progress bar (budget) ---------------------------------------------*/
.progress { height: 8px; border-radius: var(--r-pill); background: var(--emerald-050); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--emerald-600); border-radius: var(--r-pill); }
.progress.is-over > span { background: var(--danger); }

/* Row list item (guests, budget, admin team) ------------------------*/
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; }
.row-item .rt { text-align: right; }

/* Countdown-mini live states */
.state-live { color: var(--gold-700) !important; font-weight: 700; }
.state-done { color: var(--ink-faint) !important; }
