@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue-latin-400.woff2?v=20260628") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ===============================
   SNG PREMIER ONLINE DARTS LEAGUE
   CLEAN ESPORTS UI - DEDUPED CSS
   Replace your current style.css with this file.
   =============================== */

:root {
  --font-heading: "Bebas Neue", sans-serif;
  --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);

  --app-nav-height: 88px;
  --quick-nav-height: 76px;
}

/* ===============================
   BASE
   =============================== */

* {
  box-sizing: border-box;
  font-family: "Bebas Neue", sans-serif;
}

html {
  scroll-padding-top: var(--app-nav-height);
  max-width: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: none;
  overflow-x: hidden;
  padding-bottom: 0;

  font-family: "Bebas Neue", sans-serif;
  color: var(--cream);
  letter-spacing: 1px;

  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-hub-logo.png") center center / 1520px no-repeat,
    url("SNG-watermark.png") center center / 1520px no-repeat;
  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;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* ===============================
   APP NAVIGATION
   =============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 12000;

  display: flex;
  align-items: center;
  justify-content: 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,
.navbar .dropbtn,
.main-nav a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--cream);
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  line-height: 1;

  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;

  font-size: 20px;
  cursor: pointer;
  transition: 0.22s ease;
}

.navbar a:hover,
.navbar .dropbtn:hover,
.main-nav a:hover,
.button-link:hover {
  background: rgba(0,255,120,0.08);
  border-color: rgba(0,255,120,0.28);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,255,120,0.14);
}

.navbar.app-navbar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;

  width: 100%;
  min-height: var(--app-nav-height);
  height: var(--app-nav-height);

  padding: 8px clamp(18px, 4vw, 72px);
  background: linear-gradient(180deg, rgba(0,0,0,0.98), rgba(8,8,8,0.98));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.42);
  overflow: visible;
}

.navbar.app-navbar .desktop-primary-links,
.navbar.app-navbar .account-links,
.navbar.app-navbar .social-icons,
.navbar.app-navbar .nav-divider {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.navbar.app-navbar .mobile-menu-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  min-width: 48px;

  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.navbar.app-navbar.mobile-open .mobile-menu-toggle {
  visibility: visible;
  pointer-events: auto;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 999px;
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger-lines::before {
  top: -8px;
}

.hamburger-lines::after {
  top: 8px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

.navbar.app-navbar > .logo-link,
.navbar.app-navbar .logo-link,
.navbar.app-navbar .logo-main,
.navbar.app-navbar .nav-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 58px;
  height: 58px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.logo-link img,
.logo {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 112px;
  max-height: 112px;
  object-fit: contain;
}

.navbar.app-navbar .logo,
.navbar.app-navbar .logo-main,
.navbar.app-navbar .nav-logo {
  width: 58px;
  max-width: 58px;
  height: 58px;
  max-height: calc(var(--app-nav-height) - 14px);
  object-fit: contain;
}

.navbar.app-navbar > .desktop-donate-link,
.navbar.app-navbar .desktop-donate-link,
.navbar.app-navbar .donation-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.navbar.app-navbar .desktop-donate-logo,
.navbar.app-navbar .donate-logo,
.navbar.app-navbar .donation-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.navbar.app-navbar #nav-links {
  position: fixed;
  inset: 8px auto 12px 8px;
  z-index: 50002;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;

  width: min(360px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px);
  min-height: 0;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);

  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;

  background: linear-gradient(180deg, rgba(4,4,4,0.98), rgba(42,0,0,0.96));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 12px 12px 0;
  box-shadow: 24px 0 60px rgba(0,0,0,0.66);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-112%);
  transition: transform 0.24s ease, opacity 0.18s ease, visibility 0.18s ease;
}

.navbar.app-navbar.mobile-open #nav-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.navbar.app-navbar #nav-links {
  scrollbar-width: thin;
  scrollbar-color: rgba(243,231,213,0.58) rgba(255,255,255,0.035);
}

.navbar.app-navbar #nav-links::-webkit-scrollbar {
  width: 6px;
}

.navbar.app-navbar #nav-links::-webkit-scrollbar-track {
  margin: 10px 0;
  background: rgba(255,255,255,0.035);
  border-radius: 999px;
}

.navbar.app-navbar #nav-links::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(243,231,213,0.82), rgba(185,173,156,0.62));
  border-radius: 999px;
}

.navbar.app-navbar #nav-links::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,248,236,0.95), rgba(208,195,175,0.82));
}

.navbar.app-navbar #nav-links a,
.navbar.app-navbar #nav-links button {
  width: 100%;
  max-width: none;
  min-height: 46px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(18,10,10,0.72);
  color: var(--cream);
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.03),
    0 6px 14px rgba(0,0,0,0.18);

  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.navbar.app-navbar #nav-links .mobile-back-button {
  width: auto;
  min-width: 92px;
  min-height: 34px;
  align-self: flex-start;
  justify-content: center;
  gap: 7px;

  margin: 0 0 12px 48px;
  padding: 8px 12px;

  color: var(--cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(243,231,213,0.24);
  border-radius: 999px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
}

.navbar.app-navbar #nav-links .mobile-back-button::before {
  content: "<";
  font-size: 17px;
  line-height: 1;
}

.navbar.app-navbar #nav-links .mobile-submenu-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028)),
    rgba(18,10,10,0.74);
  border-color: rgba(243,231,213,0.18);
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.035),
    0 7px 16px rgba(0,0,0,0.22);
}

@media (hover: hover) and (pointer: fine) {
  .navbar.app-navbar #nav-links a:not(.mobile-donate-link):hover,
  .navbar.app-navbar #nav-links button:hover {
    transform: translateY(-2px);
    border-color: rgba(243,231,213,0.32);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035)),
      rgba(30,14,14,0.78);
    box-shadow:
      inset 0 0 18px rgba(255,255,255,0.045),
      0 10px 22px rgba(0,0,0,0.28),
      0 0 18px rgba(243,231,213,0.10);
  }
}

.navbar.app-navbar #nav-links h3 {
  margin: 8px 0 14px;
  color: var(--cream);
  text-align: center;
  font-size: 1.55rem;
}

.mobile-menu-panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-height: 0;
}

.mobile-menu-panel.is-active {
  display: flex;
}

.mobile-back-button {
  display: inline-flex;
}

.mobile-side-logo {
  display: block;
  width: 112px;
  height: auto;
  margin: 0 auto 18px;
}

.mobile-account-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.mobile-menu-overlay {
  display: none;
}

body.nav-open .mobile-menu-overlay,
.navbar.app-navbar.mobile-open ~ .mobile-menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 12050;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(2px);
}

.nav-links,
.account-links,
.acccount-links,
.desktop-primary-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;
  cursor: pointer;
  transition: 0.22s ease;
}

.social-icons img:hover {
  transform: scale(2.5);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.30));
}

/* ===============================
   QUICK BOTTOM NAV
   =============================== */

.mobile-quick-nav,
.bottom-quick-nav,
.quick-nav {
  display: none;
}

/* ===============================
   DROPDOWNS
   =============================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2000;

  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);
  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;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f4eee5;
  color: #130707;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 0 12px rgba(244,238,229,0.24);
  z-index: 8;
}

.mobile-menu-toggle,
.mobile-submenu-button,
.mobile-submenu-panel a,
.dropdown-content a,
.mobile-quick-nav a,
.bottom-quick-nav a {
  position: relative;
}

.dropdown-content a .notification-badge,
.mobile-submenu-button .notification-badge,
.mobile-submenu-panel a .notification-badge {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.mobile-quick-nav .notification-badge,
.bottom-quick-nav .notification-badge {
  top: 7px;
  right: 9px;
  transform: none;
}

/* ===============================
   HEADER / LAYOUT
   =============================== */

.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;
}

.container {
  max-width: 1120px;
  margin: 14px auto;
  padding: 0 14px;
}

main.container {
  width: 100%;
}

.container img {
  max-width: 100%;
}

/* ===============================
   CARDS / BUTTONS
   =============================== */

.card {
  position: relative;
  overflow: hidden;

  padding: 22px;
  margin-bottom: 30px;

  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);

  backdrop-filter: blur(10px);
  transition: 0.22s ease;
}

.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);
}

.card h2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: auto;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 0 0 9px;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;

  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);
}

.link-card,
.stat-card,
.league-preview-card,
.league-intro-card,
.about-hero {
  text-align: center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.button-link {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.screenshot-action-button {
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 12px 22px 10px;
  border: 1px solid rgba(0,255,102,0.55);
  background:
    linear-gradient(180deg, rgba(0,255,102,0.18), rgba(0,90,42,0.22)),
    rgba(0,0,0,0.52);
  box-shadow:
    0 0 0 1px rgba(0,255,102,0.12),
    0 10px 24px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.12);
  color: #f4eee5;
}

.screenshot-action-button:hover,
.screenshot-action-button:focus-visible {
  border-color: rgba(0,255,102,0.82);
  background:
    linear-gradient(180deg, rgba(0,255,102,0.25), rgba(0,90,42,0.28)),
    rgba(0,0,0,0.55);
  box-shadow:
    0 0 0 1px rgba(0,255,102,0.20),
    0 0 18px rgba(0,255,102,0.18),
    0 12px 26px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.button-link:disabled,
.button-link.is-loading {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* ===============================
   TABLES
   =============================== */

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;

  background: rgba(10,10,10,0.62);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

th {
  padding: 8px 6px;
  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;
  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));
  box-shadow:
    inset 3px 0 0 rgba(0,255,120,0.45),
    inset 0 0 12px rgba(0,255,120,0.08);
}

/* ===============================
   PLAYER POPUPS
   =============================== */

.player-popup,
.player-hover-card {
  position: fixed;
  display: none;
  z-index: 9999;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(8,8,8,0.96);

  color: #fff;
  border: 1px solid rgba(0,255,120,0.24);
  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);
}

.player-popup {
  min-width: 230px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 18px;
}

.player-hover-card {
  width: 330px;
  padding: 16px;
  border-radius: 18px;
}

.player-popup h3 {
  margin: 0 0 8px;
  padding-bottom: 7px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.player-popup p {
  margin: 4px 0;
}

.popup-fixtures {
  margin-top: 10px;
  line-height: 1.4;
  white-space: normal;
  max-width: 260px;
}

.player-name,
.player-name-hover {
  cursor: pointer;
  color: #fff;
  transition: 0.2s ease;
}

.player-name:hover,
.player-name-hover:hover {
  color: #70ff9d;
  text-shadow: 0 0 8px rgba(0,255,120,0.45);
}

.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 {
  padding: 6px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  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;
}

/* ===============================
   FORMS
   =============================== */

.member-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

[hidden],
.form-row[hidden] {
  display: none;
}

.form-row label {
  font-size: 20px;
  margin-bottom: 5px;
}

.form-row input,
.form-row select,
.form-row textarea,
.phone-input-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  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;
  line-height: 1.15;
  outline: none;
}

select,
option {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

select {
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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);
}

.phone-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.phone-input-group select,
.phone-input-group input#country-code {
  width: 112px;
  flex: 0 0 112px;
}

.phone-input-group input {
  flex: 1;
}

.register-phone-group {
  width: 100%;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.15;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

/* ===============================
   PROFILE PAGE
   =============================== */

.profile-hero {
  display: grid;
  grid-template-columns: 200px 1fr 380px;
  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%;
  min-width: 320px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.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-logo-link,
.current-league-link {
  color: inherit;
  text-decoration: none;
}

.current-league-link:hover,
.current-league-link:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 255, 120, 0.35);
}

.current-division-link {
  color: #ccc;
}

.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;
}

/* ===============================
   SETTINGS / NOTIFICATIONS
   =============================== */

.settings-page {
  display: grid;
  grid-template-columns: minmax(280px, 720px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.notifications-page {
  max-width: 900px;
}

.notifications-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.notifications-heading-row h2 {
  margin: 0;
}

.notifications-heading-row .button-link {
  width: fit-content;
  min-width: 130px;
  padding: 9px 14px;
  font-size: 16px;
}

.settings-card {
  width: 100%;
}

.settings-toggle-list,
.notification-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(0,0,0,0.28));
}

.settings-toggle-row strong,
.notification-card h3 {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.settings-toggle-row em {
  display: block;
  margin-top: 4px;
  color: rgba(244,238,225,0.74);
  font-style: normal;
  font-size: 15px;
  line-height: 1.2;
}

.settings-toggle-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  accent-color: #f4eee1;
}

.notification-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(12,44,25,0.72), rgba(18,6,6,0.74));
}

.notification-card.admin-notification {
  border-color: rgba(0,255,120,0.24);
}

.notification-card > span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f4eee1;
  font-size: 13px;
}

.notification-card p {
  margin: 6px 0 8px;
  color: rgba(244,238,225,0.82);
  font-size: 17px;
}

.notification-card small {
  display: block;
  margin-bottom: 10px;
  color: rgba(244,238,225,0.58);
  font-size: 14px;
}

.notification-card .button-link {
  width: fit-content;
  min-width: 150px;
  padding: 8px 14px;
  font-size: 16px;
}

.push-notification-card {
  display: grid;
  gap: 10px;
}

.push-notification-card p {
  margin: 0;
  color: rgba(244,238,229,0.78);
  font-size: 18px;
  text-align: center;
}

/* ===============================
   REPORTS
   =============================== */

.tournament-page-header {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.tournament-hero-logo {
  width: min(240px, 56vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.55));
}

.tournaments-hub-page {
  max-width: 1160px;
}

.tournament-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tournament-feature-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 300px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tournament-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230,196,82,0.42);
  box-shadow: 0 20px 42px rgba(0,0,0,0.34), inset 0 0 34px rgba(230,196,82,0.06);
}

.tournament-feature-card img,
.tournament-feature-icon {
  width: 116px;
  height: 116px;
  margin-bottom: 12px;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.48));
}

.tournament-feature-card img {
  object-fit: contain;
}

.tournament-feature-icon {
  fill: none;
  stroke: #f4eee1;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  padding: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(230,196,82,0.18), rgba(0,0,0,0.28));
  border: 1px solid rgba(230,196,82,0.30);
  box-shadow: inset 0 0 28px rgba(230,196,82,0.07);
}

.tournament-feature-card h2 {
  margin-bottom: 8px;
}

.tournament-feature-card p {
  max-width: 260px;
  margin: 0 auto;
  color: rgba(244,238,225,0.78);
  font-size: 20px;
  line-height: 1.35;
}

.tournament-live-panel {
  margin-top: 24px;
}

.tournament-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tournament-section-heading h2 {
  margin: 0;
}

.tournament-section-heading .button-link {
  width: fit-content;
  min-width: 140px;
  padding: 9px 14px;
}

.tournament-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tournament-list-grid .tournament-card {
  margin: 0;
  height: 100%;
}

.tournament-report-header img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

.reports-page {
  max-width: 1160px;
}

.report-filter-form {
  max-width: 900px;
}

.report-filter-grid {
  align-items: end;
}

.report-output-card {
  margin-top: 22px;
}

.report-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.report-header-row h2,
.report-header-row p {
  margin: 0 0 6px;
}

.report-header-row .button-link {
  width: fit-content;
  min-width: 150px;
  padding: 9px 14px;
}

.report-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-highlight-grid,
.report-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.report-highlight-grid span,
.report-mini-grid span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(12,44,25,0.66), rgba(18,6,6,0.76));
}

.report-highlight-grid strong,
.report-mini-grid strong {
  color: rgba(244,238,225,0.72);
  font-size: 15px;
}

.report-highlight-grid b {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.report-highlight-grid em {
  color: rgba(244,238,225,0.78);
  font-style: normal;
  font-size: 15px;
  line-height: 1.15;
}

.report-mini-grid span {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.report-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.report-section h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.report-table th:first-child,
.report-table td:first-child {
  text-align: left;
}

.report-copy-text {
  width: 100%;
  min-height: 220px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.42);
  color: #f4eee1;
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .report-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-header-row .report-actions .button-link {
    width: 100%;
    min-width: 0;
  }

  .report-highlight-grid,
  .report-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===============================
   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 {
  max-width: 1000px;
  margin: 35px auto;
  padding: 30px;
  text-align: center;
}

.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;
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.about-grid div {
  padding: 16px;
  border-radius: 14px;
  font-size: 22px;
  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);
  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,
#league-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.league-preview-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

.league-title-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;
  width: 100%;
  margin-bottom: 12px;

  color: inherit;
  text-decoration: none;
}

.league-title-link h2 {
  transition: 0.25s ease;
}

.league-title-link:hover h2 {
  transform: scale(1.02);
  filter: brightness(1.12);
}

.league-card-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.16));
}

.division-direct-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 14px;
}

.division-preview {
  width: 100%;
  padding: 16px;
  margin: 18px 0;
  border-radius: 16px;
  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);
}

.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: block;
}

.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));
}

.leader-label {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 10px;
}

.leader-player-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  padding: 16px;
  margin: 15px 0;

  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
}

.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 STATS
   =============================== */

.league-stats-sheet {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.league-stats-sheet h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 34px;
  color: #fff8ec;
  text-transform: uppercase;
}

.league-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.league-stat-tile,
.league-stat-card {
  min-height: 118px;
  padding: 13px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0,255,120,0.11), rgba(255,255,255,0.035)),
    rgba(7,7,7,0.72);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.035);
  text-align: center;
}

.league-stat-label,
.league-stat-meta,
.league-stat-card .stat-label,
.league-stat-card .stat-context {
  display: block;
  color: rgba(255,248,236,0.72);
  font-size: 14px;
  text-transform: uppercase;
}

.league-stat-value,
.league-stat-card .stat-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  margin: 6px 0 4px;
  color: #fff8ec;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}

.league-stat-value span {
  font-size: 15px;
  color: rgba(255,248,236,0.72);
}

.league-stat-player,
.league-stat-card .stat-player {
  display: block;
  color: #fff8ec;
  font-size: 17px;
  text-decoration: none;
  text-transform: uppercase;
}

.league-stat-player:hover,
.league-stat-player:focus-visible,
.league-stat-meta:hover,
.league-stat-meta:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(0,255,120,0.35);
}

/* ===============================
   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);
}

/* ===============================
   PLAYER SELECTION / DRAW / MODAL
   =============================== */

.player-search-combobox {
  position: relative;
  width: 100%;
}

.assignment-form-card {
  z-index: 2;
  overflow: visible;
}

.player-search-combobox input[type="search"] {
  width: 100%;
}

.player-search-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(244, 238, 229, 0.2);
  border-radius: 8px;
  background: #090909;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.player-search-options[hidden] {
  display: none;
}

.player-search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(244, 238, 229, 0.1);
  border-radius: 0;
  background: transparent;
  color: #f4eee5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.player-search-option:last-child {
  border-bottom: 0;
}

.player-search-option:hover,
.player-search-option.is-active {
  background: rgba(24, 126, 63, 0.3);
  color: #fff;
}

.player-search-option small {
  color: var(--muted);
  font-size: 0.82rem;
}

.player-search-empty {
  margin: 0;
  padding: 13px 14px;
  color: var(--muted);
}

.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;
  padding: 24px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================
   FOOTER
   =============================== */

/* GOOGLE ADS */
.sng-ad-placement {
  width: 100%;
  min-width: 0;
  margin: 22px 0;
  padding: 8px 0;
  overflow: hidden;
  text-align: center;
}

.sng-ad-placement[hidden] {
  display: none;
}

.sng-ad-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.sng-ad-placement .adsbygoogle {
  width: 100%;
  min-height: 90px;
}

@media (max-width: 700px) {
  .sng-ad-placement {
    margin: 16px 0;
  }

  .sng-ad-placement .adsbygoogle {
    min-height: 100px;
  }
}

footer {
  text-align: center;
  padding: 20px;
  color: #aaa;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1000px) {
  .profile-hero {
    grid-template-columns: 1fr;
    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-logo img {
    width: 170px;
    height: 170px;
  }

  .leader-player-card {
    flex-direction: column;
  }
}

@media (max-width: 900px), (orientation: landscape) and (max-height: 560px) {
  :root {
  --font-heading: "Bebas Neue", sans-serif;
    --app-nav-height: 72px;
    --quick-nav-height: 70px;
  }

  body {
    padding-bottom: calc(var(--quick-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
  }

  .navbar.app-navbar {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    height: var(--app-nav-height);
    min-height: var(--app-nav-height);
    padding: 7px max(12px, env(safe-area-inset-left, 0px)) 7px max(12px, env(safe-area-inset-right, 0px));
  }

  .navbar.app-navbar .logo,
  .navbar.app-navbar .logo-main,
  .navbar.app-navbar .nav-logo {
    width: 64px;
    height: 64px;
  }

  .navbar.app-navbar .desktop-donate-logo,
  .navbar.app-navbar .donate-logo,
  .navbar.app-navbar .donation-logo {
    width: 44px;
    height: 44px;
  }

  .mobile-quick-nav,
  .bottom-quick-nav,
  .quick-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 11800;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;

    min-height: var(--quick-nav-height);
    padding: 7px 8px;

    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16,25,20,0.98), rgba(0,0,0,0.98));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  }

  .mobile-quick-nav a,
  .bottom-quick-nav a,
  .quick-nav a,
  .mobile-quick-nav button,
  .bottom-quick-nav button,
  .quick-nav button {
    width: 100%;
    min-width: 0;
    min-height: calc(var(--quick-nav-height) - 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;

    border-radius: 16px;
    color: rgba(255,248,236,0.78);
    text-decoration: none;
    text-align: center;
  }

  .mobile-quick-nav a.is-active,
  .bottom-quick-nav a.is-active,
  .quick-nav a.is-active {
    color: #fff8ec;
    background: linear-gradient(135deg, rgba(0,255,120,0.18), rgba(255,255,255,0.05));
    box-shadow: inset 0 0 0 1px rgba(0,255,120,0.22);
  }

  .mobile-quick-nav svg,
  .bottom-quick-nav svg,
  .quick-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-quick-nav span,
  .bottom-quick-nav span,
  .quick-nav span,
  .quick-nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
  }

  .nav-open .mobile-quick-nav,
  .nav-open .bottom-quick-nav,
  .nav-open .quick-nav {
    opacity: 0;
    pointer-events: none;
  }

  .league-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (max-width: 800px) {
  .navbar {
    gap: 8px;
    padding: 8px;
  }

  .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;
  }

  .league-stat-tile,
  .league-stat-card {
    min-height: 100px;
    padding: 10px 6px;
  }

  .league-stats-sheet h3 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.06;
  }

  .league-stat-label,
  .league-stat-meta,
  .league-stat-card .stat-label,
  .league-stat-card .stat-context {
    font-size: 12px;
  }

  .league-stat-value,
  .league-stat-card .stat-value {
    font-size: 28px;
  }

  .league-stat-player,
  .league-stat-card .stat-player {
    font-size: 14px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  body::before {
    background-size: 900px;
    opacity: 0.08;
  }

  .container {
    width: 100%;
    padding: 0 10px;
    margin: 12px auto;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .card h2 {
    font-size: 26px;
  }

  .dashboard-grid,
  .member-stats-grid,
  .player-stats-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 22px 8px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  #division-title {
    flex-direction: column;
    gap: 8px;
    font-size: 28px;
    text-align: center;
  }

  .mini-league-logo {
    width: 85px;
    height: 85px;
  }

  .table-wrap {
    width: 100%;
    overflow-x: auto;
  }

  table {
    min-width: 780px;
  }

  th,
  td {
    font-size: 15px;
    padding: 6px 5px;
    white-space: nowrap;
  }

  .player-hover-card {
    width: 92vw;
    left: 4vw;
    right: 4vw;
  }

  .current-league-card {
    min-width: 0;
    width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  :root {
  --font-heading: "Bebas Neue", sans-serif;
    --app-nav-height: 54px;
    --quick-nav-height: 48px;
  }

  body {
    padding-bottom: calc(var(--quick-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .navbar.app-navbar {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    height: var(--app-nav-height);
    min-height: var(--app-nav-height);
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .navbar.app-navbar .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .navbar.app-navbar .logo,
  .navbar.app-navbar .logo-main,
  .navbar.app-navbar .nav-logo {
    width: 44px;
    height: 44px;
  }

  .navbar.app-navbar .desktop-donate-logo,
  .navbar.app-navbar .donate-logo,
  .navbar.app-navbar .donation-logo {
    width: 38px;
    height: 38px;
  }

  .navbar.app-navbar #nav-links {
    width: min(360px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .mobile-quick-nav,
  .bottom-quick-nav,
  .quick-nav {
    min-height: var(--quick-nav-height);
    height: var(--quick-nav-height);
    padding: 4px 6px;
    border-radius: 16px;
  }

  .mobile-quick-nav a,
  .bottom-quick-nav a,
  .quick-nav a,
  .mobile-quick-nav button,
  .bottom-quick-nav button,
  .quick-nav button {
    min-height: 40px;
    padding: 3px 4px;
  }

  .mobile-quick-nav svg,
  .bottom-quick-nav svg,
  .quick-nav svg {
    width: 16px;
    height: 16px;
  }

  .mobile-quick-nav span,
  .bottom-quick-nav span,
  .quick-nav span {
    font-size: 0.58rem;
    line-height: 1;
  }

  .page-header {
    padding: 14px 10px;
  }

  .page-header h1 {
    font-size: clamp(25px, 5vw, 36px);
    line-height: 0.92;
  }

  .page-header p {
    font-size: 12px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body {
    padding-bottom: 64px;
  }

  main.container {
    width: 100vw;
    max-width: none;
    padding: 10px 12px 72px;
  }

  .navbar.app-navbar {
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding-top: 5px;
    padding-bottom: 5px;
    grid-template-columns: 58px 1fr 58px;
  }

  .navbar.app-navbar #nav-links {
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    padding: 14px;
  }

  .page-header {
    padding: 14px 12px;
  }

  .page-header h1 {
    font-size: 24px;
    line-height: 1.05;
  }

  .page-header p {
    font-size: 10px;
  }

  .mobile-quick-nav,
  .bottom-quick-nav,
  .quick-nav {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    width: auto;
    height: 50px;
    padding: 5px 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .mobile-quick-nav a,
  .bottom-quick-nav a,
  .quick-nav a {
    min-width: 0;
    height: 40px;
    padding: 3px 2px;
    font-size: 8px;
  }

  .mobile-quick-nav svg,
  .bottom-quick-nav svg,
  .quick-nav svg {
    width: 16px;
    height: 16px;
  }

  #league-hub,
  .league-grid,
  .league-grid.stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 860px);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 70px;
  }

  .league-preview-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 16px;
    overflow: hidden;
  }

  .league-card-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .league-title-link h2,
  .league-preview-card > h2 {
    font-size: 24px;
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .league-division-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .division-preview {
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
  }

  .league-preview-info {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .league-preview-info h3 {
    font-size: 18px;
    margin: 0;
    text-align: left;
  }

  .league-preview-info > p {
    display: none;
  }

  .leader-player-card {
    display: grid;
    grid-template-columns: 46px minmax(120px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
  }

  .leader-player-card img {
    width: 42px;
    height: 42px;
  }

  .leader-player-card h4 {
    font-size: 19px;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .leader-player-card p {
    display: none;
  }

  .leader-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .leader-mini-stats span {
    min-width: 0;
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    text-align: center;
  }

  .division-direct-link {
    margin: 0;
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .league-stats-sheet {
    padding: 12px;
    margin-top: 12px;
  }

  .league-stats-sheet h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .league-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  .league-stat-card,
  .league-stat-tile {
    min-height: 58px;
    padding: 7px 6px;
  }

  .league-stat-card .stat-label,
  .league-stat-label {
    font-size: 9px;
  }

  .league-stat-card .stat-value,
  .league-stat-value {
    font-size: 22px;
    line-height: 1;
  }

  .league-stat-card .stat-player,
  .league-stat-player {
    font-size: 10px;
  }

  .league-stat-card .stat-context,
  .league-stat-meta {
    font-size: 9px;
  }
}

/* ===============================
   FINAL UNIFIED APP NAV
   =============================== */

:root {
  --font-heading: "Bebas Neue", sans-serif;
  --app-nav-height: 72px;
  --bottom-nav-height: 72px;
}

body {
  margin: 0;
  padding-top: var(--app-nav-height);
  padding-bottom: var(--bottom-nav-height);
}

.navbar.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50000;

  height: var(--app-nav-height);
  width: 100%;

  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;

  padding: 6px 14px;

  background: rgba(3, 3, 3, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.mobile-menu-toggle {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  background: transparent;
  border: 0;
  cursor: pointer;

  z-index: 50003;
}

.mobile-menu-toggle .sr-only,
.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;
}

.mobile-menu-toggle .hamburger-lines {
  display: block;
  position: relative;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 999px;
}

.mobile-menu-toggle .hamburger-lines::before,
.mobile-menu-toggle .hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 999px;
}

.mobile-menu-toggle .hamburger-lines::before {
  top: -8px;
}

.mobile-menu-toggle .hamburger-lines::after {
  top: 8px;
}

.logo-link {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.logo-link .logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.desktop-donate-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.desktop-donate-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.desktop-primary-links,
.account-links,
.social-icons,
.nav-divider {
  display: none;
}

/* SIDE MENU */
#nav-links {
  position: fixed;
  top: 8px;
  left: 8px;
  bottom: 12px;

  width: min(360px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px);
  min-height: 0;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;

  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;

  background: linear-gradient(180deg, rgba(3,3,3,0.98), rgba(45,0,0,0.96));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 12px 12px 0;
  box-shadow: 20px 0 45px rgba(0,0,0,0.65);

  transform: translateX(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: transform 0.25s ease, opacity 0.2s ease;

  z-index: 50002;
}

.navbar.app-navbar.mobile-open #nav-links {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#nav-links {
  scrollbar-width: thin;
  scrollbar-color: rgba(243,231,213,0.58) rgba(255,255,255,0.035);
}

#nav-links::-webkit-scrollbar {
  width: 6px;
}

#nav-links::-webkit-scrollbar-track {
  margin: 10px 0;
  background: rgba(255,255,255,0.035);
  border-radius: 999px;
}

#nav-links::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(243,231,213,0.82), rgba(185,173,156,0.62));
  border-radius: 999px;
}

#nav-links::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,248,236,0.95), rgba(208,195,175,0.82));
}

#nav-links a,
#nav-links button {
  width: 100%;
  max-width: none;
  min-height: 46px;
  align-self: stretch;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;
  padding: 12px 14px;

  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(18,10,10,0.72);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.03),
    0 6px 14px rgba(0,0,0,0.18);

  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#nav-links .mobile-back-button {
  width: auto;
  min-width: 92px;
  min-height: 34px;
  align-self: flex-start;
  justify-content: center;
  gap: 7px;

  margin: 0 0 12px 48px;
  padding: 8px 12px;

  color: var(--cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(243,231,213,0.24);
  border-radius: 999px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
}

#nav-links .mobile-back-button::before {
  content: "<";
  font-size: 17px;
  line-height: 1;
}

#nav-links .mobile-submenu-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028)),
    rgba(18,10,10,0.74);
  border-color: rgba(243,231,213,0.18);
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.035),
    0 7px 16px rgba(0,0,0,0.22);
}

@media (hover: hover) and (pointer: fine) {
  #nav-links a:not(.mobile-donate-link):hover,
  #nav-links button:hover {
    transform: translateY(-2px);
    border-color: rgba(243,231,213,0.32);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035)),
      rgba(30,14,14,0.78);
    box-shadow:
      inset 0 0 18px rgba(255,255,255,0.045),
      0 10px 22px rgba(0,0,0,0.28),
      0 0 18px rgba(243,231,213,0.10);
  }
}

#nav-links .mobile-menu-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 10px;
}

#nav-links .mobile-menu-panel.is-active {
  display: flex;
}

#nav-links .mobile-side-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.navbar.app-navbar #nav-links .mobile-donate-link,
#nav-links .mobile-donate-link {
  width: 100%;
  max-width: none;
  min-height: auto;
  align-self: stretch;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.navbar.app-navbar #nav-links .mobile-donate-logo,
#nav-links .mobile-donate-logo {
  width: 118px;
  max-width: 118px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* OVERLAY MUST SIT BELOW MENU */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(2px);

  z-index: 50001;
}

body.nav-open .mobile-menu-overlay {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

/* BOTTOM QUICK NAV */
.mobile-quick-nav,
.bottom-quick-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;

  height: var(--bottom-nav-height);

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;

  padding: 7px;

  background: rgba(3, 8, 6, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);

  z-index: 40000;
}

.mobile-quick-nav a,
.bottom-quick-nav a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  color: var(--cream);
  text-decoration: none;

  border-radius: 14px;
}

.mobile-quick-nav svg,
.bottom-quick-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-quick-nav span:not(.notification-badge),
.bottom-quick-nav span:not(.notification-badge) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mobile-quick-nav a.is-active,
.bottom-quick-nav a.is-active {
  background: rgba(0,255,120,0.15);
}

/* DESKTOP STILL USES SAME APP NAV */
@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }

  .mobile-quick-nav,
  .bottom-quick-nav {
    display: none;
  }
}

/* LANDSCAPE PHONE */
@media (max-height: 560px) and (orientation: landscape) {
  :root {
  --font-heading: "Bebas Neue", sans-serif;
    --app-nav-height: 54px;
    --bottom-nav-height: 52px;
  }

  .navbar.app-navbar {
    height: var(--app-nav-height);
    grid-template-columns: 48px 1fr 48px;
    padding: 4px 12px;
  }

  .logo-link .logo {
    width: 42px;
    height: 42px;
  }

  .desktop-donate-logo {
    width: 38px;
    height: 38px;
  }

  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  #nav-links {
    width: min(360px, calc(100vw - 24px));
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    padding: 14px;
  }

  .mobile-quick-nav,
  .bottom-quick-nav {
    height: var(--bottom-nav-height);
    bottom: 6px;
  }
}

.navbar.app-navbar #nav-links a::after,
.navbar.app-navbar #nav-links button::after {
  color: #00ff66;
}

.navbar.app-navbar #nav-links a span[aria-hidden="true"],
.navbar.app-navbar #nav-links button span[aria-hidden="true"] {
  color: #00ff66;
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}

.push-notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

/* ACCOUNT SETUP JOURNEY */
[hidden] {
  display: none;
}

.account-step-panel {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(239, 229, 212, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 22, 14, 0.96), rgba(35, 10, 12, 0.96));
  text-align: center;
}

.account-step-panel h2 {
  margin: 0 0 18px;
}

.account-step-panel p {
  margin: 0 auto 14px;
  max-width: 52ch;
  line-height: 1.55;
}

.account-step-logo {
  display: block;
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.account-complete-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.account-complete-actions .button-link {
  width: 100%;
  min-height: 48px;
}

/* ADMIN DATA & ACCOUNTS */
.admin-data-page {
  padding-bottom: calc(var(--bottom-nav-height) + 28px);
}

.admin-data-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.admin-data-tabs .button-link {
  width: 100%;
  min-height: 48px;
}

.admin-data-tabs .is-active {
  border-color: rgba(0, 255, 102, 0.55);
  background: rgba(0, 90, 42, 0.34);
}

.admin-data-list {
  display: grid;
  gap: 10px;
}

.admin-new-record {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 8px;
  background: rgba(0, 40, 20, 0.18);
}

.admin-new-record .admin-json-editor {
  width: 100%;
  margin: 8px 0 12px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.admin-field-row {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(244, 238, 229, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-field-row > span {
  color: var(--muted);
  font-size: 13px;
}

.admin-field-row > strong {
  overflow-wrap: anywhere;
  font-weight: 400;
}

.admin-field-row input,
.admin-field-row select,
.admin-field-row textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.admin-field-row textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-data-row {
  border: 1px solid rgba(244, 238, 229, 0.16);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.62);
  overflow: hidden;
}

.admin-data-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  cursor: pointer;
}

.admin-data-row summary small {
  max-width: 52%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-json-editor {
  display: block;
  width: calc(100% - 24px);
  min-height: 260px;
  margin: 0 12px 12px;
  padding: 12px;
  resize: vertical;
  border: 1px solid rgba(244, 238, 229, 0.2);
  border-radius: 6px;
  background: #070707;
  color: #f4eee5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.admin-data-row .admin-card-actions,
.admin-account-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.admin-account-controls select {
  min-width: 140px;
}

.danger-button {
  border-color: rgba(235, 72, 72, 0.62);
  background: rgba(100, 0, 0, 0.42);
}

@media (max-width: 700px) {
  .admin-account-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .admin-account-controls {
    grid-column: 1 / -1;
    align-items: stretch;
    padding: 8px 0 0;
  }

  .admin-account-controls > * {
    width: 100%;
  }

  .admin-data-row summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-data-row summary small {
    max-width: 100%;
  }

  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: auto;
  }
}

/* Keep badges visible while nav labels remain visually hidden. */
.mobile-quick-nav .notification-badge,
.bottom-quick-nav .notification-badge {
  display: block;
  width: auto;
  min-width: 18px;
  height: 18px;
  overflow: visible;
  clip-path: none;
  font-size: 0.72rem;
  line-height: 18px;
  white-space: nowrap;
}

.app-install-modal .modal-box {
  max-width: 440px;
  text-align: center;
}

.app-install-modal:not([hidden]) {
  display: flex;
}

.app-install-modal .account-step-logo {
  width: 92px;
  height: 92px;
}
/* Season selector countdown */
.season-countdown {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 232, 216, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  text-align: center;
}

.season-countdown-label,
.season-countdown small {
  color: #eee8d8;
}

.season-countdown strong {
  color: #fff;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.season-countdown small {
  font-size: 13px;
}

/* Weekly newsletter */
.home-session-loading {
  min-height: calc(100svh - 90px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.home-session-loading[hidden] {
  display: none;
}

.home-session-loading img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.public-home {
  min-height: calc(100svh - 90px);
  background: rgba(5, 3, 3, .58);
}

.public-home[hidden],
#member-weekly-home[hidden] {
  display: none;
}

.public-landing-hero {
  min-height: auto;
  padding: clamp(28px, 6vw, 72px) max(22px, calc((100vw - 980px) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.public-landing-logo {
  width: min(270px, 64vw);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .6));
}

.public-landing-kicker {
  margin: 0 0 8px;
  color: #1db954;
  font-size: 18px;
}

.public-landing-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
}

.public-landing-copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: #eee8d8;
  font-size: 20px;
  line-height: 1.45;
}

.public-landing-actions,
.public-landing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.public-landing-actions .button-link {
  min-width: 170px;
}

.public-primary-action {
  border-color: #1db954;
  background: #0b381b;
  box-shadow: 0 8px 24px rgba(29, 185, 84, .16);
}

.public-landing-band {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 22px calc(120px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.public-landing-band h2,
.public-landing-band p {
  margin-top: 0;
}

@media (max-width: 700px) {
  .public-landing-hero {
    min-height: auto;
    padding-bottom: 24px;
    justify-content: flex-start;
  }

  .public-landing-logo {
    width: min(210px, 58vw);
  }

  .public-landing-copy {
    font-size: 18px;
  }

  .public-landing-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.newsletter-page-header {
  min-height: 230px;
  padding-block: 22px 26px;
}

.newsletter-header-logo {
  width: min(260px, 72vw);
  height: 150px;
  object-fit: contain;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}

.newsletter-page-header p {
  margin-top: 0;
}

.report-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.season-review-division + .season-review-division {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 232, 216, .16);
}

.season-champion-story {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 3px solid #1e9d50;
  background: rgba(0, 0, 0, .22);
  line-height: 1.55;
}

.newsletter-home {
  width: min(100%, 1120px);
}

.newsletter-edition {
  overflow: hidden;
  border: 1px solid rgba(238, 232, 216, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 15, 10, 0.96), rgba(31, 8, 8, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.newsletter-edition-header {
  padding: 28px 20px;
  border-bottom: 1px solid rgba(238, 232, 216, 0.16);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.newsletter-kicker {
  margin: 0 0 8px;
  color: #b9ad9c;
  font-size: 14px;
}

.newsletter-edition-header h2 {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.08;
  text-align: center;
}

.newsletter-edition-header h2 span {
  display: block;
}

.newsletter-edition-header h2 span:nth-child(2) {
  font-size: 1.18em;
}

.newsletter-edition-header h2 time {
  margin-top: 7px;
  color: #b9ad9c;
  font-size: 16px;
  font-style: normal;
}

.newsletter-standfirst {
  max-width: 760px;
  margin: 10px auto 0;
  color: #eee8d8;
  font-size: 18px;
}

.newsletter-story-section {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(238, 232, 216, 0.12);
}

.newsletter-story-section:last-child {
  border-bottom: 0;
}

.newsletter-story-section h3,
.newsletter-section-heading h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
}

.newsletter-story-section h3::after,
.newsletter-section-heading h2::after {
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 7px;
  background: #168749;
  content: "";
}

.newsletter-story-copy p {
  margin: 0 0 14px;
  color: #eee8d8;
  font-size: 18px;
  line-height: 1.45;
}

.newsletter-story-copy p:last-child {
  margin-bottom: 0;
}

.newsletter-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 232, 216, 0.14);
}

.newsletter-sources strong {
  flex-basis: 100%;
  color: #b9ad9c;
}

.newsletter-sources a {
  color: #eee8d8;
  text-decoration: underline;
}

.newsletter-archive-section {
  margin-top: 26px;
}

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

.newsletter-archive-item {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(238, 232, 216, 0.18);
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.84);
  color: #eee8d8;
  text-align: left;
  cursor: pointer;
}

.newsletter-archive-item:hover,
.newsletter-archive-item:focus-visible,
.newsletter-archive-item.is-current {
  border-color: #168749;
  background: rgba(10, 46, 26, 0.78);
  transform: translateY(-2px);
}

.newsletter-archive-item span {
  color: #b9ad9c;
  font-size: 13px;
}

.newsletter-archive-item strong {
  font-size: 18px;
}

.newsletter-empty {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-empty-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

@media (min-width: 760px) {
  .newsletter-edition-header {
    padding: 42px 48px;
  }

  .newsletter-edition-header h2 {
    font-size: 48px;
  }

  .newsletter-story-section {
    padding: 34px 48px;
  }
}

.newsletter-admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.newsletter-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.newsletter-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(238, 232, 216, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: #eee8d8;
  text-align: left;
  cursor: pointer;
}

.newsletter-admin-row:hover,
.newsletter-admin-row:focus-visible {
  border-color: #168749;
  transform: translateY(-2px);
}

.newsletter-admin-row span {
  color: #b9ad9c;
  font-size: 13px;
}

.newsletter-admin-row strong {
  grid-column: 1;
  font-size: 18px;
}

.newsletter-admin-row .status-pill {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

#newsletter-social-card {
  max-width: 100%;
  height: auto;
  margin-top: 18px;
}

/* Identity audit */
.identity-audit-page {
  max-width: 1160px;
}

.identity-audit-controls,
.identity-section-heading {
  display: grid;
  gap: 16px;
}

.identity-audit-controls {
  grid-template-columns: 1fr;
}

.identity-audit-controls .button-link {
  width: 100%;
}

.identity-audit-controls .form-message {
  margin: 0;
}

.identity-audit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.identity-summary-tile {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(244,238,225,0.18);
  border-radius: 8px;
  background: rgba(10,10,10,0.72);
}

.identity-summary-tile.has-warning {
  border-color: rgba(214,59,59,0.7);
  background: rgba(78,11,11,0.42);
}

.identity-summary-tile strong {
  font-size: 30px;
}

.identity-audit-section {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.identity-section-heading {
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.identity-section-heading::-webkit-details-marker {
  display: none;
}

.identity-section-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 24px;
}

.identity-section-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #f4eee1;
  border-bottom: 2px solid #f4eee1;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.identity-audit-section[open] .identity-section-chevron {
  transform: rotate(225deg);
}

.identity-audit-section > .admin-record-list {
  padding: 0 12px 12px;
}

.identity-audit-record {
  display: block;
  min-width: 0;
  padding: 14px;
}

.identity-record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.identity-record-heading > div {
  min-width: 0;
}

.identity-audit-record h3,
.identity-audit-record h4 {
  margin: 2px 0 8px;
  overflow-wrap: anywhere;
  line-height: 1.08;
}

.identity-audit-record h3 {
  font-size: 24px;
}

.identity-audit-record h4 {
  font-size: 22px;
}

.identity-eyebrow,
.identity-target-panel > span {
  color: rgba(244,238,225,0.66);
  font-size: 14px;
}

.identity-match-score {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(244,238,225,0.2);
  border-radius: 6px;
  font-size: 20px;
}

.identity-detail-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(244,238,225,0.1);
}

.identity-detail-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(244,238,225,0.08);
}

.identity-detail-row span {
  color: rgba(244,238,225,0.58);
}

.identity-detail-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.identity-detail-row.is-technical strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.identity-target-panel,
.identity-player-panel {
  min-width: 0;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(30,174,83,0.28);
  border-radius: 7px;
  background: rgba(8,30,17,0.28);
}

.identity-target-panel > strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.identity-pair-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.identity-involvement-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.identity-involvement-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 2px 9px;
  padding: 9px 10px;
  border-left: 3px solid rgba(30,174,83,0.7);
  background: rgba(255,255,255,0.035);
}

.identity-involvement-row span {
  grid-row: 1 / span 2;
  color: rgba(244,238,225,0.58);
}

.identity-involvement-row strong,
.identity-involvement-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.identity-involvement-row small {
  color: rgba(244,238,225,0.68);
}

.identity-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.identity-activity-grid > span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 3px;
  text-align: center;
  border: 1px solid rgba(244,238,225,0.12);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
}

.identity-activity-grid strong {
  font-size: 21px;
}

.identity-activity-grid small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(244,238,225,0.58);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-warning-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.identity-warning-list span {
  padding: 8px 10px;
  border-left: 3px solid #d94b42;
  background: rgba(105,19,16,0.25);
  color: #f2c4bd;
}

.identity-audit-record .admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.identity-audit-record .admin-card-actions .button-link,
.identity-player-panel > .button-link {
  width: 100%;
  margin-top: 10px;
}

.identity-audit-empty {
  margin: 0;
}

@media (min-width: 760px) {
  .identity-audit-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .identity-audit-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .identity-audit-controls .button-link {
    width: auto;
    min-width: 150px;
  }

  .identity-audit-controls .form-message {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .identity-pair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-audit-record .admin-card-actions .button-link {
    width: auto;
  }
}

/* Contact page */
.contact-page {
  width: min(760px, calc(100% - 20px));
}

.contact-form-card {
  padding: clamp(18px, 5vw, 34px);
}

.contact-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(238, 231, 214, 0.16);
}

.contact-heading h2,
.contact-heading p {
  margin: 0;
}

.contact-heading p {
  margin-top: 5px;
  color: rgba(238, 231, 214, 0.72);
}

.contact-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form {
  gap: 18px;
}

.contact-form-grid {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.45;
}

.contact-character-count {
  justify-self: end;
  color: rgba(238, 231, 214, 0.58);
  font-size: 0.82rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-consent {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px !important;
  line-height: 1.35;
}

.contact-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #1fa84f;
}

.contact-status {
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 6px;
  text-align: center;
}

.contact-status.is-success {
  color: #e9f8ed;
  border-color: rgba(31, 168, 79, 0.7);
  background: rgba(11, 93, 39, 0.24);
}

.contact-status.is-error {
  color: #fff0ed;
  border-color: rgba(204, 69, 51, 0.72);
  background: rgba(109, 20, 14, 0.28);
}

.contact-submit {
  width: 100%;
  min-height: 48px;
}

.contact-submit.is-loading {
  cursor: wait;
  opacity: 0.76;
}

.contact-alternative {
  padding: 8px 10px 26px;
  text-align: center;
}

.contact-alternative h2,
.contact-alternative p {
  margin-top: 0;
}

.contact-alternative .button-link {
  display: inline-flex;
}

@media (min-width: 680px) {
  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
