/* ============================================================
   CITYLINK — assets/css/style.css
   Design System: Green (#4CAF50 primary) + Dark + White
   ============================================================ */

/* ── FONTS + RESET ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — a refined accent, not a background color (see design-system
     brief: green marks primary actions/active states/success, it does
     not cover large surface areas anymore). */
  --green:        #20C878;
  --green-dark:   #16A866;
  --green-light:  #E7F9F1;
  --green-mid:    #CFF3E3;

  /* Neutrals */
  --dark:         #171A2B;
  --dark-2:       #16213E;
  --dark-3:       #0F3460;
  --white:        #FFFFFF;
  --off-white:    #F7F8FA;
  --gray-1:       #EEF0F3;
  --gray-2:       #E2E5EA;
  --gray-3:       #B7BCC5;
  --gray-4:       #6F7682;
  --gray-5:       #3A3F4B;
  --red:          #E05252;
  --orange:       #F39C12;
  --blue:         #3498DB;
  --success:      #20B26B;
  --error:        #E05252;
  --text:         #171A2B;
  --text-light:   #6F7682;
  --border:       #E6E8EC;

  /* Depth — subtle, layered, never a glow */
  --shadow-sm:    0 1px 2px rgba(23,26,43,0.05), 0 1px 3px rgba(23,26,43,0.06);
  --shadow:       0 2px 10px rgba(23,26,43,0.06), 0 1px 2px rgba(23,26,43,0.05);
  --shadow-lg:    0 12px 28px rgba(23,26,43,0.12);

  /* Radius scale — cards 16-20, inputs/buttons 12-14, small elements
     8-12, pills reserved for badges/segmented controls only. */
  --radius:       18px;
  --radius-sm:    13px;
  --radius-xs:    9px;
  --radius-pill:  999px;

  /* Spacing scale — 4/8/12/16/20/24/32/40/48 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  --transition:   all 0.18s cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ──
   Page title 24/700 · Section title 18/600 · Body 15-16/400 ·
   Secondary 13-14/400-500 · Balance 30-34/700 · Buttons 15-16/600.
   h1 is reserved for the rare full page title; h2 for section titles
   sits at 18px per the scale above (not 22px) so bold text stops
   competing with the financial numbers it's introducing. */
h1 { font-size: 1.5rem;   font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1rem;     font-weight: 600; line-height: 1.35; }
h4 { font-size: 0.9375rem;font-weight: 600; }
p  { line-height: 1.6; }
a  { text-decoration: none; color: inherit; }

.text-green  { color: var(--green); }
.text-red    { color: var(--red);   }
.text-gray   { color: var(--gray-4); }
.text-white  { color: var(--white); }
.text-sm     { font-size: 0.8125rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.fw-500      { font-weight: 500; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }
.text-center { text-align: center; }

/* ── LAYOUT ── */
.page        { min-height: 100vh; display: flex; flex-direction: column; }
.container   { padding: 0 20px; width: 100%; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-20  { margin-top: 20px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-4   { margin-bottom: 4px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* ── SCROLLABLE MAIN (when bottom nav present) ── */
.page-content {
  flex: 1;
  padding-bottom: 90px;
  overflow-y: auto;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card-sm { padding: 14px 16px; border-radius: var(--radius-sm); }

/* ── BUTTONS ──
   Primary = filled brand · Secondary = neutral outline · Tertiary =
   text-only · Destructive = controlled red · Disabled = neutral gray.
   Radius sits in the 12-14px band, not a pill — a pill button next to
   a rectangular card read as a different, cheaper design language. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn:active  { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background: var(--gray-1); color: var(--gray-3); box-shadow: none; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  width: 100%;
  box-shadow: 0 2px 8px rgba(32,200,120,0.24);
}
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  width: 100%;
}
.btn-outline:hover:not(:disabled) { border-color: var(--gray-3); background: var(--off-white); }

/* Tertiary — text only, no fill/border. Kept full-width-compatible
   (many flows stack this directly under a primary button as "Cancel"),
   just without competing visual weight. */
.btn-ghost {
  background: transparent;
  color: var(--gray-4);
  font-weight: 600;
}
.btn-ghost:hover:not(:disabled) { background: var(--gray-1); color: var(--gray-5); }

.btn-danger {
  background: var(--red);
  color: var(--white);
}
.btn-danger:hover:not(:disabled) { background: #C73E3E; }

.btn-sm {
  padding: 9px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-xs);
}

.btn-icon {
  padding: 10px;
  border-radius: 50%;
  background: var(--gray-1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray-5);
}
.btn-icon:hover { background: var(--gray-2); }
.btn-icon:active { transform: scale(0.94); }

/* loading state on buttons */
.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
}

/* ── INPUTS ──
   One shared visual language: height, radius, border, label, focus
   ring, error state — every input in the app draws from this same set
   so nothing feels like it wandered in from a different form library. */
.input-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input-group label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-5); }
/* A button sitting directly under a field with no gap reads as one
   fused control instead of two — give every such button breathing
   room by default, whether or not the page also sets its own inline
   margin (that just overrides this with the same value). */
.input-group + .btn { margin-top: 16px; }

.input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
textarea.input { height: auto; padding: 12px 16px; line-height: 1.5; }
.input:focus  { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,200,120,0.12); }
.input::placeholder { color: var(--gray-3); }
.input.error  { border-color: var(--error); }
.input.error:focus { box-shadow: 0 0 0 3px rgba(224,82,82,0.12); }
.input:disabled { background: var(--gray-1); color: var(--gray-3); cursor: not-allowed; }

.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 48px; }
.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-3);
  pointer-events: none;
}
.input-with-icon .input-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--gray-3);
}

/* Phone input with flag */
.phone-input-wrap {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.phone-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,200,120,0.12); }
.phone-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  background: var(--gray-1);
  border-right: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray-5);
}
.phone-prefix img { width: 22px; border-radius: 2px; }
.phone-input-wrap .input {
  border: none;
  border-radius: 0;
  flex: 1;
}
.phone-input-wrap .input:focus { box-shadow: none; }

/* ── OTP BOXES ── */
.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.otp-box {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.otp-box:focus   { border-color: var(--green); background: var(--green-light); }
.otp-box.filled  { border-color: var(--green); color: var(--green); }

/* ── TOP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--border);
}
.topbar-title { font-size: 1rem; font-weight: 700; }
.topbar-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: var(--transition);
}
.topbar-back:hover { background: var(--gray-2); }

/* ── BOTTOM NAVIGATION ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  color: var(--gray-3);
  transition: var(--transition);
  font-family: inherit;
}
.nav-item.active { color: var(--green); }
.nav-item svg   { width: 22px; height: 22px; }
.nav-item span  { font-size: 0.65rem; font-weight: 600; }
.nav-icon-wrap  { position: relative; }
.nav-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--red);
  color: white; font-size: 0.6rem;
  font-weight: 700; border-radius: 50%;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* Delivery is deliberately a primary action, not just another tab — but
   it still needs a label like its four siblings, or it reads as a
   second, unrelated interaction pattern grafted onto the same bar. */
.nav-icon-wrap.raised {
  background: var(--green);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(32,200,120,0.35), 0 0 0 4px var(--white);
}
.nav-icon-wrap.raised svg { color: var(--white); width: 20px; height: 20px; }
.nav-item:has(.raised) span { color: var(--green); font-weight: 700; }

/* ── WALLET CARD (compact) ──
   A light surface, not a full-bleed green gradient — the balance
   itself (biggest, boldest number on the page) carries the financial
   weight, green is reserved for the eye icon's active affordance and
   the primary action beneath it. */
.wallet-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.wallet-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; font-weight: 500; color: var(--gray-4); margin-bottom: 8px;
}
.wallet-amount {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.wallet-eye {
  cursor: pointer;
  color: var(--gray-4);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: var(--transition);
}
.wallet-eye:hover { background: var(--gray-1); color: var(--gray-5); }
.wallet-actions { display: flex; gap: 10px; }
.wallet-actions .btn { padding: 12px 18px; font-size: 0.875rem; }

/* ── QUICK ACTION GRID ──
   Compact shortcuts, not oversized cards — 2x2 on narrow phones reads
   cleaner than 4-across, which cramps both the icon and the label. */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 380px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
@media (min-width: 380px) {
  .quick-item { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
}
.quick-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light);
  color: var(--green-dark);
  flex-shrink: 0;
  transition: var(--transition);
}
.quick-icon svg { width: 20px; height: 20px; }
.quick-item:hover .quick-icon { background: var(--green-mid); }
.quick-item:active { transform: scale(0.98); }
.quick-item span { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
@media (min-width: 380px) {
  .quick-item span { font-size: 0.7rem; color: var(--gray-5); }
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-header h3 { font-size: 0.9375rem; }
.see-all { font-size: 0.8125rem; color: var(--green); font-weight: 600; }

/* ── TRANSACTION ROW ── */
.tx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: none; }
.tx-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tx-icon svg { width: 20px; height: 20px; }
.tx-icon.credit { background: var(--green-light); color: var(--green-dark); }
.tx-icon.debit  { background: var(--gray-1); color: var(--gray-5); }
.tx-info { flex: 1; min-width: 0; }
/* Important names (e.g. "Platform service fee") get to wrap onto a
   second line instead of "Platform service fe..." — aggressive
   single-line truncation was actively hiding what a charge was for. */
.tx-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}
.tx-date  { font-size: 0.75rem; color: var(--gray-4); margin-top: 3px; }
.tx-amount { font-size: 0.9375rem; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--text); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: var(--green-light); color: var(--green-dark); }
.badge-pending { background: #FEF9EC; color: var(--orange); }
.badge-failed  { background: #FEF0EE; color: var(--red); }
.badge-info    { background: #EBF5FB; color: var(--blue); }
.badge-gray    { background: var(--gray-1); color: var(--gray-4); }

/* ── NETWORK PILLS ── */
.network-grid {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.network-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
}
.network-pill.active { border-color: var(--green); background: var(--green-light); color: var(--green); }
.network-dot { width: 20px; height: 20px; border-radius: 50%; }
.mtn-dot    { background: #FFCC00; }
.airtel-dot { background: #E30613; }
.glo-dot    { background: #007B40; }
.mobile-dot { background: #6DBB38; }

/* ── AMOUNT PRESETS ── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amount-chip {
  padding: 11px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  background: var(--white);
}
.amount-chip.active { border-color: var(--green); background: var(--green-light); color: var(--green); }
.amount-chip:hover  { border-color: var(--green); }

/* ── DATA PLAN CARDS ── */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-card {
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
}
.plan-card.active { border-color: var(--green); background: var(--green-light); }
.plan-card:hover  { border-color: var(--green); }
.plan-size { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.plan-validity { font-size: 0.75rem; color: var(--gray-3); margin-top: 2px; }
.plan-price { font-size: 0.9375rem; font-weight: 700; color: var(--green); margin-top: 6px; }

/* ── SHOP CARDS ── */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.shop-logo {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: var(--gray-1);
}
.shop-logo-placeholder {
  width: 100%;
  height: 90px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.shop-info { padding: 12px; }
.shop-name { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.shop-meta { font-size: 0.75rem; color: var(--gray-3); }
.shop-rating { display: flex; align-items: center; gap: 3px; color: var(--orange); font-size: 0.75rem; font-weight: 600; }
.verified-badge { color: var(--blue); font-size: 0.7rem; }

/* ── PRODUCT CARDS ── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--gray-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 12px; }
.product-name  { font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.product-price { font-size: 1rem; font-weight: 800; color: var(--green); }
.product-shop  { font-size: 0.7rem; color: var(--gray-3); margin-top: 2px; }

/* ── CATEGORY CHIPS ── */
.cat-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  background: var(--white);
}
.cat-chip.active { background: var(--green); border-color: var(--green); color: white; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 50px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,200,120,0.12); }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: inherit; font-size: 0.9rem;
  background: transparent;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--gray-3); }

/* ── STEP INDICATOR ── */
.step-indicator { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.step-dot.done    { background: var(--green); color: white; }
.step-dot.active  { background: var(--green-light); color: var(--green); border: 2px solid var(--green); }
.step-dot.pending { background: var(--gray-1); color: var(--gray-3); }
.step-line { flex: 1; height: 2px; background: var(--gray-2); }
.step-line.done { background: var(--green); }
.step-info { flex: 1; text-align: center; }

/* ── TOAST NOTIFICATION ── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast-success { background: var(--green); color: white; }
.toast-error   { background: var(--red); color: white; }
.toast-info    { background: var(--dark); color: white; }
.toast-warning { background: var(--orange); color: white; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOADING SPINNER ── */
.spinner-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.empty-icon {
  font-size: 2.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gray-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.empty-desc  { font-size: 0.8125rem; color: var(--gray-4); }

/* ── MODAL / BOTTOM SHEET ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.sheet {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 0 20px 32px;
  width: 100%;
  max-width: 430px;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--gray-2);
  border-radius: 2px;
  margin: 14px auto 20px;
}

@keyframes slideUp  { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* ── LOGO ── */
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.25rem;
}
.logo-text { font-size: 1.25rem; font-weight: 800; }
.logo-sub  { font-size: 0.7rem; color: var(--gray-3); }

/* ── DIVIDER ── */
.divider {
  height: 1px; background: var(--border);
  margin: 16px 0;
}

/* ── FORM FEEDBACK ── */
.field-error { font-size: 0.75rem; color: var(--red); margin-top: 4px; }

/* ── COUNTDOWN TIMER ── */
.countdown { font-size: 0.875rem; color: var(--gray-4); }
.countdown span { color: var(--green); font-weight: 700; }
.resend-link { color: var(--green); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--green);
  flex-shrink: 0;
}
.avatar-sm  { width: 36px; height: 36px; font-size: 0.875rem; }
.avatar-md  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg  { width: 64px; height: 64px; font-size: 1.25rem; }

/* ── RATING STARS ── */
.stars { display: flex; gap: 2px; color: var(--orange); }
.star  { font-size: 1rem; }
.star.empty { opacity: 0.3; }

/* ── RESPONSIVE UTILITY ── */
@media (min-width: 431px) {
  body {
    background: #F0F2F5;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
  }
  .bottom-nav { max-width: 430px; }
  .track-panel { max-width: 430px; }
  .sheet { max-width: 430px; }
}
