:root {
  --bg: #f4f7f5;
  --bg-soft: #eef3ef;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --surface-dark: #101216;
  --surface-dark-2: #191c22;
  --sidebar: #080a0d;
  --sidebar-soft: #15181d;
  --text: #111318;
  --text-soft: #6e7481;
  --text-faint: #9da3ae;
  --line: #e1e6e3;
  --line-strong: #d5dcd8;
  --green: #18dc55;
  --green-2: #72f23b;
  --green-dark: #08a83c;
  --green-soft: #e5fbed;
  --cyan: #25d9c8;
  --blue: #3d7cff;
  --blue-soft: #eaf1ff;
  --yellow: #ffb931;
  --yellow-soft: #fff6df;
  --danger: #f04a64;
  --danger-soft: #ffedf0;
  --purple: #8b6cf8;
  --shadow-sm: 0 8px 22px rgba(15, 22, 18, .06);
  --shadow-md: 0 18px 50px rgba(14, 23, 17, .10);
  --shadow-lg: 0 30px 90px rgba(5, 10, 7, .22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --sidebar-width: 268px;
  --topbar-height: 70px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: rgba(24, 220, 85, .25); }

/* Utilities */
.hidden { display: none !important; }
.muted { color: var(--text-soft); }
.text-green { color: var(--green-dark); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared buttons */
.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #071009;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 12px 24px rgba(24, 220, 85, .22);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(24, 220, 85, .28); }
.btn-dark { color: #fff; background: #111318; }
.btn-dark:hover { background: #1b1e24; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); }
.btn-outline:hover { border-color: #abb5ae; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-soft-green { color: #08732c; background: var(--green-soft); }
.btn-sm { min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 13px 22px; border-radius: 14px; }
.btn-icon { width: 42px; padding: 0; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

/* Forms */
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-group { display: grid; gap: 8px; }
.form-label { font-size: 13px; font-weight: 800; color: #353a42; }
.form-label small { color: var(--text-soft); font-weight: 600; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b929d;
  pointer-events: none;
}
.input-icon svg { width: 18px; height: 18px; }
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input, .select { height: 48px; padding: 0 14px; }
.input.has-icon { padding-left: 44px; }
.input.has-action { padding-right: 48px; }
.textarea { min-height: 120px; resize: vertical; padding: 13px 14px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(24, 220, 85, .10); }
.input::placeholder, .textarea::placeholder { color: #a2a8b2; }
.input-action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.input-action:hover { background: var(--bg-soft); color: var(--text); }
.input-action svg { width: 18px; height: 18px; }
.help-text { font-size: 12px; color: var(--text-soft); }
.error-text { display: none; font-size: 12px; color: var(--danger); font-weight: 700; }
.form-group.has-error .input,
.form-group.has-error .select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240, 74, 100, .08); }
.form-group.has-error .error-text { display: block; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-soft); }
.check-row input { margin-top: 3px; accent-color: var(--green-dark); }
.checkbox-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.checkbox-switch input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d5d9de; transition: var(--transition); }
.checkbox-switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: var(--transition); }
.checkbox-switch input:checked + span { background: var(--green); }
.checkbox-switch input:checked + span::after { transform: translateX(20px); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
  color: #4d535e;
  background: #f0f2f4;
}
.badge-green { color: #087c31; background: var(--green-soft); }
.badge-dark { color: #fff; background: #15171c; }
.badge-yellow { color: #8e5b00; background: var(--yellow-soft); }
.badge-red { color: #b4213c; background: var(--danger-soft); }
.badge-blue { color: #245ec4; background: var(--blue-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Public landing */
.public-body { background: #060807; color: #fff; }
.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 8, 7, .76);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.public-nav {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.public-brand { display: flex; align-items: center; gap: 12px; font-weight: 950; font-size: 20px; }
.public-brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.10); }
.public-brand strong { color: var(--green-2); }
.public-links { display: flex; gap: 28px; color: #c5cbc7; font-weight: 700; font-size: 14px; }
.public-links a:hover { color: #fff; }
.public-actions { display: flex; gap: 10px; }
.public-actions .btn-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.20); }
.public-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: center;
}
.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(41, 255, 90, .18), transparent 29%),
    radial-gradient(circle at 22% 64%, rgba(0, 194, 119, .12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 45%);
  pointer-events: none;
}
.public-hero::after {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  right: -170px;
  top: 95px;
  border: 1px solid rgba(114, 242, 59, .20);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(114, 242, 59, .025), 0 0 0 140px rgba(114, 242, 59, .018);
}
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 92px 22px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.hero-copy h1 { margin: 18px 0; max-width: 760px; font-size: clamp(44px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--green-2); }
.hero-copy p { max-width: 620px; color: #b8c0bb; font-size: 18px; line-height: 1.75; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(114,242,59,.30); border-radius: 999px; padding: 8px 13px; color: #d9ffe3; background: rgba(24,220,85,.08); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 16px var(--green-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn-outline { color: #fff; background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.18); }
.hero-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 22px; color: #929b95; font-size: 12px; font-weight: 700; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--green); }
.hero-preview { position: relative; }
.preview-shell {
  position: relative;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  padding: 18px;
  box-shadow: 0 50px 100px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.preview-window { overflow: hidden; border-radius: 20px; background: #f6f8f7; color: var(--text); min-height: 470px; }
.preview-top { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid #e4e8e5; background: #fff; }
.preview-top i { width: 9px; height: 9px; border-radius: 50%; background: #d9ddda; }
.preview-layout { display: grid; grid-template-columns: 92px 1fr; min-height: 424px; }
.preview-side { background: #0a0c0f; padding: 16px 10px; }
.preview-side .mini-logo { width: 45px; height: 45px; margin: 0 auto 20px; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--green-2)); display: grid; place-items: center; color: #061007; font-weight: 1000; }
.preview-side b { display: block; height: 9px; margin: 12px 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.preview-side b.active { background: var(--green); }
.preview-main { padding: 20px; }
.preview-banner { min-height: 108px; border-radius: 17px; padding: 20px; background: linear-gradient(110deg, #0b0d10, #19201b); color: #fff; position: relative; overflow: hidden; }
.preview-banner::after { content: ""; position: absolute; width: 180px; height: 180px; right: -40px; top: -60px; border-radius: 50%; border: 22px solid rgba(114,242,59,.18); }
.preview-banner strong { font-size: 22px; }
.preview-banner span { color: var(--green-2); }
.preview-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.preview-card { border: 1px solid #e1e6e3; border-radius: 14px; background: #fff; padding: 14px; }
.preview-card small { color: #7d838e; font-weight: 700; }
.preview-card h4 { margin: 8px 0 0; font-size: 20px; }
.preview-chart { margin-top: 12px; height: 90px; border-radius: 14px; background: linear-gradient(180deg, rgba(24,220,85,.15), transparent), repeating-linear-gradient(0deg, #fff 0 19px, #eef1ef 20px); position: relative; overflow: hidden; }
.preview-chart svg { width: 100%; height: 100%; }
.floating-chip { position: absolute; z-index: 3; border-radius: 15px; padding: 12px 15px; background: #fff; color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.30); font-size: 12px; font-weight: 800; }
.floating-chip.one { left: -38px; bottom: 72px; }
.floating-chip.two { right: -24px; top: 54px; }
.floating-chip strong { display: block; color: var(--green-dark); font-size: 17px; margin-top: 3px; }
.public-section { padding: 100px 22px; }
.public-section.alt { background: #0a0d0b; }
.public-container { max-width: 1220px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { color: var(--green-2); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section-head h2 { margin: 12px 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.04em; line-height: 1.05; }
.section-head p { color: #aeb6b0; font-size: 17px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.035); padding: 26px; min-height: 250px; transition: transform var(--transition), border-color var(--transition), background var(--transition); }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(114,242,59,.28); background: rgba(255,255,255,.055); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #071009; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 12px 26px rgba(24,220,85,.18); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin: 22px 0 10px; font-size: 20px; }
.feature-card p { color: #9fa7a1; margin: 0; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: steps; }
.step-card { position: relative; border: 1px solid rgba(255,255,255,.09); background: #101310; border-radius: 20px; padding: 24px; min-height: 210px; counter-increment: steps; }
.step-card::before { content: "0" counter(steps); display: block; color: var(--green-2); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.step-card h3 { margin: 18px 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: #9ca49e; font-size: 14px; }
.referral-public-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ref-level { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255,255,255,.10); background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); padding: 22px; text-align: center; }
.ref-level::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(114,242,59,.10); right: -25px; bottom: -28px; }
.ref-level span { color: #aab2ad; font-size: 12px; font-weight: 800; }
.ref-level strong { display: block; margin: 8px 0 4px; color: var(--green-2); font-size: 38px; line-height: 1; }
.public-cta { border: 1px solid rgba(114,242,59,.22); border-radius: 30px; padding: 55px; background: radial-gradient(circle at 80% 20%, rgba(114,242,59,.16), transparent 30%), linear-gradient(135deg, #101410, #090b0a); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.public-cta h2 { margin: 0 0 9px; font-size: 36px; letter-spacing: -.035em; }
.public-cta p { margin: 0; color: #a9b1ab; }
.public-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 42px 22px; color: #828a84; font-size: 13px; }
.public-footer-grid { max-width: 1220px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.public-footer-links { display: flex; gap: 20px; }

/* Auth */
.auth-body { min-height: 100vh; background: #060807; color: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr); }
.auth-visual { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: #070908; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
  radial-gradient(circle at 70% 42%, rgba(42,255,96,.22), transparent 28%),
  radial-gradient(circle at 12% 78%, rgba(0,196,125,.12), transparent 30%);
  background-size: 50px 50px, 50px 50px, auto, auto;
}
.auth-visual::after { content: ""; position: absolute; width: 520px; height: 520px; border: 2px solid rgba(114,242,59,.14); border-radius: 50%; right: -160px; top: 150px; box-shadow: 0 0 0 65px rgba(114,242,59,.025), 0 0 0 130px rgba(114,242,59,.018); }
.auth-brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 950; }
.auth-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.auth-brand b { color: var(--green-2); }
.auth-message { position: relative; z-index: 2; max-width: 660px; }
.auth-message .auth-logo-large { width: 150px; height: 150px; border-radius: 26px; object-fit: cover; box-shadow: 0 28px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.10); margin-bottom: 28px; }
.auth-message h1 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; }
.auth-message h1 span { color: var(--green-2); }
.auth-message p { color: #a9b2ac; max-width: 560px; font-size: 17px; line-height: 1.7; }
.auth-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.auth-point { border: 1px solid rgba(255,255,255,.10); border-radius: 13px; background: rgba(255,255,255,.04); padding: 10px 13px; color: #c7cfca; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.auth-point svg { width: 16px; height: 16px; color: var(--green-2); }
.auth-note { position: relative; z-index: 2; color: #717a74; font-size: 12px; }
.auth-panel { min-height: 100vh; background: #f8faf9; color: var(--text); display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(100%, 480px); }
.auth-card h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 28px; color: var(--text-soft); }
.auth-card .form-grid { gap: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #9aa1ab; font-size: 12px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-footer { margin-top: 22px; text-align: center; color: var(--text-soft); font-size: 13px; }
.auth-footer a { color: var(--green-dark); font-weight: 900; }
.demo-box { margin-top: 22px; border: 1px dashed #b9c4bc; border-radius: 13px; background: #f0f5f1; padding: 13px; font-size: 12px; color: #5d655f; }
.demo-box strong { color: var(--text); }
.auth-back { position: absolute; top: 22px; right: 22px; color: var(--text-soft); font-size: 13px; font-weight: 800; }

/* App shell */
.app-body { min-height: 100vh; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand { min-height: var(--topbar-height); padding: 12px 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.sidebar-brand-text { line-height: 1; font-weight: 1000; letter-spacing: -.04em; font-size: 19px; }
.sidebar-brand-text span { color: var(--green-2); }
.sidebar-brand-text small { display: block; margin-top: 5px; color: #747c77; font-size: 9px; letter-spacing: .16em; font-weight: 900; }
.sidebar-scroll { overflow-y: auto; padding: 18px 12px; flex: 1; scrollbar-width: thin; }
.nav-label { padding: 0 10px; margin: 7px 0 10px; color: #687069; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 900; }
.nav-list { display: grid; gap: 4px; }
.nav-link { min-height: 45px; padding: 0 13px; border-radius: 12px; display: flex; align-items: center; gap: 12px; color: #a6ada8; font-size: 14px; font-weight: 750; transition: background var(--transition), color var(--transition), transform var(--transition); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-link.active { color: #fff; background: #202328; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-link.active::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(24,220,85,.8); }
.nav-link svg { width: 18px; height: 18px; color: #8f9791; flex: 0 0 auto; }
.nav-link.active svg { color: var(--green); }
.sidebar-footer { padding: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.user-mini { padding: 10px; border-radius: 13px; display: flex; align-items: center; gap: 10px; color: #fff; background: #16191e; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #071009; background: linear-gradient(135deg, var(--green), var(--green-2)); font-weight: 950; }
.user-mini-info { min-width: 0; flex: 1; }
.user-mini strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-mini span { display: block; color: #818983; font-size: 10px; margin-top: 2px; }
.user-mini svg { width: 17px; height: 17px; color: #727a74; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 40; min-height: var(--topbar-height); padding: 0 28px; background: rgba(255,255,255,.90); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: #fff; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; color: #959ca6; font-size: 13px; font-weight: 700; }
.breadcrumb strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb svg { width: 15px; height: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-pill { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 850; }
.topbar-pill i { font-style: normal; }
.topbar-icon { position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.topbar-icon svg { width: 18px; height: 18px; }
.topbar-icon .notification-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); top: 5px; right: 5px; border: 2px solid #fff; }
.content { width: 100%; max-width: 1290px; margin: 0 auto; padding: 32px 34px 60px; }
.page-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.page-title h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.035em; line-height: 1.15; }
.page-title p { margin: 0; color: var(--text-soft); font-size: 13px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Generic cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head p { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; }
.card-title-row { display: flex; align-items: center; gap: 10px; }
.card-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); }
.card-icon svg { width: 19px; height: 19px; }
.section-title { margin: 30px 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-title h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-title p { margin: 2px 0 0; color: var(--text-soft); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Dashboard */
.dashboard-banner { position: relative; overflow: hidden; min-height: 188px; border-radius: 22px; color: #fff; background: linear-gradient(112deg, #070908 0%, #0f1510 58%, #142619 100%); box-shadow: var(--shadow-md); padding: 30px 34px; display: flex; align-items: center; }
.dashboard-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(114,242,59,.05)); }
.dashboard-banner::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 38px solid rgba(114,242,59,.13); right: -90px; top: -120px; box-shadow: 0 0 0 38px rgba(114,242,59,.035); }
.banner-copy { position: relative; z-index: 2; max-width: 650px; }
.banner-copy .badge { margin-bottom: 12px; }
.banner-copy h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.045em; line-height: 1.05; }
.banner-copy h2 span { color: var(--green-2); }
.banner-copy p { margin: 10px 0 18px; max-width: 570px; color: #b5beb8; font-size: 13px; }
.banner-field { position: absolute; right: 40px; bottom: -40px; width: 330px; height: 180px; border: 2px solid rgba(255,255,255,.13); border-radius: 20px; transform: rotate(-8deg); }
.banner-field::before { content: ""; position: absolute; width: 64px; height: 64px; border: 2px solid rgba(255,255,255,.13); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.banner-field::after { content: ""; position: absolute; width: 2px; top: 0; bottom: 0; left: 50%; background: rgba(255,255,255,.13); }
.wallet-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wallet-card { position: relative; overflow: hidden; padding: 20px; display: grid; gap: 16px; border-color: rgba(18,24,22,.08); background: linear-gradient(145deg, #fff 0%, #f8fbf8 100%); }
.wallet-card::after { content: ""; position: absolute; right: -42px; top: -58px; width: 150px; height: 150px; border-radius: 50%; background: rgba(114,242,59,.12); pointer-events: none; }
.wallet-card-commission { background: linear-gradient(145deg, #fff 0%, #f9f8ff 100%); }
.wallet-card-commission::after { background: rgba(132,92,255,.11); }
.wallet-card > * { position: relative; z-index: 1; }
.wallet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wallet-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wallet-heading p { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; }
.wallet-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; color: #18300f; background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(57,189,32,.12); }
.wallet-icon svg { width: 20px; height: 20px; }
.wallet-card-commission .wallet-icon { color: #3c247f; background: rgba(132,92,255,.12); box-shadow: inset 0 0 0 1px rgba(132,92,255,.13); }
.wallet-name { font-size: 14px; font-weight: 900; letter-spacing: -.01em; }
.wallet-value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wallet-value small { display: block; color: var(--text-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.wallet-value strong { display: block; margin-top: 6px; font-size: 31px; letter-spacing: -.03em; line-height: 1; }
.wallet-lines { border-top: 1px solid rgba(18,24,22,.08); padding-top: 12px; display: grid; gap: 8px; }
.wallet-line { display: flex; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 12px; }
.wallet-line strong { color: var(--text); }
.dashboard-main-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 16px; }
.chart-card { min-height: 340px; overflow: hidden; }
.chart-toolbar { padding: 17px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.chart-legend { display: flex; gap: 13px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chart-legend span:nth-child(2) i { background: var(--blue); }
.chart-wrap { position: relative; width: 100%; min-width: 0; height: 240px; padding: 12px 16px 14px; overflow: hidden; }
.chart-wrap canvas { display: block; width: 100%; max-width: 100%; height: 100%; }
.performance-card { padding: 20px; color: #fff; background: linear-gradient(160deg, #111318, #1c201e); border-color: #252a27; }
.performance-card h3 { margin: 0; font-size: 17px; }
.performance-score { margin: 20px 0; display: flex; align-items: center; gap: 18px; }
.score-ring { --score: 74; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--score) * 1%), #292e2b 0); position: relative; }
.score-ring::after { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; background: #151917; }
.score-ring strong { position: relative; z-index: 1; font-size: 22px; }
.score-ring small { position: relative; z-index: 1; color: #9aa39d; font-size: 9px; }
.score-copy strong { display: block; font-size: 17px; }
.score-copy span { color: #9aa39d; font-size: 12px; }
.performance-list { display: grid; gap: 9px; }
.performance-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.05); color: #aeb6b0; font-size: 12px; }
.performance-item strong { color: #fff; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: 11px; font-weight: 850; }
.filter-pill.active, .filter-pill:hover { color: #fff; background: #15171c; border-color: #15171c; }
.content > .match-grid { display: none; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ticket-card { position: relative; overflow: hidden; min-height: 236px; border: 1px solid rgba(19,25,22,.09); border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f8faf9 100%); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.ticket-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(24,220,85,.22); }
.ticket-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.featured-ticket { grid-row: span 2; }
.ticket-head { padding: 16px 16px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid rgba(18,24,22,.08); }
.ticket-head h3 { margin: 5px 0 0; max-width: 230px; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.ticket-type { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; color: #08732c; background: var(--green-soft); font-size: 10px; line-height: 1; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.ticket-state { min-width: 92px; text-align: right; }
.ticket-state strong { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 9px; border-radius: 999px; color: #4d535e; background: #eef1ef; font-size: 10px; line-height: 1; font-weight: 950; text-transform: uppercase; }
.ticket-state span { display: block; margin-top: 7px; color: var(--text-soft); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.ticket-card.is-live { border-color: rgba(240,74,100,.24); background: linear-gradient(180deg, #fff 0%, #fff8f9 100%); }
.ticket-card.is-live::before { background: linear-gradient(90deg, var(--danger), var(--yellow)); }
.ticket-card.is-live .ticket-state strong { color: #fff; background: var(--danger); box-shadow: 0 8px 18px rgba(240,74,100,.20); }
.ticket-selection-list { padding: 12px 16px; display: grid; gap: 10px; }
.ticket-selection-list.compact { min-height: 106px; align-content: center; }
.ticket-selection { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.sport-dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #071009; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.sport-dot::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.ticket-selection strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.25; }
.ticket-selection small { display: block; margin-top: 3px; color: var(--green-dark); font-size: 10px; font-weight: 900; }
.ticket-selection p { margin: 2px 0 0; color: var(--text-soft); font-size: 11px; line-height: 1.35; }
.ticket-foot { padding: 11px 16px 14px; border-top: 1px dashed rgba(18,24,22,.14); display: flex; justify-content: space-between; gap: 10px; color: #8f96a0; font-size: 10px; font-weight: 800; }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.match-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.match-card-head { min-height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #8b919c; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.match-time { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; color: #737985; background: #fafbfa; }
.match-time svg { width: 12px; height: 12px; }
.match-body { min-height: 104px; padding: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.team { min-width: 0; }
.team-badge { width: 40px; height: 40px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22262d, #505862); font-size: 12px; font-weight: 950; box-shadow: 0 5px 12px rgba(0,0,0,.12); }
.team:nth-child(3) .team-badge { background: linear-gradient(135deg, var(--green-dark), var(--green-2)); color: #071009; }
.team strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-vs { color: #b1b7c0; font-weight: 950; font-size: 11px; }

/* Stats */
.stat-card { padding: 18px; min-height: 118px; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stat-label { color: var(--text-soft); font-size: 11px; font-weight: 800; }
.stat-value { margin-top: 10px; font-size: 25px; line-height: 1; letter-spacing: -.035em; font-weight: 950; }
.stat-meta { margin-top: 7px; color: var(--text-soft); font-size: 10px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); }
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.red { color: var(--danger); background: var(--danger-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.yellow { color: #a86b00; background: var(--yellow-soft); }

/* Signals */
.premium-strip { margin-bottom: 16px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #101218, #171a1f); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow: hidden; position: relative; }
.premium-strip::after { content: "TW"; position: absolute; right: 200px; top: -28px; color: rgba(114,242,59,.08); font-size: 110px; font-weight: 1000; transform: rotate(-8deg); }
.premium-strip-left { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.premium-logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #071009; background: linear-gradient(135deg, var(--green), var(--green-2)); font-size: 20px; font-weight: 1000; }
.premium-strip h3 { margin: 0; font-size: 15px; }
.premium-strip p { margin: 3px 0 0; color: #9ca4a0; font-size: 11px; }
.tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px; }
.tab-btn { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font-size: 11px; font-weight: 850; }
.tab-btn.active { color: #fff; background: #15171c; }
.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.signal-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform var(--transition), box-shadow var(--transition); }
.signal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.signal-card-locked .signal-game,
.signal-card-locked .signal-data { filter: blur(3px); opacity: .46; pointer-events: none; user-select: none; }
.signal-card-locked::after { content: "Plano ativo necessario"; position: absolute; left: 14px; right: 14px; top: 76px; min-height: 40px; border: 1px solid rgba(24,220,85,.22); border-radius: 12px; display: grid; place-items: center; color: #071009; background: rgba(229,251,237,.92); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(4px); z-index: 2; }
.signal-head { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.signal-league { font-size: 10px; font-weight: 900; color: #6f7580; }
.signal-date { color: #9ba1ab; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.signal-date svg { width: 12px; height: 12px; }
.signal-game { padding: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 10px; }
.signal-game strong { font-size: 12px; }
.signal-game span { color: #a6acb6; font-size: 11px; font-weight: 900; }
.signal-data { border-top: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.signal-metric small { display: block; color: #9aa0aa; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.signal-metric strong { display: block; margin-top: 4px; font-size: 13px; }
.confidence { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--green-dark); background: conic-gradient(var(--green) var(--value), #e9eeeb 0); }
.confidence::after { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.confidence b { position: relative; z-index: 1; font-size: 11px; }
.signal-action { padding: 0 14px 14px; }
.signal-action .btn { width: 100%; }

/* Operations */
.capital-strip { min-height: 74px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.capital-left { display: flex; align-items: center; gap: 12px; }
.capital-left .stat-icon { width: 44px; height: 44px; }
.capital-left small { display: block; color: var(--text-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.capital-left strong { font-size: 22px; }
.operation-card { color: #fff; background: linear-gradient(160deg, #111318, #1a1d23); border-color: #25282f; padding: 18px; box-shadow: 0 20px 45px rgba(10,12,15,.14); }
.operation-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.operation-name { display: flex; gap: 10px; align-items: center; }
.operation-name .card-icon { background: rgba(24,220,85,.12); color: var(--green); }
.operation-name h3 { margin: 0; font-size: 16px; }
.operation-name p { margin: 2px 0 0; color: #8f9791; font-size: 11px; }
.progress-label { margin-top: 20px; display: flex; justify-content: space-between; color: #a7afa9; font-size: 10px; }
.progress-label strong { color: var(--green); }
.progress { height: 6px; border-radius: 999px; background: #30343b; overflow: hidden; margin-top: 7px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-2)); }
.operation-metrics { margin-top: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.operation-metric { min-height: 62px; border-radius: 11px; background: rgba(255,255,255,.065); padding: 10px; }
.operation-metric.full { grid-column: 1 / -1; }
.operation-metric small { display: block; color: #909893; font-size: 9px; font-weight: 800; }
.operation-metric strong { display: block; margin-top: 4px; font-size: 14px; }
.operation-metric strong.green { color: var(--green); }
.operation-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.operation-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.19); background: transparent; }
.plan-select-card { padding: 20px; display: grid; gap: 14px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.plan-select-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b8c4bb; }
.plan-select-head { display: flex; align-items: center; gap: 10px; }
.plan-select-head .card-icon { width: 42px; height: 42px; }
.plan-select-head h3 { margin: 0; font-size: 18px; }
.plan-select-card p { margin: 0; color: var(--text-soft); font-size: 12px; }
.plan-range { font-size: 12px; }
.plan-range strong { color: var(--text); }

/* Subscriptions */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; min-height: 450px; }
.price-card.featured { color: #fff; background: linear-gradient(160deg, #101317, #19201b); border-color: #25302a; transform: translateY(-7px); box-shadow: 0 24px 60px rgba(10,15,12,.18); }
.price-card.featured::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(114,242,59,.08); right: -60px; top: -60px; }
.price-tag { align-self: flex-start; }
.price-card h3 { margin: 20px 0 4px; font-size: 24px; }
.price-card > p { margin: 0; color: var(--text-soft); font-size: 12px; min-height: 42px; }
.price-card.featured > p { color: #9ca59f; }
.price { margin: 22px 0; }
.price strong { font-size: clamp(34px, 3.1vw, 42px); letter-spacing: -.05em; }
.price span { color: var(--text-soft); font-size: 12px; }
.price-card.featured .price span { color: #8f9892; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; flex: 1; }
.feature-list li { display: flex; gap: 9px; color: var(--text-soft); font-size: 12px; }
.feature-list svg { width: 17px; height: 17px; color: var(--green-dark); flex: 0 0 auto; }
.price-card.featured .feature-list li { color: #bdc5bf; }
.price-card.featured .feature-list svg { color: var(--green); }

/* Referrals */
.referral-hero { overflow: hidden; position: relative; border-radius: 22px; padding: 27px; color: #fff; background: linear-gradient(120deg, #101317, #15221a); }
.referral-hero::after { content: "5 NÍVEIS"; position: absolute; right: 24px; bottom: -20px; color: rgba(114,242,59,.08); font-size: 76px; font-weight: 1000; white-space: nowrap; }
.referral-hero h2 { margin: 0; font-size: 26px; }
.referral-hero p { max-width: 620px; color: #a7b0aa; margin: 8px 0 20px; }
.copy-box { max-width: 660px; min-height: 48px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.055); display: flex; align-items: center; padding: 5px 5px 5px 14px; gap: 10px; }
.copy-box code { flex: 1; min-width: 0; color: #e7ede9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.referral-levels { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.referral-level-card { padding: 17px; text-align: center; }
.referral-level-card small { color: var(--text-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.referral-level-card strong { display: block; margin: 7px 0 3px; color: var(--green-dark); font-size: 28px; }
.referral-level-card span { color: var(--text-soft); font-size: 10px; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { padding: 12px 15px; border-bottom: 1px solid var(--line); color: #8a919b; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.table td { padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #071009; background: var(--green-soft); font-weight: 900; }
.member-cell strong { display: block; }
.member-cell small { color: var(--text-soft); }

/* Rewards */
.points-card { color: #fff; background: radial-gradient(circle at 80% 20%, rgba(114,242,59,.18), transparent 27%), linear-gradient(130deg, #101317, #172019); border-color: #253028; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.points-card small { color: #9ca49f; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.points-card strong { display: block; margin-top: 4px; color: var(--green-2); font-size: 38px; }
.points-ring { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.09); border-top-color: var(--green); color: #fff; font-weight: 900; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.mission-card { padding: 18px; display: grid; gap: 14px; }
.mission-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mission-icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); }
.mission-icon svg { width: 21px; height: 21px; }
.mission-card h3 { margin: 0; font-size: 15px; }
.mission-card p { margin: 4px 0 0; min-height: 38px; color: var(--text-soft); font-size: 11px; }
.mission-reward { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.mission-reward strong { color: var(--green-dark); }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.achievement { padding: 18px; text-align: center; }
.achievement-icon { width: 58px; height: 58px; margin: 0 auto 11px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow-soft); color: #ad7400; }
.achievement.locked { opacity: .50; filter: grayscale(.7); }
.achievement h4 { margin: 0 0 4px; font-size: 13px; }
.achievement p { margin: 0; color: var(--text-soft); font-size: 10px; }

/* Financial */
.finance-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.balance-panel { position: sticky; top: calc(var(--topbar-height) + 20px); color: #fff; background: linear-gradient(155deg, #101318, #1b1f24); border-color: #262b31; padding: 20px; }
.wallet-label { display: inline-flex; border-radius: 999px; padding: 5px 9px; color: #071009; background: var(--green); font-size: 10px; font-weight: 900; }
.balance-panel h3 { margin: 16px 0 4px; font-size: 15px; }
.balance-panel > small { color: #909993; font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: .07em; }
.balance-big { margin: 8px 0 18px; font-size: 34px; font-weight: 950; letter-spacing: -.04em; }
.balance-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.balance-mini { padding: 10px; border-radius: 11px; background: rgba(255,255,255,.06); }
.balance-mini small { color: #909993; font-size: 9px; }
.balance-mini strong { display: block; margin-top: 4px; font-size: 12px; }
.balance-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.balance-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.transaction-list { padding: 0 18px 8px; }
.transaction-item { min-height: 70px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.transaction-item:last-child { border-bottom: 0; }
.transaction-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); flex: 0 0 auto; }
.transaction-icon.out { color: #6f7580; background: #f0f2f4; }
.transaction-icon.pending { color: #9b6500; background: var(--yellow-soft); }
.transaction-icon svg { width: 18px; height: 18px; }
.transaction-info { min-width: 0; flex: 1; }
.transaction-info strong { display: block; font-size: 12px; }
.transaction-info span { display: block; color: var(--text-soft); font-size: 10px; margin-top: 2px; }
.transaction-value { text-align: right; }
.transaction-value strong { display: block; font-size: 12px; }
.transaction-value strong.in { color: var(--green-dark); }
.transaction-value span { color: var(--text-soft); font-size: 9px; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--text-soft); }
.empty-state-icon { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-soft); }
.empty-state h3 { margin: 0 0 5px; color: var(--text); font-size: 15px; }
.empty-state p { margin: 0; font-size: 12px; }

/* Deposit / withdraw */
.flow-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.flow-card { padding: 24px; }
.stepper { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; }
.step-dot { display: flex; align-items: center; gap: 7px; color: #959ca6; font-size: 10px; font-weight: 850; }
.step-dot i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #eef1ef; }
.step-dot.active { color: var(--text); }
.step-dot.active i { color: #071009; background: var(--green); }
.step-line { height: 1px; width: 35px; background: var(--line); }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 900; }
.amount-input .input { height: 64px; padding-left: 48px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.quick-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-value { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-soft); font-size: 11px; font-weight: 850; }
.quick-value:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.document-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.payment-option { margin-top: 16px; border: 2px solid var(--green); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--green-soft); }
.payment-option-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #071009; background: var(--green); font-weight: 1000; }
.payment-option strong { display: block; font-size: 13px; }
.payment-option span { display: block; color: #5a685e; font-size: 10px; }
.summary-card { padding: 20px; }
.summary-card h3 { margin: 0 0 16px; font-size: 16px; }
.summary-list { display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; color: var(--text-soft); font-size: 12px; }
.summary-row strong { color: var(--text); }
.summary-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.notice { border-radius: 13px; padding: 13px; display: flex; gap: 10px; color: #57605a; background: #eef3ef; font-size: 11px; }
.notice svg { width: 18px; height: 18px; color: var(--green-dark); flex: 0 0 auto; }
.notice.warning { color: #725214; background: var(--yellow-soft); }
.notice.warning svg { color: #b17600; }
.pix-result { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf9; padding: 16px; }
.pix-result code { display: block; max-height: 86px; overflow: auto; border-radius: 11px; background: #121519; color: #c9fbd8; padding: 13px; word-break: break-all; font-size: 10px; }
.pix-result .btn { margin-top: 10px; width: 100%; }

/* Profile / settings */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 16px; align-items: start; }
.settings-nav { padding: 9px; position: sticky; top: calc(var(--topbar-height) + 20px); }
.settings-nav button { width: 100%; min-height: 42px; border: 0; border-radius: 11px; background: transparent; display: flex; align-items: center; gap: 10px; color: var(--text-soft); padding: 0 11px; font-size: 12px; font-weight: 800; text-align: left; }
.settings-nav button svg { width: 17px; height: 17px; }
.settings-nav button.active, .settings-nav button:hover { color: var(--text); background: var(--bg-soft); }
.profile-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.profile-avatar-large { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #071009; background: linear-gradient(135deg, var(--green), var(--green-2)); font-size: 25px; font-weight: 1000; }
.profile-head h3 { margin: 0; font-size: 19px; }
.profile-head p { margin: 4px 0 0; color: var(--text-soft); font-size: 11px; }
.preference-row { min-height: 65px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.preference-row:last-child { border-bottom: 0; }
.preference-row strong { display: block; font-size: 12px; }
.preference-row span { display: block; color: var(--text-soft); font-size: 10px; margin-top: 2px; }

/* Help / FAQ */
.help-hero { border-radius: 22px; padding: 34px; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(114,242,59,.18), transparent 30%), linear-gradient(130deg, #0e1114, #18201a); }
.help-hero h2 { margin: 0 0 8px; font-size: 30px; }
.help-hero p { margin: 0 0 20px; color: #a9b1ac; }
.help-search { max-width: 600px; position: relative; }
.help-search .input { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.08); color: #fff; }
.help-search .input::placeholder { color: #8f9892; }
.help-search .input-icon { color: #9aa39d; }
.faq-list { display: grid; gap: 9px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-question { width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text); text-align: left; font-size: 12px; font-weight: 850; }
.faq-question svg { width: 18px; height: 18px; transition: transform var(--transition); }
.faq-answer { display: none; padding: 0 16px 16px; color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

/* Legal */
.legal-body { background: #f4f7f5; }
.legal-header { background: #0a0c0f; color: #fff; padding: 16px 22px; }
.legal-header-inner { max-width: 940px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-brand { display: flex; align-items: center; gap: 10px; font-weight: 950; }
.legal-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.legal-content { max-width: 940px; margin: 36px auto; padding: 35px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.legal-content h1 { margin-top: 0; font-size: 32px; letter-spacing: -.035em; }
.legal-content h2 { margin-top: 30px; font-size: 19px; }
.legal-content p, .legal-content li { color: #5f6670; line-height: 1.75; font-size: 13px; }

/* Modals / toast / overlays */
.sidebar-overlay { display: none; position: fixed; z-index: 45; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; background: rgba(4,7,5,.70); backdrop-filter: blur(5px); display: none; place-items: center; }
.modal-backdrop.open { display: grid; }
.modal { width: min(100%, 560px); max-height: min(90vh, 760px); overflow: auto; border: 1px solid rgba(255,255,255,.10); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); animation: modalIn 180ms ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { min-height: 70px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.signal-detail-hero { border-radius: 16px; padding: 18px; color: #fff; background: linear-gradient(135deg, #111419, #19211b); }
.signal-detail-hero small { color: #909993; font-size: 10px; }
.signal-detail-hero h4 { margin: 6px 0 0; font-size: 21px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 13px; }
.detail-item { border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.detail-item small { color: var(--text-soft); font-size: 9px; text-transform: uppercase; font-weight: 850; }
.detail-item strong { display: block; margin-top: 4px; font-size: 12px; }
.toast-stack { position: fixed; z-index: 150; right: 18px; bottom: 18px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 290px; max-width: 390px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); padding: 13px 14px; display: flex; gap: 10px; align-items: flex-start; pointer-events: auto; animation: toastIn 200ms ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); flex: 0 0 auto; }
.toast-icon svg { width: 16px; height: 16px; }
.toast.error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast strong { display: block; font-size: 12px; }
.toast p { margin: 2px 0 0; color: var(--text-soft); font-size: 10px; }
.loading-overlay { position: fixed; z-index: 200; inset: 0; display: none; place-items: center; background: rgba(255,255,255,.78); backdrop-filter: blur(3px); }
.loading-overlay.open { display: grid; }
.spinner { width: 45px; height: 45px; border: 4px solid #dce3de; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-red-small { display: block; margin-top: 7px; color: var(--danger); font-size: 11px; font-weight: 800; }
.plan-checkout-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg-soft); }
.plan-checkout-head strong { display: block; margin-top: 3px; font-size: 17px; }
.pix-result { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #f8faf9; }
.pix-status { color: var(--green-dark); font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.pix-code { max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-word; border-radius: 10px; padding: 12px; background: #101411; color: #e8fff0; font-size: 11px; }
.auto-operation-card .operation-metrics { margin-top: 16px; }
.yield-report { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.yield-report-head, .yield-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yield-report-head strong { font-size: 12px; }
.yield-report-head span, .yield-row span { color: var(--text-soft); font-size: 11px; }
.yield-row { min-height: 32px; border-bottom: 1px dashed var(--line); }
.yield-row strong { color: var(--green-dark); font-size: 12px; }
.operations-empty { grid-column: 1 / -1; }
.admin-body { background: #f3f6f4; }
.admin-page { width: min(1240px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 44px; }
.admin-login-card { width: min(420px, 100%); margin: 8vh auto 0; padding: 26px; }
.admin-logo { width: 82px; height: 82px; object-fit: contain; display: block; margin-bottom: 14px; }
.admin-login-card h1 { margin: 0 0 18px; font-size: 28px; }
.admin-top { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-top h1 { margin: 8px 0 2px; font-size: 26px; letter-spacing: 0; }
.admin-top p { margin: 0; color: var(--text-soft); font-size: 13px; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.admin-metric-card { min-height: 92px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.admin-metric-card span { color: var(--text-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.admin-metric-card strong { color: var(--text); font-size: clamp(18px, 2vw, 25px); line-height: 1; letter-spacing: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr); gap: 14px; margin-top: 14px; align-items: start; }
.admin-card-compact { padding: 16px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-bet-description { min-height: 96px; resize: vertical; }
.admin-bets-editor, .admin-bets-board { background: #080b0d; color: #fff; border-color: rgba(255,255,255,.10); }
.admin-bets-editor .card-head p, .admin-bets-board .card-head p, .admin-bets-editor .form-label { color: rgba(255,255,255,.58); }
.admin-bets-editor .input, .admin-bets-editor .select { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
.admin-bets-editor .input::placeholder { color: rgba(255,255,255,.38); }
.admin-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 14px; margin-top: 14px; align-items: start; }
.admin-inline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-log-list, .admin-bets-list, .admin-yield-history { display: grid; gap: 9px; max-height: 330px; overflow: auto; padding-right: 4px; }
.admin-log-row, .admin-bet-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-bets-board .admin-bet-row { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
.admin-log-row strong { color: var(--green-dark); }
.admin-log-row span, .admin-bet-row span { display: block; color: var(--text-soft); font-size: 11px; }
.admin-bets-board .admin-bet-row span, .admin-bets-board .admin-bet-row p { color: rgba(255,255,255,.58); }
.admin-bet-row p { margin: 6px 0 0; max-width: 620px; color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.admin-log-row small { color: var(--text-soft); font-size: 10px; }
.admin-bet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-yield-row { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-yield-row strong { display: block; font-size: 12px; }
.admin-yield-row span { display: block; margin-top: 3px; color: var(--text-soft); font-size: 10px; }
.btn.danger { color: var(--danger); border-color: rgba(235, 58, 73, .35); }

/* Responsive */
@media (max-width: 1150px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-public-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .signal-grid, .match-grid, .ticket-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mission-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 282px; }
  .public-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-preview { max-width: 700px; }
  .public-hero { min-height: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 420px; padding: 32px; }
  .auth-message .auth-logo-large { width: 110px; height: 110px; }
  .auth-message h1 { font-size: 45px; }
  .auth-panel { min-height: auto; padding: 42px 25px; }
  .sidebar { transform: translateX(-100%); transition: transform 220ms ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; }
  .app-main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .dashboard-main-grid, .finance-layout, .flow-layout { grid-template-columns: 1fr; }
  .balance-panel { position: static; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { width: auto; min-width: max-content; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .referral-levels { grid-template-columns: repeat(3,1fr); }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .public-nav { min-height: 66px; padding: 0 15px; }
  .public-brand span { display: none; }
  .public-actions .btn-outline { display: none; }
  .public-hero::after { display: none; }
  .hero-grid { padding: 70px 16px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy p { font-size: 15px; }
  .preview-shell { transform: none; padding: 10px; }
  .preview-layout { grid-template-columns: 62px 1fr; }
  .preview-main { padding: 12px; }
  .preview-cards { grid-template-columns: 1fr; }
  .floating-chip { display: none; }
  .public-section { padding: 72px 16px; }
  .feature-grid, .steps-grid, .referral-public-grid { grid-template-columns: 1fr; }
  .public-cta { padding: 30px; flex-direction: column; align-items: flex-start; }
  .public-footer-grid { flex-direction: column; align-items: flex-start; }
  .auth-visual { min-height: 330px; padding: 24px; }
  .auth-message .auth-logo-large { display: none; }
  .auth-message h1 { font-size: 38px; }
  .auth-message p { font-size: 14px; }
  .auth-panel { padding: 34px 18px; }
  .auth-card h2 { font-size: 29px; }
  .topbar { min-height: 62px; padding: 0 14px; }
  .topbar-pill { display: none; }
  .content { padding: 24px 15px 45px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-actions .btn { flex: 1; }
  .dashboard-banner { min-height: 220px; padding: 25px; align-items: flex-start; }
  .banner-field { right: -120px; bottom: -70px; opacity: .55; }
  .wallet-grid, .grid-2, .grid-3, .grid-4, .signal-grid, .match-grid, .ticket-grid, .mission-grid, .badge-grid { grid-template-columns: 1fr; }
  .wallet-value-row { align-items: flex-start; flex-direction: column; }
  .chart-toolbar { align-items: flex-start; flex-direction: column; }
  .referral-levels { grid-template-columns: repeat(2,1fr); }
  .referral-hero::after { display: none; }
  .referral-hero { padding: 22px; }
  .copy-box { flex-direction: column; align-items: stretch; padding: 12px; }
  .points-card { align-items: flex-start; }
  .points-ring { width: 70px; height: 70px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .admin-form-row, .admin-form-row.three { grid-template-columns: 1fr; }
  .admin-bet-row { align-items: flex-start; flex-direction: column; }
  .admin-yield-row { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 1fr; }
  .capital-strip { flex-direction: column; align-items: stretch; }
  .capital-strip .page-actions { width: 100%; }
  .premium-strip { align-items: flex-start; flex-direction: column; }
  .premium-strip::after { display: none; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; width: 100%; }
  .legal-content { margin: 18px 12px; padding: 22px; }
}
@media (max-width: 430px) {
  .hero-copy h1 { font-size: 39px; }
  .auth-points { display: none; }
  .page-title h1 { font-size: 26px; }
  .referral-levels { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
