* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0e0e0e;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --orange: #f5a623;
  --green: #4caf50;
  --text: #ffffff;
  --text2: #aaaaaa;
  --border: #2a2a2a;
  --nav-h: 70px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* LOADING */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* PAGES */
.page {
  padding: 16px 16px calc(var(--nav-h) + 16px);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* HEADER */
.header {
  padding: 12px 0 20px;
}

.welcome-text {
  color: var(--text2);
  font-size: 14px;
}

.username {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}

/* CARDS */
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.card:active { opacity: 0.8; }

.card-free {
  background: var(--bg2);
  border: 1px solid var(--border);
}

.card-vip {
  background: linear-gradient(135deg, #1a1200, #2a1e00);
  border: 1px solid var(--orange);
}

.card-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}

.card-info { flex: 1; }

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.vip-title {
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.card-sub {
  color: var(--text2);
  font-size: 12px;
  margin-top: 2px;
}

.badge-free {
  background: #1a3a1a;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.btn-vip {
  background: var(--orange);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-icon { font-size: 20px; margin-bottom: 6px; }
.stat-label { color: var(--text2); font-size: 12px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; }
.stat-sub { color: var(--text2); font-size: 11px; margin-top: 4px; }
.orange { color: var(--orange); }
.green { color: var(--green); }

/* SECTION TITLE */
.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-sub {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 16px;
}

.badge-pending {
  background: var(--bg3);
  color: var(--orange);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 500;
}

/* TIPS */
.tips-list { display: flex; flex-direction: column; gap: 10px; }

.tip-item {
  background: var(--bg2);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tip-locked {
  filter: blur(3px);
  pointer-events: none;
}

.tip-info { flex: 1; }
.tip-match { font-size: 14px; font-weight: 600; }
.tip-league { color: var(--text2); font-size: 11px; margin-top: 2px; }

.tip-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-vip {
  background: #2a1e00;
  color: var(--orange);
  border: 1px solid var(--orange);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-free-tip {
  background: #1a3a1a;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* PAGE TITLE */
.page-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-top: 8px;
}

/* STEPS BAR */
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.step {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
}

.step.active { color: var(--orange); font-weight: 700; }
.step.done { color: var(--green); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
}

/* BOOKMAKERS */
.bookmakers-list { display: flex; flex-direction: column; gap: 12px; }

.bookmaker-item {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.bookmaker-item:active { border-color: var(--orange); }
.bookmaker-item.selected { border-color: var(--orange); }

.bookmaker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bookmaker-name { font-size: 16px; font-weight: 700; }
.bookmaker-signup {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.bookmaker-bonus { color: var(--orange); font-size: 15px; font-weight: 700; }
.bookmaker-max { color: var(--text2); font-size: 12px; }

.bookmaker-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.code-label { color: var(--text2); font-size: 12px; }
.code-value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--bg3);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* VERIFY INSTRUCTIONS */
.verify-instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

/* BUTTONS */
.btn-orange {
  width: 100%;
  background: var(--orange);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.btn-orange:active { opacity: 0.8; }

.btn-logout {
  width: 100%;
  background: transparent;
  color: #e74c3c;
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e74c3c33;
  cursor: pointer;
  margin-top: 10px;
}

/* STATS PAGE */
.period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.tab.active {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
}

.stat-card-icon { font-size: 20px; margin-bottom: 8px; }
.stat-card-label { color: var(--text2); font-size: 12px; margin-bottom: 6px; }
.stat-card-value { font-size: 24px; font-weight: 800; }
.stat-card-sub { color: var(--text2); font-size: 11px; margin-top: 4px; }

.vip-roi-box {
  background: var(--bg2);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}

.vip-roi-label {
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ACCOUNT */
.account-section {
  text-align: center;
  padding: 24px 0 16px;
}

.account-icon { font-size: 40px; margin-bottom: 8px; }
.account-title { font-size: 20px; font-weight: 700; }
.account-sub { color: var(--text2); font-size: 13px; margin-top: 4px; }

.referral-box {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  margin: 16px 0 8px;
}

.referral-label {
  color: var(--text2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.referral-link {
  font-size: 12px;
  color: var(--text2);
  word-break: break-all;
  margin-bottom: 10px;
}

.copy-btn {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 56px;
}

.nav-item.active { background: var(--bg3); }

.nav-icon { font-size: 20px; }

.nav-label {
  font-size: 10px;
  color: var(--text2);
}

.nav-item.active .nav-label { color: var(--orange); }

/* NOTIFICATION DOT */
.nav-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 10px;
}
