@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --white:    #ffffff;
  --off:      #f4f6ff;
  --blue:     #1438cc;
  --blue-m:   #2a52e0;
  --blue-l:   #4d78ff;
  --blue-xs:  #eef1ff;
  --navy:     #0c1445;
  --navy-m:   #162068;
  --muted:    #6b7db3;
  --soft:     #8b9cc8;
  --border:   #e2e6f3;
  --border2:  #c8d0f0;
  --green:    #16a34a;
  --red:      #dc2626;
  --yellow:   #d97706;
  --purple:   #7c3aed;
  --radius:   12px;
  --shadow:   0 2px 20px rgba(20,56,204,.07);
  --shadow-m: 0 6px 32px rgba(20,56,204,.13);
  --shadow-l: 0 12px 48px rgba(20,56,204,.18);
  --sidebar-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--off);
  color: var(--navy);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* dotted grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(20,56,204,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

nav, main, section, .sidebar, .main-content, .auth-page,
.landing-nav, .hero, .stats-bar, .cta-section, .landing-footer,
.modal-overlay, #toast-container, .loading-overlay { position: relative; z-index: 1; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-m); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--blue-l); border-radius: 4px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, .logo, .stat-value { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideIn { from { transform:translateX(24px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes pulse   { 0%,100% { opacity:1; } 50% { opacity:.5; } }
@keyframes scaleIn { from { transform:scale(.94); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.animate-fade-up  { animation: fadeUp  .4s ease both; }
.animate-fade-in  { animation: fadeIn  .3s ease both; }
.animate-slide-in { animation: slideIn .35s ease both; }

.page-section { animation: fadeUp .35s ease both; }

/* stagger children */
.page-section > *:nth-child(1) { animation-delay: .04s; }
.page-section > *:nth-child(2) { animation-delay: .08s; }
.page-section > *:nth-child(3) { animation-delay: .12s; }
.page-section > *:nth-child(4) { animation-delay: .16s; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; border: none;
  cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97) !important; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 18px rgba(20,56,204,.28);
}
.btn-primary:hover { background: var(--blue-m); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,56,204,.38); }

.btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue-l); color: var(--blue); background: var(--blue-xs); }

.btn-danger  { background: var(--red);    color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.2); }
.btn-danger:hover  { background: #b91c1c; transform: translateY(-1px); }
.btn-success { background: var(--green);  color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,.2); }
.btn-success:hover { background: #15803d; transform: translateY(-1px); }

.btn-sm  { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg  { padding: 14px 34px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── INPUTS ─────────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--navy);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,56,204,.1);
}
.input::placeholder { color: var(--soft); }
.select option { background: var(--white); color: var(--navy); }
.textarea { resize: vertical; min-height: 80px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-m); }
.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--border);
  font-weight: 700; font-size: 14px;
  color: var(--navy); letter-spacing: .2px;
  display: flex; align-items: center;
}

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-l));
}
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-xs); display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.stat-card .stat-value { font-size: 30px; font-family: 'Bebas Neue', sans-serif; margin-bottom: 4px; color: var(--navy); letter-spacing: 1px; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge-pending    { background: #fef9ee; color: #b45309; border: 1px solid #fde68a; }
.badge-active     { background: var(--blue-xs); color: var(--blue); border: 1px solid var(--border2); }
.badge-completed  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-partial    { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-canceled   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-processing { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-approved   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-rejected   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-admin      { background: var(--blue-xs); color: var(--blue); border: 1px solid var(--border2); }

/* ─── TABLES ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 10px 16px; text-align: left;
  color: var(--muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px;
  border-bottom: 1.5px solid var(--border);
  background: var(--off);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--navy); }
tr:last-child td { border-bottom: none; }
tr { transition: background .15s; }
tr:hover td { background: var(--blue-xs); }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeIn .3s ease;
}
.alert-error   { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-info    { background: var(--blue-xs); border: 1px solid var(--border2); color: var(--blue); }
.alert-warning { background: #fef9ee; border: 1px solid #fde68a; color: #b45309; }

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(12,20,69,.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  transform: scale(.94) translateY(12px); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-l);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 20px 24px; border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 16px; color: var(--navy);
}
.modal-body { padding: 24px; }
.modal-close {
  background: none; border: none; color: var(--soft); cursor: pointer;
  font-size: 20px; line-height: 1; transition: color .2s;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--navy); background: var(--off); }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
/* subtle blue shimmer on top */
.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-l));
}

.sidebar-logo {
  padding: 28px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 4px;
  color: var(--white);
}
.sidebar-logo .logo span { color: var(--blue-l); }
.sidebar-logo .sub {
  font-size: 10px; color: var(--blue-l);
  font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; margin-top: 3px;
}

.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 28px; }
.nav-section-title {
  font-size: 10px; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0 10px; margin-bottom: 8px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  color: rgba(255,255,255,.55); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .18s; margin-bottom: 3px;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
  transform: translateX(2px);
}
.nav-item.active {
  background: rgba(77,120,255,.18);
  color: var(--blue-l);
  border: 1px solid rgba(77,120,255,.3);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--blue-l);
  border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 15px; }

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  margin-bottom: 8px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(77,120,255,.25);
}
.sidebar-user .user-info .name { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar-user .user-info .role { font-size: 11px; color: var(--soft); }

/* ─── MAIN LAYOUT ────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; background: var(--off); }

.topbar {
  padding: 14px 28px;
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 12px rgba(20,56,204,.06);
}
.topbar-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--navy); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.balance-chip {
  background: var(--blue-xs);
  border: 1.5px solid var(--border2);
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; font-weight: 700; color: var(--blue);
}

.page { padding: 28px; }
.hamburger { display: none; background: none; border: none; color: var(--navy); font-size: 22px; cursor: pointer; }

/* ─── LANDING NAV ────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.landing-nav.scrolled { box-shadow: var(--shadow-m); }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 4px; color: var(--navy); }
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 20px 80px;
  position: relative; overflow: hidden;
}
/* blue radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(20,56,204,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-xs); border: 1px solid var(--border2);
  border-radius: 20px; padding: 6px 18px;
  font-size: 12px; color: var(--blue); font-weight: 700;
  margin-bottom: 28px; letter-spacing: .5px; text-transform: uppercase;
  animation: fadeIn .6s ease both;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 104px); letter-spacing: 2px; line-height: 1.0;
  margin-bottom: 22px; color: var(--navy);
  animation: fadeUp .6s ease .1s both;
}
.hero p {
  font-size: 18px; color: var(--muted); max-width: 520px;
  margin: 0 auto 40px; font-weight: 400;
  animation: fadeUp .6s ease .2s both;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .6s ease .3s both;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  padding: 32px 52px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  background: var(--white);
}
.stat-item { text-align: center; }
.stat-item .val { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 1px; color: var(--blue); }
.stat-item .lbl { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* ─── SECTIONS ───────────────────────────────────────────── */
section { padding: 88px 52px; max-width: 1200px; margin: 0 auto; }
section h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px, 5vw, 60px); letter-spacing: 1px; text-align: center; margin-bottom: 12px; color: var(--navy); }
section .subtitle { text-align: center; color: var(--muted); margin-bottom: 52px; font-size: 16px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ─── FEATURE CARDS ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow);
}
.feature-card:hover {
  border-color: var(--blue-l); transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.feature-card .icon {
  font-size: 26px; margin-bottom: 14px;
  width: 48px; height: 48px; background: var(--blue-xs);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── NETWORKS ───────────────────────────────────────────── */
.networks-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.network-chip {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 30px; padding: 9px 20px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 7px;
  transition: all .2s; box-shadow: var(--shadow);
}
.network-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xs); transform: translateY(-2px); }

/* ─── PAYMENTS ───────────────────────────────────────────── */
.payment-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.payment-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  transition: all .25s; box-shadow: var(--shadow);
}
.payment-card:hover { border-color: var(--blue); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.payment-card .pay-icon { font-size: 30px; }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 96px 52px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-m) 100%);
  color: var(--white); overflow: hidden; position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(77,120,255,.25) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); font-family: 'Bebas Neue', sans-serif; font-size: clamp(38px, 6vw, 68px); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.65); margin-bottom: 32px; font-size: 17px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.landing-footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 36px 40px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand { flex: 0 0 200px; }
.footer-links { display: flex; gap: 40px; flex: 1; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.landing-footer a { color: var(--muted); font-size: 13px; }
.landing-footer a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .footer-inner  { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── AUTH ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px; padding: 44px;
  box-shadow: var(--shadow-l);
  animation: scaleIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo { font-size: 30px; letter-spacing: 4px; }
.auth-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; margin-bottom: 6px; color: var(--navy); }
.auth-card > p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-divider {
  text-align: center; color: var(--soft); font-size: 12px; margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 42%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ─── TABS ───────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; background: var(--off);
  border-radius: 10px; padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: 9px; border-radius: 7px; border: none;
  background: none; color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.tab-btn.active {
  background: var(--white); color: var(--blue);
  box-shadow: 0 2px 8px rgba(20,56,204,.12);
}

/* ─── SERVICE CUSTOM DROPDOWN ────────────────────────────── */
.svc-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  max-height: 280px;
  overflow-y: auto;
  z-index: 200;
  overscroll-behavior: contain;
}
.svc-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.svc-item:last-child { border-bottom: none; }
.svc-item:hover { background: var(--blue-xs); }
.svc-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  margin-bottom: 4px;
}
.svc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.svc-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-xs);
  padding: 2px 7px;
  border-radius: 20px;
}
.svc-range {
  font-size: 11px;
  color: var(--muted);
}
.svc-no-result {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ─── ORDER FORM ─────────────────────────────────────────── */
.service-info-box {
  background: var(--off); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-size: 13px;
}
.service-info-box .info-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.service-info-box .info-row:last-child { margin-bottom: 0; }
.service-info-box .info-label { color: var(--muted); }
.service-info-box .info-val { font-weight: 700; color: var(--navy); }

.order-total {
  background: var(--blue-xs); border: 1.5px solid var(--border2);
  border-radius: 10px; padding: 18px; margin: 16px 0; text-align: center;
}
.order-total .total-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.order-total .total-amount { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 1px; color: var(--blue); }

/* ─── BENEFITS ───────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: box-shadow .2s, transform .2s;
  animation: fadeUp .5s both;
}
.benefit-card:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); }
.benefit-icon {
  width: 52px; height: 52px;
  background: var(--blue-xs);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.benefit-card p  { font-size: 13px; color: var(--muted); line-height: 1.7; }
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.step-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  animation: fadeUp .5s both;
}
.step-card:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); }
.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--blue-xs);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.step-link { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.step-link:hover { text-decoration: underline; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
  animation: fadeUp .5s both;
}
.testimonial-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.testi-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.testi-loc  { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps-grid        { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── UPLOAD AREA ────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--off);
}
.upload-area:hover { border-color: var(--blue); background: var(--blue-xs); }
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width .3s;
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ─── CATALOG INPUTS ─────────────────────────────────────── */
.catalog-input {
  width: 100%;
  padding: 5px 9px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  background: var(--white);
  transition: border-color .15s;
}
.catalog-input:focus { border-color: var(--blue); }

/* ─── MISC UTILITIES ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.ml-auto { margin-left: auto; }

/* ─── SPINNER ────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: inline-block; vertical-align: middle;
}

/* ─── LOADING OVERLAY ────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; flex-direction: column; gap: 20px;
  transition: opacity .4s;
}
.loading-overlay .logo { font-size: 34px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 4px; }
.loading-overlay .logo span { color: var(--blue); }

/* ─── TOAST ──────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  font-size: 14px; max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-m);
  animation: slideIn .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--blue); }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; text-align: center;
  transition: all .25s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0;
}
.pricing-card.featured {
  border-color: var(--blue); box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}
.pricing-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-l));
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--shadow-l); }
.pricing-card.featured:hover { transform: translateY(-8px); }

.pricing-tier-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px;
}
.pricing-amount { margin-bottom: 4px; }
.pricing-from { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.price-val { font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 1px; line-height: 1; }

.pricing-credit-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 0 16px; flex-wrap: wrap;
}
.pricing-credit-you { font-size: 14px; color: var(--navy); font-weight: 600; }
.pricing-bonus-tag {
  background: rgba(20,56,204,.1); color: var(--blue);
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 2px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.pricing-divider { height: 1px; background: var(--border); margin: 16px 0; }

.price-list {
  list-style: none; text-align: left; margin-bottom: 24px; flex: 1;
}
.price-list li {
  padding: 7px 0; font-size: 13px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.price-list li::before {
  content: '';
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231438cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--navy);
  text-align: left; padding: 18px 0; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Sans', sans-serif; transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-a { padding-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; display: none; animation: fadeUp .2s ease; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform .25s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-l); }
  .main-content { margin-left: 0 !important; }
  .hamburger { display: flex !important; }
  .landing-nav { padding: 14px 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 12px 20px; }
  /* overlay when sidebar open */
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(12,20,69,.4); z-index: 99;
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar-right .balance-chip span:not(#balance-display):not(#provider-balance) { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .stats-bar { gap: 20px; padding: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 22px; }
  .page { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size: 16px; }
  .hero h1 { font-size: 48px; }
  .cta-section { padding: 60px 20px; }
  /* Tables: allow horizontal scroll, clip long text */
  td { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-wrap { border-radius: 0; }
}

/* sidebar backdrop (JS adds this class) */
.sidebar-backdrop { display: none; }
