/* ==========================================================================
   INDIAMC PVP EVENT BOOKING - STYLESHEET
   Theme: Deep Obsidian Black + Electric Orange & Crimson Red Accents
   ========================================================================== */

:root {
  --bg-dark: #08090C;
  --bg-card: #11131A;
  --bg-card-hover: #171A24;
  --bg-glass: rgba(17, 19, 26, 0.75);
  
  --accent-orange: #FF5722;
  --accent-orange-light: #FF7043;
  --accent-orange-glow: rgba(255, 87, 34, 0.4);
  
  --accent-red: #E53935;
  --accent-red-bright: #FF1744;
  --accent-red-glow: rgba(255, 23, 68, 0.4);
  
  --accent-green: #00E676;
  --accent-gold: #FFD700;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 87, 34, 0.5);

  --text-main: #F0F4F8;
  --text-muted: #8A94A6;
  --text-dim: #5A6478;

  --font-title: 'Syne', sans-serif;
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-sub: 'Space Grotesk', 'Rajdhani', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-glow: 0 0 20px rgba(255, 87, 34, 0.15);
  --shadow-red-glow: 0 0 20px rgba(255, 23, 68, 0.25);
}

/* Reset & Box Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #06070B;
  background-image: 
    radial-gradient(at 15% 15%, rgba(255, 87, 34, 0.08) 0px, transparent 55%),
    radial-gradient(at 85% 85%, rgba(255, 23, 68, 0.08) 0px, transparent 55%),
    radial-gradient(at 50% 30%, rgba(30, 34, 50, 0.4) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Gradients & Ambient Glow Orbs */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-orange), transparent 70%);
  animation-duration: 18s;
}

.bg-glow-2 {
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-red), transparent 70%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.bg-glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 112, 67, 0.15), transparent 75%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* Cyber Grid & Gaming Tech Mesh Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.dots-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 87, 34, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 60%, rgba(4, 5, 8, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

/* App Wrapper */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* Top Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.15), rgba(255, 23, 68, 0.15));
  border-bottom: 1px solid rgba(255, 87, 34, 0.3);
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  backdrop-filter: blur(10px);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1440px;
  margin: 0 auto;
}

.ticker-badge {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ticker-text {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 25px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--accent-orange-glow));
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}

.logo-text h1 span {
  color: var(--accent-orange);
  text-shadow: 0 0 12px var(--accent-orange-glow);
}

.logo-text .subtitle {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-orange-light);
  letter-spacing: 2px;
  margin-top: -2px;
}

/* Header Countdown Box */
.header-center {
  display: flex;
  align-items: center;
}

.timer-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-active);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.timer-label {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange-light);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-unit span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.time-unit label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
}

.timer-colon {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-orange);
  margin-bottom: 12px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

/* Status Badge */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.status-badge.open {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent-green);
}

.status-badge.locked {
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.4);
  color: var(--accent-red-bright);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-admin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-admin:hover {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--accent-orange);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.btn-danger {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  box-shadow: var(--shadow-red-glow);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-ip {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(255, 23, 68, 0.2));
  border: 1px solid var(--accent-orange);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

.btn-ip:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
  transform: translateY(-2px);
}

/* IP Banner Card in Rules */
.ip-banner-card {
  background: linear-gradient(135deg, rgba(24, 27, 38, 0.9), rgba(15, 17, 24, 0.9));
  border: 1px solid rgba(255, 87, 34, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ip-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.ip-code {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-lg {
  max-width: 620px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-orange);
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.stat-icon {
  font-size: 1.8rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
  transition: width 0.3s ease;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 15px 10px 40px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

.filter-group {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
}

.action-group {
  display: flex;
  gap: 10px;
}

/* Pagination Bar for 150 Teams */
.pagination-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.page-label {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange-light);
  letter-spacing: 1px;
}

.page-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn.active, .page-btn:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-cancel-slot {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.4);
  color: var(--accent-red-bright);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-sub);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cancel-slot:hover {
  background: var(--accent-red-bright);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-red-glow);
}

/* ==========================================================================
   TEAMS GRID & CARDS
   ========================================================================== */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* Team Card */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.team-card:hover {
  border-color: rgba(255, 87, 34, 0.3);
  box-shadow: var(--shadow-glow);
}

.team-card.team-full {
  border-color: rgba(0, 230, 118, 0.3);
}

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

.team-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-badge-num {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.team-status-pill {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.team-status-pill.full {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border-color: rgba(0, 230, 118, 0.4);
}

/* Slots Grid inside Team Card */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slot Item */
.slot-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
  min-height: 58px;
}

/* Empty Slot Hover & Pulse */
.slot-item.empty {
  cursor: pointer;
}

.slot-item.empty:hover {
  background: rgba(255, 87, 34, 0.08);
  border-color: var(--accent-orange);
  border-style: solid;
  transform: translateX(4px);
}

.slot-role-tag {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 75px;
}

.slot-role-tag.captain {
  color: var(--accent-gold);
}

/* Empty Slot Claim UI */
.empty-slot-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-orange-light);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.empty-plus {
  font-size: 1.1rem;
  font-weight: 800;
}

/* Occupied Slot UI */
.slot-item.occupied {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.player-info-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.player-avatar-box {
  width: 38px;
  height: 38px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-avatar-box img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
}

.player-details {
  display: flex;
  flex-direction: column;
}

.player-ign {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.player-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Hover Tooltip for Occupied Slot */
.slot-tooltip {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #181B26;
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.slot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent-orange) transparent transparent transparent;
}

.slot-item.occupied:hover .slot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-orange);
  image-rendering: pixelated;
}

.tooltip-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
}

.tooltip-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Kick Action in Admin Mode */
.btn-kick-slot {
  background: rgba(255, 23, 68, 0.2);
  border: 1px solid rgba(255, 23, 68, 0.5);
  color: var(--accent-red-bright);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-kick-slot:hover {
  background: var(--accent-red-bright);
  color: #fff;
}

/* ==========================================================================
   MODAL WINDOWS & BACKDROPS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #13151F;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--shadow-glow);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-lg {
  max-width: 780px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

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

.modal-badge {
  display: inline-block;
  background: rgba(255, 87, 34, 0.15);
  color: var(--accent-orange-light);
  border: 1px solid var(--accent-orange);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Modal Body & Forms */
.modal-body {
  margin-bottom: 24px;
}

.skin-preview-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar-display {
  width: 64px;
  height: 64px;
  background: #000;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-orange);
  overflow: hidden;
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.avatar-display img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.avatar-meta {
  display: flex;
  flex-direction: column;
}

.preview-ign {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.preview-role {
  font-size: 0.8rem;
  color: var(--accent-orange-light);
  font-weight: 600;
}

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

.form-group label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group select {
  width: 100%;
  background: #0B0D13;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 42px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
  padding-left: 14px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.error-msg-box {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid var(--accent-red-bright);
  color: #ff8a80;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-top: 14px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Admin Dashboard Modal Grid */
.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.admin-card h3 {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.admin-toggle-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.danger-card {
  border-color: rgba(255, 23, 68, 0.3);
  background: rgba(255, 23, 68, 0.05);
}

.danger-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mt-2 {
  margin-top: 10px;
}

/* Rules Modal */
.rules-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.rule-icon {
  font-size: 1.4rem;
}

.rule-item h4 {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.rule-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rule-item code {
  background: #000;
  color: var(--accent-orange-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Export Textarea */
.export-textarea {
  width: 100%;
  height: 240px;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #00E676;
  font-family: monospace;
  font-size: 0.85rem;
  resize: none;
  outline: none;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

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

.toast {
  background: #181B26;
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  min-width: 280px;
  max-width: 360px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  border-left-color: var(--accent-green);
}

.toast.warning {
  border-left-color: var(--accent-red-bright);
}

.toast.info {
  border-left-color: var(--accent-orange);
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

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

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

/* Footer */
.main-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Custom Confirmation Modal Styles */
.modal-sm {
  max-width: 420px;
}

.text-center {
  text-align: center;
}

.confirm-icon-box {
  font-size: 2.8rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px var(--accent-red-glow));
}

.modal-footer-center {
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET OVERHAUL)
   ========================================================================== */

@media (max-width: 900px) {
  .app-container {
    padding: 0 14px 30px 14px;
  }

  .main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .header-left, .header-center, .header-right {
    width: 100%;
    justify-content: center;
  }

  .logo-box {
    justify-content: center;
  }

  .timer-box {
    width: 100%;
    max-width: 380px;
    padding: 10px 14px;
  }

  .timer-display span {
    font-size: 1.25rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .stat-icon {
    font-size: 1.4rem;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  .ticker-wrapper {
    flex-direction: flex-start;
    gap: 8px;
  }

  .ticker-text {
    font-size: 0.85rem;
  }

  .logo-text h1 {
    font-size: 1.4rem;
  }

  .logo-icon {
    font-size: 2.2rem;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-box input {
    font-size: 0.88rem;
    padding: 10px 14px 10px 38px;
  }

  .filter-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .action-group {
    justify-content: space-between;
    width: 100%;
  }

  .action-group .btn {
    flex: 1;
    padding: 8px;
    font-size: 0.82rem;
  }

  .pagination-bar {
    padding: 8px 12px;
    gap: 8px;
  }

  .page-buttons {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .page-btn {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .teams-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .team-name {
    font-size: 1.05rem;
  }

  .slot-item {
    padding: 8px 10px;
    min-height: 52px;
  }

  .slot-role-tag {
    width: 60px;
    font-size: 0.7rem;
  }

  .player-ign {
    font-size: 0.95rem;
  }

  .player-avatar-box {
    width: 32px;
    height: 32px;
  }

  .btn-cancel-slot {
    padding: 4px 6px;
    font-size: 0.68rem;
  }

  /* Modals Mobile Response */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}
