/* ═══════════════════════════════════════════════════
   GBaited — LoL Esport Pronostics — Design System
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:        #080d18;
  --surface:   #0d1526;
  --card:      #111d30;
  --card-hover:#152035;
  --border:    #1e2d45;
  --border-light: #253650;

  --gold:      #c89b3c;
  --gold-light:#f0c060;
  --gold-dim:  #7a5e20;
  --blue:      #0bc4e3;
  --blue-dim:  #0a6a7a;
  --red:       #e84057;
  --green:     #2dce8a;

  --text:      #d8d0c0;
  --text-sub:  #7a8fa8;
  --text-dim:  #3d5068;

  --sidebar-w: 240px;
  --radius:    10px;
  --radius-sm: 6px;
  --trans:     0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }
svg { fill: currentColor; display: block; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--trans);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.logo-icon { font-size: 1.2rem; }
.logo-accent { color: var(--gold); }

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--trans), background var(--trans);
  border-left: 3px solid transparent;
}
.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.nav-item.active {
  color: var(--gold);
  background: rgba(200,155,60,0.08);
  border-left-color: var(--gold);
}
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar-user-info > span:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-points {
  font-size: 0.75rem;
  color: var(--gold);
}
.btn-logout {
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  transition: color var(--trans), background var(--trans);
}
.btn-logout:hover { color: var(--red); background: rgba(232,64,87,0.1); }
.btn-logout svg { width: 18px; height: 18px; }

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Mobile header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.mobile-logo {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 90;
}

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}
.page-container {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Pages ── */
.page { display: none; }
.page.active { display: block; }

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}
.page-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--trans);
}
.btn--primary {
  background: linear-gradient(135deg, #a07828, var(--gold));
  color: #0a0e1a;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,155,60,0.3);
}
.btn--outline {
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost {
  color: var(--text-sub);
  background: rgba(255,255,255,0.05);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.btn--sm { padding: 6px 14px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #c03040; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

/* ── Hero ── */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #0d1928 0%, #0f1f38 50%, #0d1926 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,155,60,0.12), transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-accent { color: var(--gold); }
.hero-sub {
  color: var(--text-sub);
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hex-grid {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.hex {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}
.hex--gold { background: rgba(200,155,60,0.15); border: 1px solid var(--gold-dim); }
.hex--blue { background: rgba(11,196,227,0.1); border: 1px solid var(--blue-dim); animation-delay: 1s; }
.hex:nth-child(3) { animation-delay: 0.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Home grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}
.home-section { }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.section-link {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.8;
  cursor: pointer;
}
.section-link:hover { opacity: 1; }

/* ── Match cards ── */
.match-list { display: flex; flex-direction: column; gap: 10px; }

.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--trans), background var(--trans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.match-card:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
}
.match-card--live { border-left: 3px solid var(--red); }
.match-card--live::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.match-teams {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.match-team--right { flex-direction: row-reverse; text-align: right; }
.team-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.team-logo--gold { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); color: var(--bg); }

.match-score {
  text-align: center;
  min-width: 80px;
}
.score-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.score-bo {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 90px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge--upcoming { background: rgba(122,143,168,0.15); color: var(--text-sub); }
.status-badge--live {
  background: rgba(232,64,87,0.15);
  color: var(--red);
  animation: pulse 2s infinite;
}
.status-badge--finished { background: rgba(45,206,138,0.12); color: var(--green); }
.status-badge--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.match-bet-btn {
  flex-shrink: 0;
}

.match-comp {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── Competitions ── */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.competition-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), background var(--trans);
  position: relative;
  overflow: hidden;
}
.competition-card:hover {
  border-color: var(--gold-dim);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.competition-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  opacity: 0;
  transition: opacity var(--trans);
}
.competition-card:hover::after { opacity: 1; }

.comp-game {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.comp-region {
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.comp-region::before {
  content: '◎';
  color: var(--blue);
  font-size: 0.7rem;
}
.comp-id {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ── Tournaments ── */
.tournament-list { display: flex; flex-direction: column; gap: 10px; }
.tournament-list--full .tournament-card { padding: 20px; }

.tournament-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color var(--trans), background var(--trans);
}
.tournament-card:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
}
.tournament-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.tournament-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 3px;
}
.tournament-arrow { color: var(--text-dim); font-size: 1.2rem; }

/* ── Leaderboard ── */
.leaderboard { display: flex; flex-direction: column; gap: 6px; }

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.leaderboard-row--1 { border-color: var(--gold); background: rgba(200,155,60,0.07); }
.leaderboard-row--2 { border-color: #8a8f98; background: rgba(138,143,152,0.05); }
.leaderboard-row--3 { border-color: #a06040; background: rgba(160,96,64,0.05); }

.rank-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text-sub);
  flex-shrink: 0;
}
.rank-badge--1 { background: var(--gold); color: var(--bg); }
.rank-badge--2 { background: #8a8f98; color: var(--bg); }
.rank-badge--3 { background: #a06040; color: #fff; }

.lb-name { flex: 1; font-weight: 500; font-size: 0.9rem; }
.lb-points {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.lb-count { font-size: 0.75rem; color: var(--text-dim); }

/* ── Members ── */
.members-list { display: flex; flex-direction: column; gap: 6px; }
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.member-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.member-name { font-size: 0.88rem; font-weight: 500; }

/* ── Paris ── */
.paris-list { display: flex; flex-direction: column; gap: 10px; }

.pari-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pari-match {
  flex: 1;
}
.pari-match-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.pari-prediction { font-size: 0.8rem; color: var(--blue); }
.pari-tournament { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

.pari-actions {
  display: flex;
  gap: 8px;
}

/* ── Profile ── */
.profile-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  min-width: 200px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  margin: 0 auto 16px;
  border: 3px solid var(--gold-dim);
}
.profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-points { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.points-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}
.points-label { font-size: 0.85rem; color: var(--text-sub); }

.profile-stats { margin-top: 8px; }

/* ── Tournament detail ── */
.tournament-detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
}
.tournament-detail-grid .section-title { margin-bottom: 14px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--trans);
  outline: none;
  appearance: none;
}
.form-input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 2px rgba(200,155,60,0.12); }
.form-input::placeholder { color: var(--text-dim); }
select.form-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a8fa8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }

.form-error {
  background: rgba(232,64,87,0.1);
  border: 1px solid rgba(232,64,87,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--trans);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-light); }
.filter-btn.active { background: rgba(200,155,60,0.15); border-color: var(--gold-dim); color: var(--gold); }

/* ── Modal ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modal-in 0.2s ease;
}
.modal--sm { max-width: 380px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1rem;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--trans);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.auth-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}
.auth-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-sub);
}
.auth-switch a { color: var(--gold); }
.auth-switch a:hover { text-decoration: underline; }

.auth-form.hidden { display: none; }

/* ── Bet modal ── */
.bet-match-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-sub);
}
.bet-team-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bet-team-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
}
.bet-team-btn:hover { border-color: var(--border-light); }
.bet-team-btn.selected { border-color: var(--gold); background: rgba(200,155,60,0.1); color: var(--gold); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  min-width: 260px;
  max-width: 360px;
  animation: toast-in 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast--success { border-left: 3px solid var(--green); }
.toast--error   { border-left: 3px solid var(--red); }
.toast--info    { border-left: 3px solid var(--blue); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { margin-bottom: 20px; font-size: 0.95rem; }

/* ── Loaders ── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
  height: 68px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.btn-back {
  color: var(--text-sub);
  font-size: 0.85rem;
  padding: 6px 0;
  margin-bottom: 16px;
  transition: color var(--trans);
}
.btn-back:hover { color: var(--gold); }

/* ── Hidden utils ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .tournament-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; padding-top: 56px; }
  .page-container { padding: 20px 16px; }
  .page-hero { flex-direction: column; padding: 28px 20px; }
  .hero-title { font-size: 1.8rem; }
  .hex-grid { justify-content: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .match-teams { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .competitions-grid { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
