/* ==========================================================================
   Matrix Corporate - design system
   Indigo → violet → teal on deep ink. Light + dark themes via [data-theme].
   ========================================================================== */

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #f4f6fb;
  --bg-glow: radial-gradient(1200px 600px at 100% -10%, rgba(91, 108, 255, .10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(16, 200, 160, .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --surface-3: #e9edf5;
  --border: #e2e7f0;
  --border-strong: #cfd6e3;
  --text: #0c1324;
  --text-2: #3a4459;
  --muted: #6a7389;
  --primary: #3355ff;
  --primary-ink: #2140e0;
  --primary-soft: #eaefff;
  --violet: #7a5cff;
  --accent: #0fbf9a;
  --accent-soft: #e2f8f2;
  --warn: #e59a0b;
  --warn-soft: #fff4dc;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --success: #12a150;
  --success-soft: #e3f6ea;
  --info: #0b8ad9;
  --info-soft: #e3f2fc;

  --brand: linear-gradient(135deg, #3355ff 0%, #7a5cff 55%, #0fbf9a 120%);
  --brand-soft: linear-gradient(135deg, rgba(51,85,255,.12), rgba(122,92,255,.10) 55%, rgba(15,191,154,.10));

  --side-bg: #0a1130;
  --side-bg-2: #111a44;
  --side-text: #aeb6d6;
  --side-text-hi: #ffffff;
  --side-hover: rgba(255,255,255,.06);

  --shadow-xs: 0 1px 2px rgba(16, 24, 48, .06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 48, .05), 0 2px 8px rgba(16, 24, 48, .05);
  --shadow-md: 0 4px 12px rgba(16, 24, 48, .07), 0 12px 32px rgba(16, 24, 48, .06);
  --shadow-lg: 0 18px 50px rgba(16, 24, 48, .18);
  --ring: 0 0 0 4px rgba(51, 85, 255, .18);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --side-w: 268px;
  --side-w-collapsed: 80px;
  --top-h: 68px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #060a1a;
  --bg-glow: radial-gradient(1200px 600px at 100% -10%, rgba(91, 108, 255, .16), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(16, 200, 160, .10), transparent 60%);
  --surface: #0e1430;
  --surface-2: #141b3c;
  --surface-3: #1b2448;
  --border: #212a50;
  --border-strong: #2d386a;
  --text: #e9edf9;
  --text-2: #c3cae3;
  --muted: #8e98bb;
  --primary: #6f8bff;
  --primary-ink: #8aa1ff;
  --primary-soft: rgba(111, 139, 255, .14);
  --accent: #2ee0b5;
  --accent-soft: rgba(46, 224, 181, .12);
  --warn-soft: rgba(229, 154, 11, .14);
  --danger-soft: rgba(229, 72, 77, .14);
  --success: #34c77b;
  --success-soft: rgba(52, 199, 123, .14);
  --info-soft: rgba(11, 138, 217, .16);
  --side-bg: #050916;
  --side-bg-2: #0b1230;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --ring: 0 0 0 4px rgba(111, 139, 255, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--text);
  background: var(--bg); background-image: var(--bg-glow); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
img { display: block; }
.i { flex-shrink: 0; display: inline-block; vertical-align: -0.2em; }
.icon-btn .i, .list-ic .i, .kpi-icon .i, .modal-icon .i, .ci .i, .t-icon .i, .fd-icon .i, .empty-art .i { display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .hide-sm { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(51, 85, 255, .2); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) 1fr; transition: grid-template-columns .35s var(--ease); }
.shell.collapsed { grid-template-columns: var(--side-w-collapsed) 1fr; }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  color: var(--side-text); padding: 18px 14px; z-index: 40; overflow: hidden;
}
.sidebar::before {
  content: ""; position: absolute; inset: -40% -60% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 92, 255, .35), transparent 65%); filter: blur(10px); pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; position: relative; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand); box-shadow: 0 8px 22px rgba(51, 85, 255, .45);
  font-weight: 800; font-size: 17px; letter-spacing: -.04em; color: #fff;
}
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.brand-sub { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b95c4; font-weight: 600; white-space: nowrap; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; position: relative; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #6872a3; font-weight: 700; padding: 16px 12px 8px; white-space: nowrap; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0;
  color: var(--side-text); border-radius: 11px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav a:hover { background: var(--side-hover); color: var(--side-text-hi); }
.nav a:hover .i { transform: translateX(1px) scale(1.06); }
.nav a .i { transition: transform .25s var(--ease-spring); }
.nav a.active {
  color: #fff; background: linear-gradient(90deg, rgba(51, 85, 255, .9), rgba(122, 92, 255, .75));
  box-shadow: 0 10px 24px -8px rgba(51, 85, 255, .7), inset 0 1px 0 rgba(255,255,255,.15);
}
.nav-badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; background: var(--accent); color: #032b22;
}
.nav-badge:empty, .nav-badge[data-count="0"] { display: none; }
.side-foot { position: relative; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.side-card {
  border-radius: 14px; padding: 14px; margin-bottom: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07); color: #d7dcf3;
}
.side-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #8b95c4; font-weight: 700; }
.side-card .value { font-size: 20px; font-weight: 800; color: #fff; margin: 2px 0 10px; }
.shell.collapsed .brand-text, .shell.collapsed .nav-section, .shell.collapsed .nav a span, .shell.collapsed .nav-badge,
.shell.collapsed .side-card { display: none; }
.shell.collapsed .nav a { justify-content: center; padding: 12px; }
.shell.collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.collapse-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 0;
  background: transparent; color: var(--side-text); font: inherit; font-weight: 600; cursor: pointer;
}
.collapse-btn:hover { background: var(--side-hover); color: #fff; }
.shell.collapsed .collapse-btn { justify-content: center; }
.shell.collapsed .collapse-btn span { display: none; }
.shell.collapsed .collapse-btn .i { transform: rotate(180deg); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -12px rgba(16,24,48,.25); }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0; }
.crumbs strong { color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; min-width: 260px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 11px; cursor: pointer; font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.search-trigger kbd { margin-left: auto; }
kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border);
}
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--primary); border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn .dot {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.icon-btn .dot[data-count="0"] { display: none; }
.bump { animation: bump .5s var(--ease-spring); }
.wallet-chip {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text);
}
.wallet-chip .i { color: var(--accent); }
.wallet-chip .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--brand); cursor: pointer; border: 0; font-size: 14px; letter-spacing: -.02em;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px; border-radius: 14px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .18s var(--ease);
}
.menu.open .menu-pop { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none;
  color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }
.mobile-only { display: none !important; }

.content { padding: 8px 28px 48px; width: 100%; max-width: 1400px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 24px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--primary); margin-bottom: 8px; }

@media (max-width: 960px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 290px; transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 8, 20, .5); z-index: 35; animation: fade .2s; }
  .collapse-btn { display: none; }
  .mobile-only { display: grid !important; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .wallet-chip .amount-label { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) { .wallet-chip { display: none; } h1 { font-size: 23px; } }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 22px; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.kpi { position: relative; overflow: hidden; padding: 20px 22px; }
.kpi .kpi-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.kpi.teal .kpi-icon { background: var(--accent-soft); color: var(--accent); }
.kpi.violet .kpi-icon { background: rgba(122, 92, 255, .12); color: var(--violet); }
.kpi.amber .kpi-icon { background: var(--warn-soft); color: var(--warn); }
.kpi .label { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi .value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.kpi.hero { color: #fff; border: 0; background: var(--brand); box-shadow: 0 20px 40px -18px rgba(51, 85, 255, .6); }
.kpi.hero .label, .kpi.hero .sub { color: rgba(255,255,255,.8); }
.kpi.hero .value { color: #fff; }
.kpi.hero .kpi-icon { background: rgba(255,255,255,.18); color: #fff; }
.kpi.hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); animation: drift 12s ease-in-out infinite alternate;
}

/* ---------- buttons ---------- */
.btn {
  --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  white-space: nowrap; position: relative; overflow: hidden; user-select: none; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 20px -8px rgba(51, 85, 255, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { color: #fff; background: var(--primary-ink); box-shadow: 0 12px 26px -8px rgba(51, 85, 255, .8); transform: translateY(-1px); }
.btn-brand { color: #fff; background: var(--brand); background-size: 160% 160%; box-shadow: 0 10px 26px -10px rgba(91, 92, 255, .8); }
.btn-brand:hover { color: #fff; background-position: 100% 0; transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-soft { color: var(--primary); background: var(--primary-soft); }
.btn-soft:hover { color: var(--primary-ink); filter: brightness(.97); }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn[disabled], .btn.loading { opacity: .65; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s var(--ease); pointer-events: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field label .req { color: var(--danger); }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236a7389' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-wrap { position: relative; }
.input-wrap > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap > .input { padding-left: 42px; }
.input-wrap > .toggle-pass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center;
}
.input-wrap > .toggle-pass:hover { color: var(--text); background: var(--surface-2); }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--danger); font-weight: 600; display: none; }
.field.invalid .input, .field.invalid .select { border-color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 40%, var(--surface)); }
.field.invalid .error-text { display: block; animation: shake .35s; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1.5px dashed var(--border-strong);
  background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input { display: none; }
.file-drop .fd-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--primary); border: 1px solid var(--border); flex-shrink: 0; }
.file-drop .fd-name { font-weight: 700; font-size: 13.5px; }
.file-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.file-drop.has-file .fd-icon { color: var(--accent); }
.password-meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.password-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .35s var(--ease), background .35s; }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.brand { background: var(--brand); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.segmented button {
  border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 9px; cursor: pointer;
  transition: all .2s var(--ease);
}
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted);
  padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table a.row-link { font-weight: 700; color: var(--text); }
.table a.row-link:hover { color: var(--primary); }
.cell-sub { color: var(--muted); font-size: 12.5px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager-links { display: flex; gap: 6px; }
.pager-links a, .pager-links span {
  min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: 13px;
  color: var(--text-2); border: 1px solid var(--border); background: var(--surface);
}
.pager-links a:hover { border-color: var(--primary); color: var(--primary); }
.pager-links .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-links .disabled { opacity: .4; }

/* ---------- filters bar ---------- */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.filters .input { height: 42px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }

/* ---------- empty / alerts ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty .empty-art {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; color: var(--primary);
  background: var(--brand-soft); animation: float 4s ease-in-out infinite;
}
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.alert .i { margin-top: 1px; }
.alert.warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--text)); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert.info { background: var(--info-soft); color: color-mix(in srgb, var(--info) 75%, var(--text)); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert a { font-weight: 700; color: inherit; text-decoration: underline; }

/* ---------- skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.3s infinite;
}

/* ---------- modal (native <dialog>) ---------- */
dialog.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
dialog.modal[open] { animation: pop .28s var(--ease-spring); }
dialog.modal::backdrop { background: rgba(6, 10, 26, .55); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-head p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.modal-body { padding: 16px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 24px 22px; }
.modal-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; width: min(380px, calc(100vw - 40px)); padding: 14px 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease-spring); position: relative; overflow: hidden;
}
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast .t-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.toast.success .t-icon { background: var(--success-soft); color: var(--success); }
.toast.error .t-icon { background: var(--danger-soft); color: var(--danger); }
.toast.info .t-icon { background: var(--info-soft); color: var(--info); }
.toast .t-title { font-weight: 700; }
.toast .t-msg { color: var(--text-2); font-size: 13.5px; }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand); animation: toastBar linear forwards; }
.toast button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }

/* ---------- command palette ---------- */
.cmdk { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cmdk-input input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--text); }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 10px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.cmdk-item .i { color: var(--muted); }
.cmdk-item.sel { background: var(--primary-soft); color: var(--primary); }
.cmdk-item.sel .i { color: var(--primary); }
.cmdk-item kbd { margin-left: auto; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* ---------- plans ---------- */
.dest-picker { position: relative; }
.dest-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; padding: 6px; z-index: 20; display: none;
}
.dest-picker.open .dest-results { display: block; animation: pop .2s var(--ease); }
.dest-results button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.dest-results button:hover, .dest-results button.sel { background: var(--primary-soft); color: var(--primary); }
.hero-search {
  position: relative; padding: 30px; border-radius: var(--r-xl); color: #fff; overflow: visible;
  background: radial-gradient(600px 200px at 90% 0%, rgba(15,191,154,.45), transparent 70%), linear-gradient(120deg, #1a2a8c, #3355ff 45%, #7a5cff);
  box-shadow: 0 30px 60px -30px rgba(51, 85, 255, .7);
}
.hero-search h1 { color: #fff; }
.hero-search p { color: rgba(255,255,255,.82); margin: 6px 0 20px; }
.hero-search .input { height: 54px; border: 0; font-size: 15.5px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.popular { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.popular button {
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 600; font-size: 12.5px;
  padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: background .2s;
}
.popular button:hover { background: rgba(255,255,255,.24); }
.plan-card { display: flex; flex-direction: column; padding: 20px; position: relative; overflow: hidden; }
.plan-card .pc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.plan-card h3 { font-size: 15.5px; }
.plan-card .pc-variant { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.plan-card .pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.plan-card .pc-stat { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.plan-card .pc-stat .k { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.plan-card .pc-stat .v { font-size: 17px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.plan-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 13px; }
.plan-card .pc-meta span, .plan-card .pc-meta a { display: inline-flex; align-items: center; gap: 6px; }
.plan-card .pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price .mrp { color: var(--muted); text-decoration: line-through; font-size: 12.5px; font-weight: 600; }
.price .now { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.price .save { font-size: 11.5px; font-weight: 800; color: var(--success); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-card.in-cart { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-sm); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 22px 0 16px; }
.range { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 40px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px; }
.range input { accent-color: var(--primary); width: 140px; }
.cart-bar {
  position: sticky; bottom: 16px; z-index: 25; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px 14px 22px; border-radius: 18px; color: #fff; background: rgba(10, 17, 48, .92); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); transform: translateY(140%); opacity: 0; transition: all .4s var(--ease-spring);
}
.cart-bar.show { transform: none; opacity: 1; }
.cart-bar .cb-total { font-size: 18px; font-weight: 800; }

/* ---------- order / sim ---------- */
.sim-card { padding: 0; overflow: hidden; }
.sim-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; }
@media (max-width: 900px) { .sim-row { grid-template-columns: 1fr 1fr; } }
.label-sm { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 4px 0 0 4px; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline .when { color: var(--muted); font-size: 12.5px; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.details .v { font-weight: 700; margin-top: 2px; word-break: break-word; }
.expand { border-top: 1px dashed var(--border); background: var(--surface-2); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.expand > div { overflow: hidden; }
.expand.open { grid-template-rows: 1fr; }
.expand-inner { padding: 20px 22px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 800px) { .expand-inner { grid-template-columns: 1fr; } }
.qr-box { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.rotate { transition: transform .3s var(--ease); }
.open > .rotate, .rotate.on { transform: rotate(180deg); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background: #08102e;
}
.auth-art .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; animation: drift 16s ease-in-out infinite alternate; }
.auth-art .b1 { width: 520px; height: 520px; background: #3355ff; top: -160px; left: -120px; }
.auth-art .b2 { width: 420px; height: 420px; background: #7a5cff; bottom: -140px; right: -100px; animation-duration: 20s; animation-delay: -6s; }
.auth-art .b3 { width: 300px; height: 300px; background: #0fbf9a; top: 40%; left: 45%; opacity: .55; animation-duration: 24s; animation-delay: -12s; }
.auth-art .grid-lines {
  position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-art > * { position: relative; }
.auth-art .brand { padding: 0; }
.auth-copy { margin-top: auto; max-width: 520px; }
.auth-copy h1 { color: #fff; font-size: 40px; line-height: 1.1; letter-spacing: -.035em; }
.auth-copy h1 em { font-style: normal; background: linear-gradient(90deg, #9fb2ff, #6ff0cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { color: rgba(255,255,255,.75); font-size: 16px; margin-top: 16px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.88); font-weight: 600; }
.auth-points .pt { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.auth-foot { margin-top: 40px; color: rgba(255,255,255,.5); font-size: 12.5px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); background: var(--bg); background-image: var(--bg-glow); }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; }
.auth-card.wide { max-width: 640px; }
.auth-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .lead { color: var(--muted); margin: 8px 0 28px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

.steps { display: flex; gap: 10px; margin-bottom: 30px; }
.step { flex: 1; }
.step .bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.step .bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .5s var(--ease); }
.step.done .bar span, .step.current .bar span { width: 100%; }
.step .lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.step.current .lbl, .step.done .lbl { color: var(--text); }
.step-panel { display: none; }
.step-panel.active { display: block; animation: slideIn .45s var(--ease); }
.step-panel.active.back { animation-name: slideInBack; }

.success-mark {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: linear-gradient(135deg, #12a150, #0fbf9a); box-shadow: 0 20px 40px -14px rgba(15, 191, 154, .6);
  animation: pop .6s var(--ease-spring);
}
.success-mark svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s var(--ease) forwards; }
.otp-input { letter-spacing: .6em; font-size: 22px; font-weight: 800; text-align: center; font-family: var(--mono); }

/* ---------- misc ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; text-align: left; }
.faq-q:hover { color: var(--primary); }
.faq-a { padding: 0 22px 20px; color: var(--text-2); }
.faq-item .expand { background: transparent; border-top: 0; }
.faq-a ol, .faq-a ul { padding-left: 20px; margin: 8px 0 0; }
.faq-a li + li { margin-top: 4px; }
.contact-card { padding: 26px; }
.contact-card .ci { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--primary); }
.token { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; }
.token span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 14px 20px; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 700; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 12px; } }
.result-card { max-width: 560px; margin: 8vh auto; text-align: center; padding: 40px 32px; }
.result-card .success-mark, .result-card .fail-mark { margin: 0 auto 22px; }
.fail-mark { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e5484d, #f97366); animation: pop .6s var(--ease-spring); }
.pending-mark { background: linear-gradient(135deg, #e59a0b, #f5c451); }
.receipt { text-align: left; margin: 24px 0; border-radius: 14px; border: 1px dashed var(--border-strong); padding: 6px 18px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.receipt div:last-child { border-bottom: 0; }
.receipt span:first-child { color: var(--muted); }
.receipt span:last-child { font-weight: 700; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.loader-dots { display: inline-flex; gap: 6px; }
.loader-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: dots 1s infinite ease-in-out; }
.loader-dots i:nth-child(2) { animation-delay: .15s; } .loader-dots i:nth-child(3) { animation-delay: .3s; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 240px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); transition: background .15s; color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); color: inherit; }
.list-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.welcome { position: relative; overflow: hidden; padding: 26px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; }
.welcome::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--brand-soft); filter: blur(10px); }
.welcome > * { position: relative; z-index: 1; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.94); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-26px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dots { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .sidebar, .topbar, .toasts, .cart-bar { display: none !important; } .shell { display: block; } }
