:root {
  --bg: #08111f;
  --bg-soft: #10223a;
  --panel: rgba(10, 20, 34, 0.88);
  --panel-2: rgba(17, 33, 53, 0.92);
  --line: rgba(118, 185, 255, 0.18);
  --text: #eef5ff;
  --muted: #a9bdd8;
  --accent: #39c0ff;
  --accent-2: #6fe6c8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(57, 192, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(111, 230, 200, 0.12), transparent 30%),
    linear-gradient(180deg, #06101a, #0b1627 55%, #08111f);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 24px), 1240px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1000;
  overflow: visible;
  margin-bottom: 24px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 15, 28, 0.66);
  backdrop-filter: blur(14px);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  margin-left: 20px;
}

.auth-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.auth-link:hover {
  background: rgba(255,255,255,0.1);
}

.auth-link-primary {
  background: var(--accent);
  color: #05121f;
}

.auth-link-primary:hover {
  background: var(--accent-2);
  color: #05121f;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05121f;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy small,
.eyebrow,
.player-text,
.section-head p,
.info-card p,
.schedule-card p,
.about-panel p,
.contact-card span,
.footer {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav a:hover {
  background: rgba(57, 192, 255, 0.12);
  color: var(--accent);
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: 60px 20px;
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 10px;
}

.professional-player {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border: 2px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.professional-player::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.station-info {
  margin-bottom: 30px;
}

.player-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 15px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.now-playing-info {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid var(--line);
}

.now-playing-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

#current-song {
  font-size: 1.2rem;
  display: block;
  font-weight: 600;
}

.player-box.simplified {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.custom-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-btn, .stop-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05121f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 25px rgba(57, 192, 255, 0.3);
}

.play-btn:hover, .stop-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(57, 192, 255, 0.4);
}

.play-btn svg, .stop-btn svg {
  width: 40px;
  height: 40px;
}

.hidden {
  display: none;
}

.volume-control {
  width: 100%;
  max-width: 200px;
}

#volume-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--accent);
}

.status-indicator {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--muted);
}

.song-history {
  margin-top: 40px;
  text-align: left;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.song-history h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--accent-2);
}

#history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#history-list li {
  padding: 10px 15px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 0.9rem;
  border-left: 3px solid var(--line);
}

#history-list li:first-child {
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

audio {
  width: 100%;
}

.player-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mini-button {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111d;
  font-weight: 700;
}

.mini-button-alt {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.now-playing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-strip,
.schedule-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.grid-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 32px;
}

.info-card,
.schedule-card,
.contact-card {
  padding: 24px;
  background: var(--panel);
}

.section-head {
  margin-bottom: 18px;
}

.schedule-section,
.about-section,
.contact-section {
  margin-bottom: 34px;
}

.schedule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
}

.about-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(111, 230, 200, 0.08), transparent 44%),
    var(--panel-2);
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card:hover {
  border-color: rgba(57, 192, 255, 0.32);
  transform: translateY(-3px);
}

.footer {
  text-align: center;
  padding: 20px;
}

@media (max-width: 1040px) {
  .hero,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .grid-strip,
  .schedule-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .nav,
  .player-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-strip,
  .schedule-grid,
  .contact-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(calc(100% - 18px), 1240px);
  }

  .hero-copy,
  .player-card,
  .info-card,
  .schedule-card,
  .about-panel,
  .contact-card {
    padding: 20px;
  }
}

/* Styles for Admin and Payment pages */
.admin-container, .container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
.admin-card, .login-card, .option-card {
    background: var(--bg-soft);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.admin-card h1, .login-card h2, .container h1 {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.logout { float: right; color: #ff4f6d; }

/* Table styles for Admin dashboard */
.stations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.stations-table th, .stations-table td {
    border: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}
.stations-table th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}
.stations-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.action-buttons form {
    display: inline-block;
    margin-right: 5px;
}
.action-buttons button {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    border: none;
    font-weight: 500;
}
.approve-btn { background: var(--accent); color: #05121f; }
.reject-btn { background: #ff4f6d; color: white; }
.verify-btn { background: var(--accent-2); color: #05121f; }
.failed-btn { background: #FFA500; color: white; } /* Orange for failed payment */
.danger-btn { background: #ff4f6d; color: white; }
.status-suspended { color: #ff4f6d; }
.admin-mini-link {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}
.domain-admin-form {
    display: flex;
    gap: 6px;
    min-width: 220px;
}
.domain-admin-form input {
    min-width: 140px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0,0,0,0.2);
    color: var(--text);
}
.message { background: #6fe6c8; color: #05121f; padding: 15px; border-radius: 10px; margin-bottom: 20px; }
.status-pending { color: #FFA500; }
.status-approved { color: var(--accent-2); }
.status-rejected { color: #ff4f6d; }
.status-verified { color: var(--accent-2); }
.status-failed { color: #FFA500; }

/* Styles for Payment Instructions page */
.container h1 { color: var(--accent); margin-bottom: 20px; }
.container p { margin-bottom: 15px; line-height: 1.6; color: var(--muted); }
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}
.option-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.option-card h3 { color: var(--accent-2); margin-top: 0; margin-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.2);
    color: white;
}
.submit-btn {
    background: var(--accent);
    color: #05121f;
    border: none;
    padding: 12px 25px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}
.message { background: #6fe6c8; color: #05121f; padding: 15px; border-radius: 10px; margin-top: 20px; }
.logout-link { color: var(--muted); margin-top: 20px; display: block; }

/* Styles for Login/Register forms */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-card {
    background: var(--bg-soft);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 400px;
}
.login-card h2 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
}
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #05121f;
    border: none;
    font-weight: 700;
    cursor: pointer;
}
.error { color: #ff4f6d; text-align: center; margin-bottom: 15px; font-size: 0.9rem; }
.back-link { display: block; text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.owner-fields {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.owner-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-2);
}

.plans-section {
    margin: 20px 0 24px;
}

.plans-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 700;
}

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

.plan-card {
    position: relative;
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.2s ease;
}

.plan-card input {
    position: absolute;
    inset: 12px 12px auto auto;
    width: auto;
}

.plan-card:has(input:checked) {
    border-color: var(--accent-2);
    background: linear-gradient(145deg, rgba(57, 192, 255, 0.14), rgba(111, 230, 200, 0.12));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.plan-name {
    color: var(--accent-2);
    font-weight: 800;
}

.plan-card strong {
    color: var(--text);
    font-size: 1.55rem;
}

.plan-card small {
    color: var(--muted);
}

.plan-card em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.35;
}

/* Professional radio landing refinements */
body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(57, 192, 255, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(255, 204, 112, 0.08), transparent 34%),
    linear-gradient(180deg, #07101c 0%, #0d1724 52%, #080d14 100%);
}

.topbar {
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.hero-centered {
  min-height: calc(100vh - 150px);
  justify-content: center;
  padding: 32px 20px 56px;
}

.hero-content {
  max-width: 760px;
}

.hero-content h1 {
  margin: 12px 0 0;
  line-height: 1.02;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(111, 230, 200, 0.38);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(111, 230, 200, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35f2a8;
  box-shadow: 0 0 0 5px rgba(53, 242, 168, 0.12);
}

.professional-player {
  max-width: 460px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(18, 34, 52, 0.96), rgba(7, 13, 22, 0.98)),
    var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
}

.professional-player::before {
  display: none;
}

.professional-player.is-playing {
  border-color: rgba(111, 230, 200, 0.4);
}

.station-info {
  margin-bottom: 22px;
}

.station-info h2 {
  margin: 8px 0 4px;
}

.player-logo {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.player-box.simplified {
  gap: 18px;
}

.play-btn,
.stop-btn {
  width: 86px;
  height: 86px;
}

.volume-control {
  max-width: 260px;
}

.status-indicator {
  min-height: 22px;
  margin-top: 18px;
}

.metadata-panel {
  width: 100%;
  margin-top: 22px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.metadata-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

#current-song {
  display: block;
  font-size: 1.1rem;
  line-height: 1.35;
}

#metadata-source {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.now-playing-info,
.song-history {
  display: none;
}

.info-card,
.schedule-card,
.contact-card,
.admin-card,
.login-card,
.option-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.payment-page {
  max-width: 960px;
}

.payment-page h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  border-bottom: 0;
  padding-bottom: 0;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
}

.featured-payment {
  border-color: rgba(111, 230, 200, 0.4);
  background:
    linear-gradient(145deg, rgba(111, 230, 200, 0.12), rgba(57, 192, 255, 0.08)),
    rgba(255,255,255,0.05);
}

.payment-badge {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #07101c;
  background: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-detail {
  display: block;
  margin: auto 0 18px;
  padding: 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05121f;
  font-weight: 800;
}

.payment-button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .hero-centered {
    min-height: auto;
    padding-top: 24px;
  }

  .professional-player {
    max-width: 100%;
    padding: 24px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* Owner customization dashboard */
.owner-dashboard {
  max-width: 1120px;
}

.owner-dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.owner-dashboard-top h1 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
}

.owner-dashboard-top p {
  margin: 0;
  color: var(--muted);
}

.owner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-form {
  display: grid;
  gap: 20px;
}

.settings-card {
  padding: 26px;
}

.settings-card h2 {
  margin: 0 0 18px;
  color: var(--accent-2);
}

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

.form-group.wide {
  grid-column: 1 / -1;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.logo-preview img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
}

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

.color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.color-field input {
  width: 72px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.sticky-save {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 15, 28, 0.84);
  backdrop-filter: blur(14px);
}

.save-btn {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05121f;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-error {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 79, 109, 0.12);
}

.current-plan-card h2 {
  margin: 8px 0;
}

.current-plan-card p {
  margin: 0;
  color: var(--muted);
}

.current-plan-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.plan-status-badge {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-status-badge.active {
  color: #05121f;
  background: var(--accent-2);
}

.plan-status-badge.pending {
  color: #ffe2a6;
  background: rgba(255, 204, 112, 0.12);
}

.plan-pending,
.plan-request-admin {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 204, 112, 0.12);
  color: #ffe2a6;
  font-weight: 700;
}

.plan-change-form {
  margin-bottom: 20px;
}

.plan-request-btn {
  width: auto;
  margin-top: 18px;
}

.owner-payment-button {
  width: max-content;
  margin-top: 14px;
}

.plan-pending a {
  display: inline-block;
  margin-top: 8px;
  color: #05121f;
  background: #ffe2a6;
  padding: 7px 10px;
  border-radius: 999px;
}

.plan-dropdown {
  margin-bottom: 20px;
}

.plan-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.plan-dropdown summary::-webkit-details-marker {
  display: none;
}

.plan-dropdown summary span {
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 800;
}

.plan-dropdown summary small {
  color: var(--muted);
}

.plan-dropdown[open] summary {
  margin-bottom: 18px;
}

.admin-dashboard {
  max-width: 1280px;
}

.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-dashboard-header h1 {
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-dashboard-header p {
  margin: 0;
  color: var(--muted);
}

.danger-nav {
  background: rgba(255, 79, 109, 0.14);
  color: #ffb3c0;
  border: 1px solid rgba(255, 79, 109, 0.28);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 2rem;
}

.admin-table-card {
  margin-bottom: 22px;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-section-head h2 {
  margin: 0;
  color: var(--accent-2);
}

.admin-section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-dashboard .stations-table {
  margin-top: 0;
  min-width: 980px;
}

.admin-dashboard .stations-table th {
  position: sticky;
  top: 0;
  color: var(--muted);
  background: rgba(7, 15, 28, 0.96);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.admin-dashboard .stations-table th,
.admin-dashboard .stations-table td {
  border-color: rgba(118, 185, 255, 0.12);
  vertical-align: top;
}

.admin-dashboard .action-buttons {
  min-width: 250px;
}

.admin-dashboard .action-buttons form {
  margin: 0 5px 7px 0;
}

.admin-dashboard .action-buttons button,
.admin-dashboard .domain-admin-form button {
  min-height: 32px;
  border-radius: 999px;
  font-weight: 700;
}

.admin-dashboard .message a {
  color: #05121f;
  font-weight: 800;
  text-decoration: underline;
}

.domvoxy-home {
  background:
    linear-gradient(135deg, rgba(57, 192, 255, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(111, 230, 200, 0.12), transparent 34%),
    linear-gradient(180deg, #07101c 0%, #0d1724 55%, #070b12 100%);
}

.domvoxy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 38px 0 58px;
}

.domvoxy-hero-copy {
  max-width: 760px;
}

.domvoxy-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.domvoxy-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.domvoxy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.domvoxy-signal-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(57, 192, 255, 0.12), rgba(111, 230, 200, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.domvoxy-signal-panel span {
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
}

.domvoxy-signal-panel ul {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.domvoxy-signal-panel li {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 700;
}

.domvoxy-section {
  margin-bottom: 38px;
}

.domvoxy-steps,
.domvoxy-feature-grid {
  display: grid;
  gap: 18px;
}

.domvoxy-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domvoxy-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domvoxy-steps article,
.domvoxy-feature-grid article,
.domvoxy-commitment {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.domvoxy-steps span {
  color: var(--accent);
  font-weight: 800;
}

.domvoxy-steps p,
.domvoxy-feature-grid p,
.domvoxy-commitment p {
  color: var(--muted);
  line-height: 1.6;
}

.domvoxy-commitment {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.domvoxy-commitment h2 {
  margin-bottom: 0;
}

.preview-notice {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 204, 112, 0.35);
  border-radius: 16px;
  color: #ffe2a6;
  background: rgba(255, 204, 112, 0.1);
  text-align: center;
  font-weight: 700;
}

.station-public-page {
  background-color: var(--station-bg-color, #07101c);
  background-image:
    linear-gradient(180deg, rgba(4, 8, 14, 0.58), rgba(4, 8, 14, 0.72)),
    var(--station-bg-image, none);
  background-size: cover, var(--station-bg-size, cover);
  background-position: center center, var(--station-bg-position, center center);
  background-repeat: no-repeat, var(--station-bg-repeat, no-repeat);
  background-attachment: fixed, fixed;
}

.background-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.background-preview img {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.stations-section {
  margin-bottom: 34px;
}

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

.station-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
  transition: 0.2s ease;
}

.station-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 230, 200, 0.38);
}

.station-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.station-card span {
  color: var(--muted);
}

.ad-strip {
  margin-bottom: 34px;
  padding: 20px;
  border: 1px dashed rgba(255, 204, 112, 0.4);
  border-radius: 18px;
  background: rgba(255, 204, 112, 0.09);
  text-align: center;
}

.ad-strip span {
  display: block;
  color: #ffd98a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.stations-dropdown {
  position: relative;
  z-index: 1001;
}

.stations-dropdown-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.stations-dropdown-button:hover,
.stations-dropdown:focus-within .stations-dropdown-button,
.stations-dropdown:hover .stations-dropdown-button {
  background: rgba(57, 192, 255, 0.12);
  color: var(--accent);
}

.stations-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2000;
  display: none;
  width: 260px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 15, 28, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.stations-dropdown:hover .stations-dropdown-menu,
.stations-dropdown:focus-within .stations-dropdown-menu,
.stations-dropdown.is-open .stations-dropdown-menu {
  display: grid;
  gap: 8px;
}

.stations-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.stations-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stations-dropdown-item img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  object-fit: cover;
}

.stations-dropdown-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    padding-right: 76px;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 16px;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
  }

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

  .auth-buttons {
    margin-left: 0;
    flex-direction: column;
  }

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

  .stations-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .stations-dropdown:hover .stations-dropdown-menu,
  .stations-dropdown:focus-within .stations-dropdown-menu {
    display: none;
  }

  .stations-dropdown.is-open .stations-dropdown-menu {
    display: grid;
    gap: 8px;
  }

  .stations-dropdown-button {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .owner-dashboard-top,
  .owner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid,
  .color-grid {
    grid-template-columns: 1fr;
  }

  .sticky-save {
    justify-content: stretch;
  }

  .save-btn {
    width: 100%;
  }

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

  .current-plan-content {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-dashboard-header,
  .admin-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-dropdown summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .domvoxy-hero,
  .domvoxy-commitment {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .domvoxy-steps,
  .domvoxy-feature-grid {
    grid-template-columns: 1fr;
  }

  .domvoxy-actions {
    flex-direction: column;
  }
}