/* ===== VARIABLES ===== */
:root {
  --yellow: #f0c94a;
  --yellow-dark: #d7ad2d;
  --black: #08090b;
  --dark: #0d1014;
  --dark2: #12161c;
  --dark3: #171d24;
  --border: #29313b;
  --text: #f3f5f7;
  --text-muted: #96a0ad;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(0,0,0,0.35);
  --glow: 0 18px 40px rgba(240,201,74,0.12);
  --panel: rgba(18,22,28,0.92);
  --panel-soft: rgba(255,255,255,0.035);
  --line: rgba(255,255,255,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: #000;
  background-size: auto;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 0.7rem 3rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--yellow);
  background: rgba(255,215,0,0.08);
}

.admin-link {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
  color: var(--yellow) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== PAGES ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 6rem 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #000;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: none;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.btn-outline:hover {
  background: rgba(255,215,0,0.1);
  transform: translateY(-2px);
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}

.section-title h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
}

/* ===== TOURNAMENTS GRID ===== */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 3rem 4rem;
}

.tournament-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
}

.tournament-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  box-shadow: var(--glow);
}

.tournament-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.tournament-banner-placeholder {
  width: 100%;
  height: 180px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.tournament-info {
  padding: 1.25rem;
}

.tournament-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-upcoming { background: rgba(255,215,0,0.15); color: var(--yellow); }
.status-live { background: rgba(255,50,50,0.15); color: #ff5555; animation: pulse 2s infinite; }
.status-past { background: rgba(100,100,100,0.15); color: #888; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tournament-info h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tournament-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tournament-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tournament-meta .prize {
  color: var(--yellow);
  font-weight: 600;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 4rem 3rem 2rem;
  background: #000;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== TABS ===== */
.regions-tabs, .admin-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ===== ESPORTS ===== */
.esports-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 3rem;
}

.leaderboard-container, .brackets-container {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 0;
}

.leaderboard-container h3, .brackets-container h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--yellow);
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}

.leaderboard-row:hover { background: rgba(255,215,0,0.05); }
.leaderboard-row:last-child { border-bottom: none; }

.lb-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  width: 30px;
  text-align: center;
}

.lb-rank.gold { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }

.lb-name { flex: 1; font-weight: 500; }
.lb-points { color: var(--yellow); font-weight: 600; }

.brackets-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bracket-tab {
  padding: 0.5rem 1.5rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.bracket-tab.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  font-weight: 700;
}

.bracket-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 2rem;
}

.bracket-placeholder p {
  font-size: 0.9rem;
}

/* ===== WINNING TEAMS ===== */
.winning-grid {
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.winning-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  position: relative;
}

.winning-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--glow);
}

.winning-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.winning-rank.r1 { color: #FFD700; }
.winning-rank.r2 { color: #C0C0C0; }
.winning-rank.r3 { color: #CD7F32; }

.winning-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--dark3);
}

.winning-info { flex: 1; }
.winning-info h4 { font-weight: 600; margin-bottom: 0.25rem; }
.winning-info p { color: var(--text-muted); font-size: 0.85rem; }

.winning-stats {
  text-align: right;
}

.winning-stats .wins {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yellow);
}

.winning-stats .earnings {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 3rem;
}

.news-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: var(--glow);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--dark3);
}

.news-img-placeholder {
  width: 100%;
  height: 200px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--yellow);
}

.news-content {
  padding: 1.25rem;
}

.news-category {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.news-content h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== CONTACT ===== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  padding: 2rem 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-card i {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-form {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--yellow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.success-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.3);
  border-radius: 8px;
  color: #00c864;
  font-size: 0.9rem;
}

.error-msg {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.3);
  border-radius: 8px;
  color: #ff5555;
  font-size: 0.9rem;
}

/* ===== SOCIALS ===== */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.social-card { flex: 0 1 220px; }

.social-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.social-card i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.social-card h3 {
  font-weight: 600;
  font-size: 1rem;
}

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

.social-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.twitter { border-color: #1DA1F2; }
.twitter i { color: #1DA1F2; }
.twitter:hover { background: rgba(29,161,242,0.08); border-color: #1DA1F2; }
.twitter .social-btn { background: rgba(29,161,242,0.15); color: #1DA1F2; }

.discord { border-color: #5865F2; }
.discord i { color: #5865F2; }
.discord:hover { background: rgba(88,101,242,0.08); border-color: #5865F2; }
.discord .social-btn { background: rgba(88,101,242,0.15); color: #5865F2; }

.youtube { border-color: #FF0000; }
.youtube i { color: #FF0000; }
.youtube:hover { background: rgba(255,0,0,0.08); border-color: #FF0000; }
.youtube .social-btn { background: rgba(255,0,0,0.15); color: #FF0000; }

.instagram { border-color: #E1306C; }
.instagram i { color: #E1306C; }
.instagram:hover { background: rgba(225,48,108,0.08); }
.instagram .social-btn { background: rgba(225,48,108,0.15); color: #E1306C; }

.tiktok { border-color: #69C9D0; }
.tiktok i { color: #69C9D0; }
.tiktok:hover { background: rgba(105,201,208,0.08); }
.tiktok .social-btn { background: rgba(105,201,208,0.15); color: #69C9D0; }

.latest-tweets {
  padding: 0 3rem 3rem;
}

.latest-tweets h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ===== ABOUT ===== */
.about-description {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 3rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-left: 3rem;
  margin-right: 3rem;
}

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.staff-card { flex: 0 1 240px; }

.staff-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.2s;
}

.staff-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--glow);
}

.staff-pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  margin: 0 auto 1rem;
  display: block;
  background: var(--dark3);
}

.staff-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.staff-role {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.staff-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.partner-card { flex: 0 1 auto; }

.partner-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.partner-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.partner-name { font-weight: 600; }

/* ===== ADMIN ===== */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

.login-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  width: 400px;
  text-align: center;
}

.login-logo {
  width: 80px;
  margin-bottom: 1.5rem;
}

.login-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem 1rem;
}

.admin-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
}

.admin-tab-content {
  display: none;
  padding: 2rem 3rem;
}

.admin-tab-content.active { display: block; }

.admin-form-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-form-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

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

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-item {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-item-info { flex: 1; }
.admin-item-info h4 { font-weight: 600; font-size: 0.95rem; }
.admin-item-info p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.2rem; }

.btn-delete {
  padding: 0.4rem 0.9rem;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.3);
  border-radius: 6px;
  color: #ff5555;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

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

.message-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.message-sender { font-weight: 600; }
.message-subject {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255,215,0,0.1);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--yellow);
}

.message-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-date {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.open { display: flex; }

.modal-content {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 750px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,50,50,0.2);
  color: #ff5555;
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid #f5c400;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 30px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #f5c400;
}

.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-socials a {
  color: #aaa;
  font-size: 1.4rem;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-socials a:hover {
  color: #f5c400;
}

.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid #1a1a1a;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CONTACT TABS ===== */
.contact-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.contact-tab-content {
  display: none;
}
.contact-tab-content.active {
  display: block;
}

/* ===== TICKET CREATED BOX ===== */
.ticket-created-box {
  margin-top: 1.5rem;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.ticket-created-inner i {
  font-size: 2.5rem;
  color: #ffcc00;
  margin-bottom: 0.5rem;
}
.ticket-created-inner h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ticket-created-inner p {
  color: #aaa;
  margin-bottom: 0.5rem;
}
.ticket-code {
  font-size: 2rem;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: 4px;
  background: rgba(255,204,0,0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin: 0.5rem 0 1rem;
}
.ticket-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

/* ===== CHECK TICKET ===== */
.ticket-check-container {
  max-width: 800px;
  margin: 0 auto;
}
.ticket-check-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.ticket-check-form h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.ticket-check-form p {
  color: #aaa;
  margin-bottom: 1.5rem;
}
.ticket-search-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ticket-search-row input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  width: 200px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== CHAT BOX (user + admin) ===== */
.ticket-chat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.ticket-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,204,0,0.08);
  border-bottom: 1px solid rgba(255,204,0,0.2);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ticket-chat-code {
  font-weight: 700;
  color: #ffcc00;
  font-size: 1.1rem;
  margin-right: 0.75rem;
}
.ticket-chat-subject {
  color: #ccc;
}
.ticket-chat-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ticket-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ticket-status-badge.open {
  background: rgba(0,200,100,0.15);
  color: #00c864;
  border: 1px solid rgba(0,200,100,0.3);
}
.ticket-status-badge.closed {
  background: rgba(255,50,50,0.15);
  color: #ff5050;
  border: 1px solid rgba(255,50,50,0.3);
}
.ticket-info-bar {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #aaa;
}
.ticket-info-bar i {
  color: #ffcc00;
  margin-right: 0.25rem;
}
.ticket-chat-messages {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-chat-reply {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: flex-end;
}
.ticket-chat-reply textarea {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem;
  color: #fff;
  resize: none;
  font-family: inherit;
}

/* ===== MESSAGES CHAT BUBBLES ===== */
.chat-message {
  display: flex;
}
.chat-message.user {
  justify-content: flex-start;
}
.chat-message.admin {
  justify-content: flex-end;
}
.chat-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}
.chat-message.user .chat-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 4px;
}
.chat-message.admin .chat-bubble {
  background: rgba(255,204,0,0.12);
  border: 1px solid rgba(255,204,0,0.25);
  border-bottom-right-radius: 4px;
}
.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}
.chat-meta strong {
  color: #ffcc00;
}
.chat-meta span {
  color: #666;
}
.chat-bubble p {
  color: #ddd;
  margin: 0;
  line-height: 1.5;
}

/* ===== ADMIN TICKETS LAYOUT ===== */
.admin-tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tickets-filter {
  display: flex;
  gap: 0.5rem;
}
.filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(255,204,0,0.15);
  border-color: rgba(255,204,0,0.4);
  color: #ffcc00;
}
.admin-tickets-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 600px;
  overflow-y: auto;
}
.ticket-list-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ticket-list-item:hover, .ticket-list-item.selected {
  border-color: rgba(255,204,0,0.4);
  background: rgba(255,204,0,0.06);
}
.ticket-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.ticket-list-code {
  font-weight: 700;
  color: #ffcc00;
  font-size: 0.9rem;
}
.ticket-list-name {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ticket-list-name i {
  color: #5865f2;
}
.ticket-list-subject {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.ticket-list-preview {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}
.ticket-list-date {
  color: #555;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}
.unread-dot {
  width: 8px;
  height: 8px;
  background: #ffcc00;
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}
.admin-ticket-chat {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

/* ===== SCRAPED LEADERBOARD ===== */
.lb-credit {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: -0.5rem 0 1rem;
  padding: 0 1.5rem;
  font-style: italic;
}
.lb-row {
  display: grid;
  grid-template-columns: 38px 44px 1fr 28px 70px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.lb-row:hover { background: rgba(255,215,0,0.04); }
.lb-row:last-child { border-bottom: none; }
.lb-row .lb-rank {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
}
.lb-row.lb-gold .lb-rank   { color: #FFD700; }
.lb-row.lb-silver .lb-rank { color: #C0C0C0; }
.lb-row.lb-row-disabled    { opacity: 0.5; }
.lb-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--dark3);
  padding: 2px;
}
.lb-logo-placeholder { background: var(--dark3); }
.lb-name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-region-tag {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.lb-trophy { text-align: center; font-size: 1rem; }
.lb-points {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--yellow);
  text-align: right;
}
.lb-stale {
  background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.25);
  color: #ffcc66;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

/* ===== PARTNERS MARQUEE ===== */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
  padding: 1rem 0;
}
.partners-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: partners-scroll 35s linear infinite;
}
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partners-track .partner-card { flex: 0 0 auto; }

/* ===== WINNING SCREENSHOTS ===== */
.winning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.winning-screen-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.winning-screen-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.winning-screen-card img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.winning-screen-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  font-size: 3rem;
  background: var(--dark3);
}
.winning-screen-caption {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.winner-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.winner-lightbox img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}

/* ===== ADDITIONS ===== */
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,215,0,0.15);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
}

.tournament-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 0 3rem 0.5rem;
}
.filter-pill {
  padding: 0.4rem 1rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.filter-pill.active, .filter-pill:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--yellow);
  color: var(--yellow);
}

.tournament-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-flag { font-size: 1.1rem; }

.bracket-item {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.bracket-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--yellow);
}
.bracket-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.img-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

.region-head {
  font-family: 'Rajdhani', sans-serif;
  color: var(--yellow);
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-danger {
  background: rgba(255,50,50,0.15);
  border: 1px solid rgba(255,50,50,0.4);
  color: #ff5555;
}
.btn-danger:hover {
  background: rgba(255,50,50,0.25);
}

.tweets-embed {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 700px;
  margin: 0 auto;
  min-height: 200px;
}

.tweet-card {
  display: block;
  background: #16181c;
  border: 1px solid #2f3336;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.15s;
}
.tweet-card:hover {
  background: #1c1f23;
  border-color: #3a3f44;
}
.tweet-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tweet-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.tweet-meta { flex: 1; line-height: 1.3; min-width: 0; }
.tweet-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #e7e9ea;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.tweet-verified { color: #1d9bf0; font-size: 0.85rem; }
.tweet-handle {
  font-size: 0.85rem;
  color: #71767b;
  margin-top: 2px;
}
.tweet-link-out {
  color: #71767b;
  font-size: 1.05rem;
  padding: 0.4rem;
  border-radius: 50%;
  transition: all 0.15s;
}
.tweet-link-out:hover {
  background: rgba(29,155,240,0.1);
  color: #1d9bf0;
}
.tweet-body {
  font-size: 1.02rem;
  line-height: 1.45;
  color: #e7e9ea;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0.75rem;
}
.tweet-body a { color: #1d9bf0; text-decoration: none; }
.tweet-body a:hover { text-decoration: underline; }
.tweet-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2f3336;
}
.tweet-images.tweet-images-1 { grid-template-columns: 1fr; }
.tweet-images img {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
  cursor: pointer;
}
.tweet-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #2f3336;
  margin-top: 0.5rem;
}
.tweet-action {
  color: #71767b;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.tweet-action:hover { color: #1d9bf0; background: rgba(29,155,240,0.08); }
.tweet-view-on-x {
  margin-left: auto;
  color: var(--yellow);
  font-weight: 600;
}
.tweet-view-on-x:hover { color: var(--yellow); background: rgba(255,215,0,0.08); }
.tweets-stale {
  text-align: center;
  background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.25);
  color: #ffcc66;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.tweets-fallback {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.tweets-fallback i { font-size: 2.5rem; color: #1DA1F2; margin-bottom: 1rem; }
.tweets-fallback h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.tweets-fallback p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.latest-tweets { text-align: center; }
.latest-tweets > h3 { margin-bottom: 1.5rem; }

input[type="file"] {
  color: var(--text-muted);
  font-family: inherit;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: -0.5rem 0 1rem;
}
.form-hint code {
  background: var(--dark3);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  color: var(--yellow);
  font-size: 0.85rem;
}

.matcherino-preview {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: flex-start;
}
.matcherino-preview img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.matcherino-preview h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.matcherino-preview p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}
.matcherino-preview a { color: var(--yellow); text-decoration: none; }

details.admin-form-card { padding: 1.25rem 2rem; }
details.admin-form-card summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.admin-form-card summary::-webkit-details-marker { display: none; }
details.admin-form-card summary::before {
  content: "+ ";
  color: var(--yellow);
  margin-right: 0.25rem;
}
details.admin-form-card[open] summary::before { content: "- "; }
details.admin-form-card[open] { padding-bottom: 2rem; }

.src-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--yellow);
  border-radius: 50px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.src-tag.manual {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text-muted);
}

/* ===== PROFESSIONAL POLISH PASS ===== */
a { color: inherit; }

.navbar {
  padding: 0.9rem clamp(1.25rem, 4vw, 3.25rem);
  background: rgba(8, 9, 11, 0.86);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.navbar.scrolled {
  padding: 0.72rem clamp(1.25rem, 4vw, 3.25rem);
  background: rgba(8, 9, 11, 0.94);
}
.nav-logo span {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo-img {
  width: 36px;
  height: 36px;
}
.nav-link {
  border-radius: 6px;
  color: #b4bdc8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(240,201,74,0.11);
  color: var(--text);
}

.page {
  padding-top: 72px;
}
.hero {
  min-height: min(680px, calc(100vh - 72px));
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(4rem, 7vw, 6rem);
  background:
    linear-gradient(100deg, rgba(5,7,10,0.99) 0%, rgba(7,10,15,0.96) 35%, rgba(8,11,17,0.66) 55%, rgba(5,7,10,0.12) 100%),
    url("/assets/hero-brawl-official.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  display: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: transparent;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-badge {
  border-radius: 4px;
  border: 1px solid rgba(240,201,74,0.35);
  background: rgba(240,201,74,0.09);
  color: #f4d87c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-content h1 {
  max-width: 740px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 5.15rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-content p {
  max-width: 610px;
  color: #c7cdd5;
  font-size: 1.12rem;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-visual,
.hero-glow {
  display: none;
}

.btn {
  min-height: 42px;
  border-radius: 6px;
  padding: 0.7rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-primary {
  background: #f0c94a;
  border: 1px solid #f0c94a;
  color: #08090b;
}
.btn-primary:hover {
  background: #f7d96e;
  box-shadow: 0 12px 30px rgba(240,201,74,0.2);
}
.btn-outline {
  background: rgba(255,255,255,0.035);
  border-color: rgba(240,201,74,0.42);
  color: #f4d87c;
}
.btn-outline:hover {
  background: rgba(240,201,74,0.1);
}

.section-title,
.page-header {
  max-width: 1320px;
  margin: 0 auto;
}
.section-title {
  padding: 3.25rem clamp(1.5rem, 5vw, 3rem) 1.2rem;
  text-align: left;
}
.section-title h2,
.page-header h1 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 2.75rem;
  line-height: 0.95;
}
.section-title p,
.page-header p {
  color: #9fa9b5;
  max-width: 700px;
}
.page-header {
  padding: 4rem clamp(1.5rem, 5vw, 3rem) 2.25rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: 4rem;
  line-height: 0.95;
}

.tournament-filters,
.regions-tabs,
.admin-tabs,
.contact-tabs {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.tournament-filters,
.contact-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill,
.tab-btn,
.bracket-tab,
.filter-btn {
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
  color: #aab4bf;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.filter-pill,
.filter-btn {
  padding: 0.58rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill.active,
.filter-pill:hover,
.tab-btn.active,
.tab-btn:hover,
.bracket-tab.active,
.bracket-tab:hover,
.filter-btn.active,
.filter-btn:hover {
  background: rgba(240,201,74,0.12);
  border-color: rgba(240,201,74,0.42);
  color: var(--text);
}

.tournaments-grid,
.news-grid,
.winning-grid,
.socials-grid,
.staff-grid,
.partners-grid,
.esports-content,
.contact-container,
.latest-tweets,
.admin-header,
.admin-tab-content {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}
.tournaments-grid,
.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.tournament-card,
.news-card,
.winning-screen-card,
.social-card,
.staff-card,
.partner-card,
.leaderboard-container,
.brackets-container,
.contact-card,
.contact-form,
.about-description,
.admin-form-card,
.login-card,
.modal-content,
.ticket-check-form,
.ticket-chat-box,
.admin-ticket-chat,
.ticket-list-item {
  background: #000;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.tournament-card:hover,
.news-card:hover,
.winning-screen-card:hover,
.social-card:hover,
.staff-card:hover,
.partner-card:hover {
  border-color: rgba(240,201,74,0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tournament-banner,
.tournament-banner-placeholder,
.news-img,
.news-img-placeholder {
  height: 188px;
  background: #000;
}
.tournament-banner-placeholder,
.news-img-placeholder,
.winning-screen-placeholder {
  color: rgba(255,255,255,0.28);
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.tournament-info,
.news-content {
  padding: 1.15rem;
}
.tournament-info h3,
.news-content h3,
.winning-screen-caption {
  color: var(--text);
  letter-spacing: 0;
}
.tournament-desc,
.news-content p {
  color: #9fa9b5;
}
.tournament-status,
.news-category,
.src-tag {
  border-radius: 4px;
  background: rgba(240,201,74,0.1);
  border: 1px solid rgba(240,201,74,0.24);
  color: #f4d87c;
  letter-spacing: 0.08em;
}
.status-live {
  background: rgba(235,87,87,0.12);
  color: #ff8a8a;
}
.status-past {
  background: rgba(255,255,255,0.055);
  color: #aab4bf;
}

.esports-content {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1rem;
  padding-top: 1.5rem;
}
.leaderboard-container h3,
.brackets-container h3,
.contact-form h3,
.latest-tweets h3,
.admin-form-card h3 {
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lb-credit {
  max-width: 1320px;
  margin: 1rem auto 0;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  text-align: left;
  font-style: normal;
}
.lb-row {
  grid-template-columns: 34px 42px minmax(0, 1fr) 28px 72px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,0.065);
}
.lb-row .lb-rank,
.lb-points {
  font-family: 'Rajdhani', sans-serif;
}
.lb-logo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.lb-name {
  font-size: 0.94rem;
}
.bracket-placeholder {
  min-height: 260px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #8d98a5;
  font-size: 1.65rem;
}
.bracket-placeholder p {
  color: #9fa9b5;
}

.contact-container {
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.5fr);
}
.contact-card {
  text-align: left;
}
.contact-card i,
.social-card i {
  color: #f0c94a;
}
.form-group input,
.form-group select,
.form-group textarea,
.ticket-search-row input,
.ticket-chat-reply textarea {
  background: rgba(4,6,8,0.48);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}
.form-group label {
  color: #aeb8c4;
  letter-spacing: 0.07em;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.social-card {
  align-items: flex-start;
  text-align: left;
  min-height: 190px;
}
.twitter,
.discord,
.youtube,
.instagram,
.tiktok {
  border-color: rgba(255,255,255,0.085);
}
.twitter:hover,
.discord:hover,
.youtube:hover,
.instagram:hover,
.tiktok:hover {
  background: #000;
}
.social-btn {
  border-radius: 4px;
  background: rgba(240,201,74,0.1) !important;
  color: #f4d87c !important;
}
.tweets-embed {
  max-width: 860px;
  margin: 0;
}
.tweet-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 8px;
}

.about-description {
  max-width: 1320px;
  margin: 1.5rem auto;
  font-size: 1rem;
}
.staff-pfp {
  border-color: rgba(240,201,74,0.58);
}
.staff-pfp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4d87c;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}
.partners-marquee {
  mask-image: linear-gradient(90deg, transparent 0, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 3%, black 97%, transparent 100%);
}

.admin-login {
  padding: 2rem;
}
.login-card {
  width: min(420px, 100%);
}
.admin-header {
  padding-top: 2rem;
}
.admin-header h1 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
.admin-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.085);
}
.admin-tickets-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}
.ticket-status-badge {
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-bubble {
  border-radius: 8px;
}
.chat-meta strong {
  color: #f4d87c;
}

.footer {
  background: rgba(8,9,11,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-content,
.footer-bottom {
  max-width: 1320px;
}

@media (max-width: 980px) {
  .esports-content,
  .contact-container,
  .admin-tickets-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    background-position: 62% center;
  }
  .hero-content h1 {
    max-width: 100%;
    font-size: 2.8rem;
  }
  .page-header h1 { font-size: 2.75rem; }
  .section-title h2 { font-size: 2.2rem; }
  .hero-buttons,
  .btn {
    width: 100%;
  }
  .btn {
    justify-content: center;
  }
  .lb-row {
    grid-template-columns: 30px 38px minmax(0, 1fr) 58px;
  }
  .lb-trophy {
    display: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .esports-content {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }
  .leaderboard-container,
  .brackets-container {
    padding: 1rem;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }
  .brackets-tabs {
    flex-wrap: wrap;
  }
  .brackets-container .bracket-frame {
    flex: none;
    min-height: 60vh;
    max-height: 75vh;
  }
  .contact-container { grid-template-columns: 1fr; }
  .hero { padding: 5rem 1.5rem 3rem; flex-direction: column; align-items: flex-start; }
  .tournaments-grid, .news-grid, .winning-grid, .staff-grid, .partners-grid,
  .socials-grid, .regions-tabs, .admin-tabs,
  .page-header, .section-title, .admin-header, .admin-tab-content,
  .latest-tweets, .tournament-filters {
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .navbar { padding: 1rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .admin-tickets-layout { grid-template-columns: 1fr; }
  .ticket-search-row input { width: 100%; }
}

/* ===== REQUESTED LAYOUT ADJUSTMENTS ===== */
.latest-tweets {
  text-align: center;
}
.latest-tweets h3,
.latest-tweets > h3 {
  text-align: center;
}
.tweets-embed {
  margin-left: auto;
  margin-right: auto;
}
.tweets-fallback,
.tweet-card,
.tweets-stale,
.latest-tweets .empty {
  margin-left: auto;
  margin-right: auto;
}

.contact-tabs {
  align-items: center;
}
.contact-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 170px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}
.ticket-check-container {
  max-width: 1000px;
  padding-top: 1rem;
}
.ticket-check-form {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ticket-search-row {
  align-items: center;
}

.winning-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  overflow-x: auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
  scroll-snap-type: x proximity;
}
.winning-screen-card {
  flex: 0 0 min(560px, calc(100vw - 3rem));
  background: #222229;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  scroll-snap-align: start;
}
.winning-screen-card img {
  width: 100%;
  height: auto;
  display: block;
}
.winning-screen-caption {
  display: none;
}

.footer {
  padding: 46px clamp(1.5rem, 5vw, 4rem) 26px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
}
.footer-links {
  align-items: flex-start;
}
.footer-socials {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.footer-bottom {
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .contact-tabs .tab-btn {
    min-width: 0;
    flex: 1;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-socials {
    justify-content: flex-start;
  }
}

/* ===== FINAL GAME-SITE POLISH ===== */
body {
  background: #000;
}

.navbar {
  background: rgba(6, 8, 12, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 16px 48px rgba(0,0,0,0.24);
}

.nav-links a,
.footer-links a {
  color: rgba(235,241,252,0.78);
}

.nav-links a:hover,
.footer-links a:hover {
  color: #f7d657;
}

.hero {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-content h1,
.page-header h1,
.section-title h2 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.46);
}

.tournament-card,
.news-card,
.leaderboard-container,
.bracket-card,
.about-description,
.contact-form,
.ticket-check-form,
.admin-form-card,
.admin-list-card,
.matcherino-preview,
.staff-card,
.partner-card,
.winning-screen-card {
  background: #000;
  border-color: rgba(185,205,236,0.12);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.045);
}

.tournament-card,
.news-card,
.bracket-card,
.staff-card,
.partner-card,
.winning-screen-card {
  border-radius: 8px;
}

.tournament-card:hover,
.news-card:hover,
.bracket-card:hover,
.staff-card:hover,
.partner-card:hover {
  border-color: rgba(240,201,74,0.34);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.tournament-banner-placeholder {
  background: #000;
}

.tournament-status,
.filter-pill,
.tab-btn,
.src-tag {
  border-radius: 4px;
}

.tournament-meta span,
.news-meta,
.tweet-date,
.lb-meta,
.footer-bottom {
  color: rgba(220,228,242,0.68);
}

.tournament-meta .prize {
  color: #f8d65d;
  font-weight: 800;
}

.leaderboard-header,
.lb-row {
  border-color: rgba(185,205,236,0.105);
}

.lb-row:hover {
  background: rgba(255,255,255,0.042);
}

.latest-tweets,
.tournament-filters,
.regions-tabs {
  border-color: rgba(255,255,255,0.06);
}

.footer {
  background: #000;
}

.footer-content {
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
}

.footer-logo {
  align-items: center;
}

.footer-links {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1.15rem, 3vw, 2.75rem);
  white-space: nowrap;
}

.footer-socials a {
  color: rgba(235,241,252,0.72);
}

.footer-socials a:hover {
  color: #f7d657;
}

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

@media (max-width: 760px) {
  .footer-content {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* ===== ASSET AND LAYOUT CORRECTIONS ===== */
.navbar,
.navbar.scrolled {
  min-height: 68px;
  padding: 0.72rem clamp(1.25rem, 4vw, 3.25rem);
}

.navbar.scrolled {
  background: rgba(6, 8, 12, 0.94);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.nav-logo {
  gap: 0.9rem;
  min-width: 240px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.name-img {
  width: min(190px, 36vw);
  height: 36px;
  object-fit: contain;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0;
}

.login-name {
  width: 210px;
  max-width: 68%;
  height: 48px;
  object-fit: contain;
}

.footer-logo {
  gap: 0.85rem;
}

.footer-logo img:first-child {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-name {
  width: 180px !important;
  height: 40px !important;
  object-fit: contain;
}

.region-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.region-tab img,
.region-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.tournament-meta .region-badge {
  color: rgba(220,228,242,0.74);
}

.winning-screen-card {
  border-left: 1px solid rgba(185,205,236,0.12);
}

.contact-container {
  align-items: stretch;
}

.contact-info,
.contact-form {
  height: 100%;
}

.contact-info {
  display: flex;
}

.contact-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 760px) {
  .nav-logo {
    min-width: 0;
  }

  .name-img {
    width: 150px;
  }

  .footer-name {
    width: 160px !important;
  }
}

/* ===== INTERACTION AND MOBILE REFINEMENT ===== */
.hero {
  background:
    linear-gradient(100deg, rgba(5,7,10,0.99) 0%, rgba(7,10,15,0.96) 36%, rgba(8,11,17,0.58) 61%, rgba(5,7,10,0.1) 100%),
    url("/assets/hero-real-brawlers-v4.png") center / cover no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-link,
.nav-link:hover,
.nav-link.active {
  background: transparent;
  box-shadow: none;
}

.nav-link {
  color: #aeb7c3;
}

.nav-link:hover {
  color: #eef2f7;
}

.nav-link.active {
  color: #f6cf48;
}

.btn,
.tab-btn,
.filter-pill,
.bracket-tab,
.filter-btn,
.social-btn,
.btn-delete,
.modal-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.24),
    0 8px 18px rgba(0,0,0,0.18);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn::after,
.tab-btn::after,
.filter-pill::after,
.bracket-tab::after,
.filter-btn::after,
.social-btn::after,
.btn-delete::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.1), transparent 34%);
  opacity: 0.7;
  pointer-events: none;
}

.btn:hover,
.tab-btn:hover,
.filter-pill:hover,
.bracket-tab:hover,
.filter-btn:hover,
.social-btn:hover,
.btn-delete:hover,
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.17),
    inset 0 -2px 0 rgba(0,0,0,0.22),
    0 12px 24px rgba(0,0,0,0.24);
}

.btn:active,
.tab-btn:active,
.filter-pill:active,
.bracket-tab:active,
.filter-btn:active,
.social-btn:active,
.btn-delete:active,
.modal-close:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.25),
    0 3px 8px rgba(0,0,0,0.18);
}

.btn:focus-visible,
.tab-btn:focus-visible,
.filter-pill:focus-visible,
.bracket-tab:focus-visible,
.filter-btn:focus-visible,
.social-btn:focus-visible,
.btn-delete:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid #f6cf48;
  outline-offset: 3px;
}

.btn {
  min-height: 46px;
  padding: 0.72rem 1.3rem;
  gap: 0.65rem;
}

.btn i {
  width: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, #f8da60, #e9bb2d);
  border-color: #ffe077;
  color: #090a0d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -3px 0 rgba(126,86,0,0.38),
    0 10px 24px rgba(225,177,32,0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffe477, #f0c43e);
  border-color: #ffea98;
}

.btn-outline {
  background: linear-gradient(180deg, rgba(31,37,48,0.94), rgba(15,19,27,0.96));
  border-color: rgba(240,201,74,0.45);
  color: #f6d86d;
}

.btn-outline:hover {
  background: linear-gradient(180deg, rgba(45,51,61,0.96), rgba(19,23,31,0.98));
  border-color: rgba(246,207,72,0.72);
}

.filter-pill,
.tab-btn,
.bracket-tab,
.filter-btn {
  background: linear-gradient(180deg, rgba(31,37,47,0.9), rgba(15,18,25,0.94));
  border-color: rgba(255,255,255,0.11);
}

.filter-pill.active,
.tab-btn.active,
.bracket-tab.active,
.filter-btn.active {
  background: linear-gradient(180deg, rgba(79,67,26,0.9), rgba(37,31,15,0.96));
  border-color: rgba(246,207,72,0.62);
  color: #ffe27c;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 8px 22px rgba(219,173,34,0.13);
}

.regions-tabs {
  gap: 0.75rem;
}

.region-tab {
  width: 62px;
  height: 54px;
  min-width: 62px;
  padding: 0;
  justify-content: center;
}

.region-tab img {
  width: 38px;
  height: 38px;
  transition: transform 160ms ease, filter 160ms ease;
}

.region-tab:hover img {
  transform: scale(1.06);
}

.region-tab.active img {
  filter: drop-shadow(0 4px 8px rgba(240,201,74,0.22));
}

.news-modal-shell {
  width: min(900px, 100%);
  max-width: 900px;
  max-height: 88vh;
  padding: 0;
  overflow: auto;
  border-radius: 8px;
  border-color: rgba(255,255,255,0.13);
  background: #10141c;
  box-shadow: 0 28px 90px rgba(0,0,0,0.62);
}

.news-modal-shell .modal-close {
  position: fixed;
  top: max(1rem, calc(6vh + 0.75rem));
  right: max(1rem, calc((100vw - min(900px, calc(100vw - 4rem))) / 2 + 0.75rem));
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(8,10,14,0.86);
  backdrop-filter: blur(12px);
}

.news-article-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.news-article-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(16,20,28,0.88));
}

.news-article-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-article {
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.news-article-header {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.news-article-header h2 {
  max-width: 760px;
  margin: 0.85rem 0 0.75rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.75rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  color: #98a3b1;
  font-size: 0.86rem;
}

.news-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.news-article-meta i {
  color: #f0c94a;
}

.news-article-body {
  max-width: 720px;
  margin-top: 1.7rem;
  color: #d7dde6;
  font-size: 1.03rem;
  line-height: 1.82;
}

.news-article-body p + p {
  margin-top: 1.15rem;
}

@media (max-width: 680px) {
  .hero {
    background-position: 64% center;
  }

  .socials-grid,
  .staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .social-card,
  .staff-card {
    min-width: 0;
    min-height: 0;
    padding: 1rem;
  }

  .social-card {
    align-items: center;
    text-align: center;
  }

  .social-card i {
    font-size: 1.7rem;
  }

  .social-card h3,
  .staff-card h4 {
    font-size: 0.95rem;
  }

  .social-card p,
  .staff-desc {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .social-btn {
    width: 100%;
    padding: 0.52rem 0.45rem;
    font-size: 0.7rem;
  }

  .staff-pfp {
    width: 64px;
    height: 64px;
  }

  .regions-tabs {
    display: grid;
    grid-template-columns: repeat(4, 54px);
    justify-content: start;
  }

  .region-tab {
    width: 54px;
    min-width: 54px;
    height: 50px;
  }

  .region-tab img {
    width: 34px;
    height: 34px;
  }

  .news-modal-shell {
    width: 100%;
    max-height: 92vh;
  }

  .news-modal-shell .modal-close {
    top: 1.25rem;
    right: 1.25rem;
  }

  .news-article-media {
    aspect-ratio: 16 / 9;
  }

  .news-article-header h2 {
    font-size: 2rem;
  }

  .news-article-body {
    font-size: 0.98rem;
    line-height: 1.72;
  }
}

/* ===== CONTROL SYSTEM V2 ===== */
.hero {
  background:
    linear-gradient(100deg, rgba(5,7,10,0.99) 0%, rgba(7,10,15,0.96) 36%, rgba(8,11,17,0.56) 61%, rgba(5,7,10,0.08) 100%),
    url("/assets/hero-tournament-finals-v5.png") center / cover no-repeat;
}

.btn,
.tab-btn,
.filter-pill,
.bracket-tab,
.filter-btn,
.social-btn,
.btn-delete,
.modal-close {
  border-radius: 9px;
  border: 1px solid #343b47;
  background: #151a22;
  color: #d8dee8;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 5px 14px rgba(0,0,0,0.18);
  transform: none;
}

.btn::after,
.tab-btn::after,
.filter-pill::after,
.bracket-tab::after,
.filter-btn::after,
.social-btn::after,
.btn-delete::after {
  inset: auto 50% 0;
  width: 0;
  height: 2px;
  background: #f0c94a;
  opacity: 1;
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.btn:hover,
.tab-btn:hover,
.filter-pill:hover,
.bracket-tab:hover,
.filter-btn:hover,
.social-btn:hover,
.btn-delete:hover,
.modal-close:hover {
  border-color: #596273;
  background: #1b212b;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 18px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.btn:hover::after,
.tab-btn:hover::after,
.filter-pill:hover::after,
.bracket-tab:hover::after,
.filter-btn:hover::after,
.social-btn:hover::after,
.btn-delete:hover::after {
  width: calc(100% - 20px);
}

.btn:active,
.tab-btn:active,
.filter-pill:active,
.bracket-tab:active,
.filter-btn:active,
.social-btn:active,
.btn-delete:active,
.modal-close:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.28);
}

.btn-primary {
  background: #f0c94a;
  border-color: #f5d663;
  color: #090b0f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 7px 18px rgba(211,166,31,0.16);
}

.btn-primary::after {
  background: #090b0f;
}

.btn-primary:hover {
  background: #f5d45e;
  border-color: #ffe184;
  color: #090b0f;
}

.btn-outline {
  background: #12171f;
  border-color: #5c5130;
  color: #f1d36c;
}

.btn-outline:hover {
  background: #1b2029;
  border-color: #8b773c;
  color: #ffe381;
}

.filter-pill.active,
.tab-btn.active,
.bracket-tab.active,
.filter-btn.active {
  background: #20242b;
  border-color: #a58a35;
  color: #f6d65f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 5px 14px rgba(0,0,0,0.18);
}

.filter-pill.active::after,
.tab-btn.active::after,
.bracket-tab.active::after,
.filter-btn.active::after {
  width: calc(100% - 20px);
}

.region-tab {
  width: auto;
  min-width: 112px;
  height: 44px;
  padding: 0.62rem 1rem;
  justify-content: center;
}

.region-tab img {
  display: none;
}

@media (max-width: 680px) {
  .tournament-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .tournament-filters .filter-pill {
    width: 100%;
    min-width: 0;
    padding: 0.56rem 0.2rem;
    font-size: 0.66rem;
    text-align: center;
  }

  .regions-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .region-tab {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0.55rem 0.45rem;
    font-size: 0.7rem;
  }
}

/* ===== TEXT SELECTORS AND MOBILE FOOTER FIX ===== */
.btn::after,
.tab-btn::after,
.filter-pill::after,
.bracket-tab::after,
.filter-btn::after,
.social-btn::after,
.btn-delete::after {
  content: none !important;
  display: none !important;
}

.tournament-filters .filter-pill,
.regions-tabs .region-tab,
.brackets-tabs .bracket-tab,
.contact-tabs .tab-btn {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #8f99a8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  transform: none;
}

.tournament-filters .filter-pill:hover,
.regions-tabs .region-tab:hover,
.brackets-tabs .bracket-tab:hover,
.contact-tabs .tab-btn:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #e8edf4;
  transform: none;
}

.tournament-filters .filter-pill.active,
.regions-tabs .region-tab.active,
.brackets-tabs .bracket-tab.active,
.contact-tabs .tab-btn.active {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f3cf55;
  font-weight: 850;
  text-shadow: 0 0 18px rgba(240,201,74,0.2);
}

.tournament-filters .filter-pill:active,
.regions-tabs .region-tab:active,
.brackets-tabs .bracket-tab:active,
.contact-tabs .tab-btn:active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.regions-tabs .region-tab {
  width: auto;
  min-width: 0;
  height: auto;
}

.brackets-tabs,
.contact-tabs {
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .footer {
    width: 100%;
    overflow: hidden;
    padding: 34px 20px 22px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    gap: 24px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    width: 100%;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    justify-items: center;
    width: min(280px, 100%);
    gap: 12px 24px;
    white-space: normal;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 22px;
  }

  .footer-bottom {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
  }

  .footer-bottom p {
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.55;
  }
}

@media (max-width: 680px) {
  .tournament-filters .filter-pill,
  .regions-tabs .region-tab,
  .brackets-tabs .bracket-tab,
  .contact-tabs .tab-btn {
    min-height: 36px;
    padding: 0.38rem 0.2rem;
    font-size: 0.68rem;
  }

  .regions-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
  }

  .brackets-tabs,
  .contact-tabs {
    gap: 0.75rem;
  }
}

/* ===== SOCIAL FEED AND NEWS DETAIL REFINEMENT ===== */
.tweets-embed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
  width: 100%;
  max-width: 1120px;
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 0;
}

.tweet-card {
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border-radius: 8px;
}

.tweet-header {
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.tweet-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.78rem;
}

.tweet-name {
  font-size: 0.84rem;
}

.tweet-handle {
  font-size: 0.72rem;
}

.tweet-link-out {
  padding: 0.25rem;
  font-size: 0.9rem;
}

.tweet-body {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.48;
}

.tweet-images {
  margin-top: 0.55rem;
  border-radius: 6px;
}

.tweet-images img {
  max-height: 220px;
}

.tweet-actions {
  gap: 0.65rem;
  padding-top: 0.55rem;
}

.tweet-action {
  padding: 0.25rem;
  font-size: 0.75rem;
}

.tweets-stale,
.tweets-fallback,
.tweets-embed > .loading-spinner,
.tweets-embed > .empty {
  grid-column: 1 / -1;
  width: 100%;
}

.contact-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.contact-tabs .tab-btn i {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.news-category,
.news-card .news-category,
.news-article .news-category {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #e6c24d;
}

@media (max-width: 680px) {
  .tweets-embed {
    gap: 0.55rem;
  }

  .tweet-card {
    padding: 0.68rem;
  }

  .tweet-avatar {
    display: none;
  }

  .tweet-name {
    font-size: 0.72rem;
  }

  .tweet-handle {
    font-size: 0.62rem;
  }

  .tweet-body {
    font-size: 0.74rem;
    line-height: 1.42;
  }

  .tweet-images img {
    max-height: 145px;
  }

  .tweet-view-on-x {
    display: none;
  }
}

/* ===== FINAL HOME AND SOCIAL FEED POLISH ===== */
.nav-logo {
  gap: 0.38rem;
}

.nav-logo .name-img {
  width: 144px;
  max-width: 36vw;
  height: auto;
}

#tournaments {
  scroll-margin-top: 92px;
}

.tournament-status,
.tournament-status.status-upcoming,
.tournament-status.status-live,
.tournament-status.status-past,
.tournament-status.status-finished {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tweets-embed {
  display: block;
}

.tweets-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
  width: 100%;
}

.tweets-masonry.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.tweet-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.tweet-card {
  background: linear-gradient(145deg, rgba(27, 31, 38, 0.98), rgba(18, 21, 27, 0.98));
  border-color: rgba(255, 255, 255, 0.09);
}

.tweets-stale {
  margin-bottom: 0.85rem;
}

@media (max-width: 680px) {
  .tweets-masonry,
  .tweet-column {
    gap: 0.55rem;
  }

  .tweet-card {
    padding: 0.75rem;
  }
}

/* ===== TICKET CONVERSATION POLISH ===== */
.ticket-status-badge,
.ticket-status-badge.open,
.ticket-status-badge.closed {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ticket-chat-reply textarea {
  min-width: 0;
  width: 100%;
}

@media (max-width: 680px) {
  .ticket-chat-box {
    width: 100%;
    min-width: 0;
  }

  .ticket-chat-header {
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .ticket-chat-header > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .ticket-chat-code,
  .ticket-chat-subject {
    display: inline;
    overflow-wrap: anywhere;
  }

  .ticket-chat-messages {
    padding: 1rem;
  }

  .chat-bubble {
    max-width: 88%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .chat-meta {
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
  }

  .ticket-chat-reply {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    align-items: stretch;
  }

  .ticket-chat-reply textarea {
    display: block;
    min-height: 96px;
    max-height: 180px;
    margin: 0;
    resize: vertical;
  }

  .ticket-chat-reply .btn {
    width: 100%;
    margin: 0;
  }
}

/* ===== STABLE SELECTORS AND MOBILE CONTACT ORDER ===== */
.tournament-filters {
  display: grid;
  grid-template-columns: repeat(4, 108px);
  align-items: center;
  justify-content: start;
  column-gap: 0.65rem;
}

.regions-tabs {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  align-items: center;
  justify-content: start;
  column-gap: 0.65rem;
}

.tournament-filters .filter-pill,
.regions-tabs .region-tab {
  width: 100%;
  height: 38px;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  font-weight: 750;
  transform: scale(1);
  transform-origin: center;
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.tournament-filters .filter-pill.active,
.regions-tabs .region-tab.active {
  font-weight: 750;
  transform: scale(1.06);
}

@media (max-width: 680px) {
  #contact-new .contact-container {
    display: flex;
    flex-direction: column;
  }

  #contact-new .contact-form {
    order: 1;
  }

  #contact-new .contact-info {
    order: 2;
  }

  .contact-tabs {
    padding-bottom: 0.65rem;
    border-bottom: 0;
  }

  #contact-new,
  #contact-check {
    padding-top: 0;
  }

  #contact-new .contact-container,
  #contact-check .ticket-check-container {
    padding-top: 0.35rem;
  }

  .tournament-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0.35rem;
  }

  .regions-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.65rem;
    row-gap: 0.35rem;
  }

  .tournament-filters .filter-pill,
  .regions-tabs .region-tab {
    height: 38px;
    min-height: 38px;
    padding: 0;
  }
}

/* ===== STAFF DIRECTORY REFINEMENT ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.staff-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 210px;
  padding: 1.25rem;
  text-align: left;
  background: linear-gradient(145deg, rgba(20, 24, 30, 0.98), rgba(12, 15, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.staff-card:hover {
  border-color: rgba(240, 201, 74, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.staff-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.staff-pfp {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  margin: 0;
  border: 2px solid rgba(240, 201, 74, 0.68);
  box-shadow: 0 0 0 4px rgba(240, 201, 74, 0.06);
}

.staff-identity {
  min-width: 0;
}

.staff-card h4 {
  margin: 0;
  color: #f5f7f9;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.staff-role {
  margin: 0.28rem 0 0;
  color: #d8bc5a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.staff-desc {
  margin: 1rem 0;
  color: #a8b1bd;
  font-size: 0.84rem;
  line-height: 1.55;
}

.staff-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.staff-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.38rem 0.55rem;
  color: #bac3ce;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.staff-social:hover {
  color: #f2d264;
  background: rgba(240, 201, 74, 0.07);
  border-color: rgba(240, 201, 74, 0.25);
}

.staff-social i {
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.staff-social span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-social-handle {
  max-width: 100%;
}

@media (max-width: 680px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.65rem;
  }

  .staff-card {
    min-height: 220px;
    padding: 0.9rem;
  }

  .staff-profile {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .staff-pfp {
    width: 54px;
    height: 54px;
  }

  .staff-card h4 {
    font-size: 1rem;
  }

  .staff-role {
    font-size: 0.64rem;
  }

  .staff-desc {
    margin: 0.75rem 0;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .staff-socials {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    padding-top: 0.65rem;
  }

  .staff-social {
    width: 100%;
    justify-content: center;
    padding: 0.42rem;
    font-size: 0.66rem;
  }
}

/* ===== Live bracket ===== */
.bm-grid {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 100%;
  padding: 0.25rem 0.25rem 0.5rem;
}
.bm-round {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 0 0 auto;
}
.bm-round-title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow, #ffcc00);
  margin-bottom: 0.5rem;
  text-align: center;
}
.bm-round-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.55rem;
}
/* ── Bracket connector geometry ─────────────────────────────────────────
   The SVG overlay uses the rendered card centers, so lines stay aligned
   when the bracket frame or fullscreen viewport changes size. */
:root {
  --bm-line:   rgba(255, 255, 255, 0.22);
  --bm-line-w: 1px;
}
.bm-connectors {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.bm-connectors path {
  fill: none;
  stroke: var(--bm-line);
  stroke-width: var(--bm-line-w);
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}
.bm-round-matches {
  /* leave room on the right for the outgoing stub+pair line+gap */
  padding-right: 0;
}
.bm-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 0.55rem;
  margin-right: 36px;
}
.bm-round:last-child .bm-pair,
.bm-round:last-child .bm-match,
.bm-round:last-child .bm-round-matches {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.bm-match {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: visible;
  flex: 0 0 auto;
}
.bm-match[data-state="live"] {
  border-color: var(--yellow, #ffcc00);
  box-shadow: 0 0 0 1px var(--yellow, #ffcc00);
}
.bm-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  color: #e8e8e8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bm-side:last-child { border-bottom: none; }
.bm-side.bm-winner { background: rgba(255, 204, 0, 0.08); color: #fff; }
.bm-side.bm-bye    { color: #777; font-style: italic; }
.bm-seed {
  font-size: 0.68rem;
  color: #888;
  min-width: 1.6rem;
}
.bm-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-score {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 1.2rem;
  text-align: right;
  color: inherit;
}
.bm-side.bm-bye .bm-score { display: none; }

/* ===== Winner links and admin form fixes ===== */
#page-winning .winning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  overflow-x: visible;
  scroll-snap-type: none;
}

#page-winning .winning-screen-card {
  width: auto;
  min-width: 0;
  max-width: 100%;
  flex: none;
  scroll-snap-align: none;
}

.winning-screen-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.winning-screen-link img {
  cursor: pointer;
}

.admin-about-textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}

@media (max-width: 680px) {
  #page-winning .winning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.65rem;
    width: 100%;
    overflow-x: visible;
    padding: 1rem 0.75rem 2rem;
    scroll-snap-type: none;
  }

  #page-winning .winning-screen-card {
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: none;
    border-radius: 7px;
    scroll-snap-align: none;
  }
}

/* Bracket header controls (month dropdown + fullscreen button) */
.brackets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.brackets-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bracket-month {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e8e8e8;
  padding: 0.35rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.bracket-month:focus {
  outline: none;
  border-color: var(--yellow, #ffcc00);
}
.bracket-month option {
  background: #1a1a1a;
  color: #e8e8e8;
}
.bracket-fs-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bracket-fs-btn:hover {
  color: var(--yellow, #ffcc00);
  border-color: var(--yellow, #ffcc00);
}

/* Match the brackets column to the leaderboard column.
   The grid already aligns row heights, so we just need each container to
   participate as a flex column and let the frame absorb the leftover space. */
.esports-content {
  align-items: stretch;
}
.leaderboard-container,
.brackets-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brackets-container .bracket-frame {
  flex: 1 1 0;
  min-height: 0;
}

/* Small framed bracket window — scrolls if content overflows */
.bracket-frame {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem;
  overflow: auto;
}
.bracket-frame > .bracket-display {
  min-height: 100%;
}
.bracket-frame.bracket-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  border-radius: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: #0a0a0a;
}
body.bracket-fs-lock { overflow: hidden; }

.bracket-fs-exit {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bracket-fs-exit:hover {
  color: var(--yellow, #ffcc00);
  border-color: var(--yellow, #ffcc00);
}
