/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --border:    #2a2d3e;
  --accent:    #5865f2;
  --accent-hov:#4752c4;
  --text:      #e2e4f0;
  --muted:     #8b8fa8;
  --danger:    #ed4245;
  --radius:    8px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-brand:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #ff6666, #ff2222);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-brand-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-tagline {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.3px;
  line-height: 1;
  margin-top: -2px;
}

.nav-user { color: var(--muted); }

/* User dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
}

.nav-dropdown-toggle:hover { color: var(--text); }

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dropdown-arrow {
  width: 10px;
  height: 8px;
  transition: transform 0.15s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a,
.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.nav-dropdown-item--danger { color: var(--danger); }
.nav-dropdown-item--danger:hover { background: rgba(237,66,69,0.1); }

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

/* World clocks */

.clock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.4rem;
  border-right: 1px solid var(--border);
}

.clock-item:last-child { border-right: none; }

.clock-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.clock-time {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.clock-date {
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1;
}

@media (max-width: 900px) {
  .footer-clocks { display: none; }
}

.inline-form { display: inline; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hov); text-decoration: none; color: #fff; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); text-decoration: none; }

.btn-sm  { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-lg  { padding: 0.75rem 2rem;   font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.btn-link:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════
   LANDING PAGE (logged out)
   ══════════════════════════════════════════════════════════════ */

.landing-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-hero-content {
  max-width: 520px;
}

.landing-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cc3333;
  background: rgba(180,30,30,0.15);
  border: 1px solid rgba(180,30,30,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.landing-accent {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.landing-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-xl {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost:hover {
  border-color: var(--text);
  text-decoration: none;
  color: var(--text);
}

/* Mini bracket preview */
.landing-hero-visual {
  flex-shrink: 0;
}

.landing-bracket-preview {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.lbp-round {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.lbp-match {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 140px;
}

.lbp-final {
  border-color: var(--accent);
}

.lbp-p {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.lbp-p:last-child { border-bottom: none; }

.lbp-win {
  color: #57f287;
  font-weight: 600;
  background: rgba(87,242,135,0.08);
}

/* Features grid */
.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

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

.landing-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.landing-feature:hover {
  border-color: var(--accent);
}

.landing-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88,101,242,0.12);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.landing-feature-icon svg {
  width: 20px;
  height: 20px;
}

.landing-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.landing-feature p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Bottom CTA */
.landing-cta {
  text-align: center;
  padding: 3rem 2rem 4rem;
  background: linear-gradient(180deg, transparent, rgba(88,101,242,0.05));
}

.landing-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.landing-cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .landing-hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .landing-hero-actions { justify-content: center; }
  .landing-hero-visual { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   HOME — LOGGED IN
   ══════════════════════════════════════════════════════════════ */

.home-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.home-empty h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ── Home leagues ─────────────────────────────────────────── */
.home-leagues {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.home-leagues-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.home-leagues-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Auth card ────────────────────────────────────────────── */
.auth-card {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.auth-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }

.auth-card .btn-primary { margin-top: 0.5rem; }

.auth-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert-error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #f28b8d;
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.subtitle { color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.page-header h1 { font-size: 1.75rem; }

/* ── Card as link ─────────────────────────────────────────── */
a.card-link {
  display: block;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
}
a.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Textarea ─────────────────────────────────────────────── */
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* ── Meta / badge ─────────────────────────────────────────── */
.meta  { font-size: 0.8rem; color: var(--muted); }
.muted { color: var(--muted); }

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: rgba(88, 101, 242, 0.2);
  color: var(--accent);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

/* ── Select dropdown ──────────────────────────────────────── */
select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Card slogan ──────────────────────────────────────────── */
.card-slogan {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* ── Card footer row (meta + member count side by side) ───── */
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}

/* ── Character counter ────────────────────────────────────── */
.char-counter {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.2rem;
}
.char-counter--near { color: var(--warning, #b07d00); }
.char-counter--over  { color: var(--danger,  #c0392b); }

/* ── Tags (game / platform chips on cards) ────────────────── */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: var(--border);
  color: var(--muted);
}

/* ── Detail rows (label + value pairs in cards) ───────────── */
.detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.detail-label {
  color: var(--muted);
  min-width: 80px;
  font-weight: 600;
}

/* ── Card header row (name + badge side by side) ─────────── */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.card-header-row h3 { margin-bottom: 0; }

/* ── Required asterisk ────────────────────────────────────── */
.required { color: var(--danger); margin-left: 2px; }

/* ── Danger button ────────────────────────────────────────── */
.btn-danger {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--danger);
  color: #fff;
  transition: background 0.15s;
}
.btn-danger:hover { background: #c03537; text-decoration: none; color: #fff; }
.btn-danger.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }

/* ── Danger link ──────────────────────────────────────────── */
.btn-link-danger { color: var(--danger) !important; }

/* ── Toast notifications ──────────────────────────────────── */
.toast {
  position: fixed;
  top: 70px;
  right: 1.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius);
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: opacity 0.5s, transform 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.toast--fade {
  opacity: 0;
  transform: translateY(-10px);
}

.toast-success {
  background: rgba(87, 242, 135, 0.15);
  border: 1px solid rgba(87, 242, 135, 0.3);
  color: #57f287;
}

.toast-error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.3);
  color: #f28b8d;
}

/* ── Alert info ───────────────────────────────────────────── */
.alert-info {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #8b9bff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* ── Visibility toggle ────────────────────────────────────── */
.visibility-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.visibility-option input[type="radio"] { display: none; }
.visibility-btn {
  display: block;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.visibility-btn small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.visibility-option input[type="radio"]:checked + .visibility-btn {
  border-color: var(--accent);
  background: rgba(88, 101, 242, 0.1);
}

/* ── Public / Private badges ──────────────────────────────── */
.badge-public  { background: rgba(87,242,135,0.15); color:#57f287; border:1px solid rgba(87,242,135,0.3); }
.badge-private { background: rgba(237,66,69,0.15);  color:#f28b8d; border:1px solid rgba(237,66,69,0.3); }
.badge-founder { background: rgba(180,30,30,0.2);  color:#cc3333; border:1px solid rgba(180,30,30,0.4); }

/* ── Role badges ──────────────────────────────────────────── */
.role-founder      { background: rgba(180,30,30,0.2);  color: #cc3333;       border:1px solid rgba(180,30,30,0.4); }
.role-admin        { background: rgba(88,101,242,0.2);  color: var(--accent); border:1px solid rgba(88,101,242,0.3); }
.role-head_td      { background: rgba(255,215,0,0.15);  color: #ffd700;       border:1px solid rgba(255,215,0,0.3); }
.role-td           { background: rgba(87,242,135,0.15); color: #57f287;       border:1px solid rgba(87,242,135,0.3); }
.role-td_apprentice { background: rgba(87,242,135,0.1);  color: #57f287;       border:1px solid rgba(87,242,135,0.2); }
.role-member       { background: var(--border); color: var(--muted); }

/* ── Notification bell ────────────────────────────────────── */
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.15s;
}
.notif-bell:hover { text-decoration: none; color: var(--text); }

.bell-icon {
  width: 20px;
  height: 20px;
}
.notif-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}

/* ── Member list ──────────────────────────────────────────── */
.member-list { list-style: none; }
.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.member-item:last-child { border-bottom: none; }
.member-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.member-name    { flex: 1; font-size: 0.9rem; }
.member-actions { margin-left: auto; }

/* ── Inline add-member form ───────────────────────────────── */
.inline-add-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.inline-add-form input  { flex: 1; min-width: 140px; }
.inline-add-form select { width: auto; flex-shrink: 0; }

/* ── Private / locked view ────────────────────────────────── */
.league-locked {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.league-locked h2 { margin-bottom: 0.5rem; }
.league-locked p  { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px; width: 90%;
}
.modal h3 { margin-bottom: 0.6rem; }
.modal > p { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.9rem; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; justify-content: flex-end; }

/* ── Section spacing ──────────────────────────────────────── */
.section { margin-bottom: 1.25rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.85rem;
}
.section-header h3 { font-size: 1rem; margin: 0; }

/* ── Notification list ────────────────────────────────────── */
.notif-list { list-style: none; }
.notif-item {
  display: flex; gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0; margin-top: 6px;
}
.notif-dot.read { background: var(--border); }
.notif-body    { flex: 1; }
.notif-message { font-size: 0.9rem; margin-bottom: 0.25rem; }
.notif-time    { font-size: 0.75rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   LEAGUE INTERIOR LAYOUT
   ══════════════════════════════════════════════════════════════ */

/* ── League page header bar ───────────────────────────────── */
.league-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.league-page-header-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.league-page-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.league-page-header-actions {
  margin-left: auto;
}

/* ── League slogan (interior header + show page) ─────────── */
.league-slogan {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
}

/* ── Overview two-column grid ─────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  align-items: start;
}

.overview-about {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}


/* ── Announcements ────────────────────────────────────────── */
.announcement-form {
  margin-bottom: 1rem;
}
.announcement-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.announcement-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.announcement-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.announcement-item:last-child { border-bottom: none; }

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.announcement-author {
  font-weight: 600;
  color: var(--text);
}
.announcement-date { color: var(--muted); }

.announcement-delete { margin-left: auto; }

.announcement-body {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* ── Inline empty state (inside a card) ───────────────────── */
.empty-state-inline {
  padding: 1rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Title badge (cosmetic, earned) ──────────────────────── */
.badge-title {
  background: rgba(180, 140, 20, 0.15);
  color: #a07a00;
  border: 1px solid rgba(180, 140, 20, 0.35);
}

/* ── Member list detailed variant (Members section) ──────── */
.member-list--detailed { gap: 0; }

.member-item--detailed {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 0.75rem;
}
.member-item--detailed:last-child { border-bottom: none; }

.member-avatar--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.member-avatar--link:hover { opacity: 0.75; }

.member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.member-name--link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.member-name--link:hover { color: var(--accent); text-decoration: underline; }

.member-join-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.member-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ── Manage member row with title form ────────────────────── */
.member-item--manage {
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.member-item--manage:last-child { border-bottom: none; }

.title-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.title-input { width: 140px; }

/* ── Dashboard profile card ───────────────────────────────── */
.dashboard-profile { padding: 1.5rem; }

.dashboard-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dashboard-profile-header .profile-info { flex: 1; min-width: 0; }
.dashboard-profile-header .btn-secondary { flex-shrink: 0; align-self: flex-start; }

.profile-bio-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
  line-height: 1.5;
}

.profile-edit-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── Avatar color picker ──────────────────────────────────── */
.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.color-swatch-label { cursor: pointer; }
.color-swatch-label input[type="radio"] { display: none; }
.color-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch-label input[type="radio"]:checked + .color-swatch {
  border-color: var(--text);
  transform: scale(1.15);
}

/* ── Dashboard stats header (label + league select) ──────── */
.dashboard-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ── League membership summary row ───────────────────────── */
.league-membership-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

/* ── Public profile page ──────────────────────────────────── */
.profile-page { max-width: 720px; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}
.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-info { display: flex; flex-direction: column; gap: 0.25rem; }
.profile-username { font-size: 1.5rem; margin: 0; }

.profile-league-context-header { margin-bottom: 1rem; }
.profile-league-context-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.profile-league-context-name:hover { color: var(--accent); text-decoration: underline; }

/* ── Stats section label ──────────────────────────────────── */
.stats-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.25rem 0 0.6rem;
}

/* ── Highlight stat cards (Highest Achieved) ─────────────── */
.stats-row--highlight { margin-bottom: 0; }
.stat-card--highlight {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.06);
}
.stat-card--highlight .stat-value { color: #ffd700; }

/* ── Profile detail two-column grid ──────────────────────── */
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}

/* ── Coins box ────────────────────────────────────────────── */
.coins-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.coins-icon {
  font-size: 2rem;
  line-height: 1;
}

.gold-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #f0a500);
  color: #5a3e00;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}
.coins-info { flex: 1; }
.coins-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffd700;
  margin-bottom: 0.5rem;
}
.coins-row { display: flex; align-items: center; gap: 0; }
.coins-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.coins-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.coins-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }
.coins-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 215, 0, 0.2);
  margin: 0 0.5rem;
}

/* ── Time-period stats cards (week / month) ───────────────── */
.time-stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.time-stats-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.time-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.time-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.time-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.time-stat-label { font-size: 0.65rem; color: var(--muted); margin-top: 0.1rem; text-align: center; }

/* ── Recent opponents list ────────────────────────────────── */
.recent-opponents-list { list-style: none; padding: 0; margin: 0; }
.recent-opponent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.recent-opponent-item:last-child { border-bottom: none; }
.recent-opponent-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.recent-opponent-name:hover { color: var(--accent); text-decoration: underline; }
.recent-opponent-date { font-size: 0.75rem; }

.result-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  min-width: 24px;
  text-align: center;
}
.result-w { background: rgba(87,242,135,0.15); color: #57f287; border: 1px solid rgba(87,242,135,0.3); }
.result-l { background: rgba(237,66,69,0.15);  color: #ed4245; border: 1px solid rgba(237,66,69,0.3); }

/* ── Trophy case (profile view) ──────────────────────────── */
.trophy-case {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.trophy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-width: 90px;
  text-align: center;
  transition: border-color 0.15s;
}
.trophy-card:hover { border-color: rgba(255,215,0,0.5); }
.trophy-icon  { font-size: 1.75rem; line-height: 1; }
.trophy-name  { font-size: 0.75rem; font-weight: 700; color: var(--text); }
.trophy-date  { font-size: 0.65rem; }

/* ── Trophy award form (manage view) ─────────────────────── */
.trophy-award-form { margin-bottom: 1rem; }

.trophy-icon-picker {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.trophy-icon-label { cursor: pointer; }
.trophy-icon-label input[type="radio"] { display: none; }
.trophy-icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--border);
  transition: border-color 0.12s, background 0.12s;
}
.trophy-icon-opt:hover { background: var(--surface); }
.trophy-icon-label input[type="radio"]:checked + .trophy-icon-opt {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
}

.trophy-form-fields {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.trophy-form-fields .input-sm { min-width: 120px; }

/* ── Trophy list (manage view) ────────────────────────────── */
.trophy-manage-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.trophy-manage-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.trophy-manage-item:last-child { border-bottom: none; }
.trophy-icon-sm { font-size: 1.25rem; flex-shrink: 0; }
.trophy-manage-info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.trophy-manage-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }

.profile-league-list { list-style: none; padding: 0; margin: 0; }
.profile-league-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.profile-league-item:last-child { border-bottom: none; }

.profile-league-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.profile-league-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.profile-league-name:hover { color: var(--accent); text-decoration: underline; }

.profile-league-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.profile-league-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ── Layout wrapper ───────────────────────────────────────── */
.league-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 120px); /* navbar + league header */
}

/* ── Sidebar ──────────────────────────────────────────────── */
.league-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}

.league-sidebar-brand {
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.league-sidebar-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  word-break: break-word;
}

/* ── Sidebar nav ──────────────────────────────────────────── */
.league-nav {
  list-style: none;
  flex: 1;
}

.league-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.12s, background 0.12s;
  border-radius: 0;
}

.league-nav-item a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.league-nav-item a.active {
  color: var(--text);
  background: rgba(88, 101, 242, 0.15);
  border-left: 3px solid var(--accent);
  padding-left: calc(1.25rem - 3px);
  font-weight: 600;
}

.league-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.nav-icon {
  font-size: 0.95rem;
  width: 1.2rem;
  text-align: center;
}

.nav-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  flex-shrink: 0;
}

.league-sidebar-back {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.league-sidebar-back:hover { color: var(--text); text-decoration: none; }

/* ── Main content area ────────────────────────────────────── */
.league-content {
  flex: 1;
  padding: 1.75rem 2rem;
  min-width: 0; /* prevent overflow in flex child */
  overflow-y: auto;
}

/* ── Section title row ────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title h2 {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-count {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

/* ── Stats row ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Standings table ──────────────────────────────────────── */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.standings-table th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.standings-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: rgba(255,255,255,0.025); }

.standings-rank {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Awards grid ──────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.15s, transform 0.1s;
}

.award-card:hover {
  border-color: rgba(88,101,242,0.4);
  transform: translateY(-2px);
}

.award-locked {
  opacity: 0.6;
}

.award-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.award-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.award-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.award-status {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Empty section card ───────────────────────────────────── */
.empty-section-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.empty-section-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.empty-section-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.empty-section-card p {
  font-size: 0.875rem;
  max-width: 360px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

/* ── Placeholder content ──────────────────────────────────── */
.placeholder-content {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  line-height: 1.5;
}

/* ── Manage page sections ─────────────────────────────────── */
.manage-section {
  margin-bottom: 1.25rem;
}

.manage-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.manage-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.manage-section-header .manage-section-title {
  margin-bottom: 0;
}

.manage-actions {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ── Add member inline form ───────────────────────────────── */
.add-member-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.input-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s;
}

.input-sm:focus {
  outline: none;
  border-color: var(--accent);
}

.add-member-form .input-sm[type="text"] { width: 150px; }
.add-member-form select.input-sm        { width: auto; cursor: pointer; }

/* ── Danger zone card ─────────────────────────────────────── */
.danger-zone {
  border-color: rgba(237,66,69,0.3);
}

.danger-title {
  color: var(--danger);
}

.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.danger-row strong { font-size: 0.9rem; }
.danger-row p.meta { margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — mobile (≤ 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Dashboard profile stacks on mobile */
  .dashboard-profile-header { flex-direction: column; align-items: flex-start; }

  /* Profile detail grid stacks on mobile */
  .profile-detail-grid { grid-template-columns: 1fr; }
  .time-stats-grid { grid-template-columns: repeat(4, 1fr); }

  /* Overview grid stacks on mobile */
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-sidebar { order: -1; }

  /* League layout stacks vertically */
  .league-layout {
    flex-direction: column;
    min-height: unset;
  }

  /* Sidebar becomes horizontal scroll nav */
  .league-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .league-sidebar::-webkit-scrollbar { display: none; }

  .league-sidebar-brand { display: none; }
  .league-sidebar-back  { display: none; }

  .league-nav {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    padding: 0;
    flex: 1;
  }

  .league-nav-item a {
    padding: 0.8rem 0.85rem;
    font-size: 0.8rem;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .league-nav-item a.active {
    border-left: none;
    border-bottom: 3px solid var(--accent);
    padding-left: 0.85rem;
    background: transparent;
  }

  .league-nav-divider {
    width: 1px;
    height: 24px;
    margin: auto 0.25rem;
    background: var(--border);
  }

  /* Content full width */
  .league-content {
    padding: 1.25rem 1rem;
  }

  /* Stats row: 2 columns on mobile */
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Awards: 2 columns on mobile */
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Manage section header stacks */
  .manage-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-member-form {
    width: 100%;
  }

  .add-member-form .input-sm[type="text"] {
    flex: 1;
    width: auto;
  }

  /* Danger row stacks */
  .danger-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Page header padding */
  .league-page-header {
    padding: 0.75rem 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   ANNOUNCEMENTS (HOME PAGE)
   ══════════════════════════════════════════════════════════════ */

.announcements {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.announcements h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.announcement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.announcement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.announcement-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 0.6rem;
}

.announcement-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.announcement-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   ROADMAP PAGE
   ══════════════════════════════════════════════════════════════ */

.updates-page {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.updates-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.updates-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.roadmap-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

.roadmap-planned .roadmap-dot { background: var(--muted); }
.roadmap-planned { color: var(--muted); }

.roadmap-progress .roadmap-dot { background: #faa61a; }
.roadmap-progress { color: #faa61a; }

.roadmap-shipped .roadmap-dot { background: #57f287; }
.roadmap-shipped { color: #57f287; }

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.roadmap-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.roadmap-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.roadmap-item p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.roadmap-item--shipped {
  opacity: 0.8;
}

.roadmap-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.roadmap-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.roadmap-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-item li {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 0.75rem;
  position: relative;
}

.roadmap-item li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--border);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER (expanded)
   ══════════════════════════════════════════════════════════════ */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem 1rem;
  font-size: 0.85rem;
}

.footer-clocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  width: fit-content;
  margin: 0 auto 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-support {
  text-align: center;
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
}

.footer-support p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.btn-coffee {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: #ffdd00;
  color: #1a1a2e;
  transition: background 0.15s;
}

.btn-coffee:hover {
  background: #e6c800;
  text-decoration: none;
  color: #1a1a2e;
}

.footer-version {
  color: var(--border);
  font-size: 0.7rem;
  margin-left: 0.3rem;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════
   GUIDE PAGE
   ══════════════════════════════════════════════════════════════ */

.guide-layout {
  display: flex;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Sticky sidebar */
.guide-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  min-width: 180px;
  flex-shrink: 0;
}

.guide-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.guide-toc {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-toc a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s;
}

.guide-toc a:hover,
.guide-toc a.active {
  color: var(--accent);
  text-decoration: none;
}

.guide-toc a.active {
  font-weight: 600;
}

/* Main content */
.guide-content {
  flex: 1;
  min-width: 0;
}

.guide-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.guide-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.guide-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.guide-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.guide-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.guide-section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.guide-section ul,
.guide-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-section li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.guide-section strong {
  color: var(--text);
}

.guide-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Roles table */
.guide-roles-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.guide-role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.guide-role h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.guide-role p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Responsive: stack sidebar below on small screens */
@media (max-width: 700px) {
  .guide-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .guide-sidebar {
    position: static;
    min-width: auto;
  }

  .guide-toc {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    padding-left: 0;
    gap: 0.5rem 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   MATCHES & STANDINGS
   ══════════════════════════════════════════════════════════════ */

.streak-win  { color: #57f287; font-weight: 600; }
.streak-loss { color: #ed4245; font-weight: 600; }

/* ── Standings enhancements ───────────────────────────── */
.standings-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

.standings-top-1 td { background: rgba(255,215,0,0.06) !important; }
.standings-top-2 td { background: rgba(192,192,192,0.06) !important; }
.standings-top-3 td { background: rgba(205,127,50,0.06) !important; }

.standings-medal {
  font-size: 1.1rem;
  line-height: 1;
}

.standings-player-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standings-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.standings-gp {
  color: var(--muted);
}

.standings-sp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standings-sp-bar {
  width: 50px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.standings-sp-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.match-list { list-style: none; padding: 0; margin: 0; }

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.match-item:last-child { border-bottom: none; }
.match-overturned { opacity: 0.5; }

.match-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.match-winner { font-weight: 600; color: #57f287; }
.match-loser  { color: var(--text); }
.match-vs     { color: var(--muted); font-size: 0.8rem; }
.match-sp     { color: var(--muted); font-size: 0.8rem; }

.match-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-warning {
  background: #fee75c;
  color: #1a1a2e;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   TOURNAMENTS
   ══════════════════════════════════════════════════════════════ */

/* Status badges */
.badge-active    { background: var(--accent); color: #fff; }
.badge-completed { background: #57f287; color: #1a1a2e; }

/* Format picker */
.tournament-format-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.format-option {
  cursor: pointer;
}

.format-option input[type="radio"] { display: none; }

.format-card {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s;
}

.format-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.format-option input[type="radio"]:checked + .format-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.prize-split-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.prize-split-options .format-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem 0.75rem;
}

.prize-split-options .format-option input[type="radio"] { display: none; }
.prize-split-options .format-option input[type="radio"]:checked + .format-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.45rem 0;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.format-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* N/A toggle input row */
.input-na-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.input-na-row input { flex: 1; }

.btn-na {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-na:hover { color: var(--text); }

.btn-na--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Form layout */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Tournament grid */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tournament-card h3 {
  font-size: 1rem;
}

.tournament-card--archive {
  opacity: 0.7;
}

.tournament-card--archive:hover {
  opacity: 1;
}

.tournament-champion {
  font-size: 0.82rem;
  color: #ffd700;
  margin-top: 0.25rem;
}

.tournament-champion-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.champion-trophy {
  font-size: 2rem;
  line-height: 1;
}

.champion-text {
  display: flex;
  flex-direction: column;
}

.champion-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffd700;
}

.champion-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
}

.champion-name:hover {
  color: #fff;
  text-decoration: none;
}

.tournament-pot {
  color: #ffd700;
  font-weight: 600;
}

.participant-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.participant-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}

.tournament-card-times {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

/* Tournament detail layout */
.tournament-detail-layout {
  display: flex;
  gap: 1.5rem;
}

.tournament-detail-main {
  flex: 2;
  min-width: 0;
}

.tournament-detail-sidebar {
  flex: 1;
  min-width: 220px;
}

/* Info grid */
.tournament-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tournament-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tournament-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tournament-info-value {
  font-size: 0.9rem;
  color: var(--text);
}

@media (max-width: 700px) {
  .tournament-detail-layout {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   BRACKET
   ══════════════════════════════════════════════════════════════ */

.bracket {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  gap: 0;
}

/* ── Round column ─────────────────────────────── */
.bracket-round {
  flex-shrink: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.bracket-round-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.bracket-round-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0;
}

/* ── Matchup card ─────────────────────────────── */
.bracket-matchup {
  position: relative;
}

.bracket-round[data-round="1"] .bracket-matchup {
  margin: 0.35rem 0;
}

.bracket-matchup--overturned {
  opacity: 0.45;
}

.bracket-matchup--bye {
}

.bracket-seed--bye-slot {
  color: var(--muted);
  opacity: 0.7;
}

.bracket-seed--empty {
  background: var(--surface);
  border-color: var(--border);
}

.bracket-matchup--empty {
}

.bracket-bye-label {
  color: inherit;
  font-size: 0.82rem;
  font-style: italic;
}

/* ── Seed row (player) ────────────────────────── */
.bracket-seed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 32px;
}

.bracket-seed:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.bracket-seed:nth-child(2) {
  border-radius: 0 0 var(--radius) var(--radius);
}

.bracket-seed--win {
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid #57f287 !important;
  color: #57f287;
  font-weight: 600;
}

.bracket-seed--loss {
  color: var(--muted);
  opacity: 0.7;
}

.bracket-seed-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-tbd {
  color: var(--muted);
  font-size: 0.78rem;
}

.bracket-w {
  font-size: 0.62rem;
  font-weight: 800;
  background: #57f287;
  color: #1a1a2e;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  flex-shrink: 0;
}

/* ── Match info & actions ─────────────────────── */
.bracket-match-info {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.2rem 0;
}

.bracket-match-info--overturned {
  color: var(--danger);
  font-weight: 600;
}

/* Clickable W button for picking winner */
.bracket-w--pick {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.15s;
}

.bracket-w--pick:hover {
  background: #57f287;
  color: #1a1a2e;
  border-color: #57f287;
}

/* Inline undo button on loser row */
.bracket-undo-btn {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 0.4rem;
  flex-shrink: 0;
}

.bracket-undo-btn:hover {
  background: var(--danger);
  color: #fff;
}

/* ── Connector lines between rounds ───────────── */

.bracket-connector-col {
  flex-shrink: 0;
  width: 24px;
}

/* Horizontal stub going left into each matchup (non-round-1) */
.bracket-round[data-round]:not([data-round="1"]) .bracket-matchup::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 32px;
  width: 13px;
  border-top: 2px solid var(--border);
}

/* Connector height scales per round — gap doubles each round */
.bracket-round[data-round="1"] { --ch: calc(100% - 32px + 1rem); }
.bracket-round[data-round="2"] { --ch: calc(100% - 32px + 5.5rem); }
.bracket-round[data-round="3"] { --ch: calc(100% - 32px + 14.5rem); }
.bracket-round[data-round="4"] { --ch: calc(100% - 32px + 32.5rem); }
.bracket-round[data-round="5"] { --ch: calc(100% - 32px + 68.5rem); }
.bracket-round[data-round="6"] { --ch: calc(100% - 32px + 140.5rem); }

/* Odd matchup (top of pair): line right + down */
.bracket-round:not(:last-child) .bracket-matchup:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 32px;
  width: 13px;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  height: var(--ch);
}

/* Even matchup (bottom of pair): line right + up */
.bracket-round:not(:last-child) .bracket-matchup:nth-child(even)::after {
  content: '';
  position: absolute;
  right: -13px;
  bottom: calc(100% - 32px);
  width: 13px;
  border-bottom: 2px solid var(--border);
  border-right: 2px solid var(--border);
  height: var(--ch);
}

@media (max-width: 700px) {
  .bracket {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .bracket-round { min-width: auto; }
  .bracket-connector-col { display: none; }
  .bracket-matchup::before,
  .bracket-matchup::after { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════ */

.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-section {
  padding: 1.25rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.admin-row--banned td { opacity: 0.5; }

.admin-id { color: var(--muted); font-size: 0.75rem; }
.admin-email { color: var(--muted); font-size: 0.78rem; }
.admin-date { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }

.admin-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
