@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #06070d;
  --card: rgba(17, 18, 28, 0.9);
  --card-strong: rgba(20, 23, 36, 0.98);
  --text: #f5f5fb;
  --muted: #abb3ce;
  --primary: #ffcc2f;
  --primary-2: #ff6b00;
  --danger: #ff4e66;
  --border: rgba(237, 187, 74, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #35250f 0%, #111321 32%, #06070d 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: conic-gradient(from 90deg, rgba(255, 176, 44, 0.16), rgba(255, 107, 0, 0.11), transparent 35%);
  filter: blur(30px);
  animation: rotateAura 16s linear infinite;
}

body::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
  opacity: 0.4;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 18, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.8);
  color: #d8e8ff;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.brand {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffe8b2;
  font-size: 18px;
  text-shadow: 0 0 20px rgba(255, 159, 36, 0.45);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.app-nav {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 14px;
}

.nav-link {
  color: #ffe4ad;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(9, 15, 30, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.nav-link.active {
  color: #2d1600;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.container {
  max-width: 1180px;
  margin: 24px auto 40px;
  padding: 0 14px;
}

.card {
  background: linear-gradient(160deg, var(--card-strong), var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: fadeRise 0.5s ease both;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.5px;
}

.auth-card {
  max-width: 440px;
  margin: 44px auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat p {
  margin: 10px 0 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 15px;
  color: #e3edff;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid rgba(255, 198, 95, 0.44);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(7, 12, 25, 0.9);
  color: var(--text);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 35, 0.2);
}

.btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #251200;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-small {
  padding: 7px 11px;
  font-size: 13px;
}

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

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  animation: fadeRise 0.35s ease both;
}

.alert-error {
  background: rgba(255, 78, 102, 0.14);
  color: #ffc4cf;
  border-color: rgba(255, 115, 139, 0.4);
}

.alert-success {
  background: rgba(33, 255, 159, 0.12);
  color: #bcffe5;
  border-color: rgba(84, 255, 186, 0.4);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 10px;
}

.table-wrap {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(139, 167, 225, 0.2);
  padding: 9px 7px;
  vertical-align: top;
}

thead th {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffcb68;
}

tbody tr:hover {
  background: rgba(56, 88, 151, 0.16);
}

.inline-form {
  display: flex;
  gap: 6px;
}

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

.team-picker {
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding: 8px;
  margin-bottom: 10px;
  background: rgba(5, 9, 19, 0.72);
}

.team-picker::-webkit-scrollbar {
  width: 8px;
}

.team-picker::-webkit-scrollbar-thumb {
  background: rgba(255, 168, 63, 0.55);
  border-radius: 20px;
}

.row {
  display: flex;
  padding: 8px 7px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.18s ease;
}

.row:hover {
  background: rgba(65, 106, 186, 0.24);
}

.disabled-row {
  opacity: 0.58;
}

.hidden {
  display: none !important;
}

.countdown-cell {
  font-family: "Orbitron", sans-serif;
  color: #7efbc8;
  letter-spacing: 0.6px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.event-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 15, 29, 0.8);
  padding: 12px;
}

.poster-img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: #b8d5ff;
}

.map-tag {
  color: #041f2f;
  background: linear-gradient(135deg, #ffe580, #70ffd6);
  border: 0;
}

.pill-live {
  color: #ffe1e6;
  background: rgba(255, 84, 111, 0.16);
  border-color: rgba(255, 84, 111, 0.46);
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(4, 9, 18, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.mobile-link {
  text-decoration: none;
  color: #ffe0a5;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(120, 150, 220, 0.3);
  background: rgba(12, 19, 37, 0.8);
}

.mobile-link.active {
  color: #2d1600;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.group-select {
  max-width: 110px;
  margin-left: auto;
}

.logo-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #0ea848);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 26px rgba(10, 140, 63, 0.36);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.whatsapp-float span {
  font-size: 10px;
}

@keyframes rotateAura {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .topbar {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .app-nav {
    display: none;
    flex-direction: column;
    margin-top: 0;
    padding-top: 10px;
  }

  .app-nav.open {
    display: flex;
  }

  .container {
    margin-top: 14px;
    margin-bottom: 90px;
  }

  .top-actions span {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 84px;
  }
}
