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

:root {
  --bg:   #0a0e1a;
  --bg2:  #111827;
  --bg3:  #1a2234;
  --brd:  #1e2d45;
  --txt:  #e2e8f0;
  --txt2: #94a3b8;
  --gn:   #22c55e;
  --gd:   #f59e0b;
  --cy:   #06b6d4;
  --rd:   #ef4444;
  --pu:   #a855f7;
  --font: 'Inter', system-ui, sans-serif;
  --r:    12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Wrap ── */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ── Header ── */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--brd);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hdr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-badge {
  background: linear-gradient(135deg, var(--cy), var(--pu));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.hdr-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--txt);
}

.hdr-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cy);
  opacity: 0.8;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tg {
  background: #0088cc;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-tg:hover { background: #0077b5; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gn);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── Agent bar ── */
.agent-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #0e1a2e, #111827);
  border-bottom: 1px solid var(--brd);
  font-size: 12px;
  color: var(--cy);
  font-weight: 500;
  overflow: hidden;
}

.agent-icon { font-size: 15px; }

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--brd);
}

.stat-cell {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--brd);
}
.stat-cell:last-child { border-right: none; }

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--cy);
  line-height: 1;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--txt2);
  margin-top: 3px;
}

/* ── Section header ── */
.sec-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--txt2);
  text-transform: uppercase;
}

.sec-hdr-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rd);
}

.live-pulse {
  animation: pulse-dot 1.4s infinite;
}

/* ── Match card ── */
.card {
  margin: 6px 16px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--brd);
}

.card-league {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--txt2);
  text-transform: uppercase;
}

.card-ko {
  font-size: 10px;
  font-weight: 600;
  color: var(--txt2);
}

.card-teams {
  padding: 10px 14px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
}

.card-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg3);
  border-top: 1px solid var(--brd);
}

.tier-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}

.tier-basic { background: #1a3a1a; color: var(--gn); border: 1px solid #2a5a2a; }
.tier-pro   { background: #2a2010; color: var(--gd); border: 1px solid #4a3818; }
.tier-vip   { background: #2a1040; color: var(--pu); border: 1px solid #4a2070; }

/* Blurred pick for locked tiers */
.pick-blurred {
  filter: blur(5px);
  user-select: none;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.pick-revealed {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
}

.lock-icon {
  font-size: 14px;
  color: var(--txt2);
}

.pick-odds {
  font-size: 13px;
  font-weight: 800;
  color: var(--gd);
}

.pick-conf {
  font-size: 10px;
  color: var(--txt2);
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2a0a0a;
  color: var(--rd);
  border: 1px solid #4a1010;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd);
  animation: pulse-dot 1s infinite;
}

/* Integrity score */
.integrity-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
}

.int-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt2);
}

.int-dots {
  display: flex;
  gap: 3px;
}

.int-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brd);
}
.int-dot.on { background: var(--cy); }

/* ── Yesterday results ── */
.yest-summary {
  display: flex;
  gap: 10px;
  padding: 6px 16px 10px;
  flex-wrap: wrap;
}

.yest-stat {
  padding: 6px 14px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 8px;
  text-align: center;
}

.yest-stat-val {
  font-size: 20px;
  font-weight: 800;
}

.yest-stat-lbl {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--txt2);
  font-weight: 700;
}

.yest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--brd);
}

.yest-won  { color: var(--gn); font-size: 16px; }
.yest-lost { color: var(--rd); font-size: 16px; }

.yest-match {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.yest-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── Plans ── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 16px 16px;
}

@media (max-width: 500px) {
  .plans { grid-template-columns: 1fr; }
}

.plan-card {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: var(--gd);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gd);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
}

.plan-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--txt);
}

.plan-price-sub {
  font-size: 10px;
  color: var(--txt2);
  margin-bottom: 12px;
}

.plan-features {
  list-style: none;
  text-align: left;
  font-size: 11px;
  color: var(--txt2);
  margin-bottom: 14px;
  line-height: 1.8;
}

.plan-features li::before { content: '✓ '; color: var(--gn); font-weight: 700; }

.plan-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.plan-btn:hover { opacity: 0.85; }

.plan-btn-basic { background: var(--bg3); color: var(--gn); border: 1px solid var(--gn); }
.plan-btn-pro   { background: var(--gd); color: #000; }
.plan-btn-vip   { background: linear-gradient(135deg, var(--pu), #7c3aed); color: #fff; }

/* ── Telegram CTA ── */
.tg-cta {
  margin: 16px;
  background: linear-gradient(135deg, #0e2a3a, #081420);
  border: 1px solid #0088cc44;
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
}

.tg-cta-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.tg-cta-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tg-cta-sub {
  font-size: 12px;
  color: var(--txt2);
  margin-bottom: 16px;
  line-height: 1.6;
}

.btn-tg-big {
  background: #0088cc;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-tg-big:hover { background: #0077b5; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 10px;
  color: var(--txt2);
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  height: 14px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--txt2);
  font-size: 13px;
}

.empty-state-icon { font-size: 28px; margin-bottom: 8px; }
