/* ==========================================================================
   CardCoach TCG - Store Matchboard & TV Projector Stylesheet
   EMT COMERCIAL S.R.L. | Apple HIG & 3D Glassmorphism Design System
   ========================================================================== */

:root {
  --bg-primary: #070913;
  --bg-secondary: #0d1224;
  --bg-surface: rgba(18, 26, 48, 0.72);
  --bg-card: rgba(23, 32, 60, 0.65);
  --bg-card-hover: rgba(30, 42, 80, 0.85);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.4);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.4);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-active: rgba(56, 189, 248, 0.5);
  --border-winner: rgba(16, 185, 129, 0.6);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-digital: 'Orbitron', monospace;
  
  --tv-scale: 1;
}

/* TV Large Screen Scaling Modes */
body.tv-scale-large {
  --tv-scale: 1.15;
  font-size: 18px;
}

body.tv-scale-xlarge {
  --tv-scale: 1.3;
  font-size: 20px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #070913 0%, #0d1224 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(7, 9, 19, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Top Navigation / App Bar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(13, 18, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-title h1 {
  font-family: var(--font-digital);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px; /* Apple HIG 44pt touch requirement */
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  text-decoration: none;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 16px var(--primary-glow);
}

.glass-btn.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 0 24px var(--primary-glow);
}

.glass-btn.cyan {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.glass-btn.amber {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.glass-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.dropdown-glass {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(23, 32, 60, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-glass:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* User / Store Status Badge */
.user-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.user-status-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
}

/* Main Layout Container */
.main-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

/* Hero / Tournament Info & Digital Clock Header */
.tournament-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 36px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.tournament-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981, #f59e0b);
}

.tournament-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-badge.pokemon { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.game-badge.onepiece { background: rgba(245, 158, 11, 0.2); border: 1px solid #f59e0b; color: #fde68a; }
.game-badge.yugioh { background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; color: #e9d5ff; }
.game-badge.mtg { background: rgba(249, 115, 22, 0.2); border: 1px solid #f97316; color: #fdba74; }
.game-badge.gundam { background: rgba(56, 189, 248, 0.2); border: 1px solid #38bdf8; color: #bae6fd; }
.game-badge.vanguard { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #a7f3d0; }
.game-badge.digimon { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #bfdbfe; }

.tournament-title-text {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.tournament-venue-info {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.tournament-venue-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Digital Clock Timer Section */
.timer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  min-width: 280px;
}

.timer-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.digital-clock-display {
  font-family: var(--font-digital);
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #38bdf8;
  text-shadow: 0 0 20px var(--accent-cyan-glow);
  line-height: 1;
  transition: all 0.3s ease;
}

.digital-clock-display.warning {
  color: #fbbf24;
  text-shadow: 0 0 25px var(--accent-amber-glow);
  animation: pulse-clock 1.5s infinite;
}

.digital-clock-display.danger {
  color: #f43f5e;
  text-shadow: 0 0 30px rgba(244, 63, 94, 0.7);
  animation: pulse-clock-fast 0.8s infinite;
}

@keyframes pulse-clock {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.85; }
}

@keyframes pulse-clock-fast {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.75; }
}

.timer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.timer-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.timer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Secondary Tab Bar (Mesas vs Clasificación) */
.section-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.tab-pill-group {
  display: flex;
  background: rgba(18, 26, 48, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.tab-pill {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 0 14px var(--primary-glow);
}

.board-metrics-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.board-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.board-metric-item strong {
  color: #ffffff;
}

/* ==========================================================================
   Matchboard Tables Grid (Projector View)
   ========================================================================== */

.matchboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 20px;
  transition: all 0.3s ease;
}

/* TV Ultra-Wide: 2 or 3 columns on 4K TVs */
@media (min-width: 1400px) {
  .matchboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1800px) {
  .matchboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.table-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.table-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.table-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.table-card.in-progress {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}

.table-card.bye-match {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(30, 20, 60, 0.6);
}

/* Table Card Header */
.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: var(--font-digital);
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
}

.table-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.table-status-pill.in-progress {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.table-status-pill.in-progress::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.table-status-pill.completed {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.table-status-pill.bye {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

/* Versus Battle Arena */
.versus-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.player-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.player-box.winner {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.player-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-score {
  font-family: var(--font-digital);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 24px;
  text-align: right;
}

.player-box.winner .player-score {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.player-deck-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: #c7d2fe;
  max-width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vs-badge {
  font-family: var(--font-digital);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.table-card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.judge-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34d399;
  font-weight: 600;
}

/* Standings Table View */
.standings-container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.standings-table th {
  padding: 16px 20px;
  background: rgba(10, 15, 30, 0.9);
  color: var(--text-secondary);
  font-family: var(--font-digital);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
}

.standings-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--text-main);
}

.standings-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-digital);
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
}

.rank-badge.top-1 { background: rgba(245, 158, 11, 0.25); border-color: #f59e0b; color: #fbbf24; }
.rank-badge.top-2 { background: rgba(148, 163, 184, 0.25); border-color: #cbd5e1; color: #f1f5f9; }
.rank-badge.top-3 { background: rgba(217, 119, 6, 0.25); border-color: #b45309; color: #fed7aa; }

/* Modals (Login, Score Reporter, Settings) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0d1224;
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-header h2 {
  font-family: var(--font-digital);
  font-size: 1.35rem;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.input-field-group {
  margin-bottom: 18px;
}

.input-field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-glass {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-glass:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

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

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(18, 26, 48, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.9rem;
  animation: slide-in 0.3s ease;
}

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

.toast.success { border-color: var(--accent-emerald); }
.toast.error { border-color: var(--accent-rose); }
.toast.info { border-color: var(--accent-cyan); }

/* Auto-Scroll Indicator Overlay */
.autoscroll-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 18, 36, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Fullscreen Optimizations */
:fullscreen body, :-webkit-full-screen body {
  background-color: #05070e;
}

:fullscreen .top-navbar, :-webkit-full-screen .top-navbar {
  padding: 8px 24px;
}
