:root {
  --primary: #164ed0;
  --primary-hover: #1240ab;
  --primary-soft: #e8edfa;
  --primary-light: #f2f5ff;
  --green: #16a34a;
  --green-dark: #004f44;
  --orange: #fd7d00;
  --pink: #f13870;
  --ink: #202223;
  --muted: #707178;
  --line: #e4e6eb;
  --surface: #ffffff;
  --background: #f7f8fa;
  --shadow: 0 2px 8px rgba(30, 35, 50, 0.06), 0 1px 2px rgba(30, 35, 50, 0.04);
  --shadow-lg: 0 16px 40px rgba(26, 39, 73, 0.13);
  --radius: 16px;
  --sidebar: 260px;
  --rail: 340px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--background);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #005749;
}

.login-page::before {
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 106%;
  height: 83%;
  content: "";
  border: 1px solid rgba(18, 205, 151, .17);
  border-radius: 50%;
  box-shadow: 0 -165px 0 rgba(0, 55, 48, .13), 0 -330px 0 rgba(0, 55, 48, .1);
  transform: rotate(-5deg);
}

.login-lines {
  position: absolute;
  inset: 45% -5% -15%;
  opacity: .22;
  background: repeating-linear-gradient(115deg, transparent 0, transparent 175px, #42d392 176px, transparent 177px);
}

.login-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1212px,calc(100% - 64px));
  min-height: 100vh;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 84px;
  margin: auto;
  padding: 110px 0 70px;
}

.login-top {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: max(32px,calc((100vw - 1212px)/2));
  left: max(32px,calc((100vw - 1212px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  font: 700 27px/1 Montserrat,sans-serif;
  letter-spacing: -.7px;
}

.login-logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg,#16a34a,#00705e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.login-logo svg { width: 24px; }

.language-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: #282a30;
  border: 0;
  border-radius: 25px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.language-button svg { width: 18px; }

.login-hero { max-width: 660px; padding-top: 14px; }
.login-kicker { margin: 0 0 7px; font-size: 27px; font-weight: 750; line-height: 1.3; letter-spacing: -.7px; }
.login-title { margin: 0 0 28px; color: #00dc68; font: 800 clamp(44px,4.1vw,62px)/1.08 Montserrat,sans-serif; letter-spacing: -2.5px; text-transform: uppercase; }
.login-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.login-pill { display: inline-flex; min-height: 41px; align-items: center; gap: 10px; padding: 0 17px; border: 1px solid #00a986; border-radius: 30px; font-size: 12px; font-weight: 650; }
.login-pill i { display: grid; width: 19px; height: 19px; place-items: center; color: #00e06e; border: 2px solid currentColor; border-radius: 50%; }
.login-pill svg { width: 12px; }

.login-card {
  position: relative;
  width: 440px;
  padding: 39px 40px 40px;
  color: #262932;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(0,40,32,.18);
}
.login-card-logo { display: grid; width: 48px; height: 48px; margin: 0 auto 27px; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(145deg,#16a34a,#006854); }
.login-card-logo svg { width: 29px; }
.login-card h1 { margin: 0 0 12px; font: 800 29px/1.2 Montserrat,sans-serif; letter-spacing: -1px; }
.login-card-copy { margin: 0 0 24px; color: #565d6c; font-size: 14px; }
.login-card-copy strong { color: #2d3038; }
.login-back { display: inline-flex; align-items: center; gap: 4px; margin: -5px 0 14px; padding: 0; color: #687080; border: 0; background: transparent; font-size: 10px; font-weight: 700; }
.login-back:hover { color: #128a41; }
.login-back svg { width: 14px; transform: rotate(180deg); }
.login-field { width: 100%; height: 45px; padding: 0 12px; color: #24272e; border: 1px solid #d7d9dd; border-radius: 9px; background: #fff; font-size: 12px; }
.login-field + .login-field { margin-top: 10px; }
.login-field:focus { border-color: #13a853; box-shadow: 0 0 0 3px rgba(19,168,83,.1); }
.login-error { min-height: 19px; padding: 4px 2px 0; color: #cf3c32; font-size: 10px; }
.login-error.success { color: #11883f; }
.login-primary { width: 100%; height: 46px; color: #fff; border: 0; border-radius: 8px; background: #16a84d; font-size: 12px; font-weight: 750; transition: .18s; }
.login-primary:hover { background: #118e40; }
.login-primary:disabled { cursor: wait; opacity: .65; }
.password-hint { margin: 7px 2px 0; color: #898e98; font-size: 9px; }
.forgot-button { display:block; margin:9px 2px 0 auto; padding:0; color:#118a40; border:0; background:transparent; font-size:10px; font-weight:750; }
.otp-input { height:54px; text-align:center; font-size:22px; font-weight:800; letter-spacing:.35em; }
.otp-note { margin:0 0 13px; padding:10px 12px; color:#7a5200; border:1px solid #f1d89d; border-radius:10px; background:#fff8e8; font-size:10px; text-align:center; }
.resend-row { display:flex; justify-content:center; margin-top:12px; color:#858a94; font-size:9px; }
.resend-row button { margin-left:4px; padding:0; color:#118a40; border:0; background:transparent; font-size:9px; font-weight:750; }
.social-logins { display: flex; flex-direction: column; gap: 11px; margin-top: 23px; }
.social-login { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 12px; color: #343741; border: 2px solid #e1e3e7; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; }
.social-login:hover { border-color: #bfc4cb; background: #fafafa; }
.social-icon { display: grid; width: 20px; height: 20px; place-items: center; font-size: 18px; font-weight: 900; }
.social-icon.google { color: #4285f4; font-family: Arial,sans-serif; }
.social-icon.apple { color: #000; font-size: 21px; }
.login-arrow { position: absolute; z-index: -1; bottom: 31px; left: -243px; width: 250px; height: 160px; overflow: visible; pointer-events: none; }
.login-arrow path { fill: none; stroke: #ffad2f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.login-safe { margin: 20px 0 0; color: #8c9099; font-size: 9px; text-align: center; }

.admin-login-page { position:relative; min-height:100vh; overflow:hidden; color:#eaf0ff; background:radial-gradient(circle at 18% 18%,#183d79 0,transparent 34%),linear-gradient(135deg,#08162f 0%,#10254f 54%,#07142b 100%); }
.admin-login-page::before { position:absolute; inset:0; content:""; opacity:.22; background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size:52px 52px; mask-image:linear-gradient(to bottom,#000,transparent 80%); }
.admin-login-glow { position:absolute; right:-180px; bottom:-280px; width:700px; height:700px; border-radius:50%; background:rgba(35,102,255,.16); filter:blur(10px); }
.admin-login-header { position:relative; z-index:2; display:flex; width:min(1160px,calc(100% - 48px)); height:88px; align-items:center; justify-content:space-between; margin:auto; border-bottom:1px solid rgba(255,255,255,.1); }
.admin-login-brand { display:flex; align-items:center; gap:12px; color:#fff; font:800 19px Montserrat,sans-serif; text-decoration:none; }
.admin-login-brand .login-logo { display:grid; width:40px; height:40px; place-items:center; color:#fff; border-radius:12px; background:#2463eb; }
.admin-login-brand small { display:block; margin-top:3px; color:#91a5cb; font:600 8px Inter,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.admin-login-language { display:flex; height:36px; align-items:center; gap:8px; padding:0 13px; color:#d7e1f5; border:1px solid rgba(255,255,255,.18); border-radius:9px; background:rgba(255,255,255,.06); font-size:10px; font-weight:700; }
.admin-login-language svg { width:15px; }
.admin-login-main { position:relative; z-index:1; display:grid; width:min(1040px,calc(100% - 48px)); min-height:calc(100vh - 150px); grid-template-columns:1fr 410px; align-items:center; gap:100px; margin:auto; padding:55px 0 75px; }
.admin-login-badge { display:inline-flex; align-items:center; gap:8px; margin-bottom:22px; color:#8fb4ff; font-size:9px; font-weight:800; letter-spacing:.16em; }
.admin-login-badge svg { width:17px; }
.admin-login-intro h1 { margin:0; color:#fff; font:800 clamp(38px,4vw,58px)/1.08 Montserrat,sans-serif; letter-spacing:-2.5px; }
.admin-login-intro h1 em { color:#5d91ff; font-style:normal; }
.admin-login-intro>p { max-width:470px; margin:24px 0 34px; color:#9eafce; font-size:14px; line-height:1.7; }
.admin-login-feature { display:flex; align-items:center; gap:13px; color:#b8c7e2; }
.admin-login-feature>svg { width:19px; color:#68e0aa; }
.admin-login-feature strong,.admin-login-feature small { display:block; }
.admin-login-feature strong { color:#e6edfb; font-size:11px; }
.admin-login-feature small { margin-top:4px; color:#7f93b8; font-size:9px; }
.admin-login-card { padding:38px 36px 32px; color:#1b2944; border:1px solid rgba(255,255,255,.55); border-radius:22px; background:rgba(255,255,255,.97); box-shadow:0 30px 80px rgba(0,0,0,.3); }
.admin-login-card-icon { display:grid; width:48px; height:48px; place-items:center; margin-bottom:22px; color:#fff; border-radius:14px; background:#164ed0; box-shadow:0 10px 24px rgba(22,78,208,.25); }
.admin-login-card-icon svg { width:23px; }
.admin-login-card h2 { margin:0 0 8px; font:800 25px Montserrat,sans-serif; letter-spacing:-.8px; }
.admin-login-card>p { margin:0 0 25px; color:#73809a; font-size:11px; }
.admin-login-card label { display:block; margin:13px 0 7px; color:#35425b; font-size:9px; font-weight:750; }
.admin-login-card .login-field { height:48px; border-color:#d9deea; }
.admin-login-card .login-field+.login-field { margin-top:0; }
.admin-password-wrap { position:relative; }
.admin-password-wrap .login-field { padding-right:58px; }
.admin-password-wrap button { position:absolute; top:50%; right:8px; height:32px; padding:0 9px; color:#164ed0; border:0; border-radius:7px; background:#edf2ff; font-size:9px; font-weight:800; transform:translateY(-50%); }
.admin-password-count { margin:5px 2px 0; color:#8793aa; font-size:8px; text-align:right; }
.admin-login-submit { display:flex; width:100%; height:48px; align-items:center; justify-content:center; gap:8px; color:#fff; border:0; border-radius:10px; background:#164ed0; font-size:11px; font-weight:800; box-shadow:0 8px 18px rgba(22,78,208,.22); }
.admin-login-submit:hover { background:#103eae; }
.admin-login-submit:disabled { opacity:.65; }
.admin-login-submit svg { width:15px; }
.admin-login-user-link { display:block; margin-top:20px; color:#687895; font-size:9px; font-weight:700; text-align:center; text-decoration:none; }
.admin-login-user-link:hover { color:#164ed0; }
.admin-login-footer { position:absolute; z-index:2; bottom:24px; left:0; width:100%; color:#657ba4; font-size:8px; text-align:center; }
@media (max-width:800px) { .admin-login-main { grid-template-columns:1fr; gap:38px; padding-top:45px; } .admin-login-intro { text-align:center; } .admin-login-intro>p { margin-right:auto; margin-left:auto; } .admin-login-feature { justify-content:center; } .admin-login-card { width:min(410px,100%); margin:auto; } .admin-login-footer { position:relative; bottom:auto; padding:0 0 24px; } }
@media (max-width:480px) { .admin-login-header { width:calc(100% - 28px); height:72px; } .admin-login-main { width:calc(100% - 28px); padding:34px 0; } .admin-login-intro h1 { font-size:35px; letter-spacing:-1.5px; } .admin-login-card { padding:28px 22px; border-radius:18px; } }

@media (max-width: 960px) {
  .login-shell { width: min(700px,calc(100% - 38px)); grid-template-columns: 1fr; gap: 35px; padding-top: 120px; }
  .login-hero { margin: 0 auto; text-align: center; }
  .login-kicker { font-size: 21px; }
  .login-title { font-size: 46px; }
  .login-pills { justify-content: center; }
  .login-card { margin: 0 auto; }
  .login-arrow { display: none; }
}

@media (max-width: 520px) {
  .login-page { background: #005749; }
  .login-top { top: 20px; right: 18px; left: 18px; }
  .login-brand { font-size: 20px; }
  .login-logo { width: 32px; height: 32px; }
  .language-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .login-shell { width: 100%; display: block; padding: 89px 14px 32px; }
  .login-hero { padding: 24px 6px 31px; text-align: left; }
  .login-kicker { font-size: 17px; }
  .login-title { margin-bottom: 18px; font-size: 34px; letter-spacing: -1.4px; }
  .login-pills { justify-content: flex-start; gap: 7px; }
  .login-pill { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .login-card { width: 100%; padding: 27px 22px 28px; border-radius: 21px; }
  .login-card-logo { width: 42px; height: 42px; margin-bottom: 19px; }
  .login-card h1 { font-size: 24px; }
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }

.live-ticker {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: 34px;
  overflow: hidden;
  color: #fff;
  background: #0d347f;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.ticker-track {
  display: flex;
  width: max-content;
  height: 34px;
  align-items: center;
  gap: 56px;
  animation: ticker 38s linear infinite;
  will-change: transform;
}

.live-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: #42e37d; box-shadow: 0 0 0 4px rgba(66,227,125,.16); }
.ticker-label { opacity: .6; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

@keyframes ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.sidebar {
  position: fixed;
  z-index: 60;
  top: 34px;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 24px 16px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 10px 30px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 800 20px/1 Montserrat, sans-serif;
  letter-spacing: -.7px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(22,78,208,.25);
}

.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: -11px;
  width: 28px;
  height: 28px;
  content: "";
  border-radius: 50%;
  background: #42d392;
  opacity: .8;
}

.brand-mark svg { position: relative; z-index: 1; width: 20px; }
.brand em { color: var(--primary); font-style: normal; }

.nav-label {
  margin: 0 12px 9px;
  color: #a0a2aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-spacer { height: 22px; }

.nav-item {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #62646b;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: .18s ease;
}

.nav-item:hover { color: var(--primary); background: #f4f6fb; }
.nav-item.active { color: var(--primary); background: var(--primary-soft); }
.nav-item.active::before { position: absolute; left: -16px; width: 4px; height: 25px; content: ""; border-radius: 0 5px 5px 0; background: var(--primary); }
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item .badge { margin-left: auto; }
.badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; color: #fff; border-radius: 20px; background: var(--pink); font-size: 10px; font-weight: 800; }

.sidebar-footer { margin-top: auto; }
.help-card { padding: 15px; border: 1px solid #cfdafd; border-radius: 16px; background: linear-gradient(145deg,#f5f7ff,#edf2ff); }
.help-icon { display: grid; width: 32px; height: 32px; margin-bottom: 9px; place-items: center; color: var(--primary); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.help-card strong { display: block; margin-bottom: 3px; font-size: 12px; }
.help-card p { margin: 0 0 11px; color: var(--muted); font-size: 10px; }
.text-button { padding: 0; color: var(--primary); border: 0; background: none; font-size: 11px; font-weight: 750; }

.right-rail {
  position: fixed;
  z-index: 40;
  top: 34px;
  right: 0;
  bottom: 0;
  width: var(--rail);
  overflow-y: auto;
  padding: 24px 20px;
  background: #f1f3f6;
  border-left: 1px solid var(--line);
}

.user-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.avatar { position: relative; display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(145deg,#164ed0,#7f9fea); font-size: 13px; font-weight: 800; }
.avatar-status { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid #f1f3f6; border-radius: 50%; background: #20c866; }
.user-copy strong { display: block; font-size: 12px; }
.user-copy span { color: var(--muted); font-size: 10px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; color: #606168; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: .18s; }
.icon-button:hover { color: var(--primary); border-color: #c2cef2; }
.icon-button svg { width: 18px; }

.balance-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 20px;
  color: #fff;
  border-radius: 19px;
  background: linear-gradient(120deg,#063f82 0%,#164ed0 55%,#477be7 100%);
  box-shadow: 0 13px 30px rgba(22,78,208,.18);
}

.balance-card::before, .balance-card::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.balance-card::before { top: -70px; right: -35px; width: 180px; height: 180px; }
.balance-card::after { right: 38px; bottom: -85px; width: 130px; height: 130px; }
.balance-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { color: inherit; opacity: .7; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.balance-value { margin: 5px 0 13px; font: 800 30px/1.2 Montserrat, sans-serif; letter-spacing: -1px; }
.balance-value small { font-size: 15px; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 20px; background: rgba(255,255,255,.14); font-size: 9px; font-weight: 700; }
.balance-actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.balance-actions .button { flex: 1; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; color: #fff; border: 0; border-radius: 30px; background: var(--primary); font-size: 12px; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--primary-hover); box-shadow: 0 8px 20px rgba(22,78,208,.18); }
.button:active { transform: translateY(0); }
.button.secondary { color: var(--primary); border: 1px solid #cdd8f7; background: #fff; }
.button.secondary:hover { background: var(--primary-light); box-shadow: none; }
.button.ghost { color: inherit; background: rgba(255,255,255,.14); }
.button.ghost:hover { background: rgba(255,255,255,.22); box-shadow: none; }
.button.light { color: var(--primary); background: #fff; }
.button.small { min-height: 34px; padding: 0 13px; font-size: 11px; }
.button.full { width: 100%; }
.button svg { width: 17px; height: 17px; }

.rail-card { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-heading h3 { margin: 0; font: 750 13px/1.3 Inter, sans-serif; }
.card-heading button { color: var(--primary); border: 0; background: none; font-size: 10px; font-weight: 700; }
.stat-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f1f3; }
.stat-row:first-of-type { padding-top: 0; border-top: 0; }
.stat-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: var(--primary); border-radius: 10px; background: var(--primary-soft); }
.stat-icon.green { color: var(--green); background: #eaf8ef; }
.stat-icon.orange { color: var(--orange); background: #fff2e5; }
.stat-icon svg { width: 17px; }
.stat-copy { min-width: 0; flex: 1; }
.stat-copy span { display: block; color: var(--muted); font-size: 9px; }
.stat-copy strong { font-size: 12px; }
.stat-trend { color: var(--green); font-size: 9px; font-weight: 750; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #f0f1f3; }
.activity-item:first-child { padding-top: 0; border-top: 0; }
.country-flag { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 9px; background: #f2f4f8; font-size: 16px; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy span { color: var(--muted); font-size: 9px; }
.activity-amount { color: var(--green); font-size: 11px; font-weight: 800; }

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar);
  margin-right: var(--rail);
  padding: 61px 28px 38px;
}

.page { width: 100%; max-width: 820px; margin: 0 auto; animation: pageIn .28s ease; }
.site-header-message { max-width:820px; margin:0 auto 12px; padding:10px 14px; color:#385382; border:1px solid #cfdbfb; border-radius:12px; background:#f0f4ff; font-size:10px; text-align:center; }
.app-footer { max-width:820px; margin:28px auto 0; padding:16px; color:var(--muted); font-size:9px; text-align:center; border-top:1px solid var(--line); }
.brand-mark img,.login-logo img,.login-card-logo img { width:100%; height:100%; object-fit:contain; border-radius:inherit; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.mobile-header { display: none; }
.mobile-nav { display: none; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 5px; font: 800 25px/1.2 Montserrat, sans-serif; letter-spacing: -.65px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; align-items: center; gap: 9px; }

.welcome-card {
  position: relative;
  display: flex;
  min-height: 164px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 26px 30px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(125deg,#202223 0%,#073f72 48%,#047857 105%);
  box-shadow: var(--shadow);
}

.welcome-card::before { position: absolute; top: -80px; right: 75px; width: 260px; height: 260px; content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.welcome-card::after { position: absolute; right: -70px; bottom: -145px; width: 290px; height: 290px; content: ""; border: 65px solid rgba(67,218,160,.09); border-radius: 50%; }
.welcome-copy { position: relative; z-index: 1; max-width: 460px; }
.welcome-copy .eyebrow { color: #70e6ad; opacity: 1; }
.welcome-copy h2 { margin: 6px 0 8px; font: 800 23px/1.25 Montserrat,sans-serif; letter-spacing: -.5px; }
.welcome-copy p { max-width: 390px; margin: 0 0 18px; color: rgba(255,255,255,.7); font-size: 11px; }
.welcome-art { position: relative; z-index: 1; display: grid; width: 130px; height: 110px; place-items: center; }
.coin { position: absolute; display: grid; place-items: center; color: #76520a; border: 3px solid #f0bd3e; border-radius: 50%; background: linear-gradient(145deg,#ffe88f,#f6b822); box-shadow: 0 10px 25px rgba(0,0,0,.18); font-weight: 900; }
.coin.big { width: 77px; height: 77px; font-size: 25px; transform: rotate(-9deg); }
.coin.small-a { top: 0; right: 2px; width: 37px; height: 37px; font-size: 14px; transform: rotate(15deg); }
.coin.small-b { bottom: 0; left: 2px; width: 30px; height: 30px; font-size: 11px; transform: rotate(-20deg); }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 25px 1px 12px; }
.section-heading h2 { margin: 0; font: 750 15px/1.3 Inter,sans-serif; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.section-heading button { color: var(--primary); border: 0; background: none; font-size: 11px; font-weight: 750; }

.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.quick-card { position: relative; min-height: 116px; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: .2s ease; }
.quick-card:hover { transform: translateY(-3px); border-color: #c7d2f2; box-shadow: 0 10px 25px rgba(31,42,68,.09); }
.quick-card .quick-icon { display: grid; width: 38px; height: 38px; margin-bottom: 15px; place-items: center; color: var(--primary); border-radius: 11px; background: var(--primary-soft); }
.quick-card:nth-child(2) .quick-icon { color: var(--green); background: #eaf8ef; }
.quick-card:nth-child(3) .quick-icon { color: var(--orange); background: #fff3e7; }
.quick-icon svg { width: 19px; }
.quick-card strong { display: block; font-size: 12px; }
.quick-card span { color: var(--muted); font-size: 9px; }
.quick-arrow { position: absolute; top: 18px; right: 16px; color: #a7aab2; }
.quick-arrow svg { width: 16px; }

.survey-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.survey-card { display: flex; min-height: 121px; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: .18s ease; }
.survey-card:hover { border-color: #bdcaf0; box-shadow: 0 9px 24px rgba(30,45,80,.08); }
.survey-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.provider-logo { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 11px; font-size: 11px; font-weight: 900; letter-spacing: -.4px; }
.provider-logo.cpx { background: linear-gradient(145deg,#5f45df,#8b77f2); }
.provider-logo.bit { background: linear-gradient(145deg,#01a06a,#4fc893); }
.provider-logo.cint { background: linear-gradient(145deg,#f25d32,#ff9272); }
.survey-reward { text-align: right; }
.survey-reward strong { display: block; color: var(--green); font-size: 15px; }
.survey-reward span { color: var(--muted); font-size: 9px; }
.survey-title { margin: 12px 0 9px; font-size: 12px; font-weight: 700; }
.survey-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.meta-group { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.meta-item svg { width: 13px; }
.match { padding: 4px 7px; color: #087b3d; border-radius: 10px; background: #e7f7ed; font-size: 8px; font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.filter-chip { min-height: 34px; padding: 0 14px; color: #666870; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-size: 10px; font-weight: 700; }
.filter-chip.active { color: var(--primary); border-color: #bdcaf0; background: var(--primary-soft); }

.info-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding: 14px 16px; color: #385382; border: 1px solid #cfdbfb; border-radius: 14px; background: #f0f4ff; font-size: 10px; }
.info-strip svg { width: 20px; flex: none; color: var(--primary); }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card { display: grid; min-width: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.task-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--primary); border-radius: 14px; background: var(--primary-soft); }
.task-icon svg { width: 22px; }
.task-copy { min-width: 0; }
.task-copy h3 { margin: 0 0 4px; font-size: 12px; }
.task-copy p { margin: 0 0 8px; color: var(--muted); font-size: 9px; }
.task-meta { display: flex; gap: 12px; color: #8a8c93; font-size: 9px; }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task-meta svg { width: 13px; height: 13px; }
.task-side { min-width: 98px; text-align: right; }
.task-side strong { display: block; margin-bottom: 8px; color: var(--green); font-size: 15px; }

.leader-podium { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 12px; margin: 31px 0 20px; }
.podium-card { position: relative; padding: 20px 12px 16px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.podium-card.first { min-height: 156px; border-color: #ebca69; background: linear-gradient(180deg,#fff9e8,#fff); }
.podium-rank { position: absolute; top: -16px; left: 50%; display: grid; width: 32px; height: 32px; place-items: center; color: #fff; border: 3px solid #fff; border-radius: 50%; background: #9599a4; box-shadow: var(--shadow); transform: translateX(-50%); font-size: 11px; font-weight: 800; }
.first .podium-rank { background: #e8aa17; }
.third .podium-rank { background: #bc7143; }
.podium-avatar { display: grid; width: 46px; height: 46px; margin: 7px auto 9px; place-items: center; color: var(--primary); border-radius: 50%; background: var(--primary-soft); font-weight: 800; }
.podium-card strong { display: block; font-size: 11px; }
.podium-card .amount { margin-top: 5px; color: var(--green); font: 800 17px Montserrat,sans-serif; }
.podium-card span { color: var(--muted); font-size: 9px; }

.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 30px; background: #fff; }
.tab { min-height: 33px; padding: 0 14px; color: var(--muted); border: 0; border-radius: 25px; background: transparent; font-size: 10px; font-weight: 750; }
.tab.active { color: #fff; background: var(--primary); }

.data-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; color: #93959c; background: #fafbfc; font-size: 9px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { padding: 13px 16px; border-top: 1px solid #f0f1f3; font-size: 10px; }
.data-table tr:hover td { background: #fbfcff; }
.rank-number { display: inline-grid; width: 24px; height: 24px; place-items: center; color: #777982; border-radius: 8px; background: #f2f3f6; font-weight: 800; }
.table-user { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.table-avatar { display: grid; width: 29px; height: 29px; place-items: center; color: var(--primary); border-radius: 50%; background: var(--primary-soft); font-size: 9px; font-weight: 800; }
.amount-positive { color: var(--green); font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 800; }
.status.pending { color: #9a5a00; background: #fff2db; }
.status.paid { color: #087c3d; background: #e6f7ed; }
.status.review { color: var(--primary); background: var(--primary-soft); }
.status::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }

.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.form-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-card.full-span { grid-column: 1 / -1; }
.form-title { margin: 0 0 4px; font-size: 13px; }
.form-subtitle { margin: 0 0 17px; color: var(--muted); font-size: 9px; }
.form-group { margin-bottom: 13px; }
.form-group label { display: block; margin: 0 0 6px; color: #55575e; font-size: 9px; font-weight: 750; }
.field { width: 100%; height: 42px; padding: 0 13px; color: var(--ink); border: 1px solid #dfe1e6; border-radius: 11px; background: #fafbfc; font-size: 11px; transition: .18s; }
.field:focus { border-color: #8ba7e8; background: #fff; box-shadow: 0 0 0 3px rgba(22,78,208,.08); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #f0f1f3; }
.toggle-row:first-of-type { padding-top: 0; border-top: 0; }
.toggle-copy strong { display: block; font-size: 10px; }
.toggle-copy span { color: var(--muted); font-size: 9px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; border: 0; border-radius: 20px; background: #d3d5da; transition: .2s; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(17px); }

.referral-hero { position: relative; overflow: hidden; margin-bottom: 18px; padding: 26px; color: #fff; border-radius: 20px; background: linear-gradient(125deg,#30323a,#164ed0); }
.referral-hero::after { position: absolute; top: -70px; right: -40px; width: 210px; height: 210px; content: ""; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.referral-hero > * { position: relative; z-index: 1; }
.referral-hero h2 { margin: 5px 0 7px; font: 800 22px Montserrat,sans-serif; }
.referral-hero p { max-width: 480px; margin: 0 0 18px; color: rgba(255,255,255,.7); font-size: 10px; }
.referral-link { display: flex; max-width: 520px; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.11); }
.referral-link code { min-width: 0; flex: 1; overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 9px; }
.metric-card strong { display: block; margin-top: 5px; font: 800 19px Montserrat,sans-serif; }
.metric-card small { color: var(--green); font-size: 8px; font-weight: 750; }

.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 18px; }
.admin-panel { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.admin-panel h2 { margin: 0 0 3px; font-size: 13px; }
.admin-panel > p { margin: 0 0 15px; color: var(--muted); font-size: 9px; }
.fraud-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0f1f3; }
.fraud-item:first-of-type { padding-top: 0; border-top: 0; }
.fraud-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: #bd4300; border-radius: 10px; background: #fff0e8; }
.fraud-icon svg { width: 17px; }
.fraud-copy { min-width: 0; flex: 1; }
.fraud-copy strong { display: block; font-size: 10px; }
.fraud-copy span { color: var(--muted); font-size: 8px; }
.risk { color: #c84417; font-size: 8px; font-weight: 800; }
.admin-tabs { display:flex; gap:7px; overflow-x:auto; margin:0 0 17px; padding:4px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.admin-portal { min-height:100vh; background:#f5f7fa; }
.admin-portal-header { position:sticky; z-index:50; top:0; display:flex; height:70px; align-items:center; justify-content:space-between; padding:0 max(24px,calc((100vw - 1240px)/2)); color:#fff; background:#10254f; box-shadow:0 3px 16px rgba(16,37,79,.16); }
.admin-portal-brand { display:flex; align-items:center; gap:11px; font:800 18px Montserrat,sans-serif; }
.admin-portal-brand img { width:38px; height:38px; object-fit:contain; border-radius:10px; }
.admin-portal-brand small { display:block; margin-top:3px; color:#aebcda; font:600 8px Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.admin-portal-user { display:flex; align-items:center; gap:12px; }
.admin-language-switch { display:flex; height:34px; align-items:center; gap:3px; padding:3px; color:#fff; border:1px solid rgba(255,255,255,.24); border-radius:9px; background:rgba(255,255,255,.08); }
.admin-language-switch > svg { width:14px; height:14px; margin:0 4px; }
.admin-language-switch button { height:26px; padding:0 9px; color:#cbd5e8; border:0; border-radius:6px; background:transparent; font:700 9px Inter,sans-serif; cursor:pointer; }
.admin-language-switch button:hover { color:#fff; background:rgba(255,255,255,.1); }
.admin-language-switch button.active { color:#10254f; background:#fff; box-shadow:0 2px 7px rgba(0,0,0,.12); }
.admin-portal-user-copy { text-align:right; }
.admin-portal-user-copy strong { display:block; font-size:11px; }
.admin-portal-user-copy span { color:#aebcda; font-size:8px; }
.admin-portal-content { width:min(1240px,calc(100% - 40px)); margin:0 auto; padding:28px 0 48px; }
.admin-portal-content .page { max-width:none; }
.admin-portal .page-header { margin-bottom:18px; }
.admin-portal .admin-tabs { position:sticky; z-index:30; top:82px; box-shadow:var(--shadow); }
.admin-tab { min-height:36px; flex:none; padding:0 13px; color:var(--muted); border:0; border-radius:10px; background:transparent; font-size:10px; font-weight:750; }
.admin-tab.active { color:#fff; background:var(--primary); }
.admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.admin-toolbar h2 { margin:0; font-size:15px; }
.admin-form { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); }
.admin-form .form-group { margin:0; }
.admin-form .full-span { grid-column:1/-1; }
.admin-form-actions { display:flex; align-items:flex-end; justify-content:flex-end; }
.provider-connect-head { display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.provider-connect-head h3,.provider-connect-head p { margin:0; }
.provider-connect-head h3 { font-size:13px; }
.provider-connect-head p { margin-top:4px; color:var(--muted); font-size:9px; }
.provider-connect-head .provider-pill { margin-left:auto; }
.provider-connect-logo { display:grid; width:46px; height:46px; place-items:center; color:#fff; border-radius:12px; background:linear-gradient(135deg,#ef6c35,#f59e0b); font:800 13px Montserrat,sans-serif; }
.earning-tabs { display:flex; gap:24px; margin:0 0 18px; border-bottom:1px solid var(--line); }
.earning-tabs button { padding:0 4px 12px; color:var(--muted); border:0; border-bottom:3px solid transparent; background:transparent; font-weight:750; }
.earning-tabs button.active { color:var(--text); border-bottom-color:#00845f; }
.earning-tabs span { margin-left:5px; padding:2px 7px; border-radius:10px; background:#dff4ed; color:#08765a; font-size:9px; }
.cpx-provider-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; padding:18px 20px; border:1px solid #cfe8df; border-radius:16px; background:linear-gradient(120deg,#f4fbf8,#fff); }
.cpx-provider-banner>div { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:3px 11px; }
.cpx-provider-banner .provider-logo { grid-row:1/3; }
.cpx-provider-banner strong { font-size:12px; }
.cpx-provider-banner p { margin:0; color:var(--muted); font-size:9px; }
.cpx-user-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cpx-user-card { padding:17px; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:var(--shadow); }
.cpx-user-card-top { display:flex; align-items:center; justify-content:space-between; }
.cpx-hot { padding:4px 7px; color:#9a5b00; border-radius:8px; background:#fff2d8; font-size:8px; font-weight:800; }
.cpx-user-time { margin:17px 0 8px; color:var(--muted); font-size:9px; }
.cpx-user-time svg { width:13px; vertical-align:middle; }
.cpx-user-reward { display:block; color:#07835f; font-size:24px; }
.cpx-user-reward small { color:var(--text); font-size:9px; }
.cpx-user-meta { display:flex; justify-content:space-between; min-height:28px; margin:12px 0; color:var(--muted); font-size:8px; }
.cpx-user-meta span:first-child { color:#c17b00; }
.cpx-loading { padding:70px 20px; color:var(--muted); text-align:center; }
.reward-modal { width:min(650px,calc(100% - 28px)); max-height:90vh; overflow:auto; border-radius:22px; }
.reward-modal .modal-header { justify-content:center; }
.reward-modal .modal-header h2 { font-size:16px; }
.reward-back { position:absolute; left:20px; color:var(--text); border:0; background:transparent; font-size:20px; }
.reward-picker { background:#fff; }
.reward-search { display:flex; height:45px; align-items:center; gap:8px; padding:0 13px; border:1px solid var(--line); border-radius:12px; font-size:20px; }
.reward-search input { width:100%; border:0; outline:0; font-size:12px; }
.reward-balance { display:flex; align-items:center; gap:9px; margin:12px 0; padding:14px 16px; color:#08765a; border-radius:12px; background:#e5f5ef; font-size:11px; }
.reward-group { margin-top:12px; padding:14px 16px 8px; border-radius:15px; background:#f5f6f8; }
.reward-group h3 { display:flex; align-items:center; gap:7px; margin:0 0 8px; font-size:12px; }
.reward-group h3 svg { width:19px; }
.reward-group h3 span { color:var(--muted); font-size:9px; }
.reward-option { display:grid; width:100%; min-height:62px; grid-template-columns:62px 1fr auto; align-items:center; padding:7px 2px; color:var(--text); border:0; background:transparent; text-align:left; }
.reward-option:hover { color:#075fd8; }
.reward-option strong { font-size:11px; }
.reward-option i { font-size:18px; font-style:normal; }
.reward-logo { display:grid; width:52px; height:38px; place-items:center; color:#fff; border-radius:8px; font-size:10px; font-weight:800; }
.reward-logo.paypal { background:#202027; font-style:italic; }
.reward-logo.crypto { background:#05a58a; font-size:20px; }
.reward-logo.bitcoin { background:#f7931a; font-size:20px; }
.reward-footer .button { width:100%; }
.selected-reward { display:flex; align-items:center; gap:13px; margin-bottom:20px; padding:14px; border-radius:13px; background:#f5f7fa; }
.selected-reward strong,.selected-reward span { display:block; }
.selected-reward strong { font-size:12px; }
.selected-reward div span { margin-top:4px; color:var(--muted); font-size:9px; }
.withdraw-summary { display:flex; align-items:center; justify-content:space-between; margin:15px 0; padding:15px; border:1px solid var(--line); border-radius:12px; }
.withdraw-summary span { color:var(--muted); font-size:10px; }
.withdraw-summary strong { color:#07835f; font-size:17px; }
@media (max-width:900px) { .cpx-user-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .cpx-user-grid { grid-template-columns:1fr; } .cpx-provider-banner { align-items:flex-start; flex-direction:column; } }
.admin-actions { display:flex; flex-wrap:wrap; gap:6px; }
.admin-table-wrap { overflow-x:auto; }
.admin-table-wrap .data-table { min-width:680px; }
.provider-pill { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:20px; background:#f1f3f6; font-size:8px; font-weight:800; }
.provider-pill.on { color:#087c3d; background:#e6f7ed; }
.withdrawal-detail { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:10px; padding:12px; border-radius:12px; background:#f7f8fa; }
.withdrawal-detail span { color:var(--muted); font-size:9px; }
.withdrawal-detail strong { display:block; margin-top:2px; font-size:10px; }
.evidence-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.evidence-grid img { width:90px; height:90px; object-fit:cover; border:1px solid var(--line); border-radius:10px; }
.config-section { margin-bottom:15px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); }
.config-section h3 { margin:0 0 4px; font-size:13px; }
.config-section > p { margin:0 0 14px; color:var(--muted); font-size:9px; }

.empty-state { padding: 45px 20px; text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 13px; place-items: center; color: var(--primary); border-radius: 17px; background: var(--primary-soft); }
.empty-state h3 { margin: 0 0 4px; font-size: 13px; }
.empty-state p { margin: 0 auto 14px; max-width: 330px; color: var(--muted); font-size: 10px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(20,22,28,.65); backdrop-filter: blur(3px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%,460px); overflow: hidden; border-radius: 21px; background: #fff; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(15px) scale(.98); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 14px; }
.modal-close { display: grid; width: 32px; height: 32px; place-items: center; color: #707178; border: 0; border-radius: 50%; background: #f2f3f5; }
.modal-body { padding: 21px; }
.modal-icon { display: grid; width: 60px; height: 60px; margin: 0 auto 13px; place-items: center; color: var(--primary); border-radius: 18px; background: var(--primary-soft); }
.modal-icon svg { width: 28px; }
.modal-body.center { text-align: center; }
.modal-body h3 { margin: 0 0 6px; font-size: 14px; }
.modal-body > p { margin: 0 0 17px; color: var(--muted); font-size: 10px; }
.step-list { margin: 0 0 18px; padding: 0; list-style: none; text-align: left; counter-reset: steps; }
.step-list li { position: relative; min-height: 31px; padding: 3px 0 8px 34px; color: #55575e; font-size: 10px; counter-increment: steps; }
.step-list li::before { position: absolute; top: 0; left: 0; display: grid; width: 23px; height: 23px; place-items: center; content: counter(steps); color: var(--primary); border-radius: 50%; background: var(--primary-soft); font-size: 9px; font-weight: 800; }
.modal-footer { display: flex; gap: 9px; padding: 15px 18px 18px; border-top: 1px solid var(--line); }
.modal-footer .button { flex: 1; }

.toast-root { position: fixed; z-index: 150; top: 50px; right: 18px; display: flex; width: min(340px,calc(100vw - 36px)); flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid #d8e0f6; border-radius: 13px; background: #fff; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; font-size: 10px; font-weight: 650; }
.toast.success { border-color: #ccebd7; }
.toast-icon { display: grid; width: 27px; height: 27px; place-items: center; color: var(--primary); border-radius: 50%; background: var(--primary-soft); }
.toast.success .toast-icon { color: var(--green); background: #e8f8ee; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

.demo-note { margin-top: 12px; color: #999ba2; font-size: 8px; text-align: center; }

@media (max-width: 1199px) {
  :root { --sidebar: 230px; --rail: 0px; }
  .right-rail { display: none; }
  .main-content { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 820px) {
  .live-ticker { top: 58px; }
  .ticker-track { height: 32px; }
  .sidebar { display: none; }
  .main-content { min-height: 100vh; margin: 0; padding: 112px 16px 94px; }
  .mobile-header { position: fixed; z-index: 75; top: 0; right: 0; left: 0; display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-header .brand { margin: 0; font-size: 18px; }
  .mobile-header .brand-mark { width: 31px; height: 31px; }
  .mobile-user { display: flex; align-items: center; gap: 8px; }
  .mobile-user strong { font-size: 10px; }
  .mobile-user span { display: block; color: var(--muted); font-size: 8px; }
  .mobile-user .avatar { width: 32px; height: 32px; font-size: 10px; }
  .mobile-nav { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: flex; height: calc(70px + env(safe-area-inset-bottom)); align-items: flex-start; justify-content: space-around; padding: 8px 7px env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-nav-item { display: flex; width: 20%; min-width: 56px; flex-direction: column; align-items: center; gap: 4px; padding: 4px; color: #85878e; border: 0; background: none; font-size: 8px; font-weight: 700; }
  .mobile-nav-item svg { width: 20px; height: 20px; }
  .mobile-nav-item.active { color: var(--primary); }
  .page { max-width: 670px; }
  .page-header { margin-bottom: 18px; }
  .page-heading h1 { font-size: 21px; }
  .welcome-card { padding: 22px; }
  .survey-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .main-content { padding-right: 13px; padding-left: 13px; }
  .page-header { align-items: center; }
  .page-heading h1 { font-size: 19px; }
  .page-heading p { font-size: 10px; }
  .page-actions .button.secondary { display: none; }
  .page-actions .button:not(.icon-button) { display: none; }
  .welcome-card { min-height: 172px; padding: 21px 18px; }
  .welcome-copy { max-width: calc(100% - 75px); }
  .welcome-copy h2 { font-size: 18px; }
  .welcome-copy p { font-size: 9px; }
  .welcome-art { width: 74px; transform: scale(.78); transform-origin: right center; }
  .quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .quick-card { min-height: 73px; padding: 13px; }
  .quick-card .quick-icon { float: left; margin: 0 12px 0 0; }
  .quick-card strong { padding-top: 4px; }
  .quick-arrow { top: 28px; }
  .survey-card { min-height: 119px; }
  .task-card { grid-template-columns: auto 1fr; }
  .task-side { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .task-side strong { margin: 0; }
  .leader-podium { gap: 6px; }
  .podium-card { padding-right: 5px; padding-left: 5px; }
  .podium-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .podium-card .amount { font-size: 13px; }
  .data-card { overflow-x: auto; }
  .data-table { min-width: 530px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card.full-span { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .metric-card { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }
  .metric-card strong { margin-left: auto; margin-right: 7px; }
  .referral-link { align-items: stretch; flex-direction: column; }
  .referral-link .button { width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-portal-header { height:62px; padding:0 14px; }
  .admin-portal-content { width:calc(100% - 24px); padding-top:16px; }
  .admin-portal-brand { font-size:15px; }
  .admin-portal-user-copy { display:none; }
  .admin-language-switch > svg { display:none; }
  .admin-language-switch button { padding:0 7px; font-size:0; }
  .admin-language-switch button::after { font-size:9px; }
  .admin-language-switch button[data-admin-language="vi"]::after { content:"VI"; }
  .admin-language-switch button[data-admin-language="en"]::after { content:"EN"; }
  .admin-portal .admin-tabs { top:70px; }
  .admin-form { grid-template-columns:1fr; }
  .admin-form .full-span { grid-column:auto; }
  .withdrawal-detail { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
