/* ── ONEGOTOUGH — Design System ──────────────────────────────────────────── */

/* Custom Properties — Light Mode */
:root {
  --primary:       #064E2B;
  --primary-d:     #0A7040;
  --primary-l:     #10B981;
  --primary-pale:  #D1FAE5;
  --primary-bg:    #F0FDF4;

  --bg:     #FFFFFF;
  --bg2:    #F8FAFC;
  --bg3:    #F1F5F9;
  --card:   #FFFFFF;

  --text:   #0F172A;
  --text2:  #334155;
  --muted:  #64748B;
  --border: #E2E8F0;
  --border2:#CBD5E1;

  --success:    #16A34A;
  --success-bg: #DCFCE7;
  --success-bd: #86EFAC;
  --primary-gradient: linear-gradient(135deg, #064E2B 0%, #0A7040 100%);
  --danger:     #DC2626;
  --danger-bg:  #FEF2F2;
  --danger-bd:  #FECACA;
  --warning:    #D97706;
  --warning-bg: #FFFBEB;
  --warning-bd: #FDE68A;
  --info:       #2563EB;
  --info-bg:    #EFF6FF;
  --info-bd:    #BFDBFE;

  --card-r:   16px;
  --btn-r:    12px;
  --input-r:  12px;
  --nav-h:    68px;
  --header-h: 56px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.05);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg:         #0F172A;
  --bg2:        #1E293B;
  --bg3:        #334155;
  --card:       #1E293B;
  --text:       #F1F5F9;
  --text2:      #CBD5E1;
  --muted:      #94A3B8;
  --border:     #334155;
  --border2:    #475569;
  --primary-pale: #052e16;
  --primary-bg:   #022c22;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow:     0 4px 6px rgba(0,0,0,.3);
  --shadow-md:  0 10px 25px rgba(0,0,0,.4);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg2);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.app-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.page-content {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + 16px);
  min-height: 100vh;
}

.page-content--auth {
  padding-top: 0;
  padding-bottom: 0;
}

.page-pad { padding: 16px; }
.page-pad-x { padding: 0 16px; }

/* ── Top Header ────────────────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

.app-header__logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--text);
}
.app-header__logo span { color: var(--primary); }

.app-header__title {
  font-size: 16px; font-weight: 700; color: var(--text);
}

.app-header__actions {
  display: flex; align-items: center; gap: 8px;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--text2);
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg3); }
.icon-btn .badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
  border: 2px solid var(--bg);
}

/* ── Bottom Navigation ─────────────────────────────────────────────────────── */
.app-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  z-index: 100;
  padding: 0 4px;
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--muted);
  font-size: 10px; font-weight: 500;
  transition: color .15s;
  text-decoration: none;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { stroke: var(--primary); }

.nav-fab {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.nav-fab-btn {
  width: 52px; height: 52px;
  background: var(--primary-gradient, var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transition: transform .15s, box-shadow .15s;
}
.nav-fab-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.nav-fab-btn svg { stroke: #fff; width: 24px; height: 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  border-radius: var(--btn-r);
  font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent;
  transition: all .18s;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

.btn-primary {
  background: linear-gradient(135deg, #064E2B 0%, #0A7040 100%); color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #0A7040 0%, #10B981 100%); box-shadow: 0 6px 20px rgba(6,78,43,.45); }

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary-bg); }

.btn-ghost {
  background: var(--bg2); color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg3); }

.btn-danger {
  background: var(--danger); color: #fff; border-color: var(--danger);
}

/* ── Form Controls ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text2);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--input-r);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: var(--muted); }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group .input-icon {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); cursor: pointer;
}

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-p { padding: 16px; }
.card-body { padding: 16px; }

/* Wallet card */
.wallet-card {
  background: linear-gradient(135deg, #064E2B 0%, #0A7040 100%);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 60px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.wallet-card__label {
  font-size: 12px; font-weight: 500; opacity: .85;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.wallet-card__balance {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 20px;
}
.wallet-card__actions {
  display: flex; gap: 10px; position: relative; z-index: 1;
}
.wallet-card__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px; padding: 10px 8px;
  color: #fff; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.wallet-card__btn:hover { background: rgba(255,255,255,.28); }
.wallet-card__btn svg { width: 18px; height: 18px; }

/* ── Service Grid ──────────────────────────────────────────────────────────── */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.service-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; cursor: pointer; text-decoration: none;
}
.service-item__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: transform .15s, box-shadow .15s;
}
.service-item:hover .service-item__icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,.2);
}
.service-item__label {
  font-size: 10px; font-weight: 600; color: var(--text2);
  line-height: 1.3;
}

/* ── Transaction List ──────────────────────────────────────────────────────── */
.tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tx-icon--credit { background: var(--success-bg); color: var(--success); }
.tx-icon--debit  { background: #FEF2F2; color: var(--danger); }
.tx-body { flex: 1; min-width: 0; }
.tx-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tx-right { text-align: right; flex-shrink: 0; }
.tx-amount { font-size: 14px; font-weight: 700; }
.tx-amount--credit { color: var(--success); }
.tx-amount--debit  { color: var(--danger); }
.tx-status { font-size: 10px; margin-top: 2px; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info);    }
.badge-muted   { background: var(--bg3);        color: var(--muted);   }

/* ── Section Headers ───────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title { font-size: 15px; font-weight: 700; color: var(--text); }
.section-link { font-size: 12px; font-weight: 600; color: var(--primary); }

/* ── List Items ────────────────────────────────────────────────────────────── */
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
}
.list-item:first-child { border-radius: var(--card-r) var(--card-r) 0 0; }
.list-item:last-child  { border-bottom: none; border-radius: 0 0 var(--card-r) var(--card-r); }
.list-item:only-child  { border-radius: var(--card-r); }
.list-item:hover { background: var(--bg2); }
.list-item__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-size: 14px; font-weight: 600; color: var(--text); }
.list-item__sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-item__arrow { color: var(--border2); flex-shrink: 0; }

/* ── Category Cards (Service Category page) ────────────────────────────────── */
.cat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--card-r);
  border: 1.5px solid var(--border);
  padding: 16px; margin-bottom: 10px;
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.cat-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-card__body { flex: 1; }
.cat-card__title { font-size: 15px; font-weight: 700; color: var(--text); }
.cat-card__sub   { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cat-card__arrow { color: var(--border2); }

/* ── Step Progress ─────────────────────────────────────────────────────────── */
.step-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 8px;
}
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0;
  transition: all .25s;
}
.step-dot.done  { background: var(--success); border-color: var(--success); color: #fff; }
.step-dot.active{ background: var(--primary); border-color: var(--primary); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); transition: background .25s; }
.step-line.done { background: var(--success); }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-success { background: var(--success-bg); border: 1px solid var(--success-bd); color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border: 1px solid var(--danger-bd);  color: var(--danger);  }
.alert-warning { background: var(--warning-bg); border: 1px solid var(--warning-bd); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border: 1px solid var(--info-bd);    color: var(--info);    }

/* ── PIN Input ─────────────────────────────────────────────────────────────── */
.pin-row { display: flex; justify-content: center; gap: 12px; }
.pin-box {
  width: 54px; height: 60px;
  border: 2px solid var(--border); border-radius: 12px;
  text-align: center; font-size: 24px; font-weight: 800;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pin-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* ── Avatar ────────────────────────────────────────────────────────────────── */
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--primary);
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }

/* ── Splash / Auth Layout ──────────────────────────────────────────────────── */
.splash-wrap {
  min-height: 100vh;
  background: #0A1628;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 24px 40px;
  position: relative; overflow: hidden;
}
.splash-circles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.splash-circle {
  position: absolute; border-radius: 50%;
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.12);
}

.auth-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.auth-header {
  padding: 20px 20px 0;
  display: flex; align-items: center; gap: 12px;
}
.auth-body { padding: 24px 20px; flex: 1; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-sub   { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ── Search Bar ────────────────────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1; border: none; background: transparent;
  color: var(--text); outline: none; font-size: 14px;
}
.search-bar svg { color: var(--muted); flex-shrink: 0; }

/* ── Spinner ───────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; margin: 16px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Social Buttons ────────────────────────────────────────────────────────── */
.social-btns { display: flex; gap: 10px; }
.social-btn {
  flex: 1; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); cursor: pointer;
  transition: background .15s;
}
.social-btn:hover { background: var(--bg2); }
.social-btn img { width: 20px; height: 20px; }

/* ── Notification Item ─────────────────────────────────────────────────────── */
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card); cursor: pointer;
}
.notif-item.unread { background: var(--primary-bg); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.notif-dot.read { background: var(--border); }

/* ── Empty State ───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--muted);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 12px; opacity: .4; }
.empty-state h3 { font-size: 15px; color: var(--text2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ── Skeleton loading ──────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex; background: var(--bg2); border-radius: 10px; padding: 3px;
  margin-bottom: 16px;
}
.tab {
  flex: 1; padding: 8px; border-radius: 8px;
  text-align: center; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.tab.active { background: var(--bg); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── Bottom Sheet ──────────────────────────────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; opacity: 0; visibility: hidden; transition: all .25s;
}
.sheet-overlay.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 20px; z-index: 201;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 85vh; overflow-y: auto;
}
.sheet.open { transform: translateX(-50%) translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; background: var(--border2); border-radius: 2px;
  margin: 0 auto 16px;
}

/* ── Vendor-specific ───────────────────────────────────────────────────────── */
.vendor-header {
  background: linear-gradient(135deg, #0A1628 0%, #1a2f4a 100%);
  padding: 20px 16px 24px;
  color: #fff;
}
.vendor-stat {
  background: rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px;
  text-align: center;
}
.vendor-stat__val { font-size: 22px; font-weight: 800; }
.vendor-stat__lbl { font-size: 11px; opacity: .7; margin-top: 2px; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }
.fs-16  { font-size: 16px; }
.fs-18  { font-size: 18px; }
.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; }
.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; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.rounded-full { border-radius: 999px; }

/* ── Dark Mode Toggle ──────────────────────────────────────────────────────── */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--border2); position: relative; cursor: pointer;
  transition: background .2s; border: none; padding: 0;
}
.theme-toggle.on { background: var(--primary); }
.theme-toggle::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.theme-toggle.on::after { transform: translateX(20px); }

/* ── PWA Install Banner ────────────────────────────────────────────────────── */
.install-banner {
  background: var(--primary-bg);
  border: 1px solid var(--primary-pale);
  border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px 16px;
}

/* ── Page-specific: Success ────────────────────────────────────────────────── */
.success-screen { text-align: center; padding: 32px 20px; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* Media: desktop fallback */
@media (min-width: 481px) {
  .app-wrap { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
