@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0a0a1a;
  --bg-surface: #12122a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.4);
  --accent-2: #a29bfe;
  --neon-green: #00e676;
  --neon-green-glow: rgba(0, 230, 118, 0.3);
  --neon-red: #ff5252;
  --neon-gold: #ffd740;
  --neon-gold-glow: rgba(255, 215, 64, 0.3);
  --text-primary: #e8e8f0;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.3);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === Animated Background Orbs === */
.bg-orbs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: float1 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #e040fb 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: float2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 18s ease-in-out infinite;
  opacity: 0.25;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.05); }
  66% { transform: translate(40px, -20px) scale(0.9); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* === Topbar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), #e040fb);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.topbar-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 7px; height: 7px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--neon-green-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.btn-glass {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  color: white;
  transform: translateY(-1px);
}

/* === Hero Section === */
.main-content {
  position: relative;
  z-index: 1;
}

.hero-modern {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(224, 64, 251, 0.15));
  border: 1px solid rgba(108, 92, 231, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.6s ease;
}

.hero-modern h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, #a29bfe 50%, #e040fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.6s ease 0.1s both;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease 0.2s both;
}

/* === Team Logos === */
.team-logos {
  margin: 1.25rem auto 1rem;
  max-width: 600px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  animation: fadeInDown 0.6s ease 0.15s both;
}

.logo-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.logo-item:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 8px 25px var(--accent-glow);
  background: rgba(108, 92, 231, 0.1);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: drop-shadow(0 4px 12px rgba(108, 92, 231, 0.5));
}

.li-bms {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05));
  border-color: rgba(0, 123, 255, 0.25);
}
.li-bms:hover {
  border-color: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.li-malea {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
  border-color: rgba(233, 30, 99, 0.25);
}
.li-malea:hover {
  border-color: #e91e63;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.li-bkkms {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
  border-color: rgba(255, 152, 0, 0.25);
}
.li-bkkms:hover {
  border-color: #ff9800;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.li-orange {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 87, 34, 0.05));
  border-color: rgba(255, 87, 34, 0.25);
}
.li-orange:hover {
  border-color: #ff5722;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.li-green {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-color: rgba(76, 175, 80, 0.25);
}
.li-green:hover {
  border-color: #4caf50;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.li-kalla {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
  border-color: rgba(33, 150, 243, 0.25);
}
.li-kalla:hover {
  border-color: #2196f3;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.li-bukaka {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(156, 39, 176, 0.05));
  border-color: rgba(156, 39, 176, 0.25);
}
.li-bukaka:hover {
  border-color: #9c27b0;
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
}

@media (max-width: 576px) {
  .logo-item {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    padding: 6px;
  }

  .logo-track {
    gap: 0.75rem;
  }
}

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

/* === Category Tabs === */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  animation: fadeInDown 0.6s ease 0.3s both;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cat-tab:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--accent), #e040fb);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: scale(1.02);
}

.cat-tab i {
  font-size: 1rem;
}

/* === Bracket Area === */
.bracket-area {
  padding: 1.5rem 0 3rem;
  position: relative;
}

/* === Zoom Controls === */
.zoom-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 18, 42, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 10px;
  backdrop-filter: blur(15px);
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.4s ease;
}

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

.zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn.zoom-reset {
  font-size: 0.75rem;
}

.zoom-level {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: center;
}

@media (min-width: 769px) {
  .zoom-controls {
    display: none;
  }
}

.bracket-viewport {
  overflow-x: auto;
  padding: 1rem 1rem 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.bracket-viewport::-webkit-scrollbar {
  height: 6px;
}

.bracket-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.bracket-viewport::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.bracket {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-width: fit-content;
  padding: 0.5rem 1.5rem;
}

/* === Bracket Round === */
.bracket-round {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.round-label {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.round-label::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.bracket-round:last-child .round-label {
  color: var(--neon-gold);
}

.bracket-round:last-child .round-label::after {
  background: var(--neon-gold);
}

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

/* === Match Card === */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 4px 10px;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeSlideUp 0.4s ease both;
  backdrop-filter: blur(10px);
}

.match-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  transition: background 0.2s;
  position: relative;
}

.player-row:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-row.winner {
  background: rgba(0, 230, 118, 0.06);
}

.player-row.winner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--neon-green);
  border-radius: 0 2px 2px 0;
}

.player-row.winner .player-name {
  color: var(--neon-green);
  font-weight: 700;
}

.player-row.tbd .player-name {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
}

.player-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 28px;
  text-align: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.player-row.winner .player-score {
  background: rgba(0, 230, 118, 0.1);
  color: var(--neon-green);
}

.vs-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
}

/* === Champion Section === */
.champion-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0 1rem;
}

.champion-label-title {
  border-bottom: none;
  padding-bottom: 0;
}

.champion-label-title::after {
  display: none;
}

.champion-card {
  background: linear-gradient(145deg, rgba(255, 215, 64, 0.08), rgba(255, 183, 77, 0.08));
  border: 1px solid rgba(255, 215, 64, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease 0.5s both;
}

.champion-card.has-winner {
  border-color: rgba(255, 215, 64, 0.4);
  box-shadow: 0 0 40px var(--neon-gold-glow);
}

.trophy-glow {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--neon-gold-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.trophy-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--neon-gold);
  filter: drop-shadow(0 0 10px var(--neon-gold-glow));
  position: relative;
}

.trophy-icon.muted {
  color: var(--text-dim);
  filter: none;
}

.champ-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-gold);
  margin-bottom: 0.3rem;
  position: relative;
}

.champion-card.waiting .champ-tag {
  color: var(--text-dim);
}

.champ-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

.champion-card.waiting .champ-name {
  color: var(--text-dim);
  font-weight: 400;
  font-style: italic;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.2;
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.35; }
}

.empty-state h5 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* === Admin Panel === */
.admin-layout {
  padding: 1.5rem 0 3rem;
}

.admin-title-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.admin-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-page-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Admin Category Tabs */
.admin-category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-cat-tab:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.admin-cat-tab.active {
  background: linear-gradient(135deg, var(--accent), #e040fb);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Admin Main Tabs (Atur Tim / Atur Bagan) */
.admin-main-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 5px;
  backdrop-filter: blur(10px);
}

.admin-main-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-main-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-main-tab.active {
  background: var(--bg-surface);
  color: var(--accent-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Glass Card */
.admin-card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header-glass {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.card-body-glass {
  padding: 1.25rem;
}

/* Badge */
.badge-glass {
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Input Group */
.input-group-glass {
  display: flex;
  gap: 0.5rem;
}

.input-glass {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.input-glass::placeholder {
  color: var(--text-dim);
}

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

.btn-accent {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), #e040fb);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Team List */
.team-list-admin {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-item-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  border: 1px solid transparent;
}

.team-item-admin:hover {
  background: var(--bg-card);
  border-color: var(--glass-border);
}

.team-info-admin {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-num-admin {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e040fb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.team-name-admin {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-delete-admin {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--neon-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
  opacity: 0.5;
}

.btn-delete-admin:hover {
  opacity: 1;
  background: rgba(255, 82, 82, 0.12);
}

.team-actions-admin {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-edit-admin {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.85rem;
  opacity: 0.5;
}

.btn-edit-admin:hover {
  opacity: 1;
  background: rgba(162, 155, 254, 0.12);
}

.team-item-admin.editing {
  background: var(--bg-card);
  border-color: var(--accent);
}

.inline-edit-input {
  width: 100%;
  min-width: 150px;
  padding: 0.3rem 0.6rem !important;
  font-size: 0.9rem !important;
  border-radius: 6px !important;
}

/* Generate Button */
.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--neon-green), #00c853);
  border: none;
  border-radius: var(--radius-md);
  color: #0a0a1a;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--neon-green-glow);
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--neon-green-glow);
}

.btn-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Reset Button */
.btn-reset-bracket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: 50px;
  color: var(--neon-red);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset-bracket:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: var(--neon-red);
}

/* Alert Admin */
.alert-admin {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.3s ease;
}

.alert-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--neon-green);
}

.alert-danger {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.25);
  color: var(--neon-red);
}

.alert-warning {
  background: rgba(255, 215, 64, 0.1);
  border: 1px solid rgba(255, 215, 64, 0.25);
  color: var(--neon-gold);
}

.alert-info {
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-2);
}

/* Empty State Admin */
.empty-state-admin {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-icon-admin {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.15;
}

.empty-state-admin h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-admin p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Admin Match Card (Score Input) */
.round-divider-admin {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.round-divider-admin:first-child {
  margin-top: 0;
}

.match-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: all 0.2s;
}

.match-admin-card:hover:not(.disabled) {
  border-color: var(--glass-border-hover);
}

.match-admin-card.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.match-admin-header {
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.match-admin-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

.match-admin-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
}

.mat-label {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-text-admin {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.score-input-admin {
  width: 55px;
  text-align: center;
  padding: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.score-input-admin:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.score-input-admin:disabled {
  opacity: 0.4;
}

.btn-save-score {
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-save-score:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-save-score:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.match-admin-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--neon-green);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-modern h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .cat-tab {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .match-card {
    min-width: 180px;
    margin: 4px 6px;
  }

  .bracket-round {
    min-width: 195px;
  }

  .champion-col {
    min-width: 150px;
  }

  .champion-card {
    padding: 1rem 1.25rem;
  }

  .trophy-icon {
    font-size: 2rem;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { width: 180px; height: 180px; }

  .admin-main-tabs {
    flex-direction: column;
  }

  .admin-category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .admin-cat-tab {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .match-admin-body {
    flex-direction: column;
    align-items: stretch;
  }

  .match-admin-team {
    min-width: unset;
  }

  .match-admin-body .vs-text-admin {
    text-align: center;
  }

  .btn-save-score {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topbar-brand span {
    font-size: 1rem;
  }

  .live-badge span:not(.live-dot) {
    display: none;
  }

  .hero-modern {
    padding: 2rem 0 1.5rem;
  }

  .hero-modern h1 {
    font-size: 1.5rem;
  }

  .admin-page-title {
    font-size: 1.5rem;
  }
}
