/* ═══════════════════════════════════════
   BARKA SAP — Design System
   Pact Afrique SARL © 2025
═══════════════════════════════════════ */

:root {
  --navy:    #1A2F5A;
  --navy2:   #243A70;
  --red:     #C0392B;
  --red2:    #E74C3C;
  --orange:  #E67E22;
  --orange2: #F39C12;
  --green:   #1B7A3E;
  --blue:    #2980B9;
  --white:   #FFFFFF;
  --bg:      #F4F6FA;
  --card:    #FFFFFF;
  --text:    #1A1A2E;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --shadow:  0 2px 16px rgba(0,0,0,0.08);
  --radius:  16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-h:   68px;
  --header-h: 56px;
  --font:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
}
input, textarea, select {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

/* ── App shell ── */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  overflow: hidden;
}
.screen.active { display: flex; }
.screen.center-screen {
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  overflow-y: auto;
}

/* ── SPLASH ── */
#s-splash {
  background: var(--navy);
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.splash-logo-wrap { margin-bottom: 8px; }
.splash-logo {
  width: 88px; height: 88px;
  background: #fff;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: var(--navy);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: splashPop 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes splashPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.splash-title { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.splash-sub   { color: rgba(255,255,255,0.65); font-size: 15px; }
.splash-tagline { color: rgba(255,255,255,0.35); font-size: 12px; margin-top: 4px; }
.splash-loader {
  width: 56px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-top: 48px;
  overflow: hidden;
}
.splash-loader-bar {
  height: 100%; width: 0;
  background: var(--red2);
  border-radius: 4px;
  animation: loadBar 1.8s ease forwards 0.4s;
}
@keyframes loadBar { to { width: 100%; } }

/* ── AUTH ── */
.auth-top {
  background: var(--navy);
  padding: 52px 24px 60px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.auth-logo {
  width: 68px; height: 68px;
  background: #fff; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--navy);
}
.auth-brand     { color: #fff; font-size: 22px; font-weight: 800; }
.auth-brand-sub { color: rgba(255,255,255,0.55); font-size: 13px; }
.auth-card {
  background: #fff;
  border-radius: 28px 28px 0 0;
  flex: 1;
  padding: 28px 24px 40px;
  margin-top: -24px;
  overflow-y: auto;
}
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-hint  { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ── Tabs ── */
.tab-row {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1; padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  transition: all .2s;
  text-align: center;
}
.tab-btn.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
}

/* ── Phone field ── */
.phone-field {
  display: flex; align-items: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: border-color .2s, background .2s;
}
.phone-field:focus-within {
  border-color: var(--red);
  background: #fff;
}
.phone-prefix {
  font-size: 15px; font-weight: 600;
  padding: 16px 12px 16px 0;
  border-right: 1px solid var(--border);
  margin-right: 12px;
  flex-shrink: 0;
}
.phone-field input {
  flex: 1; border: none; background: none;
  padding: 16px 0; outline: none;
  font-size: 15px;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%; padding: 15px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s, opacity .12s;
  text-align: center;
}
.btn-primary:active { transform: scale(.97); opacity: .9; }
.btn-primary:disabled { opacity: .38; cursor: not-allowed; }
.btn-arrow { font-size: 18px; }
.btn-outline {
  flex: 1; padding: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all .15s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); background: #FFF5F4; }
.btn-ghost {
  width: 100%; padding: 13px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* ── Secure note ── */
.secure-note {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 14px;
  color: var(--muted); font-size: 13px;
}
.lock-icon { font-size: 14px; }

/* ── OTP ── */
.otp-inputs {
  display: flex; gap: 12px; justify-content: center;
  margin: 24px 0;
}
.otp-input {
  width: 58px; height: 62px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 26px; font-weight: 700;
  background: var(--bg);
  outline: none;
  transition: border-color .2s, background .2s;
}
.otp-input:focus { border-color: var(--red); background: #fff; }
.resend-row { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.resend-link {
  display: inline; width: auto;
  color: var(--red); font-weight: 600; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}

/* ── HOME ── */
#s-home { background: var(--bg); }
.home-header {
  background: var(--navy);
  padding: 20px 20px 64px;
  flex-shrink: 0;
}
.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.home-greeting { color: rgba(255,255,255,.65); font-size: 13px; }
.home-phone    { color: #fff; font-size: 19px; font-weight: 700; }
.notif-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 18px;
  transition: background .15s;
}
.notif-btn:hover { background: rgba(255,255,255,.25); }
.notif-bell { font-size: 18px; }
.notif-dot {
  width: 9px; height: 9px;
  background: var(--red2);
  border: 2px solid var(--navy);
  border-radius: 50%;
  position: absolute; top: 7px; right: 7px;
}
.city-tabs {
  display: flex;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.city-tab {
  flex: 1; padding: 9px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: all .2s;
  text-align: center;
}
.city-tab.active { background: rgba(255,255,255,.2); color: #fff; }
.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 96px;
  margin-top: -40px;
}

/* ── Cards ── */
.section-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.section-title      { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.section-title-bare { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.section-label {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 16px 0 10px;
}

/* ── Amount grid ── */
.amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amount-btn {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 6px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  transition: all .15s;
}
.amount-btn:hover   { background: #FFF0EE; border-color: rgba(192,57,43,.3); }
.amount-btn.selected { background: #FFF0EE; border-color: var(--red); }
.amt-val  { font-size: 16px; font-weight: 800; color: var(--red); }
.amt-unit { font-size: 11px; color: var(--muted); }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all .15s;
}
.service-card:hover { border-color: var(--red); background: #FFF8F8; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 10px;
}
.icon-orange { background: #FFF0E4; }
.icon-blue   { background: #E8F0FF; }
.service-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.service-desc { font-size: 12px; color: var(--muted); }

/* ── Gift banner ── */
.gift-banner {
  background: linear-gradient(135deg, var(--orange), var(--red2));
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; cursor: pointer;
  transition: opacity .15s;
  margin-bottom: 16px;
}
.gift-banner:hover { opacity: .92; }
.gift-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.gift-title { font-size: 15px; font-weight: 700; }
.gift-sub   { font-size: 12px; opacity: .85; margin-top: 2px; }
.gift-arr   { margin-left: auto; font-size: 22px; opacity: .8; }

/* ── Promo ── */
.promo-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.promo-badge {
  display: inline-block;
  background: var(--red2);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px;
}
.promo-text { color: #fff; font-size: 16px; font-weight: 700; }
.promo-sub  { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 3px; }

/* ── Bottom nav ── */
.bottom-nav {
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 0 10px;
  z-index: 100;
}
.with-nav { padding-bottom: var(--nav-h); }
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 4px 0;
}
.nav-ico { font-size: 22px; color: var(--muted); transition: color .15s; }
.nav-lbl { font-size: 10px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-item.active .nav-ico,
.nav-item.active .nav-lbl { color: var(--red); }

/* ── Flow screens ── */
.flow-screen { background: var(--bg); }
.flow-header {
  background: #fff;
  height: var(--header-h);
  padding: 0 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}
.back-btn {
  width: 36px; height: 36px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.back-btn:hover { background: var(--border); }
.flow-title { font-size: 17px; font-weight: 700; }
.flow-body  {
  flex: 1; overflow-y: auto;
  padding: 20px 16px;
}
.flow-body.pb-nav { padding-bottom: 120px; }
.flow-hint { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.flow-footer {
  background: #fff;
  padding: 12px 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Stepper ── */
.stepper-wrap { background: #fff; padding: 14px 24px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.stepper { display: flex; align-items: center; }
.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  color: var(--muted);
  background: #fff;
  transition: all .25s;
}
.step-dot.done   { background: var(--red); border-color: var(--red); color: #fff; }
.step-dot.active { background: var(--red); border-color: var(--red); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); transition: background .25s; }
.step-line.done { background: var(--red); }

/* ── List items ── */
.list-group { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, background .15s;
}
.list-item:hover { border-color: var(--red); background: #FFF8F8; }
.li-icon {
  width: 44px; height: 44px;
  background: #FFF0EE;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.li-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.li-body strong { font-size: 15px; font-weight: 700; }
.li-body span   { font-size: 13px; color: var(--muted); }
.li-arr { color: var(--muted); font-size: 18px; }

/* ── Station extras ── */
.station-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.station-hours { font-size: 12px; color: var(--muted); }
.badge-delivery {
  background: #E8F5FF; color: #1a6fa8;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
}

/* ── Search bar ── */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  margin-bottom: 14px;
  border: 2px solid transparent;
  transition: all .2s;
}
.search-bar:focus-within { border-color: var(--red); background: #fff; }
.search-ico { color: var(--muted); font-size: 16px; }
.search-bar input {
  flex: 1; border: none; background: none;
  padding: 13px 0; outline: none; font-size: 14px;
}

/* ── Mode cards ── */
.mode-options { display: flex; flex-direction: column; gap: 12px; }
.mode-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: all .15s;
}
.mode-card.selected { border-color: var(--red); background: #FFF8F8; }
.mode-ico {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.green-ico { background: #E8F7EF; }
.blue-ico  { background: #E8F0FF; }
.red-ico   { background: #FFF0EE; }
.gray-ico  { background: var(--bg); border: 1px solid var(--border); }
.mode-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mode-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Footer summary ── */
.footer-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
.footer-summary span:first-child { color: var(--muted); }
.footer-amt        { font-size: 15px; font-weight: 800; color: var(--red); }
.footer-amt-muted  { font-size: 15px; font-weight: 700; color: var(--muted); }
.footer-station-line {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 10px;
}

/* ── Payment ── */
.pay-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}
.pay-summary-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.pay-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pay-row:last-child { border-bottom: none; }
.pay-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.pay-info { display: flex; flex-direction: column; gap: 2px; }
.pay-lbl  { font-size: 12px; color: var(--muted); }
.pay-val  { font-size: 15px; font-weight: 700; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s;
}
.pay-method.selected { border-color: var(--red); }
.pm-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
.om-bg { background: #FF7900; }
.mm-bg { background: #1B5EAB; }
.cm-bg { background: var(--green); }
.pm-info { display: flex; flex-direction: column; gap: 2px; }
.pm-name { font-size: 15px; font-weight: 700; }
.pm-desc { font-size: 12px; color: var(--muted); }
.pb-nav { padding-bottom: 110px; }

/* ── SUCCESS ── */
.success-anim {
  position: relative;
  width: 108px; height: 108px;
  margin-bottom: 22px;
}
.success-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B7A3E, #27AE60);
  animation: ringPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.success-check {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff;
  animation: checkIn .4s ease .3s both;
}
@keyframes ringPop  { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes checkIn  { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.success-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.success-sub   { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.ticket-preview {
  background: #fff;
  border-radius: var(--radius);
  width: 100%; padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.tp-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.tp-lbl    { font-size: 12px; color: var(--muted); display: block; margin-bottom: 2px; }
.tp-amt    { font-size: 24px; font-weight: 800; color: var(--red); }
.tp-valid  { font-size: 13px; font-weight: 700; color: var(--green); }
.tp-qr {
  width: 110px; height: 110px;
  margin: 0 auto 14px;
  background: var(--text);
  border-radius: 10px;
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; padding: 8px;
}
.qp { background: #fff; border-radius: 1px; }
.qp.b { background: transparent; }
.tp-station {
  text-align: center; font-size: 12px; color: var(--muted);
  margin-bottom: 14px;
}
.tp-actions { display: flex; gap: 10px; }
.success-btns {
  display: flex; gap: 12px; width: 100%;
}
.success-btns .btn-ghost { flex: 1; }
.success-btns .btn-primary { flex: 1.5; }

/* ── Tickets page ── */
.page-header {
  background: #fff;
  height: var(--header-h);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.page-title  { font-size: 18px; font-weight: 700; }
.header-filter {
  width: 36px; height: 36px;
  background: var(--bg); border-radius: 10px;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.page-scroll { flex: 1; overflow-y: auto; padding: 16px; }

/* ── Ticket card ── */
.ticket-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.ticket-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--red);
}
.ticket-card.used::before { background: var(--muted); }
.tc-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.tc-amount { font-size: 22px; font-weight: 800; color: var(--red); }
.tc-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.tc-badge.valid { background: #E8F7EF; color: var(--green); }
.tc-badge.used  { background: var(--bg); color: var(--muted); }
.tc-info { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tc-sep  { border: none; border-top: 1px dashed var(--border); margin: 12px 0; }
.tc-bottom { display: flex; align-items: center; gap: 10px; }
.tc-qr {
  width: 52px; height: 52px;
  background: var(--text);
  border-radius: 6px;
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 1.5px; padding: 5px; flex-shrink: 0;
}
.tc-qr .qp    { background: #fff; }
.tc-qr .qp.b  { background: transparent; }
.tc-meta { flex: 1; font-size: 12px; color: var(--muted); }
.tc-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px;
  background: var(--bg); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .15s;
}
.icon-btn:hover { background: #FFF0EE; color: var(--red); }

/* ── History ── */
.hist-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.hist-ico {
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.hist-body { flex: 1; }
.hist-amount { font-size: 16px; font-weight: 800; color: var(--red); }
.hist-station { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hist-mode    { font-size: 12px; color: var(--muted); }
.hist-meta { text-align: right; flex-shrink: 0; }
.hist-date   { font-size: 12px; color: var(--muted); }
.hist-status { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 3px; }

/* ── Profile ── */
.profile-hero {
  background: var(--navy);
  padding: 32px 20px 56px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 72px; height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 800;
  border: 3px solid rgba(255,255,255,.25);
}
.profile-name  { color: #fff; font-size: 18px; font-weight: 700; }
.profile-phone { color: rgba(255,255,255,.6); font-size: 14px; }

/* ── Loyalty card ── */
.loyalty-card {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius);
  padding: 20px;
  margin: -28px 0 16px;
  color: #fff;
  position: relative; overflow: hidden;
}
.loyalty-card::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.lc-label  { font-size: 12px; opacity: .7; margin-bottom: 4px; }
.lc-points { font-size: 34px; font-weight: 800; }
.lc-sub    { font-size: 13px; opacity: .65; margin-top: 2px; }
.lc-nfc {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.15);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.lc-progress-wrap { margin-top: 14px; }
.lc-progress-bar {
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 6px; overflow: hidden;
}
.lc-progress-fill {
  height: 100%;
  background: rgba(255,255,255,.7);
  border-radius: 6px;
  transition: width .4s ease;
}
.lc-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; opacity: .55; margin-top: 5px;
}

/* ── Menu list ── */
.menu-list {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  font-size: 14px; font-weight: 500;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg); }
.mi-ico {
  width: 36px; height: 36px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.mi-arr { margin-left: auto; color: var(--muted); font-size: 16px; }
.danger-item span:not(.mi-ico):not(.mi-arr) { color: var(--red); }
.app-version { text-align: center; font-size: 12px; color: var(--muted); padding: 12px 0 20px; }

/* ── Gift textarea ── */
.gift-textarea {
  width: 100%; min-height: 88px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px; resize: none; outline: none;
  transition: all .2s;
  display: block;
  margin-top: 10px;
}
.gift-textarea:focus { border-color: var(--red); background: #fff; }

/* ── Help ── */
.help-contact-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}
.hc-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.hc-row:last-child { border-bottom: none; }
.hc-ico  { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.hc-lbl  { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.hc-val  { font-size: 14px; font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.faq-q:hover { background: var(--bg); }
.faq-ico { transition: transform .2s; }
.faq-item.open .faq-ico { transform: rotate(180deg); }
.faq-a {
  padding: 0 16px 14px;
  font-size: 13px; color: var(--muted);
  line-height: 1.6; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── Overlay ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex; align-items: flex-end;
  transition: opacity .25s;
}
.overlay.hidden { display: none; }
.overlay-sheet {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%; max-height: 70vh;
  overflow-y: auto; padding: 0 0 32px;
}
.overlay-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff;
}
.overlay-title { font-size: 16px; font-weight: 700; }
.overlay-close {
  width: 32px; height: 32px;
  background: var(--bg); border-radius: 50%;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.notif-entry {
  display: flex; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.notif-dot-entry {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.notif-entry-text { font-size: 14px; }
.notif-entry-time { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(26,26,46,.92);
  color: #fff;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 999;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Utilities ── */
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.text-center { text-align: center; }

/* ── Responsive ── */
@media (max-width: 430px) {
  #app { max-width: 100%; }
  .bottom-nav { left: 0; right: 0; }
}
@media (min-width: 431px) {
  body { background: #0d1b3e; }
  #app { border-radius: 32px; margin: 20px auto; min-height: calc(100dvh - 40px); box-shadow: 0 32px 80px rgba(0,0,0,.4); overflow: hidden; }
  .overlay-sheet { max-width: 430px; margin: 0 auto; }
}
