/* MyFlexo v2 design system. Palette: realtimecolors 050315 / fbfbfe / 2f27ce / dedcff / 433bff, font Inter. */
:root {
  --text: #050315;
  --bg: #fbfbfe;
  --primary: #2f27ce;
  --secondary: #dedcff;
  --accent: #433bff;
  --surface: #ffffff;
  --surface-2: #f4f3fd;
  --muted: #5d5a78;
  --faint: #8d8aa6;
  --line: #e8e6f6;
  --line-2: #d8d5f0;
  --ok: #0f9d58;
  --ok-bg: #e5f6ed;
  --warn: #b45309;
  --warn-bg: #fdf1e1;
  --bad: #d92d20;
  --bad-bg: #fdecea;
  --info: #2f27ce;
  --info-bg: #ecebff;
  --grad: linear-gradient(135deg, #2f27ce 0%, #433bff 55%, #6c63ff 100%);
  --shadow-sm: 0 1px 2px rgba(5, 3, 21, .06), 0 1px 1px rgba(5, 3, 21, .03);
  --shadow: 0 6px 24px -8px rgba(47, 39, 206, .18), 0 2px 6px rgba(5, 3, 21, .05);
  --shadow-lg: 0 24px 60px -20px rgba(47, 39, 206, .35);
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.side-shade { display: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.i { flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(67, 59, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(67, 59, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--secondary); color: var(--primary); box-shadow: none; }
.btn-soft:hover { background: #d0cdff; box-shadow: none; }
.btn-danger { background: var(--bad); box-shadow: none; }
.btn-ok { background: var(--ok); box-shadow: none; }
.btn-sm { --h: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--primary); }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 600; font-size: 13.5px; margin: 16px 0 6px; color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
input, select, textarea {
  width: 100%; max-width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; outline: 0;
}
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d5a78' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(67, 59, 255, .14); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: middle; }
input.sm, select.sm { height: 36px; border-radius: 10px; font-size: 14px; padding: 0 10px; }
select.sm { padding-right: 32px; background-position: right 10px center; }
.hint { font-size: 12.5px; color: var(--faint); margin: 6px 0 0; }
.field-err { font-size: 12.5px; color: var(--bad); margin: 6px 0 0; }
.input-wrap { position: relative; }
.input-wrap > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap > input { padding-left: 42px; }
.input-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--faint); cursor: pointer; padding: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.check input { margin-top: 1px; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; background: var(--surface-2); }
.strength { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s var(--ease), background .3s; }

/* ---------- Alerts, badges ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.alert .i { margin-top: 1px; }
.alert.ok { background: var(--ok-bg); color: #0b6b3c; border-color: #c4ead6; }
.alert.bad { background: var(--bad-bg); color: #a3241a; border-color: #f7cdc8; }
.alert.warn { background: var(--warn-bg); color: #8a4108; border-color: #f6dcb6; }
.alert.info { background: var(--info-bg); color: var(--primary); border-color: var(--secondary); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.Completed, .badge.approved, .badge.paid, .badge.answered, .badge.active { background: var(--ok-bg); color: var(--ok); }
.badge.Processing, .badge.In.progress, .badge.In-progress, .badge.Pending, .badge.open { background: var(--info-bg); color: var(--primary); }
.badge.Partial, .badge.pending, .badge.Queued { background: var(--warn-bg); color: var(--warn); }
.badge.Canceled, .badge.rejected, .badge.banned { background: var(--bad-bg); color: var(--bad); }
.badge.closed { background: var(--surface-2); color: var(--faint); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.refill { background: var(--ok-bg); color: var(--ok); }
.tag.speed { background: var(--info-bg); color: var(--primary); }
.tag.hot { background: var(--grad); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-sm); }
.pill b { color: var(--text); }
.pill .dot { background: var(--secondary); color: var(--primary); font-weight: 700; padding: 2px 9px; border-radius: 999px; font-size: 12px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 16px; }
.card-h h3 { margin: 0; font-size: 16px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; max-width: none; margin: 0; padding: 0; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.stat { position: relative; overflow: hidden; }
.stat .k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .k .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--info-bg); color: var(--primary); }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.stat .d.up { color: var(--ok); }
.stat.feature { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.stat.feature .k { color: rgba(255, 255, 255, .8); }
.stat.feature .k .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.stat.feature .d { color: rgba(255, 255, 255, .75); }
.stat.feature .kpi-up, .stat.feature .kpi-down { color: #fff; font-weight: 600; }
.stat.feature::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafaff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-svc { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.cell-svc b { display: block; font-size: 14px; font-weight: 600; }
.cell-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); display: block; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--info-bg); color: var(--primary); margin-bottom: 12px; }
.empty h3 { color: var(--text); font-size: 17px; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; min-width: 90px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .6s var(--ease); }
.progress.done i { background: var(--ok); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Tabs, chips ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; white-space: nowrap; transition: .15s; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tabs .count { font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--line); color: var(--muted); }
.tabs .on .count { background: var(--secondary); color: var(--primary); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Brand tiles ---------- */
.brand-tile { display: inline-grid; place-items: center; border-radius: 28%; color: #fff; font-weight: 700; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 6px 14px -6px rgba(67,59,255,.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo-img { width: 36px; height: 36px; flex: none; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(200,46,7,.55); transition: transform .3s var(--ease); }
.brand-mf:hover .logo-img { transform: rotate(-6deg) scale(1.06); }
.wordmark { font-family: "Inter", system-ui, sans-serif; font-size: 23px; letter-spacing: -.045em; line-height: 1; color: var(--text, #050315); }
.wordmark .wm-my { font-weight: 300; }
.wordmark .wm-fx { font-weight: 800; color: #ff5a1f; }
.auth-side .wordmark { color: #fff; }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 251, 254, .78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; margin-left: auto; }
.mobile-menu { display: none; }

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .blob { position: absolute; filter: blur(60px); opacity: .55; animation: float 16s ease-in-out infinite; }
.hero-bg .b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: #dedcff; }
.hero-bg .b2 { width: 420px; height: 420px; right: -120px; top: 40px; background: #c9c5ff; animation-delay: -5s; }
.hero-bg .b3 { width: 360px; height: 360px; left: 40%; top: 260px; background: #e9e7ff; animation-delay: -9s; }
.hero-bg .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .7; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .i { color: var(--ok); }

/* Hero product mock */
.mock { position: relative; }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px; }
.mock-card .row.between { margin-bottom: 14px; }
.mock-svc { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; transition: .2s; }
.mock-svc.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(67,59,255,.1); background: #fbfbff; }
.mock-svc .p { margin-left: auto; text-align: right; font-weight: 700; font-size: 15px; }
.mock-svc .p small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.mock-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; animation: bob 6s ease-in-out infinite; }
.mock-float small { display: block; color: var(--faint); font-weight: 500; font-size: 11.5px; }
.mock-float.f1 { left: -34px; bottom: -26px; }
.mock { padding: 18px 0 30px; }
.mock-float.f2 { right: -20px; top: -14px; animation-delay: -3s; }
.mock-float .ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }

.marquee { overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); }

.section { padding: 84px 0; }
.section.tint { background: linear-gradient(180deg, transparent, #f2f1fd 18%, #f2f1fd 82%, transparent); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-h { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-h h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.section-h p { color: var(--muted); font-size: 17px; }

.counter-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.counter-band .c { text-align: center; padding: 24px 12px; }
.counter-band .c b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter-band .c span { color: var(--muted); font-size: 14px; }

.plat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plat-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.plat-card .top { display: flex; align-items: center; gap: 12px; }
.plat-card h3 { font-size: 17px; margin: 0; }
.plat-card .from { margin-left: auto; text-align: right; font-size: 12px; color: var(--faint); }
.plat-card .from b { display: block; font-size: 17px; color: var(--text); }
.plat-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plat-card li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.plat-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--primary); }
.plat-card:hover .go .i { transform: translateX(3px); }
.plat-card .go .i { transition: transform .2s var(--ease); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; }
.step .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--secondary); color: var(--primary); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

.feat { padding: 24px; }
.feat .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--info-bg); color: var(--primary); margin-bottom: 14px; }
.feat h3 { font-size: 16.5px; }
.feat p { color: var(--muted); margin: 0; font-size: 14.5px; }

.price-table .row-p { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table .row-p:last-child { border-bottom: 0; }
.price-table .row-p .nm { font-weight: 600; font-size: 14.5px; }
.price-table .row-p .pr { margin-left: auto; font-weight: 700; white-space: nowrap; }

.earn-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--text); color: #fff; border-radius: 28px; padding: 48px; position: relative; overflow: hidden; }
.earn-band::before { content: ''; position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(67,59,255,.55), transparent 65%); }
.earn-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.03em; position: relative; }
.earn-band p { color: rgba(255,255,255,.72); position: relative; }
.earn-calc { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; }
.earn-calc .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 15px; }
.earn-calc .line:last-child { border: 0; font-size: 18px; font-weight: 700; }
.earn-calc .line b { color: #a9a4ff; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); color: var(--faint); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.cta-band { text-align: center; padding: 64px 24px; border-radius: 28px; background: var(--grad); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.cta-band::before { width: 380px; height: 380px; left: -100px; bottom: -200px; background: rgba(255,255,255,.12); }
.cta-band::after { width: 300px; height: 300px; right: -80px; top: -140px; background: rgba(255,255,255,.1); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.035em; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 17px; }

.footer { border-top: 1px solid var(--line); margin-top: 84px; padding: 48px 0 28px; background: var(--surface); }
.footer-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.footer a:hover { color: var(--primary); }
.footer .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* Public price list */
.svc-list { display: grid; gap: 22px; }
.svc-group h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 12px; }

/* Legal pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 36px; font-weight: 800; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }

/* =========================================================
   AUTH
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: var(--text); color: #fff; padding: 48px; display: flex; flex-direction: column; isolation: isolate; }
.auth-side::before { content: ''; position: absolute; width: 640px; height: 640px; left: -200px; bottom: -280px; background: radial-gradient(circle, rgba(67,59,255,.7), transparent 62%); z-index: -1; animation: float 18s ease-in-out infinite; }
.auth-side::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(222,220,255,.35), transparent 65%); z-index: -1; animation: float 14s ease-in-out infinite reverse; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; margin-top: auto; max-width: 460px; }
.auth-side p { color: rgba(255,255,255,.72); max-width: 420px; }
.auth-side .logos { display: flex; gap: 10px; margin: 26px 0 auto; }
.auth-side .quote { margin-top: 40px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.85); display: flex; gap: 12px; align-items: center; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.auth-box > p.muted { margin-bottom: 22px; }
.btn-google { width: 100%; height: 48px; display: flex; gap: 10px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer; transition: .15s; box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: var(--faint); background: #fcfcff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 20px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.auth-top { display: none; }

/* =========================================================
   APP (customer + admin)
   ========================================================= */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side > * { flex-shrink: 0; }
.side .brand { padding: 4px 10px 18px; }
.side-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 14px 12px 6px; }
.side a.nav-i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; position: relative; }
.side a.nav-i:hover { background: var(--surface-2); color: var(--text); }
.side a.nav-i.on { background: var(--info-bg); color: var(--primary); font-weight: 600; }
.side a.nav-i.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.side a.nav-i .n { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side-card { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.side-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.side-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.side-card p { font-size: 12.5px; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.side-card .btn { position: relative; z-index: 1; }

.main { min-width: 0; padding: 0 32px 48px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 70px; margin: 0 -32px 24px; padding: 0 32px; background: rgba(251,251,254,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 700; }
.topbar .sub { font-size: 13px; color: var(--faint); }
.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cur { display: flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.cur button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.cur button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.bal { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); transition: .15s; }
.bal:hover { border-color: var(--primary); }
.bal .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--secondary); color: var(--primary); font-weight: 700; font-size: 15px; flex: none; }
.menu-btn { display: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h2 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: -.025em; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.announce { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--info-bg); color: var(--primary); font-size: 14px; font-weight: 500; margin-bottom: 20px; border: 1px solid var(--secondary); }

.welcome { position: relative; overflow: hidden; background: var(--grad); color: #fff; border: 0; padding: 26px; isolation: isolate; }
.welcome::before { content: ''; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); z-index: -1; }
.welcome::after { content: ''; position: absolute; right: 120px; top: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); z-index: -1; }
.welcome h2 { font-size: 24px; font-weight: 700; }
.welcome p { color: rgba(255,255,255,.82); margin: 0; }
.welcome .bal-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quick-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.quick-plats a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; transition: .2s var(--ease); }
.quick-plats a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

/* New order */
.steps-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.steps-h .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--secondary); color: var(--primary); font-size: 12.5px; }
.plat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.plat-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .18s var(--ease); }
.plat-pick button:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.plat-pick button.on { border-color: var(--primary); color: var(--primary); background: #f8f8ff; box-shadow: 0 0 0 4px rgba(67,59,255,.1); }
.svc-cards { display: grid; gap: 8px; }
.svc-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: .18s var(--ease); }
.svc-card:hover { border-color: var(--line-2); }
.svc-card.on { border-color: var(--primary); background: #f8f8ff; box-shadow: 0 0 0 4px rgba(67,59,255,.1); }
.svc-card .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: .15s; }
.svc-card.on .radio { border-color: var(--primary); }
.svc-card.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.svc-card .nm { font-weight: 600; font-size: 14.5px; }
.svc-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.svc-card .pr { margin-left: auto; text-align: right; font-weight: 700; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-card .pr small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.qty-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.qty-presets button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.qty-presets button:hover { border-color: var(--primary); color: var(--primary); }
.summary { position: sticky; top: 94px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.summary .line b { color: var(--text); text-align: right; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.summary .total b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary .svc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.summary .svc-head b { display: block; font-size: 14.5px; line-height: 1.3; }
.search { position: relative; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 38px; height: 40px; border-radius: 11px; font-size: 14px; }

/* Orders */
.order-card { display: none; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters .search { flex: 1; min-width: 200px; max-width: 320px; }

/* Funds */
.amt-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.amt-presets button { height: 42px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); transition: .15s; }
.amt-presets button:hover, .amt-presets button.on { border-color: var(--primary); color: var(--primary); background: #f8f8ff; }
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method button { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; text-align: left; cursor: pointer; transition: .15s; color: inherit; }
.method button.on { border-color: var(--primary); background: #f8f8ff; box-shadow: 0 0 0 4px rgba(67,59,255,.1); }
.method button b { display: block; font-size: 14.5px; }
.method button small { color: var(--faint); font-size: 12.5px; }
.method .mi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--info-bg); color: var(--primary); flex: none; font-weight: 800; font-size: 13px; }
.pay-box { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.qr-wrap { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); display: grid; place-items: center; min-height: 210px; }
.qr-wrap canvas, .qr-wrap img { width: 184px !important; height: 184px !important; }
.pay-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 14px; }
.pay-steps li { counter-increment: s; display: flex; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--muted); }
.pay-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--secondary); color: var(--primary); font-size: 12px; font-weight: 700; }
.pay-steps b { color: var(--text); }
.upi-apps { display: none; gap: 8px; margin-top: 12px; }

/* Ledger */
.amt-plus { color: var(--ok); font-weight: 700; }
.amt-minus { color: var(--text); font-weight: 700; }

/* Tickets */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--info-bg); border-color: var(--secondary); }
.msg small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 6px; white-space: normal; }

/* Admin */
.admin-tabs { margin-bottom: 20px; }
.kpi-up { color: var(--ok); }
.kpi-down { color: var(--bad); }
.chart { width: 100%; height: 220px; }
.chart .bar { fill: var(--accent); transition: opacity .15s; }
.chart .bar:hover { opacity: .75; }
.chart .bar2 { fill: var(--secondary); }
.chart .axis { fill: var(--faint); font-size: 11px; }
.chart .gl { stroke: var(--line); }
.funnel { display: grid; gap: 10px; }
.funnel .f { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 14px; }
.funnel .f .bar-o { height: 30px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.funnel .f .bar-o i { display: block; height: 100%; background: var(--grad); border-radius: 9px; min-width: 4px; }
.funnel .f .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel .f .val small { display: block; color: var(--faint); font-weight: 500; font-size: 11.5px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,157,88,.6); animation: pulse 2s infinite; }
.inline-form { display: inline; }
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Bottom nav (mobile app) */
.bnav { display: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: .3s var(--ease); pointer-events: none; display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   MOTION (motion-primitives style, in plain CSS + JS)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.words .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); animation: wordIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.6s ease-in-out infinite; }
.spot { position: relative; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(67,59,255,.09), transparent 45%); }
.spot:hover::before { opacity: 1; }
.border-beam { position: relative; }
.border-beam::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 70%, #433bff 85%, #a9a4ff 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 5s linear infinite; pointer-events: none; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes beam { to { --a: 360deg; } }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -24px) scale(1.06); } 66% { transform: translate(-20px, 18px) scale(.96); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,157,88,.5); } 70% { box-shadow: 0 0 0 8px rgba(15,157,88,0); } 100% { box-shadow: 0 0 0 0 rgba(15,157,88,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .words .w { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .mock { max-width: 480px; margin: 10px auto 0; width: 100%; }
  .plat-grid, .steps, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .earn-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-top { display: flex; justify-content: center; margin-bottom: 26px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .side-shade { display: block; position: fixed; inset: 0; background: rgba(5,3,21,.35); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .side.open + .side-shade { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; }
  .main { padding: 0 16px 96px; }
  .topbar { margin: 0 -16px 18px; padding: 0 16px; height: 62px; gap: 10px; }
  .topbar .sub, .topbar .hide-m { display: none; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); padding: 6px 0; }
  .bnav a.on { color: var(--primary); }
  .bnav a.mid .i { background: var(--grad); color: #fff; width: 42px; height: 42px; padding: 10px; border-radius: 14px; margin-top: -20px; box-shadow: 0 10px 20px -8px rgba(67,59,255,.8); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-grid; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px 20px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 10px; }
  .hero { padding: 40px 0 20px; }
  .hero .lead { font-size: 16.5px; }
  .mock-float.f1 { left: -6px; bottom: -14px; }
  .mock-float.f2 { right: -4px; top: -6px; }
  .section { padding: 60px 0; }
  .plat-grid, .steps, .g3, .g2:not(.keep2) { grid-template-columns: minmax(0, 1fr); }
  .counter-band { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > div:first-child { grid-column: 1 / -1; }
  .pay-box { grid-template-columns: minmax(0, 1fr); }
  .qr-wrap { max-width: 230px; margin: 0 auto; width: 100%; }
  .amt-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upi-apps { display: flex; }
  .card { padding: 18px; }
  .welcome .bal-big { font-size: 28px; }
  .table-wrap.cards-m { border: 0; background: none; box-shadow: none; }
  .table-wrap.cards-m table, .table-wrap.cards-m tbody { display: block; }
  .table-wrap.cards-m thead, .table-wrap.cards-m tr.th { display: none; }
  .table-wrap.cards-m tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
  .table-wrap.cards-m td { padding: 0; border: 0; }
  .table-wrap.cards-m td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .table-wrap.cards-m td.full { grid-column: 1 / -1; }
  .table-wrap.cards-m td.num { text-align: right; }
  .msg { max-width: 92%; }
  .funnel .f { grid-template-columns: 96px minmax(0, 1fr) 70px; font-size: 13px; }
  .method { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat .v { font-size: 21px; }
  .bal { padding-left: 10px; font-size: 14px; }
  .cur { display: none; }
}

/* Trustpilot review link under the hero */
.tp-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--text, #050315); text-decoration: none; }
.tp-link:hover b { text-decoration: underline; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars .i { width: 18px; height: 18px; padding: 2px; background: #00b67a; color: #fff; fill: #fff; stroke: none; border-radius: 2px; }

.nav-tp { display: inline-flex; align-items: center; gap: 5px; }
.nav-tp .i { color: #00b67a; fill: #00b67a; }

/* Trustpilot review popup (dashboard, after an order completes) */
.tp-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20, 16, 40, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.tp-pop.on { opacity: 1; pointer-events: auto; }
.tp-pop-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px 18px; text-align: center; box-shadow: 0 24px 60px rgba(20, 16, 40, .25); transform: translateY(12px) scale(.98); transition: transform .25s; }
.tp-pop.on .tp-pop-card { transform: none; }
.tp-pop-card h3 { font-size: 20px; margin: 10px 0 6px; }
.tp-pop-card p { font-size: 14px; }
.tp-pop-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e7f8ef; color: #00b67a; }
.tp-pop-stars { justify-content: center; margin: 14px 0 16px; }
.tp-pop-stars .i { width: 30px; height: 30px; padding: 4px; }

/* Homepage hero: creator profile mock */
.prof { padding: 22px; }
.prof-top { display: flex; align-items: center; gap: 18px; }
.prof-av { flex: none; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #ff5a1f, #ff2e7e, #7c3aed, #ffb21f, #ff5a1f); }
.prof-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); background: linear-gradient(135deg, #ffd7c2, #ffb4d0); color: #b4235a; font-weight: 800; font-size: 28px; }
.prof-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.prof-stats b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.prof-stats small { color: var(--faint); font-size: 12px; }
.prof-name { margin: 14px 0 12px; font-size: 14.5px; }
.prof-tick { color: #2f8cff; display: inline-flex; vertical-align: -2px; }
.prof-name > b { margin-right: 2px; }
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.prof-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.prof-reel { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(67,59,255,.1); margin-top: 14px; background: #fbfbff; }
.prof-reel .p { margin-left: auto; text-align: right; font-weight: 800; font-size: 16px; }
.prof-reel .p small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.who-grid .feat h3 { font-size: 16.5px; }
.creator-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.creator-strip figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.12)); }
.creator-strip figure:nth-child(even) { transform: translateY(18px); }
.creator-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.creator-strip figure:hover img { transform: scale(1.06); }
.creator-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 860px) { .creator-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .creator-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 24px; padding: 0 16px 6px; } .creator-strip figure { flex: 0 0 42%; scroll-snap-align: start; } .creator-strip figure:nth-child(even) { transform: none; } }
@media (max-width: 560px) { .prof-av { width: 64px; height: 64px; } .prof-stats b { font-size: 17px; } }

/* Growth packages */
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 22px 20px; }
.pkg h3 { font-size: 19px; }
.pkg-tag { min-height: 40px; margin: 8px 0 14px; }
.pkg-price { display: flex; align-items: baseline; gap: 10px; }
.pkg-price b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.pkg-price s { color: var(--faint); font-size: 15px; }
.pkg-save { align-self: flex-start; margin: 6px 0 16px; background: #e7f8ef; color: #0f8a5f; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pkg-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; flex: 1; }
.pkg-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pkg-list .i { color: #0f8a5f; margin-top: 2px; }
.pkg-list small { display: block; color: var(--faint); font-size: 12px; }
.pkg-hot { border: 2px solid #ff5a1f; box-shadow: 0 18px 50px rgba(255, 90, 31, .16); }
.pkg-hot .btn { background: linear-gradient(135deg, #ff5a1f, #ff2e7e); border-color: transparent; }
.pkg-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #ff5a1f, #ff2e7e); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.buy-box { margin-bottom: 22px; border: 2px solid var(--accent); }
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pkg-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.buy-box { scroll-margin-top: 90px; }
.pkg-grid.pkg-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pkg-grid.pkg-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.pkg-group-h { font-size: 20px; margin: 40px 0 16px; text-align: center; }
.pkg-multi { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: -6px 0 12px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--info-bg); color: var(--primary); }
.theme-dark .pkg-multi { background: rgba(255,90,31,.14); color: #ff8a5c; }

/* ---- Dark premium theme (homepage; Admin → Settings → Homepage theme) ---- */
.theme-dark {
  --text: #f6f4f2; --bg: #0b0a0f; --primary: #ff6a2b; --secondary: rgba(255,106,43,.16); --accent: #ff5a1f;
  --surface: #15131b; --surface-2: #1d1a24; --muted: #b3aebd; --faint: #7f7a8a; --line: #2a2633; --line-2: #3a3545;
  --info: #ff8a50; --info-bg: rgba(255,106,43,.14); --ok-bg: rgba(15,157,88,.16);
  --grad: linear-gradient(135deg, #ff5a1f 0%, #ff2e7e 60%, #b43cff 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -10px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -24px rgba(255,90,31,.28);
  color-scheme: dark;
}
.theme-dark .nav { background: rgba(11,10,15,.72); }
.theme-dark .hero-bg .b1 { background: #ff5a1f; opacity: .22; }
.theme-dark .hero-bg .b2 { background: #b43cff; opacity: .2; }
.theme-dark .hero-bg .b3 { background: #ff2e7e; opacity: .14; }
.theme-dark .hero-bg .grid-lines { opacity: .35; }
.theme-dark .section.tint { background: linear-gradient(180deg, transparent, #110f16 18%, #110f16 82%, transparent); }
.theme-dark .btn:not(.btn-ghost):not(.btn-white) { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(255,90,31,.6); }
.theme-dark .btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); }
.theme-dark .btn-white { color: #ff5a1f; }
.theme-dark .pill .dot { background: rgba(255,106,43,.18); color: #ff8a50; }
.theme-dark .eyebrow { color: #ff8a50; }
.theme-dark .prof-reel, .theme-dark .mock-svc.on { background: #1b1720; box-shadow: 0 0 0 4px rgba(255,90,31,.12); }
.theme-dark .prof-av span { border-color: var(--surface); }
.theme-dark .prof-grid img { filter: saturate(1.1) brightness(.92); }
.theme-dark .border-beam::after { background: conic-gradient(from var(--a, 0deg), transparent 70%, #ff5a1f 85%, #ff2e7e 90%, transparent 100%); }
.theme-dark .spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,90,31,.10), transparent 45%); }
.theme-dark .cta-band { background: linear-gradient(135deg, #ff5a1f, #ff2e7e 55%, #7c3aed); }
.theme-dark .earn-band { background: linear-gradient(135deg, #17141d, #221a2a); border: 1px solid var(--line); }
.theme-dark .pkg-save { background: rgba(15,157,88,.16); color: #39d98a; }
.theme-dark .pkg-list .i, .theme-dark .trust-row .i { color: #39d98a; }
.theme-dark .footer { background: #0e0d12; }
.theme-dark .wm-my { color: #f6f4f2; }
.theme-dark .mobile-menu { background: var(--bg); }
.theme-dark .marquee-item { background: var(--surface); }
.theme-dark .earn-band::before { background: radial-gradient(circle, rgba(255,90,31,.35), transparent 65%); }
.theme-dark .earn-calc .line b { color: #ff8a50; }
.theme-dark .earn-band .eyebrow { color: #ff8a50 !important; }

/* Homepage demo video */
.play-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 10px; padding-left: 2px; }
.vid-pop { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 10, .78); backdrop-filter: blur(6px); }
.vid-pop[hidden] { display: none !important; }
.vid-box { position: relative; width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vid-box video { display: block; width: 100%; max-height: 74vh; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 14px; background: #000; }
.vid-x { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; box-shadow: var(--shadow); z-index: 1; }

/* ---- Dark theme inside the app (dashboard, orders, funds, admin) ---- */
.theme-dark { --warn-bg: rgba(245,158,11,.14); --bad-bg: rgba(239,68,68,.14); --warn: #fbbf24; --bad: #f87171; --ok: #39d98a; }
.theme-dark.app-page { background: radial-gradient(900px 500px at 85% -10%, rgba(255,90,31,.10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(180,60,255,.08), transparent 60%), var(--bg); background-attachment: fixed; }
.theme-dark .side { background: #0e0c12; border-color: var(--line); }
.theme-dark .side a.nav-i.on { background: rgba(255,106,43,.12); color: #ff8a50; }
.theme-dark .side a.nav-i.on::before { background: var(--grad); }
.theme-dark .topbar { background: rgba(11,10,15,.75); border-color: var(--line); }
.theme-dark .card, .theme-dark .stat { background: var(--surface); border-color: var(--line); }
.theme-dark .stat.feature, .theme-dark .welcome, .theme-dark .side-card { background: var(--grad); }
.theme-dark input, .theme-dark select, .theme-dark textarea { background: #100e15; color: var(--text); border-color: var(--line-2); }
.theme-dark input::placeholder, .theme-dark textarea::placeholder { color: #6f6a7a; }
.theme-dark input:focus, .theme-dark select:focus, .theme-dark textarea:focus { border-color: #ff6a2b; box-shadow: 0 0 0 4px rgba(255,106,43,.15); }
.theme-dark .plat-pick button, .theme-dark .svc-card, .theme-dark .amt-presets button, .theme-dark .method button, .theme-dark .chip { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.theme-dark .plat-pick button.on, .theme-dark .svc-card.on, .theme-dark .amt-presets button:hover, .theme-dark .amt-presets button.on, .theme-dark .method button.on { background: rgba(255,106,43,.10); border-color: #ff6a2b; color: var(--text); box-shadow: 0 0 0 4px rgba(255,106,43,.12); }
.theme-dark .chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.theme-dark .pager .on { background: var(--grad); border-color: transparent; }
.theme-dark tbody tr:hover { background: rgba(255,255,255,.025); }
.theme-dark th { background: #1a1720; }
.theme-dark .alert.bad { color: #fca5a5; border-color: rgba(239,68,68,.3); }
.theme-dark .alert.warn { color: #fcd34d; border-color: rgba(245,158,11,.3); }
.theme-dark .btn-google { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.theme-dark .btn-google:hover { background: #24202c; }
.theme-dark .auth-side { background: linear-gradient(160deg, #1a0f12, #0b0a0f 60%); border-right: 1px solid var(--line); }
.theme-dark .toast { background: #f6f4f2; color: #0b0a0f; }
.theme-dark .bal { background: var(--surface); border-color: var(--line); }
.theme-dark .icon-btn { background: var(--surface); border-color: var(--line); color: var(--text); }
.theme-dark .tabs { background: var(--surface-2); }
.theme-dark .tabs a.on, .theme-dark .tabs button.on { background: var(--surface); color: var(--text); }
.theme-dark .qr-wrap { background: #fff; }
.theme-dark .msg { background: var(--surface-2); }
.theme-dark .logo-mark { box-shadow: 0 6px 14px -6px rgba(255,90,31,.8); }
@media (max-width: 860px) { .theme-dark .bnav { background: rgba(14,12,18,.94); } .theme-dark .bnav a.mid .i { box-shadow: 0 10px 20px -8px rgba(255,90,31,.8); } }
.theme-dark .auth-side::before { background: radial-gradient(circle, rgba(255,90,31,.45), transparent 62%); }
.theme-dark .auth-side::after { background: radial-gradient(circle, rgba(180,60,255,.28), transparent 65%); }
