/* ============================================================
   SM LIKE BD — stylesheet
   Theme: purple accent · white surface · black ink · glass · M3
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --red: #7c3aed;
  --red-600: #6d28d9;
  --red-700: #5b21b6;
  --red-soft: #f5f3ff;
  --red-ghost: rgba(124, 58, 237, 0.08);
  --brand: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 46%, #6d28d9 100%);
  --brand-deep: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  --ink: #0b0c10;
  --ink-2: #26272f;
  --muted: #6b7080;
  --muted-2: #9a9eab;
  --line: #e8e2f4;
  --line-2: #f1ecfa;
  --bg: #f7f4ff;
  --surface: #ffffff;
  --card: var(--surface);
  --ok: #0b7a43;
  --ok-soft: #e9f8f0;
  --warn: #8a5a12;
  --warn-soft: #fff7e6;
  --info: #2563eb;
  --info-soft: #eef3ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-1: 0 1px 2px rgba(12, 14, 24, 0.04), 0 10px 30px -18px rgba(12, 14, 24, 0.22);
  --shadow-2: 0 24px 60px -24px rgba(124, 58, 237, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --anim: 0.3s;
  --side: 272px;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pkg-btn: linear-gradient(105deg, var(--red-600) 0%, var(--red) 55%, var(--red-700) 100%);
  --pkg-btn-hover: linear-gradient(105deg, var(--red-700), var(--red-600));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf9ff 0%, var(--bg) 45%, #f4efff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(124, 58, 237, 0.13), transparent 62%),
    radial-gradient(700px 460px at -12% 104%, rgba(109, 40, 217, 0.09), transparent 60%),
    radial-gradient(560px 420px at 62% 112%, rgba(139, 92, 246, 0.07), transparent 62%);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.18; font-weight: 800; }
h2 { font-size: 1.18rem; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.02rem; letter-spacing: -0.015em; font-weight: 800; }
h4 { font-size: 0.95rem; font-weight: 700; }
::selection { background: rgba(124, 58, 237, 0.18); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.strong { font-weight: 800; }
.link { color: var(--red); font-weight: 700; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--red-700); }
button.link {
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--red);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
button.link:hover { color: var(--red-700); background: var(--red-ghost); text-decoration: underline; text-underline-offset: 3px; }
button.link:active { transform: scale(0.97); }
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- boot ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
  /* fast loads finish before the overlay fades in, so there is no flash */
  opacity: 0;
  animation: bootIn 0.22s ease 0.25s forwards;
}
@keyframes bootIn { to { opacity: 1; } }
.boot-logo { display: inline-flex; filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.3)); color: var(--red); }
.boot-logo svg { width: 44px; height: 44px; }
.boot-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(124, 58, 237, 0.16);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--red);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn-primary { background: var(--brand); color: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow-2); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); border-color: var(--red); color: var(--ink-2); box-shadow: var(--shadow-1); }
.btn-ghost:hover { border-color: var(--red-700); background: var(--surface); }
.btn-light { background: var(--surface); color: var(--red-700); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: var(--surface); }
.btn-danger { background: var(--danger); color: var(--surface); box-shadow: 0 16px 34px -20px rgba(220, 38, 38, 0.9); }
.btn-danger:hover { background: var(--danger); }
.btn-soft { background: var(--red-ghost); color: var(--red-700); }
.btn-soft:hover { background: rgba(124, 58, 237, 0.14); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; border-radius: 16px; font-size: 0.98rem; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 0.78rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: var(--surface); animation: spin 0.7s linear infinite;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 2px solid var(--red); border-radius: 12px;
  background: var(--surface); color: var(--ink-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.icon-btn:hover { background: var(--red-soft); color: var(--red-700); border-color: var(--red-700); }
.icon-btn:active { transform: scale(0.94); }
:where(.btn, .icon-btn, .filter-chip, .seg button, .nav-item, .copy-chip, .channel, .link, .pay-method, .quick button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.icon-btn.plain { border-color: var(--red); background: transparent; }

/* ---------- form controls ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 800; color: var(--ink-2); letter-spacing: -0.01em; }
.field small { display: block; margin-top: 7px; font-size: 0.75rem; color: var(--muted); }
.input, .field input, .field select, .field textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--muted-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-prefix {
  position: absolute; left: 15px; font-weight: 800; color: var(--muted); pointer-events: none;
}
.input-wrap input { padding-left: 34px; }
.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='%236b7080' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.switch { position: relative; display: inline-flex; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: background 0.22s var(--ease);
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s var(--ease);
}
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18); }

/* ---------- badges / avatars ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-red { background: var(--red-soft); color: var(--red-700); }

.avatar {
  --av-h: 6;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, hsl(var(--av-h) 90% 94%), hsl(var(--av-h) 78% 84%));
  color: hsl(var(--av-h) 62% 30%);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 58px; height: 58px; font-size: 1.05rem; }
.avatar-xl { width: 86px; height: 86px; font-size: 1.5rem; border: 3px solid var(--surface); box-shadow: 0 12px 30px -16px rgba(12, 14, 24, 0.5); }
.avatar-sm { width: 32px; height: 32px; font-size: 0.68rem; }

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; min-height: 100dvh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--side); }
.side-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 11, 18, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}

/* sidebar */
.sidebar {
  position: fixed; z-index: 50; inset: 0 auto 0 0;
  width: var(--side);
  display: flex; flex-direction: column;
  padding: 20px 16px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--surface), var(--red-soft));
  border: 1px solid rgba(124, 58, 237, 0.16);
  font-size: 1.35rem;
  box-shadow: 0 10px 24px -16px rgba(124, 58, 237, 0.6);
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-close { display: none; margin-left: auto; }

.side-label { padding: 14px 12px 8px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.side-nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  min-height: 46px; padding: 0 12px;
  border: 2px solid var(--red); border-radius: 13px;
  background: transparent; color: var(--ink-2);
  font-size: 0.88rem; font-weight: 700; text-align: left;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.nav-item:hover { background: var(--red-soft); }
.nav-item.active { background: linear-gradient(135deg, var(--red-soft), var(--surface)); color: var(--red-700); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1); }
.nav-item.active .nav-ico { background: var(--red); color: var(--surface); box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.9); }
.nav-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--red-soft); color: var(--muted);
  transition: background 0.18s, color 0.18s;
}
.nav-item:hover .nav-ico { color: var(--red-700); background: var(--red-soft); }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--surface); font-size: 0.66rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; padding-top: 16px; }
.side-card {
  padding: 14px; margin-bottom: 10px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -30px rgba(91, 33, 182, 0.45);
}
.side-card span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-700); font-weight: 800; }
.side-card b { display: block; margin: 4px 0 2px; font-size: 1rem; }
.side-card p { font-size: 0.75rem; color: var(--muted); }
.side-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.76rem; font-weight: 800; color: var(--red); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: 76px; padding: 12px clamp(16px, 3vw, 30px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.top-title { min-width: 0; margin-right: auto; }
.top-title h1 { font-size: 1.12rem; letter-spacing: -0.02em; }
.top-title p { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.balance-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 13px; border-radius: 12px;
  background: var(--red-soft); color: var(--red-700);
  font-size: 0.84rem; font-weight: 800; white-space: nowrap;
}
.top-user { display: flex; align-items: center; gap: 8px; }

/* page */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--muted); font-size: 0.88rem; margin-top: 6px; max-width: 60ch; }
.page-head h1 { margin-top: 6px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -2px; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 22px);
  min-width: 0;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { border-color: rgba(124, 58, 237, 0.28); box-shadow: 0 22px 50px -28px rgba(124, 58, 237, 0.34), inset 0 1px 0 #fff; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head p { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.card-head .link { margin-top: 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head p { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.stack { display: flex; flex-direction: column; }

/* first card of every page — purple highlight */
.fund-grid > .card:first-child,
.wallet-grid > .card:first-child,
.profile-grid > .card:first-child,
#pkgGrid > .pkg:first-child,
.admin-shell .stats > .stat:first-child,
.admin-card-grid > .admin-card:first-child,
.settings-grid > .form-section:first-child {
  background: var(--surface);
  box-shadow: 0 18px 40px -24px rgba(124, 58, 237, 0.5);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(125deg, #ffffff 0%, #fcfaff 48%, #f3ebff 100%);
  box-shadow: 0 28px 70px -40px rgba(124, 58, 237, 0.45), inset 0 1px 0 #fff;
}
.hero::before { content: ""; position: absolute; pointer-events: none; width: 320px; height: 320px; right: -90px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.16), transparent 68%); }
.hero > * { position: relative; z-index: 1; }
.hero-user { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero-user .avatar { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.hero-eyebrow { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-700); }
.hero-balance { display: block; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 4px 0 2px; }
.hero-meta { font-size: 0.8rem; color: var(--muted); }
.hero-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-chip {
  min-width: 120px; padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
}
.hero-chip span { display: block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-700); }
.hero-chip b { display: block; margin-top: 3px; font-size: 0.92rem; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-glow { display: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.stat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  min-width: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.stat:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, 0.16); box-shadow: 0 18px 40px -28px rgba(12, 14, 24, 0.4); }
.stat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none; border-radius: 13px;
}
.stat-ico.red { background: var(--red-soft); color: var(--red); }
.stat-ico.blue { background: var(--info-soft); color: var(--info); }
.stat-ico.green { background: var(--ok-soft); color: var(--ok); }
.stat-ico.amber { background: var(--warn-soft); color: var(--warn); }
.stat > div { min-width: 0; }
.stat > div span { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.stat > div b { display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat > div small { display: block; font-size: 0.7rem; color: var(--muted-2); }

/* ---------- segmented tabs / filters ---------- */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--red-soft); border-radius: 12px;
  max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: 2px solid var(--red); background: transparent; color: var(--muted);
  padding: 9px 14px; border-radius: 9px;
  font-size: 0.76rem; font-weight: 800; white-space: nowrap;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(12, 14, 24, 0.24); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
  border: 2px solid var(--red); background: var(--surface); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.filter-chip:hover { border-color: var(--red-700); color: var(--red-700); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: var(--surface); }

/* ---------- activity / transactions ---------- */
.act {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-2);
  min-width: 0;
}
.act:last-child { border-bottom: 0; }
.act-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: var(--red-soft); color: var(--muted);
}
.act-ico.red { background: var(--red-soft); color: var(--red); }
.act-ico.green { background: var(--ok-soft); color: var(--ok); }
.act-ico.blue { background: var(--info-soft); color: var(--info); }
.act-ico.amber { background: var(--warn-soft); color: var(--warn); }
.act-main { min-width: 0; flex: 1; }
.act-main b { display: block; font-size: 0.86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-main span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-amt { font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.act-side { display: flex; align-items: center; gap: 8px; flex: none; }
.act-tag { font-size: 0.68rem; font-weight: 800; color: var(--muted); }

/* ---------- packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 25px; }
.pkg-grid-sm { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); }
.pkg {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  width: 100%;
  overflow: hidden;
  --pkg-icon: linear-gradient(145deg, var(--red) 0%, var(--red-600) 52%, var(--red-700) 100%);
  --pkg-btn: linear-gradient(105deg, var(--red-600) 0%, var(--red) 55%, var(--red-700) 100%);
  --pkg-btn-hover: linear-gradient(105deg, var(--red-700), var(--red-600));
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 50px -30px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pkg:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, 0.3); box-shadow: 0 30px 70px -34px rgba(75, 35, 130, 0.32); }
.pkg > * { position: relative; z-index: 1; }
.pkg-header { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.pkg-meta { flex: 1; min-width: 0; }
.icon-wrap {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; margin: 0;
  border-radius: 16px;
  color: var(--surface);
  background: linear-gradient(145deg, var(--red) 0%, var(--red-600) 52%, var(--red-700) 100%);
  box-shadow: 0 12px 25px -10px rgba(112, 37, 220, 0.35);
}
.icon-wrap svg { width: 30px; height: 30px; }
.pkg .icon-wrap { background: var(--pkg-icon); }
.daily-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; margin-bottom: 8px;
  border: 1px solid var(--red); border-radius: 999px;
  color: var(--red-700); background: transparent;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em;
}
.daily-badge::before { display: none; }
.pkg-title { margin: 0; font-size: clamp(1.02rem, 0.8rem + 0.7vw, 1.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.22; text-align: left; }
.highlight { color: var(--red); }
.pkg-tag { margin: 6px 0 16px; font-size: 0.76rem; line-height: 1.45; color: var(--muted); text-align: left; }
.price-box {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  margin: 0 0 14px;
}
.pkg-price-value { color: var(--red-700); font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.35rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.pkg-price-note { padding: 6px 12px; border-radius: 999px; color: var(--red-700); background: var(--red-soft); font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.features { display: grid; gap: 5px; padding: 10px 0 0; margin: 0 0 12px; border-top: 1px solid var(--line); list-style: none; }
.feature {
  display: flex; align-items: center; gap: 8px;
  min-height: 28px; padding: 1px 0;
  color: var(--ink-2); font-size: 0.74rem; font-weight: 600;
}
.feature-icon {
  display: grid; place-items: center; flex: 0 0 23px;
  width: 23px; height: 23px; border-radius: 50%;
  color: var(--red); background: var(--red-soft);
  box-shadow: 0 3px 8px -5px rgba(124, 58, 237, 0.35);
}
.feature-icon svg { width: 13px; height: 13px; stroke-width: 2.2; }
.select-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 10px 16px;
  border: 2px solid var(--red); border-radius: 999px;
  color: var(--surface); background: var(--pkg-btn);
  box-shadow: 0 10px 20px -10px rgba(105, 32, 211, 0.5);
  font: inherit; font-size: 0.88rem; font-weight: 800; letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.select-button:hover { transform: translateY(-2px); background: var(--pkg-btn-hover); box-shadow: 0 14px 26px -10px rgba(105, 32, 211, 0.55); }
.select-button:active { transform: translateY(0); }
.select-button:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 3px; }
.button-cart { display: grid; place-items: center; flex: none; width: 26px; height: 26px; color: var(--surface); }
.button-cart svg { width: 20px; height: 20px; }
.pkg-compact { padding: 18px 14px 14px; border-radius: 20px; }
.pkg-compact .pkg-header { gap: 10px; }
.pkg-compact .icon-wrap { width: 44px; height: 44px; border-radius: 14px; }
.pkg-compact .icon-wrap svg { width: 26px; height: 26px; }
.pkg-compact .daily-badge { margin-bottom: 6px; padding: 4px 11px; }
.pkg-compact .pkg-title { font-size: 0.92rem; }
.pkg-compact .pkg-tag { margin-bottom: 10px; font-size: 0.7rem; }
.pkg-compact .price-box { margin-bottom: 10px; }
.pkg-compact .pkg-price-value { font-size: 1.35rem; }
.pkg-compact .pkg-price-note { padding: 4px 9px; font-size: 0.68rem; }
.pkg-compact .features { padding-top: 8px; margin-bottom: 10px; }
.pkg-compact .feature { min-height: 24px; font-size: 0.7rem; }
.pkg-compact .feature-icon { flex-basis: 20px; width: 20px; height: 20px; }
.pkg-compact .feature-icon svg { width: 12px; height: 12px; }
.pkg-compact .select-button { min-height: 44px; font-size: 0.82rem; }
.pkg-off { opacity: 0.6; }
#pkgGrid > .pkg:first-child::after { content: "Most popular"; position: absolute; top: 0; right: 0; z-index: 2; padding: 5px 13px; border-radius: 0 22px 0 14px; background: var(--brand); color: #fff; font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 8px 18px -10px rgba(76,29,149,.7); }

.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem; font-weight: 700; color: var(--muted);
  box-shadow: var(--shadow-1);
}
.pill-note svg { color: var(--ok); }
.info-strip { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 9px; background: var(--red-soft); color: var(--red-700); font-size: 0.74rem; font-weight: 800; line-height: 1; text-align: center; }
.step > div { min-width: 0; }
.step b { display: block; font-size: 0.82rem; }
.step span { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

/* ---------- add fund ---------- */
.fund-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 25px; align-items: start; }
.fund-balance {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 60px -40px rgba(91, 33, 182, 0.5);
}
.fund-balance .eyebrow { color: var(--red-700); }
.fund-balance strong { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 4px; }
.fund-balance > p { font-size: 0.8rem; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 18px; }
.mini-stats > div { padding: 11px 13px; border-radius: 13px; background: var(--surface); }
.mini-stats span { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--red-700); }
.mini-stats b { display: block; margin-top: 2px; font-size: 0.95rem; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
  padding: 12px 6px; border-radius: 14px;
  border: 2px solid var(--red); background: var(--surface);
  font-size: 0.76rem; font-weight: 800; color: var(--muted);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pay-method span.pay-logo { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.pay-method span.pay-logo svg { width: 32px; height: 32px; display: block; }
.pay-method:hover { border-color: var(--red-700); }
.pay-method.active { border-color: var(--red); background: var(--red-soft); color: var(--red-700); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08); }
.pay-method.active::after {
  content: "\2713"; position: absolute; top: 6px; right: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: var(--surface);
  font-size: .62rem; font-weight: 900; line-height: 1;
}
.pay-number {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; margin-bottom: 16px;
  border-radius: 14px; background: var(--red-soft);
}
.pay-number span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--muted); }
.pay-number b { display: block; font-size: 1rem; letter-spacing: 0.01em; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.quick button {
  border: 2px solid var(--red); background: var(--surface); border-radius: 10px;
  padding: 9px 13px; font-size: 0.78rem; font-weight: 800; color: var(--ink-2);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.quick button:hover { border-color: var(--red); color: var(--red-700); }
.quick button.active { background: var(--red); border-color: var(--red); color: var(--surface); }

/* ---------- wallet ---------- */
.wallet-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 25px; }
.balance-hero {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 60px -40px rgba(124, 58, 237, 0.45);
}
.balance-hero .eyebrow { color: var(--red-700); }
.balance-hero strong { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 16px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions .btn { flex: 1 1 auto; min-height: 44px; }
.balance-hero .btn-ghost { background: var(--surface); border-color: var(--line); color: var(--red-700); box-shadow: none; }
.balance-hero .btn-ghost:hover { background: var(--surface); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.mini-grid > div { padding: 12px; border-radius: 14px; background: var(--red-soft); }
.mini-grid span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--muted); }
.mini-grid b { display: block; margin-top: 3px; font-size: 1.02rem; letter-spacing: -0.02em; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 25px; align-items: start; }
.profile-card { text-align: center; }
.profile-card .avatar { margin: 4px auto 12px; }
.profile-card h2 { font-size: 1.25rem; }
.profile-card > p { font-size: 0.82rem; color: var(--muted); }
.profile-id {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 7px 12px; border-radius: 999px;
  background: var(--bg);
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
}
.profile-id b { color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.profile-stats b { display: block; font-size: 1.02rem; font-weight: 800; }
.profile-stats span { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.info-row:last-child { border-bottom: 0; }
.info-row span { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.info-row b { font-size: 0.86rem; font-weight: 700; text-align: right; word-break: break-word; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.settings-row:last-child { border-bottom: 0; }
.settings-row b { display: block; font-size: 0.88rem; }
.settings-row small { display: block; font-size: 0.74rem; color: var(--muted); }
.danger-zone { background: rgba(254, 242, 242, 0.6); }
.danger-zone h3 { color: var(--danger); }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.82rem; }
.table th {
  text-align: left; padding: 12px 14px;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--line-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }
.table .cell-user { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.table .cell-user b { display: block; font-size: 0.82rem; font-weight: 700; }
.table .cell-user span { display: block; font-size: 0.7rem; color: var(--muted); }
.table .cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.search-box { position: relative; flex: 1; min-width: 180px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-box input { width: 100%; height: 42px; padding: 0 12px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 0.84rem; outline: none; }
.search-box input:focus { border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h2 { font-size: 1.05rem; }

/* ---------- empty / skeleton ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 18px; }
.empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 12px;
  background: var(--red-soft); color: var(--muted-2);
}
.empty h4 { font-size: 0.94rem; }
.empty p { font-size: 0.78rem; color: var(--muted); max-width: 34ch; margin-top: 4px; }
.empty .btn { margin-top: 14px; }
.skeleton-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skeleton-row { display: flex; align-items: center; gap: 12px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--red-soft) 25%, var(--red-soft) 37%, var(--red-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.sk-ico { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sk-line { height: 11px; width: 70%; }
.sk-line.short { width: 42%; height: 9px; }
.sk-amt { width: 64px; height: 14px; flex: none; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- overlay / sheet ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10, 11, 18, 0.56);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.overlay.open { opacity: 1; }
.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 88dvh);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(10, 11, 18, 0.55);
  transform: translateY(28px) scale(0.985);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  overflow: hidden;
}
.overlay.open .sheet { transform: none; opacity: 1; }
.sheet-lg { width: min(720px, 100%); }
.sheet-grab { display: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
.sheet-titles { min-width: 0; }
.sheet-titles h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.sheet-titles p { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.sheet-body { padding: 4px 20px 18px; overflow-y: auto; }
.sheet-body:empty { display: none; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 20px 20px; border-top: 1px solid var(--line-2); background: var(--surface); }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn-ghost { flex: 0 1 auto; }
.confirm-text { font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- order modal ---------- */
.order-step > span { display: flex; align-items: center; gap: 8px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 8px; color: var(--red-700); background: var(--red-soft);
  font-size: 0.68rem; font-style: normal; font-weight: 800; letter-spacing: 0.04em;
}
.order-step-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 0.82rem; font-weight: 800; color: var(--ink-2); }
.order-pkg { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--red-soft); margin-bottom: 16px; }
.order-pkg .icon-wrap { width: 50px; height: 50px; margin: 0; border-radius: 16px; }
.order-pkg .icon-wrap svg { width: 26px; height: 26px; }
.order-pkg > div:nth-child(2) { flex: 1; min-width: 0; }
.order-pkg h4 { font-size: 0.92rem; }
.order-pkg span { font-size: 0.74rem; color: var(--muted); }
.order-pkg > b { font-size: 1.02rem; color: var(--red-700); white-space: nowrap; }
.order-summary { border-radius: 16px; background: var(--red-soft); padding: 4px 14px; margin: 4px 0 12px; }
.order-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 0.84rem; }
.order-summary > div:last-child { border-bottom: 0; }
.order-summary span { color: var(--muted); }
.order-summary b { font-weight: 800; }
.order-summary .total b { color: var(--red-700); font-size: 1.05rem; }
.order-note { font-size: 0.74rem; color: var(--muted); background: var(--red-soft); border-radius: 11px; padding: 9px 12px; margin-bottom: 4px; }

/* ---------- toast ---------- */
.toast-root {
  position: fixed; z-index: 100;
  left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(420px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(76, 29, 149, 0.3);
  transform: translateY(16px); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  pointer-events: auto;
}
.toast.show { transform: none; opacity: 1; }
.toast { border-left: 3px solid var(--red); }
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }
.toast-warn { border-left-color: var(--warn); }
.toast-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 9px; background: var(--red-soft); color: var(--muted); }
.toast-success .toast-ico { background: var(--ok-soft); color: var(--ok); }
.toast-error .toast-ico { background: var(--danger-soft); color: var(--danger); }
.toast-info .toast-ico { background: var(--info-soft); color: var(--info); }
.toast-warn .toast-ico { background: var(--warn-soft); color: var(--warn); }
.toast-txt { flex: 1; min-width: 0; }
.toast-txt b { display: block; font-size: 0.8rem; }
.toast-txt span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.45; word-break: break-word; }
.toast-x { border: 2px solid var(--red); background: transparent; color: var(--muted-2); padding: 2px; flex: none; }
.toast-x:hover { color: var(--ink); }

/* ---------- auth gate ---------- */
.gate {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 0; min-height: 100vh; min-height: 100dvh;
  max-width: 1120px; margin: 0 auto; padding: 24px;
  align-items: center;
}
.gate-brand {
  position: relative; overflow: hidden;
  border-radius: 30px;
  padding: clamp(26px, 4vw, 46px);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 34px 80px -46px rgba(91, 33, 182, 0.5);
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: center;
}
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.brand-row .brand-logo { background: var(--surface); border-color: var(--line); }
.brand-row strong { display: block; font-size: 1rem; font-weight: 800; }
.brand-row span { display: block; font-size: 0.7rem; color: var(--red-700); }
.gate-brand h1 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); line-height: 1.12; max-width: 16ch; }
.gate-brand > p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; max-width: 40ch; }
.gate-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gate-points li { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--ink-2); }
.gate-points svg { color: var(--red); flex: none; }
.gate-glow { display: none; }
.gate-card { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 34px); }
.gate-card-in {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border-radius: 24px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 70px -40px rgba(12, 14, 24, 0.4);
}
.gate-card-in h2 { font-size: 1.4rem; letter-spacing: -0.03em; margin-top: 6px; }
.gate-card-in > p { font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
.gate-card-in .btn { margin-top: 20px; }
.gate-note { margin-top: 14px; font-size: 0.74rem; color: var(--muted); line-height: 1.55; background: var(--red-soft); border-radius: 12px; padding: 10px 12px; }
.gate-note b { color: var(--ink-2); }
.gate-note a { color: var(--red); font-weight: 800; }
.fine { font-size: 0.7rem; color: var(--muted-2); margin-top: 16px; line-height: 1.5; }

/* ---------- chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--red), rgba(124, 58, 237, 0.25)); min-height: 4px; transition: height 0.7s var(--ease); }
.chart-col span { font-size: 0.62rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.chart-col b { font-size: 0.64rem; color: var(--ink-2); font-weight: 800; white-space: nowrap; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 11px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.notif:last-child { border-bottom: 0; }
.notif-ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--muted); }
.notif.unread .notif-ico { background: var(--red-soft); color: var(--red); }
.notif-main { min-width: 0; flex: 1; }
.notif-main b { display: block; font-size: 0.84rem; }
.notif-main p { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.notif-main span { display: block; font-size: 0.68rem; color: var(--muted-2); margin-top: 4px; }
.notif.unread b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }

/* ---------- twin 200px dashed border lines (one round / 3s) ---------- */
.ring-card { position: relative; }
.edge-track {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.edge-track { shape-rendering: geometricPrecision; pointer-events: none; }
.edge-track-line { stroke: var(--red); opacity: 0; }
.edge-track-line-b { stroke: var(--red-600); }
@keyframes edgeSweep { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--edge-perim, -1000px); } }
/* sweep only on deliberate hover — no perpetual animation, no GPU drain on touch */
@media (hover: hover) and (pointer: fine) {
  .ring-card:hover .edge-track-line { opacity: 1; animation: edgeSweep 1.1s var(--ease) 1 forwards; }
  .ring-card:hover .edge-track-line-b { animation-delay: .12s; }
}
@media (prefers-reduced-motion: reduce) { .edge-track { display: none; } }

/* ---------- utilities ---------- */
.rise { animation: rise var(--anim) var(--ease) both; }
@keyframes rise { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- smooth page & content transitions ---------- */
.shell, .gate { animation: none; }
body.is-leaving { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
@keyframes softIn { from { opacity: 0.4; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.pkg, .stat, .act, .notif, .pay-method, .profile-card, .hero-chip {
  animation: softIn 0.32s var(--ease) backwards;
}
.pkg-grid > *:nth-child(2), .stats > *:nth-child(2), .act-list > *:nth-child(2) { animation-delay: 0.02s; }
.pkg-grid > *:nth-child(3), .stats > *:nth-child(3), .act-list > *:nth-child(3) { animation-delay: 0.04s; }
.pkg-grid > *:nth-child(4), .stats > *:nth-child(4), .act-list > *:nth-child(4) { animation-delay: 0.06s; }
.pkg-grid > *:nth-child(5), .act-list > *:nth-child(5) { animation-delay: 0.08s; }
.pkg-grid > *:nth-child(6), .act-list > *:nth-child(6) { animation-delay: 0.1s; }
.act { transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.act:hover { background: var(--red-soft); }

.divider { height: 1px; background: var(--line-2); margin: 6px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 0.82rem; }
.kv span { color: var(--muted); }
.kv b { font-weight: 800; }

/* consistent alignment + safe text wrapping across every section */
.page-head > div:first-child,
.card-head > div:first-child,
.section-head > div:first-child,
.toolbar > div:first-child { min-width: 0; }
.page-head h1, .card-head h2, .section-head h2,
.pkg-title, .pkg-tag, .feature span:last-child { overflow-wrap: anywhere; }
.page-head p, .card-head p, .section-head p { max-width: 70ch; overflow-wrap: anywhere; }
.hero-side { margin-left: auto; justify-content: flex-end; }
.dash-actions { align-self: flex-start; }

/* ---------- landing (pre-login) ---------- */
.landing { background: linear-gradient(180deg, #fbf9ff 0%, var(--bg) 46%, #f2eaff 100%); }
.landing-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px clamp(16px, 4vw, 40px);
  background: var(--surface); box-shadow: 0 1px 0 rgba(124,58,237,.1);
}
.landing-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.landing-brand .brand-logo { width: 40px; height: 40px; border-radius: 13px; }
.landing-brand strong { display: block; font-size: .95rem; }
.landing-brand span { display: block; font-size: .66rem; color: var(--red-700); }
.landing-links { display: flex; gap: 22px; margin: 0 auto; }
.landing-links a { font-size: .84rem; font-weight: 700; color: var(--muted); }
.landing-links a:hover { color: var(--red); }
.landing-nav-actions { display: flex; gap: 8px; }
.landing-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.landing-hero {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(44px, 7vw, 90px) 0 clamp(32px, 5vw, 60px);
}
.landing-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); line-height: 1.06; margin: 14px 0 16px; }
.landing-lead { font-size: clamp(.94rem, .86rem + .4vw, 1.1rem); color: var(--muted); max-width: 52ch; }
.landing-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.landing-proof { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.landing-proof span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: .74rem; font-weight: 700; color: var(--ink-2);
}
.landing-proof svg { color: var(--red); }
.landing-art { position: relative; display: grid; place-items: center; }
.landing-art::before {
  content: ""; position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.2), transparent 68%); filter: blur(18px);
}
.landing-preview {
  position: relative; width: min(360px, 100%); padding: 24px;
  border-radius: 26px; background: var(--surface);
  box-shadow: 0 42px 90px -40px rgba(76,29,149,.55);
  transform: rotate(-2.5deg);
}
.landing-preview-head { display: flex; align-items: center; gap: 12px; }
.landing-preview-head div { min-width: 0; }
.landing-preview-head h3 { font-size: 1rem; }
.landing-preview-head p { font-size: .72rem; color: var(--muted); }
.landing-preview-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.landing-preview-price b { font-size: 2.2rem; font-weight: 900; letter-spacing: -.05em; color: var(--red-700); }
.landing-preview-price span { font-size: .72rem; font-weight: 800; color: var(--red-700); background: var(--red-soft); padding: 5px 10px; border-radius: 999px; }
.landing-preview ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line-2); display: grid; gap: 7px; }
.landing-preview li { display: flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.landing-preview li svg { color: var(--red); flex: none; }
.landing-preview .select-button { margin-top: 16px; }
.landing-section { padding: clamp(28px, 5vw, 56px) 0; }
.landing-section-head { text-align: center; margin-bottom: 28px; }
.landing-section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin: 8px 0 6px; }
.landing-section-head p { color: var(--muted); }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.landing-feature { padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); }
.landing-feature .icon-wrap { width: 44px; height: 44px; border-radius: 13px; }
.landing-feature .icon-wrap svg { width: 22px; height: 22px; }
.landing-feature h3 { margin: 14px 0 6px; }
.landing-feature p { font-size: .84rem; color: var(--muted); }
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.landing-step { padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.landing-step .step-num { width: 30px; height: 30px; margin-bottom: 12px; }
.landing-step h4 { margin-bottom: 4px; }
.landing-step p { font-size: .8rem; color: var(--muted); }
.landing-about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.landing-about .card h3 { margin-bottom: 8px; }
.landing-about .card p { font-size: .86rem; color: var(--muted); }
.landing-about .info-row { padding: 11px 0; }
.landing-footer { padding: 28px 20px 36px; text-align: center; color: var(--muted); font-size: .78rem; }
.landing-footer b { color: var(--ink-2); }
@media (min-width: 1025px) {
  .landing-nav { background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
}
@media (max-width: 860px) {
  .landing-hero, .landing-about { grid-template-columns: 1fr; }
  .landing-links { display: none; }
  .landing-nav-actions { margin-left: auto; }
  .landing-art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .landing-preview { transform: none; }
  .landing-nav-actions .btn-ghost { display: none; }
  .landing-cta .btn { flex: 1 1 100%; }
}

/* desktop-only glass surfaces (blur is expensive on mobile GPUs) */
@media (min-width: 1025px) {
  .topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
  .sidebar { background: rgba(255,255,255,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-grid, .wallet-grid, .profile-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .shell-main { margin-left: 0; }
  .sidebar { transform: translateX(-104%); transition: transform 0.36s var(--ease); box-shadow: 0 0 60px rgba(10, 11, 18, 0.24); }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-backdrop { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .side-close, .menu-btn { display: inline-flex; }
  .gate { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .gate-brand { min-height: 300px; }
  .gate-brand h1 { max-width: 22ch; }
  .gate-card { padding: 0; }
  .gate-card-in { max-width: 520px; }
}
@media (max-width: 760px) {
  .page { gap: 16px; padding: 16px; }
  .topbar { min-height: 68px; padding: 10px 16px; gap: 8px; }
  .top-title p { display: none; }
  .btn-sm { min-height: 44px; }
  .balance-chip { padding: 0 10px; font-size: 0.78rem; height: 36px; }
  .top-actions .top-user .avatar { width: 34px; height: 34px; }
  .hero { padding: 20px; border-radius: 22px; }
  .hero-user { gap: 12px; }
  .hero-side { width: 100%; margin-left: 0; justify-content: flex-start; }
  .dash-actions .btn { flex: 1 1 auto; }
  .page-head, .card-head, .section-head { align-items: flex-start; }
  .hero-chip { flex: 1 1 118px; min-width: 118px; }
  .stats { gap: 10px; }
  .stat { padding: 13px; gap: 10px; border-radius: 16px; }
  .stat-ico { width: 36px; height: 36px; border-radius: 11px; }
  .stat b { font-size: 1.05rem; }
  .pkg-grid, .pkg-grid-sm { grid-template-columns: 1fr; }
  .sheet { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; align-self: flex-end; transform: translateY(100%); }
  .overlay { padding: 0; align-items: flex-end; }
  .sheet-grab { display: block; width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: 9px auto 0; }
  .sheet-head { padding-top: 14px; }
  .sheet-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sheet-foot .btn { min-height: 48px; }
  .toast-root { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .chart { height: 128px; }
  .chart-col b { display: none; }
  .gate { padding: 12px; gap: 12px; }
  .gate-brand { min-height: 240px; padding: 22px; border-radius: 24px; }
  .brand-row { margin-bottom: 18px; }
  .gate-points { display: none; }
  .gate-brand > p { font-size: 0.84rem; }
  .gate-card-in { padding: 20px; border-radius: 20px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .stat > div span { font-size: 0.62rem; }
  .stat > div small { display: none; }
  .mini-stats { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pay-method { padding: 10px 4px; font-size: 0.7rem; }
  .act-amt { font-size: 0.8rem; }
  .price-box { gap: 8px; }
  .pkg-price-note { padding: 5px 10px; font-size: 0.7rem; }
  .pkg { padding: 20px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   PRO APP SKIN — borderless, soft surfaces, native-app navigation
   Inspired by fflikebd.pro, recoloured to SM LIKE BD purple
   ============================================================ */
.btn, .icon-btn, .select-button, .filter-chip, .quick button, .seg button,
.nav-item, .copy-chip, .channel, .pick, .toast-x, .pay-method, .menu-btn,
.field input, .field select, .field textarea, .input, .select, .search-box input,
.topbar, .sidebar, .side-card, .brand-logo, .daily-badge {
  border: 0 !important;
}
.btn-ghost, .icon-btn, .filter-chip, .quick button, .seg button, .nav-item,
.copy-chip, .channel, .pick, .toast-x, .pay-method {
  background: var(--red-soft);
}
.btn-ghost:hover, .icon-btn:hover, .filter-chip:hover, .quick button:hover,
.copy-chip:hover, .channel:hover, .pick:hover, .pay-method:hover {
  background: rgba(124, 58, 237, 0.14);
}
.field input, .field select, .field textarea, .input, .select, .search-box input {
  background: var(--bg);
}
.topbar { box-shadow: 0 8px 26px -20px rgba(76, 29, 149, 0.35); }
.sidebar { box-shadow: 12px 0 40px -36px rgba(76, 29, 149, 0.4); }

/* premium balance hero — surface defined once in the client-area section below */
.hero-eyebrow, .hero .hero-chip span, .hero-meta { color: rgba(255,255,255,.78); }
.hero-balance, .hero-chip b { color: #fff; }
.hero-chip { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.hero-user .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.32); }

/* package top accent, reference style */
.pkg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); z-index: 3; }
.pkg { padding-top: 25px; }

/* ---------- sidebar is the single navigation surface on every screen ---------- */
/* On tablets/phones the topbar menu button opens the same off-canvas drawer as desktop. */
@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .toast-root { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* reference-style FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); box-shadow: var(--shadow-1); border-radius: 16px; padding: 14px 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; font-size: .9rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.2rem; font-weight: 900; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* ---------- reference-style landing components ---------- */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-700);
  font-size: .72rem; font-weight: 800;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(124,58,237,.14); }
.live-card {
  position: relative; width: min(380px, 100%); padding: 18px;
  border-radius: 22px; background: var(--surface);
  box-shadow: 0 42px 90px -42px rgba(76,29,149,.5);
}
.live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live-card-head b { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; color: var(--ok); letter-spacing: 0; }
.live-card-head b i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15,157,88,.12); }
.live-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: .8rem; }
.live-row > span:nth-child(2) { flex: 1; color: var(--muted); font-weight: 700; }
.live-row b { font-weight: 800; }
.live-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex: none; }
.live-ico.purple { background: var(--red-soft); color: var(--red); }
.live-ico.amber { background: var(--warn-soft); color: var(--warn); }
.live-ico.green { background: var(--ok-soft); color: var(--ok); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0 6px; }
.stat-strip > div { text-align: center; }
.stat-strip b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 900; letter-spacing: -.05em; color: var(--red-700); }
.stat-strip span { display: block; margin-top: 2px; font-size: .72rem; color: var(--muted); font-weight: 700; }
.center-head { text-align: center; margin-bottom: 28px; }
.center-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin: 8px 0 6px; }
.center-head p { color: var(--muted); font-size: .88rem; }
.mini-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.mini-pkg { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--red-soft)); box-shadow: var(--shadow-1); }
.mini-pkg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.mini-pkg.popular { background: linear-gradient(180deg, #fff, #f1e8ff); box-shadow: 0 22px 48px -28px rgba(124,58,237,.5); }
.mini-pkg-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; }
.mini-pkg-ico svg { width: 24px; height: 24px; }
.mini-pkg h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.mini-tag { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--red-700); font-size: .64rem; font-weight: 800; }
.mini-tag.top { position: absolute; top: 14px; right: 14px; background: var(--brand); color: #fff; }
.mini-price { margin: 12px 0 14px; font-size: 2.1rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--red-700); }
.mini-pkg ul { list-style: none; margin: 14px 0 12px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mini-pkg li { display: flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; color: var(--ink-2); }
.mini-pkg li svg { color: var(--ok); flex: none; }
.validity { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .68rem; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .live-card { transform: none; }
}

/* limit badge directly under package titles */
.daily-badge { margin: 8px 0 2px; }
.plan-badge { margin: 0 0 2px 6px; }
.delivery-bar {
  height: 6px; margin-top: 4px; border-radius: 999px;
  background: var(--line-2); overflow: hidden;
}
.delivery-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: var(--brand); transition: width 0.4s var(--ease);
}

/* ---------- my orders ---------- */
.order-list { display: grid; gap: 14px; }
.my-order-card {
  padding: 18px; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-1); animation: softIn 0.32s var(--ease) backwards;
}
.mo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mo-head > div { min-width: 0; }
.mo-head h3 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.mo-head span { display: block; margin-top: 2px; font-size: .68rem; color: var(--muted); font-family: ui-monospace, monospace; }
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: .78rem; }
.mo-row span { color: var(--muted); flex: none; }
.mo-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-mono { font-family: ui-monospace, monospace; }
.mo-progress { margin-top: 14px; }
.mo-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; margin-bottom: 6px; color: var(--muted); }
.mo-progress-top b { color: var(--ink-2); }
@media (max-width: 560px) { .mo-grid { grid-template-columns: 1fr; } }
.mini-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.mini-labels .daily-badge { margin: 0; padding: 4px 10px; font-size: .6rem; }

/* ---------- client-area style: premium dark hero + account sidebar ---------- */
.hero { display: block; padding: 0; background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.14), transparent 40%), linear-gradient(120deg, #1b1033 0%, #2d1b5e 55%, #5b21b6 100%); }
.hero::before { width: 360px; height: 360px; right: -110px; top: -200px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 22px; background: rgba(0,0,0,.18); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-top b { color: rgba(255,255,255,.92); }
.hero-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 22px; }
.hero-greeting { min-width: 0; }
.hero-greeting .hero-eyebrow { color: #c4b5fd; }
.hero-greeting h2 { margin: 6px 0 4px; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); color: #fff; }
.hero-wallet { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; background: rgba(255,255,255,.12); }
.hero-wallet > span { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-wallet .hero-balance { font-size: 1.6rem; }
.hero-copy { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: rgba(255,255,255,.16); color: #fff; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.hero-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.hero-strip span { padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-700); font-size: .72rem; font-weight: 700; }
.stat { position: relative; overflow: hidden; }
.stat-watermark { position: absolute; right: 4px; bottom: -14px; color: var(--red); opacity: .07; pointer-events: none; }
.stat-watermark svg { width: 64px; height: 64px; }
.account-card { background: linear-gradient(135deg, #2a1750, #5b21b6); color: #fff; }
.acct-top { display: flex; align-items: center; gap: 9px; }
.acct-top .avatar { width: 34px; height: 34px; font-size: .7rem; }
.acct-top > div { flex: 1; min-width: 0; }
.acct-top strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.acct-top small { display: block; font-size: .62rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-top .icon-btn { width: 28px; height: 28px; background: rgba(255,255,255,.14); color: #fff; }
.acct-bal { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); }
.acct-bal span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; color: #fff; }
.acct-bal b { display: block; font-size: 1.1rem; color: #fff; }
/* compositor-only active indicator + M3 press state */
.side-nav .nav-item { position: relative; }
.side-nav .nav-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 22px; border-radius: 0 3px 3px 0;
  background: var(--red); pointer-events: none;
  transform: translateY(-50%) scaleY(0); transform-origin: center;
  transition: transform 0.24s var(--ease);
}
.side-nav .nav-item.active::before { transform: translateY(-50%) scaleY(1); }
.side-nav .nav-item:active { transform: scale(0.985); }
.side-nav .nav-item.active::after { content: "\203A"; margin-left: auto; font-size: 1.1rem; line-height: 1; }
@media (max-width: 760px) {
  .hero-main { padding: 20px; gap: 14px; }
  .hero-wallet { width: 100%; justify-content: space-between; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

.live-feed { display: grid; gap: 8px; }
.live-feed-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.live-feed-row > div { flex: 1; min-width: 0; }
.live-feed-row b { display: block; font-size: .84rem; }
.live-feed-row span:not(.live-ico):not(.mini-tag) { display: block; font-size: .72rem; color: var(--muted); }

/* ===== utility attributes (no inline CSS) ===== */
.view[hidden] { display: none !important; }
[data-mt="14"] { margin-top: 14px; }
[data-mt="16"] { margin-top: 16px; }
[data-fs="sm"] { font-size: .8rem; }
[data-fs="xs"] { font-size: .78rem; }
[data-size="sm"] { width: 28px; height: 28px; }
.noscript-note { padding: 24px; text-align: center; }
[data-delay=".05s"] { animation-delay: .05s; }
[data-delay=".07s"] { animation-delay: .07s; }
[data-delay=".1s"] { animation-delay: .1s; }
[data-delay=".15s"] { animation-delay: .15s; }
[data-delay=".16s"] { animation-delay: .16s; }
[data-delay=".2s"] { animation-delay: .2s; }
[data-delay=".22s"] { animation-delay: .22s; }
[data-delay=".08s"] { animation-delay: .08s; }
.text-danger { color: var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.blocked-banner { border-color: rgba(220, 38, 38, .3); background: rgba(254, 242, 242, .85); }

/* dashboard rows — consistent 15px vertical breathing room */
[data-view="dashboard"] .hero-strip,
[data-view="dashboard"] .stat,
[data-view="dashboard"] .act,
[data-view="dashboard"] .pkg { margin-bottom: 15px; }
[data-view="dashboard"] .stats { gap: 5px; }
[data-view="dashboard"] .stat { margin-bottom: 5px; }
[data-view="dashboard"] .grid-2 > .card:first-child { margin-top: 10px; }
[data-view="dashboard"] .popular-section { margin-top: 10px; }

/* section/button spacing fixes */
.order-like-btn { margin-bottom: 10px; }
[data-view="service"] .how-section { margin-top: 10px; }
[data-view="add-fund"] .deposit-history-section { margin-top: 10px; }
[data-view="wallet"] .transaction-history-section { margin-top: 10px; }
[data-view="profile"] .session-section { margin-top: 10px; }
