/* ============================================================
   REG/style.css — REDX Tournament Registration
   Gaming Dark Theme | REDX Crimson (#E50914) & Charcoal
   100% Responsive & High-Performance UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-core: #07080b;
  --bg-card: #0f1118;
  --bg-card-hover: #151824;
  --bg-slot-empty: rgba(255, 255, 255, 0.02);
  --bg-slot-booked: rgba(229, 9, 20, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(229, 9, 20, 0.35);
  --border-red-bright: #E50914;

  --red: #E50914;
  --red-hover: #ff1e2b;
  --red-glow: rgba(229, 9, 20, 0.45);
  --team1-color: #E50914;
  --team2-color: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gold: #fbbf24;
  --green: #22c55e;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Cyber Gaming Background ── */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  bottom: -200px;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  filter: blur(100px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.app-header {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.35));
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-name span {
  color: var(--red);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header User Controls */
.header-auth-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--red);
}

.user-avatar-default {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #800000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.user-name {
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-signout:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: var(--red);
  color: var(--red);
}

/* ── Page Hero Title ── */
.hero-section {
  text-align: center;
  padding: 44px 0 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff606b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cross-Subdomain Session Banner ── */
.sync-session-banner {
  display: none;
  margin-bottom: 24px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideDown 0.3s ease;
}

.sync-session-banner.active {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sync-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-icon {
  font-size: 1.5rem;
}

.sync-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sync-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sync-login {
  background: #ffffff;
  color: #111827;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-sync-login:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
}

/* ── User Active Registration Ticket ── */
.user-registered-ticket {
  display: none;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(229, 9, 20, 0.12));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
  animation: glowIn 0.5s ease-out;
}

.user-registered-ticket.visible {
  display: block;
}

@keyframes glowIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-status-pill {
  background: var(--gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ticket-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.ticket-slot-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slot-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}

.slot-details h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.slot-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Tournament Info Card ── */
.tournament-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.tournament-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--team1-color), var(--team2-color));
}

.info-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.tournament-title-wrap h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.tournament-title-wrap p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.open {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.full,
.status-badge.closed {
  background: rgba(229, 9, 20, 0.15);
  color: #ff606b;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.highlight-red {
  color: var(--red);
  text-shadow: 0 0 16px var(--red-glow);
}

.stat-value.highlight-green {
  color: var(--green);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Progress Bar */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff4d58);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--red-glow);
}

/* ── Closed / Full Alert Notice ── */
.registration-closed-alert {
  display: none;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 32px;
}

.registration-closed-alert.visible {
  display: block;
}

.registration-closed-alert h3 {
  font-size: 1.15rem;
  color: #ff606b;
  font-weight: 800;
  margin-bottom: 6px;
}

.registration-closed-alert p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Teams Arena Layout ── */
.arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 18px 45px rgba(0,0,0,0.4);
}

.team-card.team-1 {
  border-top: 3px solid var(--team1-color);
}

.team-card.team-2 {
  border-top: 3px solid var(--team2-color);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.team-1 .team-icon {
  background: rgba(229, 9, 20, 0.15);
  color: var(--team1-color);
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.team-2 .team-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--team2-color);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.team-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.team-info span {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.team-roster-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Slots List */
.slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-slot-empty);
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.slot-item.available {
  cursor: pointer;
}

.slot-item.available:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slot-item.available:active {
  transform: translateY(0);
}

.slot-item.booking {
  opacity: 0.6;
  pointer-events: none;
  border-color: var(--gold);
}

.slot-item.booked {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.slot-item.user-booked {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(229, 9, 20, 0.1));
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.slot-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slot-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

.slot-item.available .slot-num-badge {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.slot-item.booked .slot-num-badge {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.slot-item.user-booked .slot-num-badge {
  background: var(--gold);
  color: #000;
}

.slot-participant-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-participant-info p {
  font-size: 0.74rem;
  color: var(--text-dim);
}

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

.slot-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slot-pill.pill-available {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.slot-pill.pill-booked {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slot-pill.pill-user-slot {
  background: var(--gold);
  color: #000;
  font-weight: 900;
}

/* ── Booking Modal Dialog ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 50px rgba(229, 9, 20, 0.1);
  animation: modalScale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modal-slot-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.preview-item label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.preview-item span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-primary {
  flex: 1.5;
  padding: 14px;
  background: var(--red);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--red-glow);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Google Sign In Modal for Unauth ── */
.auth-prompt-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}

.auth-prompt-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.auth-prompt-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-prompt-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.btn-google-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

.btn-google-large:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.25);
}

.btn-google-large img {
  width: 20px;
  height: 20px;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 0.88rem;
  font-weight: 600;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.toast.toast-error {
  border-color: rgba(229, 9, 20, 0.4);
  color: #f87171;
}

.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

/* ── Loading Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

/* ── Admin Dashboard Link ── */
.admin-dock {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-badge-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
}

.admin-badge-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: var(--red);
  color: var(--red);
}

/* ── Responsive Queries ── */
@media (max-width: 900px) {
  .arena-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .team-card {
    padding: 20px 16px;
  }
  .slot-item {
    padding: 12px 14px;
  }
  .modal-dialog {
    padding: 24px 18px;
  }
  .user-pill {
    padding: 4px 10px 4px 6px;
  }
  .user-name {
    max-width: 90px;
  }
}

