@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root,
[data-theme="light"] {
  --bg: #f3f5f9;
  --bg-accent: #e8edf5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #eef2f7;
  --line: #d5dde8;
  --line-strong: #b8c4d6;
  --text: #0b1220;
  --text-secondary: #1e293b;
  --muted: #526277;
  --brand: #0f766e;
  --brand-hover: #0d9488;
  --brand-soft: rgba(15, 118, 110, 0.12);
  --brand-2: #0ea5a4;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.12);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --nav-bg: #ffffff;
  --sidebar-w: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --input-bg: #ffffff;
  --overlay: rgba(15, 23, 42, 0.04);
  --msg-bg: #f8fafc;
  --table-stripe: rgba(15, 23, 42, 0.025);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-accent: #121826;
  --surface: #131a27;
  --surface-2: #182132;
  --surface-hover: #1c2638;
  --line: #243044;
  --line-strong: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --brand: #2dd4bf;
  --brand-hover: #5eead4;
  --brand-soft: rgba(45, 212, 191, 0.12);
  --brand-2: #5eead4;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --nav-bg: #0f1520;
  --input-bg: #0e1420;
  --overlay: rgba(255, 255, 255, 0.03);
  --msg-bg: #0e1420;
  --table-stripe: rgba(255, 255, 255, 0.02);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font: inherit; }

/* ---------- App shell (dashboards) ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  min-height: 100vh;
  background: var(--bg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 18;
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--nav-bg);
  border-right: 1px solid var(--line);
  padding: 1.25rem 1rem;
  z-index: 20;
}

.main {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem .55rem 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sidebar-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #115e59);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  flex-shrink: 0;
}

[data-theme="dark"] .brand-mark {
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #042f2e;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text strong {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand-text span {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
  overflow: auto;
}

.tab {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  cursor: pointer;
  font-weight: 650;
  font-size: .9rem;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.tab:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.tab.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 750;
}
.tab-icon {
  width: 1.15rem;
  text-align: center;
  opacity: .85;
  font-size: .95rem;
}

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .45rem;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-meta .name {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta .role {
  font-size: .72rem;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: .55rem .75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
}
.theme-toggle:hover { border-color: var(--line-strong); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.topbar .subtitle {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.menu-btn { display: none; }

.content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
  flex: 1;
}

.page-section { animation: fadeIn .2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Shared components ---------- */
.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

.stat-card .muted {
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.stat-card .stat {
  color: var(--text);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--text);
}

.muted { color: var(--muted); }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 240px; }

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  font-size: .88rem;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
[data-theme="dark"] .btn { color: #042f2e; }
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}
[data-theme="dark"] .btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
[data-theme="dark"] .btn.danger { color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input[readonly] {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.label {
  display: block;
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.field { margin-bottom: .95rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: .8rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: .9rem;
}
.table th {
  color: var(--muted);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table tbody tr:hover td { background: var(--table-stripe); }

.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}
.badge.admin {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
}
.badge.client {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}
.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  margin-left: .35rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  vertical-align: middle;
}
.nav-badge.hidden { display: none; }
.msg.pending-order {
  border-left: 3px solid var(--brand);
  padding-left: .75rem;
}

.alert {
  border-radius: var(--radius-sm);
  padding: .75rem .95rem;
  margin-bottom: 1rem;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
  font-size: .9rem;
  font-weight: 600;
}
.alert.ok {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
}
.alert.hidden { display: none !important; }

.stat {
  font-size: 1.65rem;
  font-weight: 800;
  margin: .15rem 0 0;
  letter-spacing: -.03em;
  color: var(--text);
}
.stat-card .muted {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.hidden { display: none !important; }

/* Legacy nav (login/landing) */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.brand {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.15rem;
}
.brand span { color: var(--brand); }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 420px at 15% -5%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(700px 380px at 95% 10%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 55%),
    var(--bg);
}
.login-box { width: min(420px, 100%); }
.login-box h1 { margin: .85rem 0 .35rem; font-size: 1.55rem; letter-spacing: -.02em; }
.login-box p { margin: 0 0 1.2rem; }
.link-btn {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.login-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

/* Plastic cards */
.vcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}
.vcard {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1.586 / 1;
  border-radius: 12px;
  padding: .75rem .85rem;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  background: linear-gradient(135deg, #1f2a44 0%, #3a4d7c 45%, #1a2338 100%);
  justify-self: start;
}
.vcard.visa { background: linear-gradient(135deg, #0b1f4d, #1a4cff 50%, #0a1633); }
.vcard.master { background: linear-gradient(135deg, #2b0b16, #c23b2e 45%, #1a0a10); }
.vcard:hover { transform: translateY(-2px); }
.vcard.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft), 0 10px 24px rgba(0,0,0,.28);
}
.vcard .chip {
  width: 28px; height: 20px; border-radius: 4px;
  background: linear-gradient(135deg, #d7c28a, #f5e6b8 40%, #b89a55);
  margin-bottom: 0;
}
.vcard-top,
.hero-card .vcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.vcard .issuer,
.hero-card .issuer {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: lowercase;
  opacity: .88;
  white-space: nowrap;
}
.hero-card .chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #d7c28a, #f5e6b8 40%, #b89a55);
  margin-bottom: 0;
}
.hero-card .issuer {
  font-size: .72rem;
}
.vcard .num {
  font-family: var(--mono);
  letter-spacing: .1em;
  font-size: .82rem;
  margin-bottom: .45rem;
}
.vcard .meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: .65rem;
  opacity: .92;
}
.vcard .brand-mark {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  width: auto;
  height: auto;
  background: none;
  color: inherit;
  display: inline;
}
.vcard .alias {
  font-size: .85rem;
  opacity: .9;
  margin: .35rem 0 .15rem;
}

.copy-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.copy-row .input { flex: 1; }
.copy-row .btn { flex-shrink: 0; white-space: nowrap; }
.card-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .vcard-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .vcard { max-width: 100%; }
}

/* Landing funnel */
.landing-page {
  overflow-x: hidden;
}

.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.1rem 0;
}
.landing-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.landing-nav .brand-lockup { color: #fff; }
.landing-nav .brand-text span { color: rgba(255,255,255,.7); }
.landing-nav .brand-logo {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}
.landing-nav .btn.secondary {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.landing-nav .icon-btn {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("/branding/hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,14,24,.55) 0%, rgba(8,14,24,.35) 40%, rgba(8,14,24,.82) 100%),
    linear-gradient(90deg, rgba(8,14,24,.7) 0%, rgba(8,14,24,.25) 55%, rgba(8,14,24,.45) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
  position: relative;
}
.hero-brand {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 .85rem;
  animation: riseIn .7s ease both;
}
.hero-brand span {
  color: #5eead4;
}
.hero-full h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -.04em;
  max-width: 14ch;
  animation: riseIn .75s ease .08s both;
}
.hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  line-height: 1.45;
  animation: riseIn .75s ease .16s both;
}
.cta-row {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  animation: riseIn .75s ease .24s both;
}
.cta-row .btn {
  box-shadow: 0 10px 30px rgba(15, 118, 110, .35);
}
/* Hero only: light text on translucent buttons over dark photo */
.hero-full .cta-row .btn.secondary {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.hero-full .cta-row .btn.secondary:hover {
  background: rgba(255,255,255,.24);
  color: #fff;
}
.final-cta .cta-row .btn.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.final-cta .cta-row .btn.secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.hero-cards {
  position: absolute;
  right: -0.5rem;
  bottom: 2.2rem;
  width: min(420px, 48vw);
  height: 340px;
  pointer-events: none;
  perspective: 900px;
}
.hero-card {
  position: absolute;
  width: min(300px, 86%);
  aspect-ratio: 1.6 / 1;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  color: #fff;
  box-shadow: 0 28px 60px rgba(0,0,0,.45);
  will-change: transform;
}
.hero-card .chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #d7c28a, #f5e6b8 40%, #b89a55);
  margin-bottom: 0;
}
.hero-card .alias {
  opacity: .85;
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: .35rem;
  font-weight: 650;
}
.hero-card .num {
  font-family: var(--mono);
  letter-spacing: .14em;
  font-size: 1rem;
  margin-bottom: .75rem;
}
.hero-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: .78rem;
  opacity: .92;
}
.hero-card .mark { font-weight: 800; letter-spacing: .04em; font-size: 1rem; }

.hero-card.visa {
  background: linear-gradient(135deg, #0a1b4a, #1a4cff 52%, #091433);
}
.hero-card.master {
  background: linear-gradient(135deg, #3a0d14, #e04a34 50%, #1b090c);
}
.hero-card.teal {
  background: linear-gradient(135deg, #064e3b, #0d9488 50%, #042f2e);
}

.hero-card.c1 {
  left: 8%;
  top: 8%;
  z-index: 3;
  animation: floatHero1 5.8s ease-in-out infinite;
}
.hero-card.c2 {
  right: 0;
  bottom: 6%;
  z-index: 2;
  animation: floatHero2 6.6s ease-in-out infinite;
  animation-delay: .35s;
}
.hero-card.c3 {
  left: 18%;
  bottom: 18%;
  z-index: 1;
  opacity: .95;
  animation: floatHero3 7.2s ease-in-out infinite;
  animation-delay: .7s;
}

@keyframes floatHero1 {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-18px) rotate(-4deg); }
}
@keyframes floatHero2 {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}
@keyframes floatHero3 {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(.92); }
  50% { transform: translateY(-12px) rotate(2deg) scale(.94); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-cards { display: none; }
  .hero-inner { padding: 6.5rem 0 3.25rem; }
  .hero-full h1 { max-width: none; }
}

.funnel-wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4.25rem 0;
}
.section h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -.025em;
}
.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.proof-strip span {
  color: var(--brand);
}

.ads-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .ads-split { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ads-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ads-list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  animation: riseIn .6s ease both;
}
.ads-list li:nth-child(2) { animation-delay: .06s; }
.ads-list li:nth-child(3) { animation-delay: .12s; }
.ads-list li:nth-child(4) { animation-delay: .18s; }
.ads-list .dot {
  width: 10px;
  height: 10px;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.ads-list strong {
  display: block;
  margin-bottom: .15rem;
}
.ads-list p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding-top: .25rem;
  border-top: 2px solid var(--brand);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: .7rem;
  letter-spacing: .06em;
}
.step h3 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--muted);
}

.kyc-banner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .kyc-banner { grid-template-columns: 1fr; }
}
.kyc-banner h2 { margin-bottom: .5rem; }
.kyc-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.kyc-points li {
  position: relative;
  padding: .35rem 0 .35rem 1.35rem;
  color: var(--text-secondary);
}
.kyc-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}
.kyc-stat {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--brand);
}
.kyc-stat small {
  display: block;
  margin-top: .55rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

/* Trustpilot-style reviews */
.reviews-section {
  border-top: 1px solid var(--line);
}
.reviews-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.tp-summary {
  text-align: right;
  min-width: 11rem;
}
@media (max-width: 640px) {
  .tp-summary { text-align: left; }
}
.tp-score-label {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.tp-stars {
  display: inline-flex;
  gap: 3px;
  margin: .35rem 0;
}
.tp-star,
.tp-stars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background: #00b67a;
  color: #fff;
  font-size: .85rem;
  line-height: 1;
  border-radius: 2px;
}
.tp-stars.sm span {
  width: 1.05rem;
  height: 1.05rem;
  font-size: .7rem;
}
.tp-stars.sm span.dim {
  background: #d1d5db;
  color: #fff;
}
[data-theme="dark"] .tp-stars.sm span.dim {
  background: #475569;
}
.tp-score-meta {
  font-size: .88rem;
  color: var(--muted);
}
.tp-score-meta strong { color: var(--text-secondary); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  animation: riseIn .55s ease both;
}
.review-card:nth-child(1) { animation-delay: .02s; }
.review-card:nth-child(2) { animation-delay: .07s; }
.review-card:nth-child(3) { animation-delay: .12s; }
.review-card:nth-child(4) { animation-delay: .17s; }
.review-card:nth-child(5) { animation-delay: .22s; }
.review-card:nth-child(6) { animation-delay: .27s; }

.review-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}
.face {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.review-name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
}
.review-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}
.review-title {
  margin: .55rem 0 .35rem;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.review-body {
  margin: 0 0 .75rem;
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.review-date {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

.contact-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .contact-split { grid-template-columns: 1fr; }
}
.tg-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  justify-self: end;
}
@media (max-width: 800px) {
  .tg-qr-wrap { justify-self: start; }
}
.tg-qr {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: .5rem;
}

.final-cta {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}
.final-cta h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
}
.legal-top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.legal-content {
  padding: 2.5rem 0 3rem;
  max-width: 760px;
}
.legal-kicker {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
  font-weight: 750;
  margin: 0 0 .5rem;
}
.legal-content h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -.03em;
}
.legal-content h2 {
  margin: 2rem 0 .65rem;
  font-size: 1.15rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.65;
}
.legal-content ul {
  padding-left: 1.2rem;
}
.legal-content li { margin: .35rem 0; }
.legal-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer-bottom a {
  color: var(--muted);
  font-weight: 600;
}
.footer-bottom a:hover { color: var(--brand); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--surface-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-grid h4 {
  margin: 0 0 .75rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer-grid a {
  display: block;
  color: var(--text-secondary);
  margin: .35rem 0;
  font-weight: 600;
}
.footer-grid a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}

.warn-box {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  color: #1f2937;
}
.warn-box h3 {
  margin: 0 0 .6rem;
  color: #b91c1c;
  font-weight: 800;
}
.warn-box p,
.warn-box li {
  color: #374151;
}
.warn-box ul {
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.warn-box li { margin: .4rem 0; }

.guide-box {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-top: 1rem;
  color: #1f2937;
}
.guide-box h3 {
  margin: 0 0 .6rem;
  color: #b45309;
  font-weight: 800;
}
.guide-box p,
.guide-box li {
  color: #374151;
}
.guide-box ul {
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.guide-box li { margin: .4rem 0; }

[data-theme="dark"] .warn-box {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f8fafc;
}
[data-theme="dark"] .warn-box h3 { color: #fca5a5; }
[data-theme="dark"] .warn-box p,
[data-theme="dark"] .warn-box li { color: #e2e8f0; }

[data-theme="dark"] .guide-box {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #f8fafc;
}
[data-theme="dark"] .guide-box h3 { color: #fbbf24; }
[data-theme="dark"] .guide-box p,
[data-theme="dark"] .guide-box li { color: #e2e8f0; }


.msg {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin-bottom: .65rem;
  background: var(--msg-bg);
}
.msg.admin { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.msg .who { font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .8rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-btn {
  text-decoration: none;
  font-weight: 600;
}
.login-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}


/* Mobile */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main";
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    max-width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-shell.sidebar-open .sidebar-backdrop,
  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .menu-btn { display: grid; }
  .content { padding: 1rem 1rem 2rem; }
  .topbar { padding: .85rem 1rem; }
}
