/* ============ BETFLOW CSS ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --bg-hover: #1c2128;
  --border: #21262d;
  --text: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;
  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --yellow: #eab308;
  --purple: #a855f7;
  --blue: #3b82f6;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f6f8fa;
  --bg-hover: #eaeef2;
  --border: #d0d7de;
  --text: #1f2328;
  --text-2: #656d76;
  --text-3: #8c959f;
}

html, body { background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ============ LAYOUT ============ */
.bf-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 72px 1fr;
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.bf-sidebar {
  grid-row: 1 / span 2;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
  position: sticky; top: 0; height: 100vh;
}
.bf-sidebar::-webkit-scrollbar { width: 6px; }
.bf-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.bf-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px 24px; color: var(--text);
}
.bf-logo {
  color: var(--green); font-size: 22px; font-weight: 800;
  display: inline-block;
  transform: skewX(-8deg);
}
.bf-brand-name { font-weight: 800; font-size: 20px; color: var(--text); }

.bf-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.bf-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: background .15s;
  position: relative;
}
.bf-nav-item:hover { background: var(--bg-elev); color: var(--text); }
.bf-nav-item.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.bf-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--green); border-radius: 2px;
}
.bf-ic { font-size: 16px; width: 20px; text-align: center; }
.bf-live-pill {
  background: var(--red); color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; margin-left: auto;
}
.bf-badge-green {
  background: var(--green); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 10px; margin-left: auto; min-width: 20px; text-align: center;
}

/* VIP CARD */
.bf-vip-card {
  margin: 24px 12px 12px;
  background: linear-gradient(135deg, #1c1c24, #0f0f14);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.bf-vip-title { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.bf-vip-crown { margin-bottom: 12px; }
.bf-vip-word {
  font-size: 32px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(180deg, #fef3c7, #eab308);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.bf-vip-i::before {
  content: '👑'; position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 20px; -webkit-text-fill-color: initial;
}
.bf-vip-list {
  list-style: none; text-align: left; font-size: 12px;
  color: var(--text); margin: 12px 0 16px; padding: 0;
}
.bf-vip-list li { padding: 3px 0; }
.bf-vip-list li:first-letter { color: var(--green); font-weight: 800; }
.bf-vip-cta {
  display: block; background: var(--yellow); color: #000;
  padding: 10px; border-radius: 8px; font-weight: 800; font-size: 13px;
  text-align: center;
}

/* FOOTER */
.bf-footer { padding: 30px 20px 20px; }
.bf-brand-small { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.bf-tagline { color: var(--text-3); font-size: 11px; margin: 2px 0 12px; }
.bf-social { display: flex; gap: 12px; margin-bottom: 16px; }
.bf-social a { color: var(--text-2); font-size: 16px; }
.bf-social a:hover { color: var(--green); }
.bf-copyright { color: var(--text-3); font-size: 10px; margin-bottom: 10px; }
.bf-legal { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.bf-legal a { color: var(--text-2); }

/* ============ TOPBAR ============ */
.bf-topbar {
  grid-column: 2;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.bf-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 20px;
  min-width: 300px; max-width: 400px; flex: 0 1 400px;
}
.bf-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 13px;
}
.bf-topnav { display: flex; gap: 4px; }
.bf-topnav a {
  padding: 8px 14px; color: var(--text-2); font-size: 14px; font-weight: 500;
  border-radius: 8px;
}
.bf-topnav a:hover { color: var(--text); }
.bf-topnav a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  border-radius: 0;
  padding-bottom: 6px;
}
.bf-topright {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.bf-btn-outline {
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: 13px; font-weight: 600;
}
.bf-btn-outline:hover { border-color: var(--text); }
.bf-btn-primary {
  padding: 8px 16px; background: var(--green); color: #fff;
  border-radius: 20px; font-size: 13px; font-weight: 700;
}
.bf-btn-primary:hover { background: var(--green-dark); }
.bf-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.bf-theme-toggle {
  color: var(--text-2); font-size: 18px;
}

/* ============ MAIN ============ */
.bf-main {
  padding: 20px 24px 40px;
  min-height: 0;
}

/* ============ HERO BANNER ============ */
.bf-hero {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(34,197,94,0.15), transparent 70%),
    linear-gradient(135deg, #0a1520 0%, #071018 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 20px;
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.bf-hero::before, .bf-hero::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40%;
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.bf-hero::before {
  left: 0;
  background-image: url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?w=600&auto=format');
}
.bf-hero::after {
  right: 0;
  background-image: url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=600&auto=format');
}
.bf-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; background: rgba(0,0,0,0.5);
  color: #fff; border-radius: 50%; font-size: 20px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.bf-hero-arrow.left { left: 16px; }
.bf-hero-arrow.right { right: 16px; }
.bf-hero-content {
  position: relative; z-index: 2; text-align: center;
  color: #fff;
}
.bf-hero-league { margin-bottom: 8px; }
.bf-hero-league-badge {
  background: rgba(0,0,0,0.4); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.bf-hero-teams {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin: 16px 0 8px;
}
.bf-hero-team-name {
  font-size: 32px; font-weight: 900; letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.bf-hero-vs {
  font-size: 18px; font-weight: 700; color: var(--text-2);
}
.bf-hero-time {
  font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.bf-hero-prediction {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 12px;
  padding: 12px 24px; margin-bottom: 16px;
}
.bf-prediction-label {
  color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.bf-prediction-pct {
  color: var(--green); font-size: 36px; font-weight: 900;
  line-height: 1; margin: 4px 0;
}
.bf-prediction-outcome {
  color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.bf-hero-cta {
  display: inline-block;
  background: var(--green); color: #fff;
  padding: 12px 28px; border-radius: 24px;
  font-weight: 700; font-size: 14px;
}
.bf-hero-cta:hover { background: var(--green-dark); }

/* ============ SPORTS ROW ============ */
.bf-sports-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px; margin: 20px 0;
}
.bf-sport {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 12px;
  color: var(--text-2); font-size: 12px; font-weight: 500;
}
.bf-sport:hover { background: var(--bg-elev); }
.bf-sport.active { background: rgba(34,197,94,0.12); color: var(--text); }
.bf-sport.active .bf-sport-ic {
  border: 2px solid var(--green);
}
.bf-sport-ic {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* ============ TWO COLUMN LAYOUT ============ */
.bf-two-col {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 16px; margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .bf-two-col { grid-template-columns: 1fr; }
}

/* ============ PANEL ============ */
.bf-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.bf-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.bf-panel-head h2, .bf-panel-head h3 {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.bf-panel-head h3 { font-size: 15px; }
.bf-link { color: var(--green); font-size: 12px; font-weight: 600; }

/* ============ TRENDING GRID ============ */
.bf-trending-grid {
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
}
@media (max-width: 900px) { .bf-trending-grid { grid-template-columns: 1fr; } }

/* Featured video (TikTok-style) */
.bf-video-featured { position: relative; }
.bf-pinned {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}
.bf-video-thumb {
  position: relative; aspect-ratio: 9/13; border-radius: 12px;
  background: linear-gradient(135deg, #1a1440, #06060a);
  overflow: hidden;
}
.bf-video-thumb img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
}
.bf-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; background: rgba(0,0,0,0.5);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; z-index: 2;
}
.bf-video-actions {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 3;
}
.bf-va {
  color: #fff; font-size: 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.bf-va small { font-size: 10px; }
.bf-va-add {
  width: 34px; height: 34px; background: var(--red);
  border-radius: 50%; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.bf-video-author {
  position: absolute; bottom: 90px; left: 12px; right: 60px; z-index: 3;
  color: #fff; display: flex; align-items: center; gap: 6px; font-size: 13px;
}
.bf-video-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}
.bf-video-username { font-weight: 600; }
.bf-verified { color: var(--blue); font-size: 12px; }
.bf-video-time { color: rgba(255,255,255,0.7); font-size: 11px; }
.bf-video-caption {
  position: absolute; bottom: 40px; left: 12px; right: 60px; z-index: 3;
  color: #fff; font-size: 12px;
}
.bf-video-tags { display: flex; gap: 6px; margin-top: 6px; }
.bf-tag { color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 500; }
.bf-video-dots {
  position: absolute; bottom: 16px; left: 12px; z-index: 3;
  display: flex; gap: 4px;
}
.bf-video-dots span {
  width: 24px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px;
}
.bf-video-dots span.active { background: #fff; }

/* ============ UP NEXT ============ */
.bf-upnext { display: flex; flex-direction: column; gap: 8px; }
.bf-upnext-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.bf-upnext-item { display: flex; gap: 10px; padding: 6px; border-radius: 8px; }
.bf-upnext-item:hover { background: var(--bg-hover); }
.bf-upnext-thumb {
  position: relative; width: 90px; height: 60px; border-radius: 8px;
  background: #1a1a24; overflow: hidden; flex-shrink: 0;
}
.bf-upnext-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-upnext-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.bf-upnext-time {
  position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.7);
  color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px;
}
.bf-upnext-body { flex: 1; min-width: 0; }
.bf-upnext-name {
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bf-upnext-sub {
  color: var(--text-3); font-size: 11px; margin-top: 2px;
}

/* ============ LIVE MATCH ============ */
.bf-match {
  padding: 10px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.bf-match-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; margin-bottom: 8px;
}
.bf-match-league { color: var(--text-3); font-weight: 700; letter-spacing: 0.5px; }
.bf-match-live-badge {
  background: var(--red); color: #fff; padding: 2px 6px;
  border-radius: 3px; font-weight: 800; font-size: 9px;
}
.bf-match-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
}
.bf-team-side { display: flex; align-items: center; gap: 8px; flex: 1; }
.bf-team-badge {
  width: 24px; height: 24px; background: var(--bg-elev);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.bf-team-name { font-size: 13px; color: var(--text); flex: 1; }
.bf-team-score { font-size: 14px; font-weight: 800; color: var(--text); margin-right: 8px; }
.bf-match-minute {
  font-size: 12px; font-weight: 700; color: var(--green);
  margin-left: auto;
}

/* ============ TIPSTER ============ */
.bf-tipster {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px solid var(--border);
}
.bf-tipster:last-child { border-bottom: 0; }
.bf-tipster-rank {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.bf-tipster-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.bf-tipster-body { flex: 1; }
.bf-tipster-name { color: var(--text); font-size: 13px; font-weight: 600; }
.bf-tipster-wr { color: var(--text-3); font-size: 11px; }
.bf-btn-follow {
  padding: 6px 12px; background: transparent;
  border: 1px solid var(--green); color: var(--green);
  border-radius: 16px; font-size: 11px; font-weight: 700;
}
.bf-btn-follow:hover { background: var(--green); color: #fff; }

/* ============ PREDICTIONS ============ */
.bf-pred-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.bf-pred-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.bf-pred-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.bf-pred-league { color: var(--text-2); font-size: 11px; font-weight: 700; }
.bf-pred-time { color: var(--text-3); font-size: 11px; }
.bf-pred-teams {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 10px 0;
}
.bf-pred-team {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text);
  flex: 1; min-width: 0;
}
.bf-pred-team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-pred-badge {
  width: 32px; height: 32px; background: var(--bg-elev); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.bf-pred-vs { color: var(--text-3); font-size: 10px; font-weight: 700; }
.bf-pred-pick {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: var(--bg-elev); border-radius: 8px;
  margin-bottom: 10px;
}
.bf-pred-pick-label { color: var(--text); font-size: 12px; font-weight: 600; }
.bf-pred-odds {
  color: var(--green); font-size: 16px; font-weight: 800;
  background: rgba(34,197,94,0.1); padding: 4px 10px; border-radius: 6px;
}
.bf-pred-conf {
  display: flex; flex-direction: column; gap: 4px;
}
.bf-pred-conf-bar {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.bf-pred-conf-bar > div {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--green-dark));
}
.bf-pred-conf span {
  color: var(--green); font-size: 11px; font-weight: 600;
}

/* ============ APP DOWNLOAD CARD ============ */
.bf-app-card {
  display: flex; gap: 12px; padding: 20px;
  background: linear-gradient(135deg, #0a1520 0%, #071018 100%);
  border: 1px solid var(--border); border-radius: 14px;
  position: relative; overflow: hidden;
}
.bf-app-body { flex: 1; z-index: 2; }
.bf-app-title { color: #fff; font-size: 18px; font-weight: 800; }
.bf-app-sub { color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 14px; }
.bf-app-stores { display: flex; flex-direction: column; gap: 8px; }
.bf-app-store {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #fff; font-size: 10px; line-height: 1.3;
}
.bf-app-store:hover { background: rgba(255,255,255,0.1); }
.bf-app-store strong { font-size: 12px; }
.bf-app-store span { font-size: 20px; }
.bf-app-phone {
  width: 120px; display: flex; align-items: center; justify-content: center;
}
.bf-phone-mock { font-size: 60px; opacity: 0.5; }

/* ============ INVITE BANNER ============ */
.bf-invite {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3); border-radius: 12px;
  margin-top: 16px;
}
.bf-invite-icon { font-size: 32px; }
.bf-invite-body { flex: 1; }
.bf-invite-title { color: var(--text); font-size: 14px; font-weight: 800; }
.bf-invite-sub { color: var(--text-2); font-size: 12px; }
.bf-invite-avatars { display: flex; align-items: center; }
.bf-invite-avatars > span {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -8px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: 2px solid var(--bg-elev);
}
.bf-invite-more {
  background: var(--green) !important; color: #fff; font-size: 11px;
  font-weight: 700; display: flex !important; align-items: center; justify-content: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .bf-app { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }
  .bf-sidebar {
    display: none;
    position: fixed; top: 60px; left: 0; bottom: 0; width: 260px; z-index: 100;
    background: var(--bg);
  }
  .bf-sidebar.open { display: block; }
  .bf-topbar { grid-column: 1; padding: 8px 12px; gap: 8px; }
  .bf-search { min-width: 0; }
  .bf-topnav { display: none; }
  .bf-main { padding: 12px; grid-column: 1; }
  .bf-hero-team-name { font-size: 22px; }
  .bf-prediction-pct { font-size: 28px; }
}

/* ============ HAMBURGER + SEARCH OVERLAY ============ */
.bf-hamburger, .bf-search-icon {
  background: var(--bg-elev); border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.bf-hamburger { display: none; }
.bf-hamburger:hover, .bf-search-icon:hover { background: var(--bg-hover); }

.bf-sidebar-backdrop { display: none; }

/* Search overlay (TikTok-style) */
.bf-search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 60px;
}
.bf-search-overlay.on { display: flex; }
.bf-search-panel {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; width: 100%; max-width: 560px;
  padding: 20px; position: relative;
  max-height: 80vh; overflow-y: auto;
}
.bf-search-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: var(--text-2);
  font-size: 22px; cursor: pointer;
}
.bf-search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 24px; margin-bottom: 16px;
}
.bf-search-input-wrap input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 15px;
}
.bf-search-results { min-height: 200px; }
.bf-search-results:empty::before {
  content: 'Ekri omwens 2 lèt pou chèche...';
  color: var(--text-3); font-size: 13px;
  display: block; text-align: center; padding: 40px 0;
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 900px) {
  .bf-app { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }
  .bf-sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0;
    width: 260px; z-index: 200; height: 100vh;
    transition: left 0.3s ease;
    display: block;
  }
  body.sidebar-open .bf-sidebar { left: 0; }
  body.sidebar-open .bf-sidebar-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 150;
  }
  .bf-hamburger { display: flex; }
  .bf-topbar {
    grid-column: 1; padding: 8px 12px;
    gap: 8px; justify-content: space-between;
  }
  .bf-topnav { display: none; }
  .bf-main { grid-column: 1; padding: 12px; }
  .bf-search-icon { margin-left: auto; }

  /* Hide desktop-only elements */
  .bf-topright .bf-btn-outline, .bf-topright .bf-btn-primary { display: none; }

  /* Hero sizing */
  .bf-hero { padding: 24px 12px; min-height: 260px; }
  .bf-hero-team-name { font-size: 20px !important; }
  .bf-prediction-pct { font-size: 26px !important; }

  /* Trending grid stacks */
  .bf-trending-grid { grid-template-columns: 1fr; }
  .bf-two-col { grid-template-columns: 1fr; }

  /* Sports row scroll */
  .bf-sports-row {
    grid-template-columns: none;
    display: flex; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .bf-sports-row::-webkit-scrollbar { display: none; }
  .bf-sport { flex-shrink: 0; min-width: 72px; }
}

@media (max-width: 500px) {
  .bf-hero { min-height: 220px; padding: 16px 8px; }
  .bf-hero-teams { gap: 12px; }
  .bf-hero-team-name { font-size: 16px !important; }
  .bf-avatar-btn { width: 32px; height: 32px; font-size: 13px; }
}

/* ============ WALLET + VIP + LIVE + TIPS pages ============ */
.wallet-wrap, .vip-wrap, .live-wrap {
  max-width: 900px; margin: 0 auto; padding: 20px 16px 60px;
}
.wallet-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px;
}
@media (max-width: 700px) { .wallet-summary { grid-template-columns: 1fr; } }
.balance-card, .vip-status-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.balance-card { background: linear-gradient(135deg, #4c1d95, #7c3aed); border: 0; color: #fff; }
.balance-card .label, .vip-status-card .label {
  color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.vip-status-card .label { color: var(--text-3); }
.balance-card .balance {
  font-size: 34px; font-weight: 900; margin: 8px 0 14px;
  color: var(--yellow);
}
.balance-card .btn-primary {
  background: var(--green); color: #fff; border: 0;
  padding: 10px 20px; border-radius: 20px; font-weight: 800; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
}
.status-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.status-line strong { color: var(--text); font-size: 18px; }
.status-line .btn-outline { color: var(--green); text-decoration: none;
  border: 1px solid var(--green); padding: 6px 14px; border-radius: 16px; font-size: 12px; }
.wallet-wrap h2, .vip-wrap h2 {
  color: var(--text); font-size: 18px; margin: 20px 0 12px;
}
.txn-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 6px;
}
.txn-row .txn-reason { color: var(--text); font-weight: 600; font-size: 14px; }
.txn-row .txn-date { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.txn-row .txn-amount { font-weight: 800; font-size: 15px; }
.txn-row.credit .txn-amount { color: var(--green); }
.txn-row.debit .txn-amount { color: var(--red); }
.empty-state.small {
  text-align: center; padding: 40px 20px; color: var(--text-3);
  background: var(--bg-elev); border: 1px dashed var(--border); border-radius: 12px;
}

/* VIP tiers */
.section-head.center { text-align: center; margin-bottom: 30px; }
.section-head .eyebrow {
  color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: 2px;
}
.section-head h1 { color: var(--text); font-size: 30px; font-weight: 900; margin: 6px 0; }
.section-head .lede { color: var(--text-2); font-size: 14px; }
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tier {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 20px; position: relative;
  transition: transform .15s, border-color .15s;
}
.tier:hover { transform: translateY(-4px); border-color: var(--green); }
.tier.featured { border: 2px solid var(--yellow); background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), var(--bg-elev)); }
.featured-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #000; padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
}
.tier-name { color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; }
.tier-price { color: var(--text); font-size: 32px; font-weight: 900; }
.tier-price .per { color: var(--text-3); font-size: 12px; font-weight: 500; margin-left: 4px; }
.tier-desc { color: var(--text-2); font-size: 13px; margin: 10px 0 14px; line-height: 1.5; }
.tier-features { list-style: none; padding: 0; margin: 0 0 20px; }
.tier-features li {
  color: var(--text); font-size: 13px; padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
}
.tier-features li::before { content: '✓'; color: var(--green); font-weight: 800; }
.btn-block { display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 24px; font-weight: 800; }
.tier .btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.tier .btn-primary {
  background: var(--green); color: #fff; border: 0;
}
.tier.featured .btn-primary { background: var(--yellow); color: #000; }

/* Live page */
.live-wrap h1 { color: var(--text); font-size: 24px; margin-bottom: 20px; }
