*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-dark: #A07010;
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #1A1A1A;
  --bg4: #222222;
  --border: rgba(212,160,23,0.18);
  --border2: rgba(212,160,23,0.35);
  --text: #F0F0F0;
  --text2: #A0A0A0;
  --text3: #666;
  --green: #22C55E;
  --red: #EF4444;
  --blue: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
}

html { font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

a { color: inherit; text-decoration: none; }

input, select, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}
input:focus, select:focus { border-color: var(--gold); }
input::placeholder { color: var(--text3); }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}
button:active, .btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(212,160,23,0.1); }

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-full { width: 100%; }

/* Page layout */
.page { max-width: 480px; margin: 0 auto; padding: 0 16px; min-height: 100vh; }
.page-wide { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  gap: 12px;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.back-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Cards */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card-gold {
  background: linear-gradient(135deg, #1a1200, #2a1e00);
  border: 1px solid var(--gold-dark);
}

/* Stat row */
.stat-row { display: flex; gap: 12px; }
.stat-box {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--gold); }

/* Section title */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 10px;
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.list-name { font-size: 14px; font-weight: 500; }
.list-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.list-amount { font-size: 15px; font-weight: 700; margin-left: auto; }

/* Avatar */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}
.badge-green { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-gold { background: rgba(212,160,23,0.15); color: var(--gold); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }

/* Form group */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 13px; color: var(--text2); margin-bottom: 6px; display: block; }
.input-icon { position: relative; }
.input-icon input { padding-left: 42px; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--text3); pointer-events: none; }

/* Gold divider */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Progress bar */
.progress-bar { height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 3px; }

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-item.active { color: var(--gold); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* OTP inputs */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg3);
  color: var(--gold);
  padding: 0;
}
.otp-input:focus { border-color: var(--gold); }

/* Package card */
.pkg-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pkg-card.selected, .pkg-card:hover { border-color: var(--gold); }
.pkg-card.featured { border-color: var(--gold); background: linear-gradient(135deg, #1a1200, #2a1e00); }
.pkg-name { font-size: 16px; font-weight: 700; color: var(--gold); }
.pkg-price { font-size: 24px; font-weight: 800; margin: 4px 0; }
.pkg-roi { font-size: 13px; color: var(--text2); }

/* Income card */
.income-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.income-icon { font-size: 28px; }
.income-label { font-size: 13px; color: var(--text2); }
.income-value { font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.income-amount { margin-left: auto; text-align: right; }

/* Level rows */
.level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.level-badge {
  font-size: 12px;
  font-weight: 700;
  color: #000;
  background: var(--gold);
  padding: 2px 10px;
  border-radius: 20px;
}

/* Support buttons */
.support-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}
.support-btn:hover { border-color: var(--gold); }
.support-icon { font-size: 24px; }

/* Settings row */
.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 15px; flex: 1; }
.settings-arrow { color: var(--text3); font-size: 18px; }

/* Team chart bars */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.chart-bar { flex: 1; background: var(--gold); border-radius: 3px 3px 0 0; opacity: 0.7; transition: opacity 0.2s; }
.chart-bar:hover { opacity: 1; }

/* Logo */
.logo { text-align: center; padding: 32px 0 16px; }
.logo-text { font-size: 36px; font-weight: 900; color: var(--gold); letter-spacing: 2px; }
.logo-sub { font-size: 13px; color: var(--text2); letter-spacing: 1px; margin-top: 2px; }

/* Amount display */
.amount-big { font-size: 36px; font-weight: 800; color: var(--text); }
.amount-big span { color: var(--gold); }

/* Splash */
.splash-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding-bottom: 0; }

/* Toggle switch */
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg4); border-radius: 24px; cursor: pointer; transition: 0.3s; }
.toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--text3); border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); background: #000; }

/* Responsive */
@media (max-width: 400px) {
  .otp-input { width: 40px; height: 48px; font-size: 18px; }
  .stat-value { font-size: 17px; }
  .pkg-price { font-size: 20px; }
  .amount-big { font-size: 28px; }
}
@media (min-width: 600px) {
  .stat-row { gap: 16px; }
  .page { padding: 0 24px; }
}
@media (min-width: 900px) {
  body { background: #050505; }
  .page, .page-wide { padding: 0 32px; }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
