
  :root{
    --bg: #0d0d0d;
    /* --bg: #2fe03e; */
    --surface: #161616;
    --card: #1c1c1c;
    --border: #2a2a2a;
    --green: #00e676;
    --green-dim: rgba(0,230,118,0.1);
    --red: #ff3d3d;
    --red-dim: rgba(255,61,61,0.1);
    --gold: #ffd600;
    --gold-dim: rgba(255,214,0,0.1);
    --text: #f0f0f0;
    --muted: #666;
    --bebas: 'Bebas Neue', sans-serif;
    --dm: 'DM Sans', sans-serif;
}

* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  text-decoration: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--dm);
    min-height: 100vh;
}
/*   


  /* NAV */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
  }

.logo {
    font-family: var(--bebas);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--green);
}

.logo span {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 8px;
    
}

  .nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--dm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
  }

  .nav-btn.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
  }

  .nav-btn.primary {
    background: var(--green);
    color: #000;
  }

  /* PAGE LABELS */
  .page-label {
    font-family: var(--dm);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--green);
    padding: 32px 24px 0;
    opacity: 0.7;
  }

  /* HERO */
  .hero {
    padding: 24px 24px 40px;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 {
    font-family: var(--bebas);
    font-size: clamp(48px, 10vw, 80px);
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--green);
    display: block;
  }

  .hero p {
    color: var(--muted);
    font-size: 14px;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat {
    display: flex;
    flex-direction: column;
  }

  .stat-num {
    font-family: var(--bebas);
    font-size: 32px;
    color: var(--gold);
    line-height: 1;
  }

  .stat-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* SECTION TITLE */
  .section {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
  }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .section-title {
    font-family: var(--bebas);
    font-size: 24px;
    letter-spacing: 1px;
  }

  .see-all {
    font-size: 12px;
    color: var(--green);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--dm);
  }

  /* TIPSTER CARDS */
  .tipster-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tipster-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
  }

  .tipster-card:hover {
    border-color: var(--green);
  }

  .tipster-rank {
    font-family: var(--bebas);
    font-size: 28px;
    color: var(--border);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
  }

  .tipster-rank.gold { color: var(--gold); }
  .tipster-rank.silver { color: #aaa; }
  .tipster-rank.bronze { color: #cd7f32; }

  .tipster-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bebas);
    font-size: 18px;
    flex-shrink: 0;
  }

  .tipster-info {
    flex: 1;
    min-width: 0;
  }

.tipster-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
  }

  .tipster-meta {
    font-size: 12px;
    color: var(--muted);
  }

  .tipster-accuracy {
    text-align: right;
    flex-shrink: 0;
  }

  .accuracy-num {
    font-family: var(--bebas);
    font-size: 26px;
    color: var(--green);
    line-height: 1;
  }

  .accuracy-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* TIP CARDS */
  .tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tip-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
  }

  .tip-card:hover {
    border-color: rgba(0,230,118,0.3);
  }

  .tip-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }

  .tip-tipster {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 1px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
  }

  .tip-tipster-name {
    font-size: 13px;
    font-weight: 600;
  }

  .tip-tipster-acc {
    font-size: 11px;
    color: var(--green);
  }

  .tip-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .badge-active {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0,230,118,0.3);
  }

  .badge-locked {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255,61,61,0.3);
  }

  .badge-won {
    background: var(--green-dim);
    color: var(--green);
  }

  .badge-lost {
    background: var(--red-dim);
    color: var(--red);
  }

  .tip-body {
    padding: 14px 16px;
  }

  .tip-matches-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }

  .match-teams {
    color: var(--muted);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-pred {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .more-matches {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    padding: 4px;
  }

  .tip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .tip-odds {
    display: flex;
    flex-direction: column;
  }

  .tip-odds-num {
    font-family: var(--bebas);
    font-size: 20px;
    color: var(--gold);
    line-height: 1;
  }

  .tip-odds-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
  }

  .tip-lock-info {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
  }

  .tip-lock-time {
    color: var(--red);
    font-weight: 600;
  }

  .unlock-btn {
    background: var(--green);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--dm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
  }

  .unlock-btn span {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
  }

  /* TIPSTER PROFILE PAGE */
  .profile-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }

  .profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bebas);
    font-size: 28px;
    color: var(--green);
    flex-shrink: 0;
  }

  .profile-name {
    font-family: var(--bebas);
    font-size: 32px;
    line-height: 1;
    letter-spacing: 1px;
  }

  .profile-joined {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
  }

  .profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--green);
    background: var(--green-dim);
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 6px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

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

  .stat-card-num {
    font-family: var(--bebas);
    font-size: 36px;
    line-height: 1;
  }

  .stat-card-num.green { color: var(--green); }
  .stat-card-num.gold { color: var(--gold); }
  .stat-card-num.red { color: var(--red); }
  .stat-card-num.white { color: var(--text); }

  .stat-card-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
  }

  .accuracy-bar-wrap {
    margin-bottom: 24px;
  }

  .accuracy-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .accuracy-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
  }

  .accuracy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: 3px;
    width: 68%;
  }

  /* TIP DETAIL PAGE */
  .tip-detail-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }

  .tip-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .tip-detail-title {
    font-family: var(--bebas);
    font-size: 28px;
    letter-spacing: 1px;
  }

  .matches-full-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .match-full-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .match-full-teams {
    flex: 1;
  }

  .match-full-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
  }

  .match-full-league {
    font-size: 11px;
    color: var(--muted);
  }

  .match-full-right {
    text-align: right;
    flex-shrink: 0;
  }

  .match-full-pred {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2px;
  }

  .match-full-odds {
    font-size: 11px;
    color: var(--muted);
  }

  .match-result-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .dot-pending { background: var(--muted); }
  .dot-won { background: var(--green); }
  .dot-lost { background: var(--red); }

  .unlock-full-btn {
    width: 100%;
    background: var(--green);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-family: var(--bebas);
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .unlock-price {
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
  }

  /* PAGE DIVIDER */
  .page-divider {
    padding: 16px 24px;
    background: var(--surface);
    border-top: 2px solid var(--green);
    border-bottom: 1px solid var(--border);
    font-family: var(--bebas);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--muted);
  }

  /* BOTTOM NAV */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0 16px;
    z-index: 100;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 0;
  }

#bottom-nav-icon {
    color: var(--text);
}

#bottom-nav-icon:hover {
  color: var(--green);
}
.bottom-nav-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.5px;
    justify-content: center;
}

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

.spacer { height: 80px; } 

/* loading animations */
/* Loading spinner */
.htmx-request .tips-list {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.htmx-indicator {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

.htmx-request .htmx-indicator {
  display: block;
}

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

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.htmx-request button[type="submit"] {
  opacity: 0.7;
  cursor: not-allowed;
}
/* MOBILE RESPONSIVENESS */
/* ── RESPONSIVE ── */
/* Large phones and small tablets */
@media (max-width: 768px) {
   .register-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .register-card {
    padding: 40px 48px;
  }

  .register-card input {
    width: 100%;
    font-size: 16px;
  }

  .register-card .role-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  } 
}

/* Standard phones */

@media (max-width: 480px) {

  /* Hero */
.hero h1 {font-size: 48px;}
.hero p {font-size: 13px;}
/* Nav */
.nav-btn {padding: 6px 12px; font-size: 12px;}
.logo {font-size: 22px;}
/* Stats grid — 2 columns on mobile */
.stats-grid {grid-template-columns: repeat(2, 1fr);}
/* Tipster card */
.tipster-card {padding: 12px; gap: 10px;}
.tipster-rank {font-size: 20px; width: 24px;}
.accuracy-num {font-size: 20px;}
/* Tip card */
.tip-footer {gap: 8px;}
.unlock-btn {padding: 8px 12px;font-size: 11px;}
.tip-odds-num {font-size: 16px;}
/* Section padding */
.section {padding: 16px;}
.hero {padding: 20px 16px 28px;}
/* Profile */
.profile-avatar {width: 52px; height: 52px; font-size: 22px;}
.profile-name {font-size: 24px;}
/* Filter pills */
.filter-pill {font-size: 11px; padding: 5px 10px;}
/* Bottom nav */
.bottom-nav-label {font-size: 9px; }
/* Match rows */
.match-teams {font-size: 11px;}
.match-pred {font-size: 10px; padding: 2px 6px;}
/* Tip detail */
.tip-detail-title {font-size: 22px;}
.match-full-name {font-size: 12px;}
.match-full-league {font-size: 10px;}

}


/* Small phones like iPhone SE */
@media (max-width: 360px) {

.hero h1 { font-size: 36px; }
.logo { font-size: 18px; }
.nav-btn { padding: 5px 8px; font-size: 10px; }
.accuracy-num { font-size: 16px; }
.tipster-rank { font-size: 18px; width: 20px; }
.stat-card-num { font-size: 24px; }
.unlock-btn { padding: 6px 8px; font-size: 10px; }
.filter-pill { font-size: 10px; padding: 4px 8px; }
.bottom-nav-label { font-size: 8px;}

}