:root {
  --bg: #07111f;
  --bg-deep: #020814;
  --panel: rgba(15, 31, 54, 0.86);
  --panel-strong: rgba(7, 16, 31, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef6ff;
  --muted: #b7c7de;
  --accent: #4bb7ff;
  --accent-2: #89f0ff;
  --gold: #ffd166;
  --danger: #ff6b6b;
  --ok: #72e59e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #06101e 55%, #071420 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.85), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 55% 35%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 80% 25%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 75% 70%, rgba(255,255,255,.65), transparent),
    radial-gradient(2px 2px at 90% 82%, rgba(255,255,255,.58), transparent);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.container {
  width: min(var(--site-container-max, 1280px), calc(100% - var(--site-container-gutter, 32px)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 11, 22, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 420px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(137,240,255,.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(75,183,255,.18), rgba(255,255,255,.04));
  box-shadow: inset 0 0 26px rgba(137,240,255,.08);
  font-weight: 900;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: clamp(16px, 1.65vw, 24px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.menu {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.menu a,
.menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: .2s ease;
}

.menu a:hover,
.menu button:hover {
  color: var(--accent-2);
  background: rgba(255,255,255,.08);
}

.logo-slot {
  width: 76px;
  height: 92px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(2px) rotate(45deg); }
.nav-toggle.is-active span::after { transform: translateY(0) rotate(-45deg); }

.main-nav {
  flex: 0 1 auto;
  min-width: 0;
}

.main-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu > li {
  display: flex;
  position: relative;
}

.menu > li > a,
.menu > li > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 6px;
  padding: 10px 10px;
  white-space: nowrap;
}

.menu > li > a.is-active {
  color: var(--text);
  background: transparent;
}

main { padding: 34px 0 50px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.control-panel,
.map-shell,
.club-list-panel,
.login-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(14, 34, 62, 0.91), rgba(8, 17, 34, 0.95));
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 260px;
  padding: clamp(22px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="public"] .hero {
  margin-bottom: 18px;
}

body[data-page="public"] .hero-copy {
  min-height: 170px;
  padding: 24px clamp(20px, 3vw, 30px);
}

body[data-page="public"] h1 {
  max-width: 18ch;
  font-size: clamp(30px, 4vw, 46px);
}

body[data-page="public"] .map-page-head {
  margin: 0 0 18px;
}

body[data-page="public"] .map-page-head h1 {
  max-width: none;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

body[data-page="public"] .hero-copy {
  min-height: auto;
}

body[data-page="public"] .hero-copy p {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.7);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  font-weight: 900;
}

.hero-copy p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.address-highlight {
  color: var(--accent-2);
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
}

.compact-stats {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.map-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(91, 200, 250, 0.28);
  border-radius: 999px;
  background: rgba(91, 200, 250, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  color: #d8f6ff;
  font-weight: 900;
  white-space: nowrap;
}

.map-stat-label {
  color: var(--muted);
  font-weight: 700;
}

.compact-stats strong,
.map-stat-value {
  color: #d8f6ff;
  font-size: 14px;
  font-weight: 900;
}

.map-stat-value:hover,
.map-stat-value:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
}

.stat-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
}

.public-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.control-panel,
.club-list-panel {
  padding: 18px;
}

.control-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.status-pill {
  max-width: 190px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
}

.field select {
  color-scheme: dark;
}

.field select option {
  background: #14243a;
  color: var(--text);
}

.field select option:checked,
.field select option:hover {
  background: #2168d8;
  color: #ffffff;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

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

.map-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-2);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(137,240,255,.34);
}

.btn.primary {
  border-color: rgba(75,183,255,.55);
  background: linear-gradient(135deg, rgba(75,183,255,.28), rgba(137,240,255,.12));
  color: white;
  font-weight: 800;
}

.btn.danger {
  border-color: rgba(255,107,107,.35);
  color: #ffd7d7;
}

.btn:disabled {
  opacity: .56;
  cursor: progress;
  transform: none;
}

.map-column {
  display: grid;
  gap: 14px;
}

.map-shell {
  overflow: hidden;
  min-height: 660px;
}

.map-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(4,11,22,.52);
}

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

.map-expand-btn {
  display: none;
}

.route-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(91, 200, 250, 0.28);
  border-radius: 999px;
}
.route-title strong,
.route-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#map {
  position: relative;
  width: 100%;
  height: 598px;
  background: #091524;
}

.map-club-marker {
  position: relative;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, opacity .18s ease;
}

.map-club-marker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.map-club-marker span {
  color: #eaf8ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.route-frame {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
  background: #091524;
}

.map-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.map-fallback a {
  color: var(--accent-2);
  font-weight: 800;
}

.message-log {
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(7, 16, 31, 0.82);
  color: var(--muted);
  line-height: 1.5;
}

.route-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #d8f6ff;
  font-size: 14px;
  font-weight: 900;
}

.route-summary-main {
  color: var(--text);
}

.route-summary-distance {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 107, 0.46);
  border-radius: 999px;
  background: rgba(34, 211, 107, 0.14);
  box-shadow: 0 0 22px rgba(34, 211, 107, 0.2);
  color: #e7fff1;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.route-summary-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(34, 211, 107, 0.86);
  box-shadow: 0 0 12px rgba(34, 211, 107, 0.55);
}

.orbit-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.orbit-filter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(137,240,255,.22);
  border-radius: 999px;
  background: rgba(137,240,255,.055);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: .2s ease;
}

.orbit-filter:hover,
.orbit-filter.active {
  transform: translateY(-1px);
  border-color: rgba(200,162,74,.62);
  background: rgba(200,162,74,.14);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(200,162,74,.14);
}

.orbit-filter small {
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(99,216,255,.14);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 950;
}

.orbit-filter.active small {
  background: rgba(200,162,74,.2);
  color: var(--gold);
}

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

body[data-page="public"] .club-list {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.club-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}

body[data-page="public"] .club-card {
  position: relative;
  grid-template-columns: 1fr;
  place-items: center;
  align-content: start;
  min-height: 112px;
  aspect-ratio: auto;
  padding: 10px 6px;
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

body[data-page="public"] .club-card:hover,
body[data-page="public"] .club-card.active {
  background: rgba(137,240,255,.08);
  border-color: rgba(137,240,255,.32);
  box-shadow: 0 14px 28px rgba(0,0,0,.16), 0 0 24px rgba(137,240,255,.1);
}

body[data-page="public"] .club-card::before {
  content: none;
}

body[data-page="public"] .club-card:hover::before,
body[data-page="public"] .club-card.active::before {
  content: none;
}

.club-card:hover,
.club-card.active {
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
  border-color: rgba(137,240,255,.34);
}

.club-card.is-hidden {
  opacity: 0.58;
}

.club-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

body[data-page="public"] .club-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  transition: transform .2s ease;
}

body[data-page="public"] .club-card:hover .club-logo,
body[data-page="public"] .club-card.active .club-logo {
  transform: scale(1.08);
  border-color: rgba(137,240,255,.55);
  background: rgba(137,240,255,.12);
  box-shadow: 0 0 22px rgba(137,240,255,.26);
}

.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.club-meta { min-width: 0; }
.club-meta strong,
.club-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-meta strong {
  font-size: 15px;
  line-height: 1.2;
}

.club-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.club-flags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px !important;
  white-space: normal !important;
}

.club-flag {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(137,240,255,.18);
  border-radius: 999px;
  background: rgba(137,240,255,.08);
  color: var(--accent-2) !important;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1;
}

body[data-page="public"] .club-meta {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

body[data-page="public"] .club-meta strong {
  font-size: 11px;
  line-height: 1.18;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body[data-page="public"] .club-meta span {
  display: none;
}

body[data-page="public"] .club-flags {
  display: flex !important;
  justify-content: center;
  margin-top: 6px !important;
}

body[data-page="public"] .club-flag {
  display: inline-flex !important;
  min-height: 18px;
  padding: 2px 6px;
  font-size: 10px !important;
}

.club-details {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.club-details h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.club-details dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 0;
}

.club-details dt {
  color: var(--muted);
  font-size: 12px;
}

.club-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.club-details a {
  color: var(--accent-2);
  font-weight: 800;
}

.empty-state {
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.login-shell {
  min-height: calc(100vh - 174px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(430px, 100%);
  padding: 24px;
}

.login-card h1 {
  max-width: none;
  font-size: 30px;
}

.login-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  padding: 44px 0 40px;
}

.footer-inner {
  background: rgba(4,11,22,.82);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-block {
  min-width: 0;
  min-height: 260px;
  height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-title h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
}

.support-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.support-logo-slot {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.support-logo-slot:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(137,240,255,.42);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.support-logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.support-copy a,
.social-link {
  color: var(--text);
  text-decoration: none;
}

.support-copy a {
  transition: color .22s ease;
}

.support-copy a:hover {
  color: var(--accent-2);
}

.support-copy strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: inherit;
  text-align: center;
  transition: color .22s ease;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.social-link:hover {
  background: rgba(255,255,255,.1);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.social-icon-slot {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.social-icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.social-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-cms-embedded="1"] {
  background: transparent;
}

body[data-cms-embedded="1"] .site-header,
body[data-cms-embedded="1"] .site-footer {
  display: none;
}

body[data-cms-embedded="1"] .container {
  width: 100%;
  max-width: none;
}

body[data-cms-embedded="1"] main {
  padding: 0;
}

body[data-cms-embedded="1"] .hero {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .public-workspace,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner,
  .hero,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu { justify-content: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .compact-stats {
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
  }

  .map-shell { min-height: auto; }
  #map { height: 390px; }
  .map-shell.map-expanded #map { height: min(68vh, 620px); }
  .map-expand-btn { display: inline-flex; }
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-text p {
    font-size: 12px;
  }

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

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    padding-top: 8px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .menu {
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .menu > li,
  .menu > li > a,
  .menu > li > button {
    width: 100%;
  }

  .menu > li > a,
  .menu > li > button {
    justify-content: flex-start;
    padding: 11px 12px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 28px;
  }

  .footer-inner {
    border-radius: 20px;
    padding: 16px;
    gap: 16px;
  }

  .footer-block {
    min-height: auto;
    border-radius: 18px;
    padding: 18px;
    gap: 16px;
    text-align: center;
  }

  .footer-title h3 {
    text-align: center;
    font-size: 18px;
  }

  .support-brand {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .support-logo-slot {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
    border-radius: 22px;
  }

  .support-copy strong {
    font-size: 1.1rem;
    text-align: center;
  }

  .socials {
    grid-template-columns: 1fr;
  }

  .social-link {
    min-height: 58px;
    padding: 10px 12px;
    justify-content: center;
  }

  .compact-stats {
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .map-stat-badge {
    width: 100%;
    justify-content: space-between;
  }

  .orbit-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orbit-filter {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - var(--site-container-mobile-gutter, 20px)), var(--site-container-max, 1280px)); }
  .split { grid-template-columns: 1fr; }
  .map-check-grid { grid-template-columns: 1fr; }

  .logo-slot {
    width: 62px;
    height: 78px;
    flex-basis: 62px;
    border-radius: 0;
  }

  .brand {
    gap: 10px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .btn { width: 100%; }

  .club-details dl {
    grid-template-columns: 1fr;
  }
}
