:root {
  color: #07111f;
  background: #f6f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #2563ff;
  --blue-dark: #0f4eea;
  --ink: #07111f;
  --muted: #657186;
  --line: #dce4f0;
  --panel: #ffffff;
  --danger: #c0343c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

p {
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #ccd7e6;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(7, 17, 31, 0.02);
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 255, 0.14);
}

button,
.link-button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(37, 99, 255, 0.22);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

button:hover,
.link-button:hover {
  background: var(--blue-dark);
}

button:active,
.link-button:active {
  transform: translateY(1px);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(37, 99, 255, 0.14);
  animation: brand-ring-pulse 2.1s ease-in-out infinite;
}

.brand-mark::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

@keyframes brand-ring-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(37, 99, 255, 0.14);
  }

  50% {
    box-shadow: 0 0 0 11px rgba(37, 99, 255, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none;
  }
}

.status,
.account-email,
.hint {
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

.home-page {
  color: #f8fafc;
  background: #0b1020;
}

.home-page main {
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  margin: 0;
  color: #f8fafc;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  color: #f8fafc;
  text-decoration: none;
}

.site-nav a:hover {
  color: #9dbbff;
}

.header-cta {
  min-height: 44px;
}

.hero-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 72px;
  align-items: center;
  padding: 68px 0 72px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -120px -60px auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.24), rgba(79, 140, 255, 0));
  pointer-events: none;
}

.home-eyebrow {
  margin: 0 0 16px;
  color: #8db4ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 620px;
  color: #f8fafc;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 560px;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.secondary-link {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  background: rgba(248, 250, 252, 0.04);
  box-shadow: none;
}

.secondary-link:hover {
  background: rgba(248, 250, 252, 0.1);
}

.microcopy {
  margin-top: 22px;
  color: #94a3b8;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.preview-card,
.code-preview {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(18, 26, 46, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.preview-card {
  overflow: hidden;
}

.preview-card-top {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 17px 20px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.preview-player {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 58px 140px;
  gap: 18px;
  align-items: center;
  padding: 28px 24px;
}

.demo-logo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.35), rgba(34, 197, 94, 0.08)),
    #17223a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.demo-player-copy h2 {
  color: #f8fafc;
  font-size: 24px;
}

.demo-player-copy p {
  margin-top: 7px;
  color: #cbd5e1;
  font-size: 14px;
}

.demo-player-copy .demo-now-playing {
  color: #94a3b8;
  font-size: 12px;
}

.demo-now-playing span {
  color: #4f8cff;
  font-weight: 900;
}

.demo-play {
  width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
}

.demo-play::before {
  content: "";
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ffffff;
}

.demo-volume {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.demo-volume span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: #4f8cff;
}

.preview-powered {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px;
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
}

.preview-powered span {
  color: #4f8cff;
  font-weight: 900;
}

.code-preview {
  position: relative;
  margin-top: 18px;
  padding: 18px 54px 18px 18px;
}

.code-preview pre {
  margin: 0;
  white-space: pre-wrap;
}

.code-preview code {
  color: #86efac;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.copy-glyph {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 16px;
  height: 18px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
}

.copy-glyph::before {
  content: "";
  position: absolute;
  right: 4px;
  top: -5px;
  width: 16px;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 4px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fafc;
  padding: 28px max(16px, calc((100% - 1180px) / 2));
  color: #0f172a;
}

.trust-strip div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
}

.trust-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #4f8cff;
  background: #eaf1ff;
  font-size: 12px;
  font-weight: 900;
}

.trust-strip strong {
  font-size: 14px;
}

.trust-strip p {
  color: #475569;
  font-size: 13px;
}

.light-section {
  background: #f8fafc;
  color: #0f172a;
  padding: 70px max(16px, calc((100% - 1180px) / 2));
}

.light-section + .light-section {
  border-top: 1px solid #e2e8f0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.section-copy h2,
.final-cta h2 {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.steps-grid,
.mode-grid,
.feature-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 22px;
}

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

.info-card,
.feature-card,
.price-card,
.faq-card,
.mode-card {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.step-card {
  position: relative;
  padding: 28px 26px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #4f8cff;
  font-size: 13px;
  font-weight: 900;
}

.step-card p,
.feature-card p,
.price-card p,
.faq-card p,
.mode-card p,
.section-copy p,
.final-cta p {
  color: #475569;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.section-copy p {
  margin-top: 18px;
  font-size: 16px;
}

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

.mode-card {
  padding: 26px;
  text-align: center;
}

.mode-card h3 {
  margin-top: 18px;
  color: #1d4ed8;
}

.mode-button-preview {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 900;
}

.mode-inline-preview {
  display: grid;
  grid-template-columns: 44px 1fr 86px;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.mode-inline-preview span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #17223a;
}

.mode-inline-preview strong {
  color: #0f172a;
  font-size: 14px;
}

.mode-inline-preview i {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8cff 70%, #cbd5e1 70%);
}

.mode-card-accent {
  background: #f0fdf4;
}

.template-showcase .section-heading p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

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

.template-preview-card {
  display: grid;
  gap: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.template-preview-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.template-preview-meta h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.template-preview-meta span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-player {
  min-height: 160px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  overflow: hidden;
}

.mini-player strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.mini-player p {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.mini-controls {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.mini-controls i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4f8cff;
}

.mini-controls i::before {
  content: "";
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #ffffff;
}

.mini-controls b {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8cff 72%, #cbd5e1 72%);
}

.minimal-player {
  display: grid;
  align-content: center;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.card-player {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  background: #f8fffd;
}

.mini-art {
  min-height: 160px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, #0f766e, #0f172a);
}

.card-player > div:last-child {
  align-self: center;
  padding: 18px;
}

.broadcast-player {
  position: relative;
  display: grid;
  align-content: center;
  padding: 22px;
  background: radial-gradient(circle at 35% 26%, rgba(255,255,255,0.16), transparent 24%), linear-gradient(135deg, rgba(79,140,255,0.28), #101624);
}

.broadcast-player strong,
.compact-player strong {
  color: #f8fafc;
}

.broadcast-player small {
  width: max-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: #dc2626;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mini-bars {
  position: absolute;
  inset: auto 16px 18px;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 48px;
  color: #4f8cff;
  opacity: 0.24;
}

.mini-bars i {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
}

.mini-bars i:nth-child(1) { height: 34%; }
.mini-bars i:nth-child(2) { height: 72%; }
.mini-bars i:nth-child(3) { height: 48%; }
.mini-bars i:nth-child(4) { height: 88%; }
.mini-bars i:nth-child(5) { height: 58%; }
.mini-bars i:nth-child(6) { height: 42%; }
.mini-bars i:nth-child(7) { height: 78%; }
.mini-bars i:nth-child(8) { height: 64%; }

.compact-player {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  background: #0b1020;
}

.compact-player .mini-bars {
  inset: 14px 14px 14px 118px;
  height: auto;
  color: #93c5fd;
  opacity: 0.18;
}

.mini-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #22c55e;
}

.wave-player {
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 118px 18px 18px;
  background: linear-gradient(180deg, #dbeafe 0 54%, #ffffff 54% 100%);
}

.wave-line {
  position: absolute;
}

.wave-player {
  position: relative;
}

.wave-player::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 72' preserveAspectRatio='none'%3E%3Cpath d='M0 36 C 30 8 60 8 90 36 S 150 64 180 36 S 240 8 270 36 S 330 64 360 36' fill='none' stroke='%234F8CFF' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 360px 72px;
  opacity: 0.72;
}

.template-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.template-notes p {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 14px 16px;
  color: #475569;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.45;
}

.template-notes strong {
  color: #0f172a;
}

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

.feature-card,
.faq-card {
  padding: 24px;
}

.feature-card h3,
.faq-card h3 {
  color: #0f172a;
}

.feature-card h3::before {
  content: none;
  display: none;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 9px;
  color: #4f8cff;
  background: #eaf1ff;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.price-card {
  position: relative;
  padding: 26px;
  text-align: center;
}

.price-card-featured {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 18px 46px rgba(34, 197, 94, 0.12);
}

.popular-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 5px 12px;
  color: #ffffff;
  background: #22c55e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.price {
  margin: 16px 0 12px;
  color: #0f172a;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.price span,
.price small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.green-button {
  background: #22c55e;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.22);
}

.green-button:hover {
  background: #16a34a;
}

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

.final-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #0b1020;
}

.final-cta h2 {
  color: #f8fafc;
}

.final-cta p {
  margin-top: 8px;
  color: #cbd5e1;
}

.dashboard-page,
.admin-page {
  background:
    linear-gradient(180deg, #020914 0, #071525 230px, #f6f8fb 230px, #f6f8fb 100%);
}

.dashboard-page main,
.admin-page main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.dashboard-page header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  color: #ffffff;
}

.admin-header h1 {
  font-size: 34px;
  line-height: 1.05;
}

.dashboard-page .brand,
.admin-page .brand {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7aa5ff;
  font-size: 13px;
  font-weight: 800;
}

.headline-copy {
  margin: 8px 0 0;
  max-width: 580px;
  color: #bcc8da;
  font-size: 15px;
  line-height: 1.55;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: #d9e5f7;
  background: rgba(255, 255, 255, 0.07);
}

.account-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  justify-items: start;
}

.account-label {
  grid-column: 1 / -1;
  color: #7aa5ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-email {
  color: #cbd7e8;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0 10px;
  color: #d9e5f7;
  background: rgba(248, 250, 252, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-decoration: none;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.admin-hero,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08);
}

.admin-hero {
  padding: 28px;
}

.admin-hero h1 {
  color: #0f172a;
  font-size: clamp(42px, 7vw, 62px);
}

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

.admin-stats article {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 16px;
  background: #f8f5ff;
}

.admin-stats strong {
  display: block;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.admin-stats span {
  display: block;
  margin-top: 8px;
  color: #334155;
  font-size: 13px;
}

.admin-panel {
  margin-top: 22px;
  padding: 24px 28px;
}

.admin-panel h2 {
  color: #0f172a;
  font-size: 20px;
}

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

.admin-section-head p {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

.admin-chart {
  display: grid;
  gap: 10px;
  min-height: 170px;
  margin-top: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.empty-chart,
.empty-table-cell {
  color: #64748b;
  font-size: 13px;
}

.empty-chart {
  display: grid;
  place-items: center;
}

.chart-row {
  position: relative;
  min-height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
}

.chart-row span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, #22c55e);
}

.chart-row strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #0f172a;
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
}

.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  color: #0f172a;
  font-size: 13px;
}

.admin-panel th,
.admin-panel td {
  border-bottom: 1px solid #e8eef6;
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
}

.admin-panel th {
  color: #64748b;
  background: #fbfdff;
  font-size: 12px;
  font-weight: 900;
}

.admin-panel tr:last-child td {
  border-bottom: 0;
}

.admin-panel select {
  min-height: 34px;
  min-width: 120px;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 13px;
}

.admin-panel input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.small-button {
  min-height: 34px;
  border-radius: 9px;
  padding: 0 12px;
  box-shadow: none;
}

.panel,
.preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08);
}

.panel {
  padding: 22px;
}

.billing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 16px;
  background: #f8fbff;
}

.billing-panel h2 {
  margin-top: 3px;
  font-size: 17px;
}

.billing-copy {
  max-width: 520px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.billing-button,
.billing-manage {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

.preview {
  padding: 22px;
  position: sticky;
  top: 22px;
}

.toolbar {
  display: block;
  align-items: end;
}

.toolbar-copy {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toolbar-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 9px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  padding: 0 9px;
  color: #52627a;
  background: #f8fbff;
  font-size: 12px;
}

.station-manager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

#station-form {
  margin-top: 24px;
}

#create-station-form {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 16px;
  background: #f8fbff;
}

#create-station-form h2 {
  font-size: 16px;
}

.section {
  padding: 26px 0;
  border-top: 1px solid #edf1f7;
}

.section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading-row h2 {
  margin-top: 3px;
}

.section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.template-field {
  margin-top: 0;
}

.field-note {
  margin-top: 12px;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: #31548c;
  background: #eef5ff;
  font-size: 13px;
  font-weight: 700;
}

.color-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

input[type="color"].color-picker {
  width: 50px;
  height: 44px;
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  min-height: 24px;
  color: #263247;
  line-height: 1.35;
}

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

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.actions,
.create-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.metadata-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.metadata-result {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.inline-checkbox {
  grid-column: 1 / -1;
  margin-top: 0;
}

.compact-toggle {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 1px;
  white-space: nowrap;
}

.create-row input {
  flex: 1;
  min-width: 0;
}

.secondary-button,
.link-button {
  background: var(--blue);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: none;
  text-decoration: none;
}

.danger-button {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-button:hover {
  color: var(--danger);
  background: transparent;
}

.publish-actions {
  border-top: 1px solid #edf1f7;
  padding-top: 22px;
}

.empty {
  padding: 22px;
  border: 1px dashed #b7c6da;
  border-radius: 14px;
  color: var(--muted);
  background: #f8fbff;
}

.feature-locked {
  display: none !important;
}

.field-locked input {
  color: #64748b;
  background: #f1f5f9;
  cursor: not-allowed;
}

.field-locked::after {
  content: "Not available in your current plan";
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.preview-block {
  margin-top: 18px;
}

.preview-block:first-of-type {
  margin-top: 16px;
}

.embed-code {
  margin-top: 10px;
  border: 1px solid #233752;
  border-radius: 12px;
  background: #07111f;
  padding: 12px;
  color: #7df7b2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.code-header h3 {
  margin-bottom: 0;
}

.copy-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  box-shadow: none;
}

.hint {
  margin-top: 14px;
  line-height: 1.45;
}

.login-page {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #020914 0, #071525 54%, #f6f8fb 54%, #f6f8fb 100%);
}

.login-page main {
  width: min(440px, calc(100% - 32px));
}

.login-page .brand {
  margin-bottom: 26px;
}

.login-page h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 40px;
}

.login-page p {
  margin: 0 0 22px;
  color: #bcc8da;
  line-height: 1.55;
}

.login-page form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(7, 17, 31, 0.18);
}

.login-page label {
  margin-bottom: 14px;
}

.login-page input {
  min-height: 46px;
}

.login-page button {
  width: 100%;
  min-height: 46px;
  box-shadow: 0 12px 26px rgba(37, 99, 255, 0.24);
}

.login-page .status {
  min-height: 20px;
  margin-top: 12px;
  color: #334155;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-top: 6px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 42px;
  }

  .preview-player {
    grid-template-columns: 76px minmax(0, 1fr) 54px;
  }

  .demo-logo {
    width: 76px;
    height: 76px;
    font-size: 13px;
  }

  .demo-volume {
    grid-column: 2 / 4;
  }

  .trust-strip,
  .template-preview-grid,
  .feature-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .dashboard-page header,
  .admin-header,
  .layout,
  .toolbar {
    display: block;
  }

  .preview {
    position: static;
    margin-top: 20px;
  }

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

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

  .section-heading-row {
    display: block;
  }

  .compact-toggle {
    margin-top: 12px;
    white-space: normal;
  }

  .account {
    margin-top: 14px;
    justify-content: space-between;
  }

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

  .admin-section-head {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    padding: 18px 0;
  }

  .site-nav {
    font-size: 13px;
  }

  .header-cta {
    width: 100%;
  }

  .hero-section {
    width: min(100% - 24px, 1180px);
    padding: 34px 0 48px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .link-button {
    width: 100%;
  }

  .preview-player {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 22px 18px;
  }

  .demo-logo {
    width: 64px;
    height: 64px;
    font-size: 11px;
  }

  .demo-play {
    grid-column: 1 / 2;
    width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .demo-volume {
    grid-column: 2 / 3;
  }

  .code-preview {
    padding-right: 18px;
  }

  .copy-glyph {
    display: none;
  }

  .trust-strip,
  .steps-grid,
  .mode-grid,
  .template-preview-grid,
  .template-notes,
  .feature-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .light-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .final-cta {
    width: min(100% - 24px, 1180px);
    align-items: stretch;
    flex-direction: column;
    padding: 28px 22px;
  }

  .final-cta .link-button {
    width: 100%;
  }

  .dashboard-page main {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .admin-page main {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .admin-hero,
  .admin-panel {
    padding: 20px;
  }

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

  h1 {
    font-size: 30px;
  }

  .login-page h1 {
    font-size: 34px;
  }

  .create-row,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .billing-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-actions {
    justify-content: flex-start;
  }

  .station-manager {
    display: block;
  }

  #create-station-form {
    margin-top: 16px;
  }

  .create-row button,
  .actions button {
    width: 100%;
  }
}
