
/* ===============================
   SNG PREMIER ONLINE DARTS LEAGUE
   CLEAN ESPORTS UI - FULL CSS
   =============================== */

:root {
  --cream: #f3e7d5;
  --muted: #b9ad9c;
  --dark: rgba(8, 8, 8, 0.82);
  --dark-solid: #090909;
  --panel: rgba(12, 12, 12, 0.78);
  --panel-soft: rgba(255,255,255,0.035);
  --border: rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.06);
  --green: #0f7a35;
  --green-soft: rgba(0, 255, 120, 0.14);
  --red-deep: #230000;
  --red-mid: #5a0000;
  --shadow: rgba(0,0,0,0.55);
}

/* ===============================
   BASE
   =============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--cream);
  letter-spacing: 1px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

  background:
    radial-gradient(circle at center, rgba(255,255,255,0.035) 0%, rgba(0,0,0,0.72) 78%),
    linear-gradient(to bottom, #5a0000 0%, #220000 42%, #100000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("SNG-watermark.PNG") center center no-repeat;
  background-size: 1900px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.18;
}

a {
  color: inherit;
}

/* ===============================
   NAVIGATION
   =============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;
  padding: 6px 14px;

  background:
    linear-gradient(to bottom, rgba(12,12,12,0.96), rgba(6,6,6,0.94));

  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.48);
  backdrop-filter: blur(10px);
}

.navbar a {
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.22s ease;
  font-size: 20px;

  background: transparent;
  border: 1px solid transparent;
}

.navbar a:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0,255,120,0.08);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.logo-link img,
.logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.nav-links,
.account-links,
.acccount-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.22), transparent);
  margin: 0 16px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: 0.22s ease;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(2.5);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.30));
}

/* ===============================
   DROPDOWNS
   =============================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;

  min-width: 240px;
  padding: 8px;

  background: rgba(8,8,8,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.65);
  z-index: 2000;
  backdrop-filter: blur(12px);
}

.dropdown-content a,
.dropdown-subtitle {
  display: block;
  padding: 10px 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 18px;
  text-align: left;
  border-radius: 9px;
}

.dropdown-subtitle {
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  pointer-events: none;
  margin: 4px 0;
  font-size: 16px;
}

.dropdown-content a:hover {
  background: rgba(0,255,120,0.10);
  border-color: rgba(0,255,120,0.18);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===============================
   HEADERS
   =============================== */

.page-header {
  position: relative;
  text-align: center;
  padding: 22px 12px;
  margin-bottom: 30px;

  background:
    radial-gradient(circle at center, rgba(255,255,255,0.045), rgba(0,0,0,0.36)),
    linear-gradient(135deg, rgba(41,2,2,0.55), rgba(10,0,0,0.78));

  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 80%);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,255,120,0.45), transparent);
}

.page-header h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.page-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 20px;
}

/* ===============================
   LAYOUT
   =============================== */

.container {
  max-width: 1120px;
  margin: 14px auto;
  padding: 0 14px;
}

.container img {
  max-width: 100%;
}

/* ===============================
   CARDS - MODERNIZED
   =============================== */

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(8,8,8,0.74);

  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.04);

  padding: 22px;
  margin-bottom: 30px;

  backdrop-filter: blur(10px);
  transition: 0.22s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(0,255,120,0.06), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.035), transparent 30%);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 22px 52px rgba(0,0,0,0.50),
    0 0 24px rgba(0,255,120,0.045);
}

/* New slick title treatment */
.card h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;
  padding: 0 0 9px;

  width: auto;
  max-width: 100%;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  color: var(--cream);
  text-align: center;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);

  width: 72%;
  min-width: 90px;
  height: 2px;
  border-radius: 999px;

  background:
    linear-gradient(to right, transparent, rgba(0,255,120,0.65), transparent);

  box-shadow: 0 0 12px rgba(0,255,120,0.25);
}

/* Center h2 inside cards without boxing it */
.card > h2 {
  display: flex;
}

.link-card,
.stat-card,
.league-preview-card,
.league-intro-card,
.about-hero {
  text-align: center;
}

/* ===============================
   BUTTONS
   =============================== */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.main-nav a,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  background: rgba(255,255,255,0.045);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;

  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.11);

  font-size: 20px;
  transition: 0.22s ease;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.main-nav a:hover,
.button-link:hover {
  background: rgba(0,255,120,0.08);
  border-color: rgba(0,255,120,0.28);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,255,120,0.14);
}

/* ===============================
   TABLES
   =============================== */

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10,10,10,0.62);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

th {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.025));

  color: #fff;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 18px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

td {
  padding: 5px 6px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  text-align: center;
}

tbody tr {
  transition: 0.18s ease;
}

tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.018);
}

tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.035);
}

tbody tr:hover {
  background:
    linear-gradient(to right, rgba(0,255,120,0.09), rgba(255,255,255,0.025));

  transform: none;

  box-shadow:
    inset 3px 0 0 rgba(0,255,120,0.45),
    inset 0 0 12px rgba(0,255,120,0.08);
}

/* ===============================
   PLAYER POPUP
   =============================== */

.player-popup {
  position: fixed;
  display: none;
  background: rgba(8,8,8,0.96);
  color: white;
  border: 1px solid rgba(0,255,120,0.24);
  box-shadow: 0 0 22px rgba(0,0,0,0.75);
  padding: 14px 16px;
  border-radius: 14px;
  z-index: 9999;
  min-width: 230px;
  pointer-events: none;
  font-size: 18px;
  backdrop-filter: blur(10px);
}

.player-popup h3 {
  margin: 0 0 8px 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 7px;
}

.player-popup p {
  margin: 4px 0;
}

.popup-fixtures {
  margin-top: 10px;
  line-height: 1.4;
  white-space: normal;
  max-width: 260px;
}

.player-name {
  cursor: pointer;
  transition: 0.2s ease;
}

.player-name:hover {
  color: #70ff9d;
  text-shadow: 0 0 8px rgba(0,255,120,0.45);
}

/* ===============================
   FORMS
   =============================== */

.member-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 20px;
  margin-bottom: 5px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.42);
  color: white;
  font-size: 16px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(0,255,120,0.36);
  box-shadow: 0 0 12px rgba(0,255,120,0.14);
}

.form-message {
  margin-top: 15px;
  font-size: 20px;
  text-align: center;
}

.dc-helper {
  text-align: center;
  margin: 18px 0;
}

.dc-helper img {
  width: 90px;
  max-height: 90px;
  object-fit: contain;
  transition: 0.25s ease;
}

.dc-helper img:hover {
  transform: scale(1.08);
}

/* ===============================
   PROFILE PAGE
   =============================== */

.profile-hero {
  display: grid !important;
  grid-template-columns: 200px 1fr 380px !important;
  gap: 25px;
  align-items: center;
}

.profile-image-large {
  grid-column: 1;
  width: 170px;
  height: 170px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.38);
  padding: 8px;
  box-shadow: 0 0 18px rgba(0,0,0,0.38);
}

.profile-info {
  grid-column: 2;
}

.current-league-card {
  grid-column: 3;
  width: 100%;
  max-width: none;
  min-width: 320px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(8,8,8,0.74);
}

.current-league-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.current-league-header img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.current-league-header h3 {
  margin: 0;
  font-size: 30px;
}

.current-league-header p {
  margin: 0;
  font-size: 20px;
  color: #ccc;
}

.mini-standings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-standing-row {
  display: grid;
  grid-template-columns: 50px 1fr 60px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  transition: 0.2s ease;
}

.mini-standing-row:hover {
  background: rgba(0,255,120,0.08);
}

.mini-standing-row.you {
  border: 1px solid rgba(0,255,120,0.22);
  background: linear-gradient(to right, rgba(0,255,120,0.12), rgba(255,255,255,0.03));
}

.mini-standing-row span {
  font-size: 20px;
}

.no-league-state {
  text-align: center;
  padding: 20px 10px;
}

.no-league-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 10px;
}

.no-league-state h3 {
  margin: 10px 0 5px;
  font-size: 28px;
}

.no-league-state p {
  color: #ccc;
  font-size: 18px;
  margin-bottom: 18px;
}

/* ===============================
   DASHBOARDS / GRIDS
   =============================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
  max-width: 1120px;
}

.dashboard-grid img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.stat-card {
  text-align: center;
}

.big-stat {
  font-size: 46px;
  margin: 10px 0;
  color: white;
}

.two-column-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stat-detail-card {
  min-height: 260px;
}

.stat-detail-card h2 {
  margin-bottom: 18px;
}

.member-stats-grid,
.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 25px;
  margin-top: 24px;
}

.player-stats-box,
.remaining-fixtures-box {
  flex: 1;
}

.fixtures-list {
  font-size: 22px;
  line-height: 1.4;
  white-space: normal;
}

/* ===============================
   ABOUT
   =============================== */

.about-hero {
  text-align: center;
  max-width: 1000px;
  margin: 35px auto;
  padding: 30px;
}

.about-hero img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.about-hero h2 {
  font-size: 42px;
}

.about-hero p {
  font-size: 22px;
  line-height: 1.5;
  max-width: 850px;
  margin: 15px auto;
}

.about-intro {
  font-size: 28px !important;
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.about-grid div {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
  border-radius: 14px;
  font-size: 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.about-hero h3 {
  font-size: 34px;
  margin-top: 25px;
  color: white;
}

/* ===============================
   LEAGUE PAGES / HUB
   =============================== */

.league-header {
  padding: 25px 10px;
}

.league-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 10px;
}

.league-intro-card {
  text-align: center;
}

.league-intro-card p {
  font-size: 22px;
  line-height: 1.5;
  max-width: 850px;
  margin: 0 auto;
}

.league-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.league-preview-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.division-preview {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0;
}

.division-preview h3 {
  margin-top: 0;
  font-size: 28px;
}

.division-preview p {
  font-size: 20px;
  margin: 8px 0;
}

.league-division-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.league-division-card {
  min-height: 220px;
  transition: 0.25s ease;
}

.league-division-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 18px rgba(255,255,255,0.10),
    0 0 40px rgba(0,255,120,0.06);
}

.league-card-text {
  font-size: 20px;
  margin-bottom: 20px;
}

#division-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mini-league-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.league-preview-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 25px;
  align-items: center;
}

.league-preview-info {
  text-align: center;
}

.league-preview-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.25s ease;
}

.league-preview-logo img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0.92;
}

.league-preview-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.18));
}

.league-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.league-title-link h2 {
  transition: 0.25s ease;
}

.league-title-link:hover h2 {
  transform: scale(1.02);
  filter: brightness(1.12);
}

.leader-label {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 10px;
}

.leader-player-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 16px;
  margin: 15px 0;
}

.leader-player-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.44);
}

.leader-player-card h4 {
  font-size: 30px;
  margin: 0;
}

.leader-player-card p {
  font-size: 20px;
  margin: 4px 0 12px;
}

.leader-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.leader-mini-stats span {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 17px;
}

/* ===============================
   LEAGUE THEME ACCENTS
   =============================== */

.diamond-theme tbody tr:hover {
  background: rgba(180, 235, 255, 0.10);
  box-shadow:
    inset 3px 0 0 rgba(180,235,255,0.55),
    inset 0 0 12px rgba(180,235,255,0.12);
}

.diamond-theme .card h2::after {
  background: linear-gradient(to right, transparent, rgba(185,242,255,0.80), transparent);
  box-shadow: 0 0 12px rgba(185,242,255,0.28);
}

.diamond-theme.league-preview-card {
  box-shadow: 0 0 22px rgba(185,242,255,0.10), 0 18px 42px rgba(0,0,0,0.42);
}

.platinum-theme tbody tr:hover {
  background: rgba(220,220,220,0.09);
  box-shadow:
    inset 3px 0 0 rgba(220,220,220,0.55),
    inset 0 0 12px rgba(220,220,220,0.10);
}

.platinum-theme .card h2::after {
  background: linear-gradient(to right, transparent, rgba(220,220,220,0.72), transparent);
  box-shadow: 0 0 12px rgba(220,220,220,0.20);
}

.platinum-theme.league-preview-card {
  box-shadow: 0 0 22px rgba(220,220,220,0.10), 0 18px 42px rgba(0,0,0,0.42);
}

.gold-theme tbody tr:hover {
  background: rgba(255,215,0,0.09);
  box-shadow:
    inset 3px 0 0 rgba(255,215,0,0.52),
    inset 0 0 12px rgba(255,215,0,0.12);
}

.gold-theme .card h2::after {
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.75), transparent);
  box-shadow: 0 0 12px rgba(255,215,0,0.24);
}

.gold-theme.league-preview-card {
  box-shadow: 0 0 22px rgba(255,215,0,0.10), 0 18px 42px rgba(0,0,0,0.42);
}

/* ===============================
   FOOTER
   =============================== */

footer {
  text-align: center;
  padding: 20px;
  color: #aaa;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1000px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .profile-image-large,
  .profile-info,
  .current-league-card {
    grid-column: auto;
    margin: 0 auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .league-preview-layout {
    grid-template-columns: 1fr;
  }

  .league-preview-logo img {
    width: 170px;
    height: 170px;
  }

  .leader-player-card {
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .navbar {
    gap: 8px;
    padding: 8px;
  }

  .logo-link img,
  .logo {
    width: 88px;
    height: 88px;
  }

  .nav-divider {
    display: none;
  }

  .nav-links,
  .account-links,
  .acccount-links,
  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a {
    font-size: 18px;
    padding: 7px 12px;
  }

  .about-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .about-hero p {
    font-size: 19px;
  }

  .league-division-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 10px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .card h2 {
    font-size: 26px;
  }

  .dashboard-grid,
  .member-stats-grid,
  .player-stats-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 32px;
  }

  td,
  th {
    font-size: 16px;
  }

  .mini-league-logo {
    width: 82px;
    height: 82px;
  }
}

.player-name-hover {
  cursor: pointer;
  color: #fff;
  transition: 0.2s ease;
}

.player-name-hover:hover {
  color: #70ff9d;
  text-shadow: 0 0 8px rgba(0,255,120,0.35);
}

.player-hover-card {
  position: fixed;
  display: none;
  z-index: 9999;

  width: 330px;
  padding: 16px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(8,8,8,0.96);

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;

  box-shadow:
    0 20px 45px rgba(0,0,0,0.65),
    0 0 22px rgba(0,255,120,0.08);

  pointer-events: none;
  backdrop-filter: blur(12px);
}

.popup-player-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.popup-player-top img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.45);
}

.popup-player-top h3 {
  margin: 0;
  font-size: 26px;
}

.popup-player-top p {
  margin: 2px 0;
  color: #ccc;
  font-size: 18px;
}

.popup-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.popup-stats-grid span {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px;
  border-radius: 999px;
  text-align: center;
  font-size: 16px;
}

.popup-form {
  margin-top: 14px;
  font-size: 18px;
  text-align: center;
}

.popup-form span {
  display: inline-block;
  margin-left: 6px;
  letter-spacing: 4px;
}

.player-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.player-select-card {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 16px;

  cursor: pointer;

  transition: 0.2s ease;
}

.player-select-card:hover {
  background: rgba(0,255,120,0.08);

  transform: translateY(-2px);
}

.player-select-card.selected {
  border-color: rgba(0,255,120,0.4);

  background:
    linear-gradient(
      to right,
      rgba(0,255,120,0.15),
      rgba(255,255,255,0.03)
    );
}

.player-select-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
}

.selected-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-player-pill {
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.08);

  font-size: 18px;
}

.draw-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;

  margin-bottom: 25px;
}

.draw-animation-area,
#bracket-preview {
  min-height: 220px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.02)
    );

  border: 1px solid rgba(255,255,255,0.08);
}

.draw-placeholder {
  font-size: 26px;
  color: #999;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.78);
  justify-content: center;
  align-items: center;
}

.modal-box {
  width: 92%;
  max-width: 460px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-input-group select {
  width: 130px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);

  background: rgba(0,0,0,0.42);

  color: white;

  padding: 10px;
}

.phone-input-group input {
  flex: 1;
}

@media (max-width: 600px) {

  body::before {
    background-size: 900px;
    opacity: 0.08;
  }

  .navbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 8px;
  }

  .logo-link img,
  .logo {
    width: 90px;
    height: 90px;
    margin: 0 auto;
  }

  .nav-links,
  .account-links,
  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .navbar a {
    font-size: 17px;
    padding: 7px 10px;
  }

  .nav-divider {
    display: none;
  }

  .page-header {
    padding: 22px 8px;
  }

  #division-title {
    flex-direction: column;
    gap: 8px;
    font-size: 28px;
    text-align: center;
  }

  .mini-league-logo {
    width: 85px;
    height: 85px;
  }

  .container {
    width: 100%;
    padding: 0 10px;
    margin: 12px auto;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .card h2 {
    font-size: 26px;
  }

  .table-wrap {
    overflow-x: auto;
    width: 100%;
  }

  table {
    min-width: 780px;
  }

  th,
  td {
    font-size: 15px;
    padding: 6px 5px;
    white-space: nowrap;
  }

  .player-hover-card {
    width: 92vw;
    left: 4vw !important;
    right: 4vw !important;
  }

  .member-stats-grid,
  .player-stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .current-league-card {
    min-width: 0;
    width: 100%;
  }
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 600px) {

  .mobile-menu-toggle {
    display: block;
    margin: 0 auto 8px;
    padding: 8px 18px;

    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;

    color: #f3e7d5;
    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar .nav-links,
  .navbar .social-icons,
  .navbar .account-links {
    display: none;
    width: 100%;
  }

  .navbar.mobile-open .nav-links,
  .navbar.mobile-open .social-icons,
  .navbar.mobile-open .account-links {
    display: flex;
  }

  .navbar.mobile-open .nav-links,
  .navbar.mobile-open .account-links {
    flex-direction: column;
    align-items: center;
  }

  .navbar.mobile-open .social-icons {
    flex-direction: column;
    align-items: center;
  }

  .social-icons a {
    width: 80%;
    max-width: 260px;
    text-align: center;
  }

  .social-icons img {
    display: none;
  }

  .social-icons a::after {
    display: block;
    padding: 8px 14px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);

    background: rgba(255,255,255,0.055);

    font-size: 18px;
  }

  .social-icons a[href*="facebook"]::after {
    content: "Facebook";
  }

  .social-icons a[href*="instagram"]::after {
    content: "Instagram";
  }

  .social-icons a[href*="tiktok"]::after {
    content: "TikTok";
  }

  .social-icons a[href*="whatsapp"]::after {
    content: "WhatsApp";
  }

  .dropdown-content {
    position: static;
    width: 100%;
    margin-top: 6px;
  }
}
@media (max-width: 800px) {
  .league-preview-layout {
    grid-template-columns: 1fr;
  }

  .league-preview-logo img {
    width: 160px;
    height: 160px;
  }

  .leader-player-card {
    flex-direction: column;
  }
}

.league-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.league-title-link h2 {
  transition: 0.25s ease;
}

.league-title-link:hover h2 {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.league-preview-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.25s ease;
}

.league-preview-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.18));
}

.current-league-card {
  flex: 1;
  min-width: 320px;
  max-width: 420px;

  background:
    linear-gradient(
      to bottom,
      rgba(10,10,10,0.92),
      rgba(20,20,20,0.92)
    );
}

.current-league-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.current-league-header img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.current-league-header h3 {
  margin: 0;
  font-size: 30px;
}

.current-league-header p {
  margin: 0;
  font-size: 20px;
  color: #ccc;
}

.mini-standings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-standing-row {
  display: grid;
  grid-template-columns: 50px 1fr 60px;

  align-items: center;

  padding: 10px 14px;

  border-radius: 8px;

  background: rgba(255,255,255,0.04);

  transition: 0.2s ease;
}

.mini-standing-row:hover {
  background: rgba(15,77,15,0.22);
}

.mini-standing-row.you {
  border: 1px solid rgba(255,255,255,0.15);

  background:
    linear-gradient(
      to right,
      rgba(15,77,15,0.4),
      rgba(255,255,255,0.03)
    );
}

.mini-standing-row span {
  font-size: 20px;
}

@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-image-large,
  .profile-info,
  .current-league-card {
    grid-column: auto;
    margin: 0 auto;
  }
}

/* Keep mobile-specific mini site overrides in mini-league.css */
