:root {
  --ink: #0d0d12;
  --ink-soft: #14141c;
  --ink-raised: #1a1a24;
  --graphite: #2a2a33;
  --violet: #8a2be2;
  --violet-bright: #b96bff;
  --violet-pale: #dccbff;
  --white: #f2efea;
  --muted: #aaa5b2;
  --success: #67e8a5;
  --danger: #ff7a99;
  --border: rgba(220, 203, 255, 0.14);
  --border-strong: rgba(185, 107, 255, 0.34);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: min(1180px, calc(100vw - 48px));
  --header-height: 78px;
  color-scheme: dark;
}

/* Version 3 editor and reading experience */
.cursor-arrow,
.cursor-orbit {
  z-index: 30000;
}

.cursor-arrow {
  width: 16px;
  height: 16px;
  border-radius: 45%;
  background:
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, 0.98) 0 10%, rgba(220, 203, 255, 0.96) 27%, rgba(185, 107, 255, 0.94) 60%, rgba(111, 38, 181, 0.98) 100%);
  clip-path: polygon(2% 4%, 96% 50%, 2% 96%, 23% 50%);
  filter:
    drop-shadow(0 0 5px rgba(185, 107, 255, 0.5))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.46));
  transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) translate(-2px, -2px) rotate(43deg) scaleX(-1);
}

.cursor-arrow::after {
  display: none;
}

.cursor-orbit {
  border-color: rgba(220, 203, 255, 0.34);
  background: radial-gradient(circle, transparent 58%, rgba(185, 107, 255, 0.035));
  box-shadow: 0 0 12px rgba(185, 107, 255, 0.06);
}

body.cursor-hover .cursor-orbit {
  border-color: rgba(220, 203, 255, 0.66);
}

.article-extras {
  padding: 0 0 100px;
}

.post-socials-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(220, 203, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(185, 107, 255, 0.07)),
    rgba(18, 18, 25, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.post-socials-bar > div:first-child {
  display: grid;
  gap: 6px;
}

.post-socials-bar > div:first-child strong {
  color: var(--white);
  font-size: 0.98rem;
}

.post-socials-bar .social-links {
  justify-content: flex-end;
}

.article-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 22px 0 86px;
}

.article-nav-link {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.article-nav-link span {
  color: var(--violet-bright);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-nav-link strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-nav-link.next {
  text-align: right;
}

.related-posts .section-head {
  margin-bottom: 28px;
}

.visual-builder {
  grid-template-columns: 218px minmax(0, 1fr);
}

.builder-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-device-switcher {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preview-device-switcher button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.preview-device-switcher button.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(185, 107, 255, 0.11)),
    rgba(35, 32, 45, 0.88);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

.builder-preview-stage {
  min-width: 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 8%, rgba(185, 107, 255, 0.07), transparent 30%),
    #09090d;
}

.builder-device-shell {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-device-shell.is-desktop {
  width: 100%;
}

.builder-device-shell.is-tablet {
  width: min(768px, 100%);
}

.builder-device-shell.is-mobile {
  width: min(390px, 100%);
}

.builder-device-shell.is-tablet .builder-preview,
.builder-device-shell.is-mobile .builder-preview {
  border-color: rgba(220, 203, 255, 0.21);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.02),
    0 28px 80px rgba(0, 0, 0, 0.42);
}

.builder-device-shell.is-tablet .builder-preview-hero {
  min-height: 380px;
}

.builder-device-shell.is-tablet .builder-canvas {
  padding: 44px 34px;
}

.builder-device-shell.is-mobile .builder-preview-hero {
  min-height: 330px;
}

.builder-device-shell.is-mobile .builder-preview-hero-copy {
  right: 20px;
  bottom: 24px;
  left: 20px;
}

.builder-device-shell.is-mobile .builder-preview-hero-copy h1 {
  font-size: 2.35rem;
}

.builder-device-shell.is-mobile .builder-preview-hero-copy p {
  font-size: 0.76rem;
  line-height: 1.55;
}

.builder-device-shell.is-mobile .builder-canvas {
  min-height: 440px;
  padding: 34px 10px;
}

.builder-device-shell.is-mobile .builder-block h2 {
  font-size: 2rem;
}

.builder-device-shell.is-mobile .builder-block h3 {
  font-size: 1.28rem;
}

.builder-device-shell.is-mobile .builder-block p,
.builder-device-shell.is-mobile .builder-block li {
  font-size: 0.82rem;
}

.builder-block[data-block-type="button"][data-button-align="left"] {
  text-align: left;
}

.builder-block[data-block-type="button"][data-button-align="center"] {
  text-align: center;
}

.builder-block[data-block-type="button"][data-button-align="right"] {
  text-align: right;
}

.button-alignment-controls {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #111118;
}

.block-controls .button-alignment-controls button {
  width: 24px;
  height: 23px;
  border: 0;
  background: transparent;
}

.block-controls .button-alignment-controls button:hover,
.block-controls .button-alignment-controls button.active {
  background: rgba(185, 107, 255, 0.14);
  color: var(--white);
}

.builder-post-defaults {
  display: grid;
  gap: 24px;
  padding: 24px 42px 48px;
  border-top: 1px solid var(--border);
}

.post-socials-bar.compact {
  padding: 17px 18px;
}

.post-socials-bar.compact .social-links a {
  min-width: 38px;
  padding: 0 10px;
  font-size: 0;
}

.post-socials-bar.compact .social-icon {
  margin: 0;
}

.builder-article-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.builder-article-navigation span:last-child {
  text-align: right;
}

.builder-article-navigation span:first-child {
  text-align: left;
}

.builder-related-preview {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.builder-related-preview .blog-copy {
  padding: 16px;
}

.builder-related-preview .blog-copy h3 {
  font-size: 1rem;
}

.builder-related-preview .blog-copy p {
  display: none;
}

.settings-modal {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.settings-modal.open {
  visibility: visible;
  opacity: 1;
}

.settings-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(12px);
}

.settings-modal-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: min(780px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #14141c;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.64);
}

.settings-modal-panel > .media-modal-head {
  padding: 26px 28px 18px;
}

.settings-modal-panel > .media-modal-head h2 {
  margin-top: 7px;
}

.settings-tabs {
  display: flex;
  gap: 5px;
  padding: 0 28px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.settings-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-tabs button.active {
  border-color: rgba(220, 203, 255, 0.16);
  background: rgba(185, 107, 255, 0.09);
  color: var(--white);
}

.settings-tab-panels {
  max-height: 500px;
  padding: 26px 28px;
  overflow-y: auto;
}

.settings-tab-panel {
  display: grid;
  gap: 16px;
}

.settings-tab-panel[hidden] {
  display: none;
}

.settings-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 4px;
}

.settings-panel-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(185, 107, 255, 0.11);
  color: var(--violet-pale);
  font-size: 0.64rem;
  font-weight: 800;
}

.settings-panel-heading h3,
.settings-panel-heading p {
  margin: 0;
}

.settings-panel-heading h3 {
  color: var(--white);
  font-size: 1.16rem;
}

.settings-panel-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.settings-cover-preview {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #09090d;
  cursor: pointer;
}

.settings-cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.settings-cover-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(220, 203, 255, 0.22);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.8);
  color: var(--violet-pale);
  font-size: 0.64rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.settings-status-note {
  padding: 16px;
  border: 1px solid rgba(220, 203, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.18);
}

.settings-status-note strong {
  color: var(--violet-pale);
  font-size: 0.7rem;
}

.settings-status-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.settings-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
}

.post-destination-field[hidden],
.post-external-field[hidden] {
  display: none;
}

.media-modal {
  z-index: 12000;
}

@media (max-width: 1020px) {
  .visual-builder {
    grid-template-columns: 1fr;
  }

  .builder-palette {
    position: static;
    max-height: none;
  }

  .builder-preview-stage {
    padding: 14px;
  }
}

@media (max-width: 720px) {
  .post-socials-bar,
  .article-navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-socials-bar .social-links {
    justify-content: flex-start;
  }

  .article-navigation {
    gap: 8px;
    margin-bottom: 64px;
  }

  .article-nav-link.next {
    text-align: left;
  }

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

  .preview-device-switcher {
    justify-content: space-between;
  }

  .preview-device-switcher button {
    flex: 1;
  }

  .builder-preview-stage {
    padding: 8px;
  }

  .builder-post-defaults {
    padding: 20px 14px 34px;
  }

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

  .builder-article-navigation {
    grid-template-columns: 1fr;
  }

  .builder-article-navigation span {
    display: none;
  }

  .builder-related-preview .blog-grid {
    grid-template-columns: 1fr;
  }

  .settings-modal {
    padding: 10px;
  }

  .settings-modal-panel {
    max-height: calc(100svh - 20px);
  }

  .settings-modal-panel > .media-modal-head,
  .settings-tab-panels {
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings-tabs {
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings-modal-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(138, 43, 226, 0.09), transparent 32rem),
    var(--ink);
  color: var(--white);
  font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--violet-bright);
}

.noise {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.52) 0 0.45px, transparent 0.7px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.38) 0 0.4px, transparent 0.7px);
  background-size: 5px 5px, 7px 7px;
}

.cursor-arrow,
.cursor-orbit {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cursor-arrow {
  width: 17px;
  height: 23px;
  background: var(--white);
  clip-path: polygon(0 0, 92% 72%, 55% 72%, 77% 100%, 62% 100%, 42% 74%, 14% 100%);
  filter: drop-shadow(0 0 7px rgba(185, 107, 255, 0.85));
  transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) rotate(-10deg);
}

.cursor-orbit {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(185, 107, 255, 0.6);
  border-radius: 50%;
  transform: translate3d(calc(var(--cursor-ring-x, -50px) - 13px), calc(var(--cursor-ring-y, -50px) - 13px), 0);
  transition:
    width 180ms ease,
    height 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

body.cursor-ready .cursor-arrow,
body.cursor-ready .cursor-orbit {
  opacity: 1;
}

body.cursor-hover .cursor-orbit {
  width: 48px;
  height: 48px;
  border-color: var(--violet-pale);
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid transparent;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    height 240ms ease;
}

.site-header.scrolled {
  height: 66px;
  border-color: var(--border);
  background: rgba(13, 13, 18, 0.84);
  backdrop-filter: blur(18px);
}

.brand-link img {
  width: 144px;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a,
.text-link {
  position: relative;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--violet-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.text-link:hover {
  color: var(--white);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(185, 107, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-count {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-bright);
  color: var(--ink);
  font-size: 0.68rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
}

#app-main {
  min-height: 80vh;
}

.page {
  animation: page-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-tight {
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-heading h2,
.page-title {
  max-width: 800px;
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  color: var(--violet-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker-line::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--violet-bright);
}

.display {
  margin: 18px 0 22px;
  font-size: clamp(3.7rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.display .accent {
  color: var(--violet-bright);
}

.lead {
  max-width: 640px;
  margin: 0;
  color: #c7c2ce;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button::after {
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--violet-pale);
}

.button.secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(185, 107, 255, 0.12);
}

.button.small {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.65rem;
}

.button.full {
  width: 100%;
}

.button.no-arrow::after {
  display: none;
}

.button.danger {
  border-color: rgba(255, 122, 153, 0.3);
  background: rgba(255, 122, 153, 0.08);
  color: #ffc0cf;
}

.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-pale);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-arrow::after {
  content: "↗";
  color: var(--violet-bright);
  font-size: 1rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(13, 13, 18, 0.96) 28%, rgba(13, 13, 18, 0.25) 70%, rgba(13, 13, 18, 0.34) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 27%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 100px;
}

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

.hero-logo {
  width: min(380px, 72vw);
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 50px rgba(138, 43, 226, 0.18));
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 122, 153, 0.28);
  border-radius: 999px;
  background: rgba(255, 65, 108, 0.08);
  color: #ffc1cf;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff416c;
  box-shadow: 0 0 0 5px rgba(255, 65, 108, 0.12);
  animation: live-pulse 1.8s ease infinite;
}

@keyframes live-pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(255, 65, 108, 0);
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
  color: #d6d0dc;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-meta span::before {
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--violet-bright);
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll::before {
  width: 1px;
  height: 34px;
  content: "";
  background: linear-gradient(var(--violet-bright), transparent);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(185, 107, 255, 0.035);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 50px;
  padding: 18px 0;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  color: var(--violet-pale);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  margin-left: 50px;
  content: "✦";
  color: var(--violet-bright);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.story-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.value-stack {
  display: grid;
  gap: 12px;
}

.value-card {
  position: relative;
  padding: 24px 24px 24px 62px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.value-card::before {
  position: absolute;
  top: 27px;
  left: 24px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--violet-bright);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.value-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.value-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.live-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.stream-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.stream-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(13, 13, 18, 0.98), transparent 65%);
}

.stream-overlay {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.stream-overlay h3 {
  margin: 8px 0 7px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.stream-overlay p {
  margin: 0;
  color: var(--muted);
}

.schedule-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(185, 107, 255, 0.09), transparent 42%),
    var(--ink-soft);
}

.schedule-card h3 {
  margin: 12px 0 28px;
  font-size: 2rem;
}

.schedule-list {
  display: grid;
  gap: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--border);
}

.schedule-row strong {
  color: var(--violet-pale);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.schedule-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.schedule-row time {
  color: var(--white);
  font-size: 0.8rem;
}

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

.product-card,
.blog-card,
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.product-card:hover,
.blog-card:hover,
.glass-card:hover {
  border-color: var(--border-strong);
  background: rgba(185, 107, 255, 0.035);
  transform: translateY(-5px);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d14;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.76);
  color: var(--violet-pale);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.product-info {
  padding: 22px;
}

.product-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-info h3 {
  margin: 0;
  font-size: 1.12rem;
}

.product-price {
  color: var(--violet-pale);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-info p {
  min-height: 44px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.size-chips {
  display: flex;
  gap: 6px;
}

.size-chips span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.62rem;
}

.add-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--violet-bright);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  transition: transform 180ms ease;
}

.add-button:hover {
  transform: rotate(90deg);
}

.blog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.blog-media {
  aspect-ratio: 1.55;
  overflow: hidden;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.04);
}

.blog-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 10px;
  color: var(--violet-bright);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-copy h3 {
  margin: 14px 0 12px;
  font-size: 1.38rem;
  line-height: 1.25;
}

.blog-copy p {
  display: -webkit-box;
  min-height: 72px;
  margin: 0 0 23px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-copy .text-arrow {
  margin-top: auto;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 68px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(185, 107, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(138, 43, 226, 0.11), rgba(13, 13, 18, 0.45)),
    var(--ink-soft);
}

.cta-panel::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 340px;
  height: 340px;
  content: "";
  border: 2px solid rgba(185, 107, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(185, 107, 255, 0.03),
    0 0 0 50px rgba(185, 107, 255, 0.025);
}

.cta-panel h2 {
  margin: 9px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.cta-panel p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.cta-symbol {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(330px, 70vw);
  filter: drop-shadow(0 20px 50px rgba(138, 43, 226, 0.25));
}

.page-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: end;
  padding: calc(var(--header-height) + 100px) 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.99), rgba(13, 13, 18, 0.28)),
    url("assets/energy-bg.png") center / cover;
}

.page-hero.compact {
  min-height: 390px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.merch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--violet-bright);
  background: rgba(185, 107, 255, 0.1);
  color: var(--white);
}

.cart-layout,
.checkout-layout,
.contact-layout,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--ink-soft);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 7px;
  font-size: 0.98rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.qty-control button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.summary-line.total {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(185, 107, 255, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #696572;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.stripe-box {
  padding: 20px;
  border: 1px solid rgba(103, 232, 165, 0.18);
  border-radius: 14px;
  background: rgba(103, 232, 165, 0.035);
}

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

.stripe-wordmark {
  color: #9b7bff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.secure-note {
  color: var(--muted);
  font-size: 0.67rem;
}

.steps {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step::before {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  content: attr(data-step);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.step.active {
  color: var(--white);
}

.step.active::before {
  border-color: var(--violet-bright);
  background: var(--violet-bright);
  color: var(--ink);
}

.contact-layout {
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-intro {
  position: sticky;
  top: 100px;
}

.contact-intro h2 {
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-method span {
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-layout {
  min-height: 100svh;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  padding-top: var(--header-height);
}

.auth-visual {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: url("assets/energy-bg-portrait.png") center / cover;
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(13, 13, 18, 0.9), transparent 62%);
}

.auth-visual-content {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 42px;
  left: 42px;
}

.auth-visual-content img {
  width: 250px;
}

.auth-visual-content p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form-wrap {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  place-items: center;
  padding: 70px 8vw;
}

.auth-form {
  width: min(460px, 100%);
}

.auth-form h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-form > p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-form .field {
  margin-bottom: 15px;
}

.form-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.form-foot a {
  color: var(--violet-pale);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover {
  border-color: var(--border-strong);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(185, 107, 255, 0.12);
  color: var(--violet-pale);
  font-size: 0.68rem;
  font-weight: 800;
}

.play-icon::before {
  width: 0;
  height: 0;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--violet-pale);
  transform: translateX(1px);
}

.camera-icon {
  border: 1px solid var(--violet-pale);
  background: transparent;
}

.camera-icon::after {
  width: 5px;
  height: 5px;
  content: "";
  border: 1px solid var(--violet-pale);
  border-radius: 50%;
}

.blog-grid {
  align-items: stretch;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 270px;
  gap: 70px;
  align-items: start;
}

.article-cover {
  width: 100%;
  aspect-ratio: 1.6;
  margin-bottom: 38px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  color: #c7c2ce;
  font-size: 1rem;
  line-height: 1.9;
}

.article-body h2 {
  margin: 48px 0 16px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1.15;
}

.article-body blockquote {
  margin: 40px 0;
  padding: 26px 0 26px 28px;
  border-left: 2px solid var(--violet-bright);
  color: var(--violet-pale);
  font-size: 1.45rem;
  line-height: 1.45;
}

.article-aside {
  position: sticky;
  top: 100px;
}

.article-aside .social-links {
  margin-top: 20px;
}

.site-footer {
  padding: 70px max(24px, calc((100vw - 1380px) / 2)) 26px;
  border-top: 1px solid var(--border);
  background: #0a0a0f;
}

.footer-top {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 34px;
  align-items: center;
  padding-bottom: 50px;
}

.footer-brand img {
  width: 160px;
}

.footer-top p {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #6f6a78;
  font-size: 0.72rem;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 94;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition:
    opacity 260ms ease,
    visibility 260ms;
}

.cart-drawer {
  position: fixed;
  z-index: 95;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-left: 1px solid var(--border);
  background: #111118;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.drawer-open .drawer-backdrop {
  visibility: visible;
  opacity: 1;
}

body.drawer-open .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 2rem;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-state img {
  width: 110px;
  margin: 0 auto 20px;
  opacity: 0.7;
}

.toast-stack {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 15px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(20, 20, 28, 0.94);
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: 0.82rem;
  animation: toast-in 260ms ease;
  backdrop-filter: blur(16px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Admin */
.admin-page {
  min-height: 100svh;
  padding-top: 0;
  background: #0b0b10;
}

.admin-layout {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 245px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 28px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #101016;
}

.admin-sidebar-title {
  padding: 0 12px 18px;
}

.admin-sidebar-title span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar-title strong {
  display: block;
  margin-top: 5px;
  font-size: 1.1rem;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-nav a::before {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  content: attr(data-icon);
  border-radius: 7px;
  background: rgba(185, 107, 255, 0.08);
  color: var(--violet-bright);
  font-size: 0.64rem;
}

.admin-nav a.active,
.admin-nav a:hover {
  border-color: var(--border);
  background: rgba(185, 107, 255, 0.07);
  color: var(--white);
}

.admin-main {
  min-width: 0;
  padding: 34px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-topbar h1 {
  margin: 5px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(185, 107, 255, 0.08);
  color: var(--violet-pale);
  font-weight: 800;
}

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

.metric-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #13131a;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  margin: 13px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-change {
  color: var(--success);
  font-size: 0.71rem;
}

.metric-change.down {
  color: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
}

.admin-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #13131a;
}

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

.admin-card-head h2,
.admin-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-card-head span {
  color: var(--muted);
  font-size: 0.68rem;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 290px;
}

.chart-wrap canvas,
.heatmap-stage canvas {
  width: 100%;
  height: 100%;
}

.bar-list {
  display: grid;
  gap: 15px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #22222c;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--violet-bright));
}

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

.admin-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #77717f;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table td {
  color: #c6c1cb;
}

.status {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(103, 232, 165, 0.08);
  color: var(--success);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.new {
  background: rgba(185, 107, 255, 0.1);
  color: var(--violet-pale);
}

.status.draft {
  background: rgba(255, 193, 91, 0.09);
  color: #ffce7b;
}

.device-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}

.donut {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--violet-bright) 0 64%, var(--violet) 64% 88%, #333340 88% 100%);
}

.donut::after {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  content: "64%";
  border-radius: 50%;
  background: #13131a;
  font-size: 1.2rem;
  font-weight: 700;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.74rem;
}

.legend-row span:first-child::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  content: "";
  border-radius: 50%;
  background: var(--violet-bright);
}

.heatmap-toolbar,
.replay-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.heatmap-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #0d0d12;
}

.heatmap-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.96), rgba(13, 13, 18, 0.15)),
    url("assets/coatsie-desk-v2.png") center / cover;
}

.mini-nav {
  height: 8%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(13, 13, 18, 0.8);
}

.mini-copy {
  width: 46%;
  padding: 10% 0 0 8%;
}

.mini-line {
  height: 8px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: rgba(242, 239, 234, 0.78);
}

.mini-line.title {
  width: 95%;
  height: 25px;
  background: var(--white);
}

.mini-line.short {
  width: 62%;
}

.mini-buttons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.mini-buttons span {
  width: 100px;
  height: 24px;
  border-radius: 99px;
  background: var(--violet-bright);
}

.heatmap-stage canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.replay-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.92), rgba(13, 13, 18, 0.1)),
    url("assets/coatsie-desk-v2.png") center / cover;
}

.replay-cursor {
  position: absolute;
  z-index: 4;
  top: 40%;
  left: 30%;
  width: 17px;
  height: 23px;
  background: var(--white);
  clip-path: polygon(0 0, 92% 72%, 55% 72%, 77% 100%, 62% 100%, 42% 74%, 14% 100%);
  filter: drop-shadow(0 0 8px var(--violet-bright));
  transform: translate(-50%, -50%) rotate(-10deg);
}

.replay-click {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  border: 2px solid var(--violet-bright);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.replay-click.pulse {
  animation: replay-click 600ms ease;
}

@keyframes replay-click {
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.3);
  }
}

.timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.timeline input {
  width: 100%;
  accent-color: var(--violet-bright);
}

.play-control {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(185, 107, 255, 0.12);
  cursor: pointer;
}

.post-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
}

.editor-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d0d12;
}

.editor-preview img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.editor-preview-copy {
  padding: 25px;
}

.editor-preview-copy h2 {
  margin: 10px 0 12px;
}

.editor-preview-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-notice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(185, 107, 255, 0.2);
  border-radius: 11px;
  background: rgba(185, 107, 255, 0.055);
  color: var(--violet-pale);
  font-size: 0.76rem;
  line-height: 1.55;
}

.not-found {
  display: grid;
  min-height: 75svh;
  place-items: center;
  padding: 140px 24px 70px;
  text-align: center;
}

.not-found img {
  width: 180px;
  margin: 0 auto 18px;
}

@media (pointer: fine) {
  body,
  a,
  button,
  input,
  textarea,
  select {
    cursor: none !important;
  }
}

@media (max-width: 1020px) {
  :root {
    --container: min(100% - 36px, 860px);
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    z-index: 79;
    top: 0;
    right: 0;
    width: min(390px, 100%);
    height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 90px 38px 38px;
    border-left: 1px solid var(--border);
    background: rgba(13, 13, 18, 0.98);
    transform: translateX(100%);
    transition: transform 280ms ease;
  }

  body.menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    order: 3;
  }

  .login-link {
    display: none;
  }

  .story-grid,
  .live-feature,
  .cta-panel,
  .cart-layout,
  .checkout-layout,
  .contact-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 42px;
  }

  .schedule-card {
    min-height: 420px;
  }

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

  .cards-3 > :last-child {
    grid-column: 1 / -1;
  }

  .contact-intro,
  .article-aside {
    position: static;
  }

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

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

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 13px 18px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-sidebar-title {
    display: none;
  }

  .admin-nav {
    width: max-content;
    display: flex;
  }

  .admin-nav a {
    white-space: nowrap;
  }

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

  .admin-grid,
  .post-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: calc(100vw - 28px);
    --header-height: 68px;
    --radius-lg: 22px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 0 14px;
  }

  .site-header.scrolled {
    height: 62px;
  }

  .brand-link img {
    width: 112px;
  }

  .cart-button {
    min-width: 40px;
    padding: 8px;
  }

  .cart-button > span:first-child {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .hero {
    min-height: 800px;
  }

  .hero-background img {
    object-position: 66% center;
  }

  .hero-background::after {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(13, 13, 18, 0.82) 43%, rgba(13, 13, 18, 0.25) 100%),
      linear-gradient(90deg, rgba(13, 13, 18, 0.85), rgba(13, 13, 18, 0.05));
  }

  .hero-content {
    align-self: end;
    padding: 150px 0 112px;
  }

  .hero-logo {
    width: 240px;
  }

  .display {
    font-size: clamp(3.35rem, 16vw, 5.1rem);
  }

  .hero-meta {
    gap: 12px 18px;
    margin-top: 30px;
    font-size: 0.64rem;
  }

  .hero-scroll {
    display: none;
  }

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

  .cards-3 > :last-child {
    grid-column: auto;
  }

  .stream-card {
    min-height: 430px;
  }

  .stream-overlay {
    right: 20px;
    bottom: 20px;
    left: 20px;
    align-items: start;
    flex-direction: column;
  }

  .cta-panel {
    padding: 38px 26px;
  }

  .cta-symbol {
    width: 230px;
  }

  .page-hero {
    min-height: 480px;
    padding-bottom: 65px;
  }

  .merch-toolbar {
    align-items: start;
    flex-direction: column;
  }

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

  .field.full {
    grid-column: auto;
  }

  .cart-line {
    grid-template-columns: 76px 1fr;
  }

  .cart-thumb {
    width: 76px;
    height: 76px;
  }

  .cart-line > strong {
    grid-column: 2;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: var(--header-height);
  }

  .auth-visual {
    display: none;
  }

  .auth-form-wrap {
    min-height: calc(100svh - var(--header-height));
    padding: 50px 22px;
    background:
      linear-gradient(rgba(13, 13, 18, 0.87), rgba(13, 13, 18, 0.96)),
      url("assets/energy-bg-portrait.png") center / cover;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .footer-bottom div {
    flex-wrap: wrap;
  }

  .cart-drawer {
    padding: 22px 18px;
  }

  .admin-main {
    padding: 24px 14px 60px;
  }

  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

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

  .device-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .heatmap-stage {
    aspect-ratio: 9 / 12;
  }

  .article-layout {
    gap: 35px;
  }

  .article-body {
    font-size: 0.94rem;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-arrow,
  .cursor-orbit {
    display: none;
  }
}

/* Version 2 refinements */
.cursor-arrow {
  width: 19px;
  height: 22px;
  border-radius: 80% 34% 74% 24%;
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.98), rgba(220, 203, 255, 0.84) 34%, rgba(185, 107, 255, 0.88) 72%, rgba(138, 43, 226, 0.92));
  clip-path: polygon(8% 0, 100% 42%, 61% 59%, 48% 100%, 35% 59%, 0 73%);
  filter:
    drop-shadow(0 0 8px rgba(185, 107, 255, 0.82))
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.42));
  transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) rotate(-16deg);
}

.cursor-arrow::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 7px;
  height: 6px;
  content: "";
  border-radius: 65% 30% 60% 35%;
  background: rgba(13, 13, 18, 0.78);
  transform: rotate(28deg);
}

.cursor-orbit {
  border-color: rgba(185, 107, 255, 0.48);
  box-shadow:
    inset 0 0 12px rgba(185, 107, 255, 0.06),
    0 0 16px rgba(185, 107, 255, 0.08);
}

body.cursor-hover .cursor-orbit {
  transform: translate3d(calc(var(--cursor-ring-x, -50px) - 20px), calc(var(--cursor-ring-y, -50px) - 20px), 0);
}

.button {
  isolation: isolate;
  border-color: rgba(220, 203, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(185, 107, 255, 0.1) 52%, rgba(255, 255, 255, 0.035)),
    rgba(27, 27, 37, 0.72);
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.085em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(125%);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 40%);
  opacity: 0.55;
  transition: opacity 220ms ease;
}

.button:hover,
.button.secondary:hover {
  border-color: rgba(220, 203, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(185, 107, 255, 0.16) 52%, rgba(255, 255, 255, 0.06)),
    rgba(31, 28, 43, 0.82);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 13px 34px rgba(0, 0, 0, 0.28),
    0 8px 28px rgba(138, 43, 226, 0.12);
  transform: none;
}

.button:hover::before {
  opacity: 0.9;
}

.button.secondary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(185, 107, 255, 0.04)),
    rgba(18, 18, 25, 0.58);
}

.button.danger {
  background:
    linear-gradient(135deg, rgba(255, 122, 153, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(24, 18, 25, 0.7);
}

.cart-button,
.social-links a,
.add-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(185, 107, 255, 0.08)),
    rgba(20, 20, 28, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 7px 18px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(14px);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

.cart-button:hover,
.social-links a:hover,
.add-button:hover {
  border-color: rgba(220, 203, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(185, 107, 255, 0.13)),
    rgba(25, 25, 35, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 11px 28px rgba(0, 0, 0, 0.24),
    0 7px 22px rgba(138, 43, 226, 0.1);
  transform: none;
}

.add-button {
  color: var(--violet-pale);
}

.hero-background img {
  object-position: 76% 34%;
}

.hero-background::after {
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(13, 13, 18, 0.97) 37%, rgba(13, 13, 18, 0.3) 70%, rgba(13, 13, 18, 0.42) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 32%);
}

.live-pill {
  flex-wrap: wrap;
  letter-spacing: 0.1em;
}

.pill-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 193, 207, 0.3);
}

.live-pill time {
  color: #ffe3ea;
}

.stream-countdown {
  min-width: 184px;
  padding: 13px 16px;
  border: 1px solid rgba(220, 203, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(185, 107, 255, 0.08)),
    rgba(13, 13, 18, 0.7);
  text-align: right;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.stream-countdown span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stream-countdown strong {
  color: var(--violet-pale);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.045em;
}

.size-chips button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  font-size: 0.64rem;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.size-chips button:hover,
.size-chips button.active {
  border-color: rgba(220, 203, 255, 0.52);
  background: rgba(185, 107, 255, 0.13);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(185, 107, 255, 0.07);
}

.social-icon {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(185, 107, 255, 0.14)),
    rgba(185, 107, 255, 0.06);
}

.social-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.topic-field {
  padding: 0;
  border: 0;
}

.topic-field legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-option {
  position: relative;
}

.topic-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topic-option span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.topic-option input:checked + span {
  border-color: rgba(220, 203, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(185, 107, 255, 0.11)),
    rgba(25, 23, 34, 0.82);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

.checkbox-well {
  padding: 13px 15px;
  border: 1px solid rgba(220, 203, 255, 0.11);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkbox-well input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--violet-bright);
}

.contact-submit {
  margin-top: 22px;
}

.auth-visual {
  background:
    linear-gradient(0deg, rgba(13, 13, 18, 0.38), rgba(13, 13, 18, 0.05)),
    url("assets/coatsie-portrait-v2.png") 50% 24% / cover;
}

.auth-consent {
  margin: 8px 0 20px;
}

.auth-help {
  margin: 6px 0 22px;
  text-align: right;
}

.form-foot {
  margin-top: 30px;
}

.recovery-note {
  display: grid;
  gap: 5px;
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.recovery-note strong {
  color: var(--violet-pale);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heatmap-page,
.replay-stage {
  background-image:
    linear-gradient(90deg, rgba(13, 13, 18, 0.94), rgba(13, 13, 18, 0.1)),
    url("assets/coatsie-desk-v2.png");
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
}

.admin-mode .site-header,
.admin-mode .site-footer {
  display: none !important;
}

.admin-sidebar .admin-nav {
  flex: 0 0 auto;
}

.admin-exit-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-exit-link span {
  color: var(--violet-bright);
}

.admin-exit-link:hover {
  color: var(--white);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chart-wrap {
  height: 280px;
}

.donut-chart-wrap {
  width: 150px;
  height: 150px;
}

.post-list-toolbar,
.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.post-list-card {
  padding: 0;
  overflow: hidden;
}

.post-list-card .admin-card-head {
  margin: 0;
  padding: 22px;
}

.post-list-title {
  display: flex;
  min-width: 280px;
  align-items: center;
  gap: 12px;
}

.post-list-title img {
  width: 72px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.post-list-title strong,
.post-list-title span {
  display: block;
}

.post-list-title strong {
  margin-bottom: 5px;
  color: var(--white);
}

.post-list-title span {
  color: var(--muted);
  font-size: 0.68rem;
}

.row-actions {
  display: flex;
  gap: 7px;
}

.status.published {
  border-color: rgba(103, 232, 165, 0.22);
  color: var(--success);
}

.status.hidden,
.status.archived {
  border-color: rgba(170, 165, 178, 0.2);
  color: var(--muted);
}

.builder-toolbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-state {
  color: var(--muted);
  font-size: 0.7rem;
}

.visual-builder {
  display: grid;
  grid-template-columns: 218px minmax(560px, 1fr) 292px;
  gap: 16px;
  align-items: start;
}

.builder-palette,
.builder-settings {
  position: sticky;
  top: 18px;
  max-height: calc(100svh - 36px);
  padding: 18px;
  overflow-y: auto;
}

.builder-palette h2,
.builder-settings h2 {
  margin: 9px 0 8px;
  font-size: 1.25rem;
}

.builder-palette > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.builder-element-list {
  display: grid;
  gap: 6px;
}

.builder-element-list button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
  cursor: grab;
}

.builder-element-list button:hover {
  border-color: var(--border-strong);
  background: rgba(185, 107, 255, 0.07);
  color: var(--white);
}

.builder-element-list button > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(185, 107, 255, 0.1);
  color: var(--violet-pale);
  font-size: 0.62rem;
  font-weight: 800;
}

.builder-element-list button b {
  color: var(--violet-bright);
  font-size: 1rem;
}

.builder-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #0d0d12;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.builder-preview-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
}

.builder-preview-hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-preview-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(13, 13, 18, 0.98), rgba(13, 13, 18, 0.12) 72%),
    linear-gradient(90deg, rgba(13, 13, 18, 0.68), transparent 70%);
}

.builder-preview-hero-copy {
  position: absolute;
  z-index: 2;
  right: 46px;
  bottom: 42px;
  left: 46px;
}

.builder-preview-hero-copy h1 {
  max-width: 800px;
  margin: 10px 0 14px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.builder-preview-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #c7c2ce;
  line-height: 1.65;
}

.image-change-button {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(220, 203, 255, 0.3);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  color: var(--violet-pale);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.cover-change {
  top: 18px;
  right: 18px;
}

.builder-canvas {
  position: relative;
  min-height: 620px;
  padding: 52px;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.builder-canvas.drag-over {
  background: rgba(185, 107, 255, 0.025);
  box-shadow: inset 0 0 0 2px rgba(185, 107, 255, 0.2);
}

.builder-block {
  position: relative;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 11px 14px;
  border: 1px dashed transparent;
  border-radius: 12px;
}

.builder-block:hover {
  border-color: rgba(185, 107, 255, 0.24);
  background: rgba(185, 107, 255, 0.025);
}

.builder-block.dragging {
  opacity: 0.42;
}

.builder-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.builder-block h3 {
  margin: 0;
  font-size: 1.6rem;
}

.builder-block p,
.builder-block li {
  color: #c1bcc8;
  line-height: 1.85;
}

.builder-block blockquote {
  margin: 0;
}

.block-controls {
  position: absolute;
  z-index: 4;
  top: -13px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.builder-block:hover .block-controls {
  opacity: 1;
}

.block-grip,
.block-controls button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1a1a24;
  color: var(--muted);
  font-size: 0.72rem;
}

.block-grip {
  cursor: grab;
}

.block-controls button {
  cursor: pointer;
}

.builder-image-frame {
  position: relative;
  margin: 0;
}

.builder-image-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
}

.builder-image-frame figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.image-position-controls {
  position: absolute;
  right: 12px;
  bottom: 38px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(13, 13, 18, 0.78);
  backdrop-filter: blur(12px);
}

.image-position-controls button {
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.6rem;
  cursor: pointer;
}

.image-position-controls button:hover {
  background: rgba(185, 107, 255, 0.12);
  color: var(--white);
}

.builder-embed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.builder-embed > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(185, 107, 255, 0.12);
  color: var(--violet-pale);
  font-size: 0.68rem;
  font-weight: 800;
}

.builder-embed > div {
  min-width: 0;
  flex: 1;
}

.builder-embed strong,
.builder-embed input {
  display: block;
  width: 100%;
}

.builder-embed input {
  margin-top: 7px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
}

.builder-code {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #09090d;
  color: #d8ccff;
}

.builder-divider {
  border: 0;
  border-top: 1px solid var(--border);
}

.builder-empty-hint {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 26px;
  border: 1px dashed rgba(185, 107, 255, 0.25);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.builder-empty-hint span {
  display: block;
  margin-bottom: 4px;
  color: var(--violet-bright);
  font-size: 1.2rem;
}

.builder-settings {
  display: grid;
  gap: 14px;
}

.builder-settings .field textarea {
  min-height: 92px;
}

.builder-settings hr {
  width: 100%;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.media-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.media-modal.open {
  visibility: visible;
  opacity: 1;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(12px);
}

.media-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #14141c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.media-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.media-modal-head h2 {
  margin: 7px 0 0;
  font-size: 2rem;
}

.media-modal-panel > p {
  margin: 12px 0 22px;
  color: var(--muted);
}

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

.media-library-grid button {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.media-library-grid button:hover {
  border-color: var(--border-strong);
}

.media-library-grid img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.media-library-grid span {
  display: block;
  padding: 11px;
  font-size: 0.72rem;
}

body.modal-open {
  overflow: hidden;
}

.published-builder-content .builder-block {
  margin-bottom: 22px;
  padding: 0;
}

.published-builder-content .builder-block:hover {
  border-color: transparent;
  background: transparent;
}

.published-builder-content .builder-image-frame img {
  border-radius: var(--radius-md);
}

@media (max-width: 1320px) {
  .visual-builder {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .builder-settings {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .builder-settings > .eyebrow,
  .builder-settings > h2,
  .builder-settings > hr {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .admin-exit-link {
    margin-top: 0;
    margin-left: 12px;
    border-top: 0;
    border-left: 1px solid var(--border);
    white-space: nowrap;
  }

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

  .builder-palette,
  .builder-settings {
    position: static;
    max-height: none;
  }

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

  .builder-settings {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .hero-background img {
    object-position: 50% 15%;
  }

  .live-pill {
    max-width: 100%;
    border-radius: 16px;
  }

  .pill-divider {
    display: none;
  }

  .stream-countdown {
    min-width: 0;
    text-align: left;
  }

  .topic-options {
    gap: 7px;
  }

  .topic-option span {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.68rem;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .post-list-toolbar,
  .builder-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-toolbar > div {
    align-items: stretch;
    flex-direction: column;
  }

  .save-state {
    line-height: 1.5;
  }

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

  .builder-preview-hero {
    min-height: 360px;
  }

  .builder-preview-hero-copy {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .builder-preview-hero-copy h1 {
    font-size: 2.5rem;
  }

  .builder-canvas {
    min-height: 500px;
    padding: 36px 12px;
  }

  .builder-block {
    padding-inline: 10px;
  }

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

  .builder-settings > .eyebrow,
  .builder-settings > h2,
  .builder-settings > hr {
    grid-column: auto;
  }

  .media-modal {
    padding: 12px;
  }

  .media-modal-panel {
    max-height: calc(100svh - 24px);
    padding: 20px;
  }

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

/* Version 3 final cascade */
.cursor-arrow,
.cursor-orbit {
  z-index: 30000;
}

.cursor-arrow {
  width: 16px;
  height: 16px;
  border-radius: 45%;
  background:
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, 0.98) 0 10%, rgba(220, 203, 255, 0.96) 27%, rgba(185, 107, 255, 0.94) 60%, rgba(111, 38, 181, 0.98) 100%);
  clip-path: polygon(2% 4%, 96% 50%, 2% 96%, 23% 50%);
  filter:
    drop-shadow(0 0 5px rgba(185, 107, 255, 0.5))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.46));
  transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) translate(-2px, -2px) rotate(43deg) scaleX(-1);
}

.cursor-arrow::after {
  display: none;
}

.cursor-orbit {
  border-color: rgba(220, 203, 255, 0.34);
  background: radial-gradient(circle, transparent 58%, rgba(185, 107, 255, 0.035));
  box-shadow: 0 0 12px rgba(185, 107, 255, 0.06);
}

.visual-builder {
  grid-template-columns: 218px minmax(0, 1fr);
}

.media-modal {
  z-index: 12000;
}

@media (max-width: 1020px) {
  .visual-builder {
    grid-template-columns: 1fr;
  }
}

.home-page .hero-background img {
  object-position: center;
}

.home-page .hero-background::after {
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(13, 13, 18, 0.96) 28%, rgba(13, 13, 18, 0.25) 70%, rgba(13, 13, 18, 0.34) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 27%);
}

/* Production application */
[hidden] {
  display: none !important;
}

.auth-visual,
.recovery-visual {
  background:
    linear-gradient(0deg, rgba(13, 13, 18, 0.5), rgba(13, 13, 18, 0.08)),
    url("assets/hero-studio.png") center / cover;
}

.auth-primary-button {
  margin-bottom: 8px;
}

.auth-form .form-foot {
  margin-top: 28px;
}

.text-arrow::after {
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.text-arrow:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.text-arrow.external::after {
  width: 10px;
  height: 10px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  transform: translateY(1px);
}

.text-arrow.external:hover::after {
  transform: translate(2px, -1px);
}

.external-button > span {
  position: relative;
  width: 11px;
  height: 11px;
  margin-left: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.external-button > span::after {
  position: absolute;
  top: 1px;
  right: -1px;
  width: 8px;
  height: 1.5px;
  content: "";
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.production-loading,
.production-error,
.admin-access-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.production-loading {
  gap: 14px;
  align-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.production-loading img,
.production-error img {
  width: 86px;
  margin: 0 auto 18px;
}

.production-error > div,
.admin-access-card {
  width: min(560px, 100%);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.production-error h1,
.admin-access-card h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.production-error p,
.admin-access-card p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-access-card img {
  width: 180px;
  margin: 0 auto 28px;
}

.admin-access-card .text-arrow {
  margin-top: 22px;
}

.account-shell {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.account-trigger i {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--violet-pale);
  border-bottom: 1px solid var(--violet-pale);
  transform: translateY(-2px) rotate(45deg);
}

.account-dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(20, 20, 28, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.account-dropdown a,
.account-dropdown button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(185, 107, 255, 0.09);
  color: var(--white);
}

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

.account-form {
  padding: 28px;
}

.account-form h2 {
  margin: 10px 0 22px;
}

.account-form .button {
  margin-top: 8px;
}

.merch-coming-hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.96), rgba(13, 13, 18, 0.6)),
    url("assets/energy-bg.png") center / cover;
}

.merch-coming-copy {
  max-width: 680px;
}

.merch-coming-copy > img {
  width: 104px;
  margin-bottom: 28px;
}

.merch-coming-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.merch-coming-copy > p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #c7c2ce;
  font-size: 1rem;
  line-height: 1.8;
}

.merch-coming-copy .social-links {
  margin-bottom: 26px;
}

.checkout-handoff {
  max-width: 660px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}

.checkout-handoff img {
  width: 92px;
  margin: 0 auto 20px;
}

.checkout-handoff h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.checkout-handoff p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-control-list {
  display: grid;
  gap: 0;
}

.admin-control-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-control-list strong {
  color: var(--violet-pale);
}

.admin-empty-state {
  display: grid;
  gap: 7px;
  place-items: center;
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
}

.admin-empty-state strong {
  color: var(--white);
  font-size: 1rem;
}

.admin-empty-state span {
  max-width: 460px;
  font-size: 0.74rem;
  line-height: 1.6;
}

.contact-admin-list {
  display: grid;
}

.contact-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  padding: 23px;
  border-top: 1px solid var(--border);
}

.contact-admin-item h3 {
  margin: 11px 0 7px;
  font-size: 1.05rem;
}

.contact-admin-item p {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-admin-item a {
  color: var(--violet-pale);
  font-size: 0.72rem;
}

.contact-admin-item > div:last-child {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-admin-item time {
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-admin-item select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
}

.danger-chip {
  border-color: rgba(255, 122, 153, 0.24) !important;
  color: #ff9bb2 !important;
}

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

.admin-page-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--ink-soft);
}

.admin-page-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-page-card > div {
  padding: 24px;
}

.admin-page-card h2 {
  margin: 14px 0 8px;
}

.admin-page-card p {
  min-height: 42px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.page-editor-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.page-field-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100svh - 36px);
  padding: 20px;
  overflow-y: auto;
}

.page-field-panel h2 {
  margin: 9px 0 20px;
}

.page-field-panel textarea {
  min-height: 110px;
}

.page-image-picker {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ink);
  cursor: pointer;
}

.page-image-picker img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.page-image-picker span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.82);
  color: var(--violet-pale);
  font-size: 0.62rem;
}

.page-live-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--ink);
}

.page-preview-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(185, 107, 255, 0.18), transparent 34%),
    #0d0d12;
}

.page-preview-hero.compact {
  min-height: 400px;
}

.page-preview-hero > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-preview-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(13, 13, 18, 0.95), rgba(13, 13, 18, 0.2)), linear-gradient(0deg, rgba(13, 13, 18, 0.96), transparent 60%);
}

.page-preview-hero > div {
  position: relative;
  z-index: 2;
}

.page-preview-hero h1 {
  max-width: 800px;
  margin: 12px 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.page-preview-hero p,
.page-preview-section p,
.page-preview-image-section p {
  max-width: 700px;
  color: #c7c2ce;
  line-height: 1.75;
}

.page-preview-section {
  padding: 52px;
}

.page-preview-section h2,
.page-preview-image-section h2 {
  margin: 8px 0 14px;
  font-size: 2.4rem;
}

.page-preview-image-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 52px;
  background: var(--ink-soft);
}

.page-preview-image-section img {
  width: 100%;
  border-radius: 14px;
}

.builder-device-shell.is-mobile .page-preview-hero {
  min-height: 400px;
  padding: 28px 20px;
}

.builder-device-shell.is-mobile .page-preview-hero h1 {
  font-size: 2.8rem;
}

.builder-device-shell.is-mobile .page-preview-section {
  padding: 34px 20px;
}

.builder-device-shell.is-mobile .page-preview-image-section {
  grid-template-columns: 1fr;
  padding: 28px 20px;
}

.production-media-modal .media-modal-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.media-modal-fixed-head {
  flex: 0 0 auto;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: #14141c;
}

.asset-folder-tabs {
  display: flex;
  gap: 6px;
  margin-top: 17px;
  overflow-x: auto;
}

.asset-folder-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  cursor: pointer;
}

.asset-folder-tabs button.active {
  border-color: var(--border-strong);
  background: rgba(185, 107, 255, 0.1);
  color: var(--white);
}

.media-library-scroll {
  min-height: 0;
  flex: 1;
  padding: 22px 28px 28px;
  overflow-y: auto;
}

.asset-quick-upload {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.14);
}

.asset-quick-upload .field {
  margin: 0;
}

.production-media-modal .media-library-grid button > span {
  display: grid;
  gap: 3px;
}

.production-media-modal .media-library-grid strong {
  color: var(--white);
  font-size: 0.72rem;
}

.production-media-modal .media-library-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-destination-editor {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 203, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.builder-destination-editor label {
  display: grid;
  gap: 6px;
  color: var(--violet-pale);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.builder-destination-editor input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.builder-destination-editor input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(185, 107, 255, 0.08);
}

.builder-image-frame.is-uploading {
  opacity: 0.58;
  pointer-events: none;
}

.published-embed {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d0d12;
}

.published-embed iframe {
  display: block;
  width: 100%;
  min-height: 166px;
  border: 0;
}

.published-embed.youtube iframe {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.inline-external-link::after {
  display: inline-block;
  width: 0.48em;
  height: 0.48em;
  margin-left: 0.34em;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-0.22em);
}

.cursor-arrow,
.cursor-orbit {
  z-index: 30000;
}

.cursor-arrow {
  width: 16px;
  height: 16px;
  border-radius: 45%;
  background:
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, 0.98) 0 10%, rgba(220, 203, 255, 0.96) 27%, rgba(185, 107, 255, 0.94) 60%, rgba(111, 38, 181, 0.98) 100%);
  clip-path: polygon(2% 4%, 96% 50%, 2% 96%, 23% 50%);
  filter:
    drop-shadow(0 0 5px rgba(185, 107, 255, 0.5))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.46));
  transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) translate(-2px, -2px) rotate(43deg) scaleX(-1);
}

.cursor-arrow::after {
  display: none;
}

.media-empty {
  grid-column: 1 / -1;
}

.assets-admin-top {
  align-items: start;
}

.assets-admin-top .admin-card {
  padding: 22px;
}

.folder-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.folder-summary span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.65rem;
}

.folder-summary strong {
  margin-left: 4px;
  color: var(--violet-pale);
}

.assets-library-card {
  margin-top: 18px;
  padding: 22px;
}

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

.asset-admin-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.asset-admin-card > img {
  width: 100%;
  aspect-ratio: 1.45;
  margin-bottom: 13px;
  border-radius: 9px;
  object-fit: cover;
}

.asset-admin-card textarea {
  min-height: 76px;
}

.asset-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.6rem;
  text-transform: capitalize;
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.settings-toggle input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--violet-bright);
}

.settings-toggle span:not(.social-icon) {
  display: grid;
  gap: 5px;
}

.settings-toggle strong {
  color: var(--white);
  font-size: 0.76rem;
}

.settings-toggle small {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.social-settings-list {
  display: grid;
  gap: 9px;
}

.social-setting-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.social-setting-row .settings-toggle {
  align-items: center;
  margin: 0;
}

.social-setting-row > input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--white);
}

.settings-save-bar {
  position: sticky;
  z-index: 10;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(20, 20, 28, 0.92);
  color: var(--muted);
  font-size: 0.72rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.production-replay-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.9), rgba(13, 13, 18, 0.2)),
    url("assets/hero-studio.png") center / cover;
}

.replay-page-label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.78);
  color: var(--violet-pale);
  font-size: 0.65rem;
}

.replay-cursor.clicked {
  box-shadow: 0 0 0 12px rgba(255, 122, 153, 0.14), 0 0 22px rgba(255, 122, 153, 0.5);
}

@media (max-width: 1180px) {
  .asset-quick-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-editor-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .account-settings-grid,
  .admin-page-cards,
  .page-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-page-card {
    grid-template-columns: 150px 1fr;
  }

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

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

  .social-setting-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .account-trigger span {
    display: none;
  }

  .contact-admin-item,
  .admin-page-card {
    grid-template-columns: 1fr;
  }

  .admin-page-card > img {
    height: 180px;
  }

  .asset-quick-upload {
    grid-template-columns: 1fr;
  }

  .media-modal-fixed-head,
  .media-library-scroll {
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings-save-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Production merchandising */
.merch-coming-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  max-width: none;
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
}

.merch-coming-mark {
  width: 104px;
  margin-bottom: 28px;
}

.merch-coming-copy > div > p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #c7c2ce;
  font-size: 1rem;
  line-height: 1.8;
}

.merch-coming-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 203, 255, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 30%, rgba(185, 107, 255, 0.22), transparent 44%),
    rgba(10, 10, 15, 0.78);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.44);
}

.merch-coming-visual img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.home-merch-coming {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(220, 203, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(185, 107, 255, 0.13), transparent 34%),
    #111118;
}

.home-merch-coming-copy {
  align-self: center;
  padding: clamp(32px, 6vw, 78px);
}

.home-merch-coming-copy h2 {
  max-width: 680px;
  margin: 12px 0 17px;
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.home-merch-coming-copy p {
  max-width: 600px;
  margin: 0 0 26px;
  color: #c7c2ce;
  line-height: 1.75;
}

.home-merch-coming-image {
  min-height: 420px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.home-merch-coming-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Merch administration */
.merch-admin-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.merch-control-grid,
.merch-coming-editors {
  align-items: start;
  margin-bottom: 18px;
}

.merch-control-grid .admin-card,
.merch-coming-editors .admin-card,
.merch-products-panel {
  padding: 22px;
}

.merch-image-picker,
.merch-product-editor-media > button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d0d12;
  cursor: pointer;
}

.merch-image-picker img,
.merch-product-editor-media > button img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.merch-image-picker span,
.merch-product-editor-media > button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(220, 203, 255, 0.18);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.82);
  color: var(--violet-pale);
  font-size: 0.62rem;
  backdrop-filter: blur(12px);
}

.merch-product-editor-list {
  display: grid;
  gap: 14px;
}

.merch-product-editor {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
}

.merch-product-editor-media {
  display: grid;
  align-content: start;
  gap: 10px;
}

.merch-product-editor-media > button img {
  aspect-ratio: 1 / 1;
}

.merch-product-editor .settings-toggle {
  margin: 0;
}

.merch-product-editor-fields,
.merch-product-split {
  display: grid;
  gap: 12px;
}

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

.merch-product-editor .field {
  margin: 0;
}

/* Visual page editor */
.visual-page-builder {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-section-palette nav {
  display: grid;
  gap: 6px;
}

.page-section-palette nav button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
}

.page-section-palette nav button span {
  color: var(--violet-bright);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.page-section-palette nav button.active,
.page-section-palette nav button:hover {
  border-color: var(--border-strong);
  background: rgba(185, 107, 255, 0.09);
  color: var(--white);
}

.page-editor-tip {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(220, 203, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.page-editor-tip strong {
  color: var(--violet-pale);
  font-size: 0.68rem;
}

.page-editor-tip span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.page-builder-stage {
  min-height: 720px;
}

.inline-page-section {
  scroll-margin: 80px;
}

.page-live-preview.is-editable [contenteditable] {
  border-radius: 5px;
  outline: 1px dashed transparent;
  outline-offset: 7px;
  transition: outline-color 160ms ease, background 160ms ease;
}

.page-live-preview.is-editable [contenteditable]:hover {
  outline-color: rgba(185, 107, 255, 0.45);
}

.page-live-preview.is-editable [contenteditable]:focus {
  outline: 2px solid rgba(185, 107, 255, 0.78);
  background: rgba(185, 107, 255, 0.06);
}

.inline-page-image {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.inline-page-image > button {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(220, 203, 255, 0.18);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.78);
  color: var(--violet-pale);
  font-size: 0.62rem;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.page-preview-hero > .inline-page-image {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.page-preview-hero > .inline-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-preview-image-section > .inline-page-image img {
  width: 100%;
  border-radius: 14px;
}

.page-preview-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-preview-section-label a {
  color: var(--violet-pale);
  font-size: 0.68rem;
}

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

.page-preview-merch-grid > div {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.page-preview-merch-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.page-preview-merch-grid strong {
  color: var(--white);
  font-size: 0.72rem;
}

.page-preview-merch-grid span {
  color: var(--violet-pale);
  font-size: 0.66rem;
}

.page-preview-coming-soon {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 24px;
  align-items: center;
}

.page-preview-coming-soon > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.page-preview-coming-soon h2 {
  margin: 8px 0 10px;
}

/* Asset file manager */
.asset-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #111118;
}

.asset-folder-tree {
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  background: rgba(5, 5, 9, 0.28);
}

.asset-tree-head,
.asset-file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.asset-tree-head {
  padding: 0 8px 16px;
}

.asset-tree-head h2,
.asset-file-toolbar h2 {
  margin: 5px 0 0;
}

.asset-tree-nav {
  display: grid;
  gap: 4px;
}

.asset-tree-nav button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.asset-tree-nav button.active,
.asset-tree-nav button:hover,
[data-asset-drop-folder].is-drag-over {
  border-color: rgba(185, 107, 255, 0.35);
  background: rgba(185, 107, 255, 0.1);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(220, 203, 255, 0.04);
}

.asset-tree-nav strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
}

.asset-tree-nav small {
  color: var(--muted);
  font-size: 0.61rem;
}

.asset-folder-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 15px;
  border: 1px solid rgba(185, 107, 255, 0.52);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(185, 107, 255, 0.26), rgba(96, 38, 145, 0.12));
}

.asset-folder-icon::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 8px;
  height: 5px;
  content: "";
  border: 1px solid rgba(185, 107, 255, 0.52);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(185, 107, 255, 0.22);
}

.asset-folder-icon.large {
  width: 34px;
  height: 25px;
  border-radius: 5px;
}

.asset-folder-icon.large::before {
  top: -7px;
  width: 14px;
  height: 7px;
}

.asset-new-folder-form {
  margin-top: 14px;
  padding: 11px 8px;
  border-top: 1px solid var(--border);
}

.asset-new-folder-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--violet-pale);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-new-folder-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.asset-new-folder-form input {
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.asset-file-pane {
  min-width: 0;
  padding: 24px;
}

.asset-file-toolbar {
  margin-bottom: 18px;
}

.asset-file-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.asset-folder-drop-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px dashed rgba(185, 107, 255, 0.33);
  border-radius: 12px;
  background: rgba(185, 107, 255, 0.035);
}

.asset-upload-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 107, 255, 0.3);
  border-radius: 10px;
  color: var(--violet-bright);
  font-size: 1.25rem;
}

.asset-folder-drop-banner div {
  display: grid;
  gap: 4px;
}

.asset-folder-drop-banner strong {
  color: var(--white);
  font-size: 0.74rem;
}

.asset-folder-drop-banner div span {
  color: var(--muted);
  font-size: 0.65rem;
}

.asset-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.asset-folder-grid button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.asset-folder-grid button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.asset-folder-grid strong {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
}

.asset-folder-grid small {
  color: var(--muted);
  font-size: 0.62rem;
}

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

.asset-file-card {
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.asset-file-card:hover {
  border-color: var(--border-strong);
  background: rgba(185, 107, 255, 0.055);
}

.asset-file-card.is-dragging {
  opacity: 0.38;
}

.asset-file-card img {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 8px;
  object-fit: cover;
}

.asset-file-card > span {
  display: grid;
  gap: 4px;
  padding: 9px 3px 4px;
}

.asset-file-card strong,
.asset-file-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-file-card strong {
  font-size: 0.7rem;
}

.asset-file-card small {
  color: var(--muted);
  font-size: 0.59rem;
}

.asset-detail-modal {
  position: fixed;
  z-index: 13000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.asset-detail-panel {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100svh - 44px);
  overflow: hidden;
  border: 1px solid rgba(220, 203, 255, 0.17);
  border-radius: 18px;
  background: #14141c;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.62);
}

.asset-detail-panel > header,
.asset-detail-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.asset-detail-panel > header {
  border-bottom: 1px solid var(--border);
}

.asset-detail-panel > header h2 {
  margin: 5px 0 0;
  font-size: 1.35rem;
}

.asset-detail-panel > footer {
  border-top: 1px solid var(--border);
}

.asset-detail-body {
  max-height: calc(100svh - 190px);
  padding: 20px;
  overflow-y: auto;
}

.asset-detail-preview {
  width: 100%;
  max-height: 280px;
  margin-bottom: 18px;
  border-radius: 12px;
  object-fit: contain;
  background: #09090d;
}

.asset-detail-meta,
.asset-upload-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.63rem;
}

.asset-upload-status {
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.asset-upload-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 12px rgba(185, 107, 255, 0.7);
}

.asset-detail-panel.is-uploading {
  pointer-events: none;
}

.asset-detail-panel.is-uploading .asset-upload-status > span {
  animation: pulse 800ms ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.45; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1180px) {
  .asset-file-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .visual-page-builder,
  .asset-workspace {
    grid-template-columns: 1fr;
  }

  .page-section-palette {
    position: static;
    max-height: none;
  }

  .page-section-palette nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-folder-tree {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

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

  .home-merch-coming,
  .merch-coming-copy {
    grid-template-columns: 1fr;
  }

  .merch-coming-visual {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .merch-product-editor,
  .merch-product-split,
  .page-preview-coming-soon {
    grid-template-columns: 1fr;
  }

  .asset-file-pane {
    padding: 16px;
  }

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

  .asset-file-toolbar .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .asset-folder-grid,
  .asset-file-grid,
  .asset-tree-nav,
  .page-section-palette nav {
    grid-template-columns: 1fr;
  }

  .home-merch-coming-image {
    min-height: 320px;
  }

  .page-preview-merch-grid {
    grid-template-columns: 1fr;
  }
}

/* Final admin interaction system */
html,
body,
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.checkbox-row,
.checkbox-well {
  align-items: center;
}

.checkbox-row input[type="checkbox"],
.checkbox-well input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
}

.checkbox-row > span,
.checkbox-well > span {
  display: inline;
  min-width: 0;
}

.admin-page .field + .field,
.admin-page .settings-toggle + .field,
.admin-page .field + .settings-toggle {
  margin-top: 10px;
}

.admin-page .field > label {
  margin-bottom: 2px;
}

.choice-field {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-field > button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(185, 107, 255, 0.015)),
    rgba(255, 255, 255, 0.012);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 720;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.choice-field > button:hover {
  border-color: rgba(220, 203, 255, 0.26);
  color: var(--white);
}

.choice-field > button.active {
  border-color: rgba(185, 107, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(185, 107, 255, 0.14)),
    rgba(185, 107, 255, 0.06);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(89, 30, 145, 0.16);
}

.choice-field.compact > button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.63rem;
}

/* Fixed-height modal shells with locked headers and footers */
.settings-modal-panel,
.media-modal-panel,
.asset-detail-panel,
.time-picker-panel,
.button-editor-panel,
.library-meta-panel {
  height: min(720px, calc(100svh - 40px));
  max-height: none;
}

.settings-modal-panel {
  display: flex;
  flex-direction: column;
}

.settings-tab-panels {
  min-height: 0;
  max-height: none;
  flex: 1;
  overflow-y: auto;
}

.settings-modal-footer {
  flex: 0 0 auto;
}

.production-media-modal .media-modal-panel {
  height: min(720px, calc(100svh - 40px));
}

.time-picker-modal,
.button-editor-modal,
.library-meta-modal {
  position: fixed;
  z-index: 14000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.library-meta-modal {
  z-index: 14500;
}

.time-picker-modal.open,
.button-editor-modal.open,
.library-meta-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.time-picker-panel,
.button-editor-panel,
.library-meta-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 100%);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #14141c;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.64);
}

.time-picker-panel {
  width: min(560px, 100%);
}

.time-picker-panel > header,
.button-editor-panel > header,
.library-meta-panel > header,
.time-picker-panel > footer,
.button-editor-panel > footer,
.library-meta-panel > footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px;
}

.time-picker-panel > header,
.button-editor-panel > header,
.library-meta-panel > header {
  border-bottom: 1px solid var(--border);
}

.time-picker-panel > footer,
.button-editor-panel > footer,
.library-meta-panel > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.time-picker-panel h2,
.button-editor-panel h2,
.library-meta-panel h2 {
  margin: 5px 0 0;
  font-size: 1.45rem;
}

.time-picker-body,
.button-editor-body,
.library-meta-body {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 18px;
  padding: 22px;
  overflow-y: auto;
}

.library-meta-body > img {
  width: 100%;
  max-height: 230px;
  border-radius: 13px;
  background: #09090d;
  object-fit: contain;
}

/* Schedule */
.schedule-admin-list {
  display: grid;
  gap: 10px;
}

.schedule-admin-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: end;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.016);
}

.schedule-day-toggle,
.custom-time-trigger {
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
}

.schedule-day-toggle {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 9px 11px;
  text-align: left;
}

.schedule-day-toggle > span {
  grid-row: 1 / 3;
  color: var(--violet-bright);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.schedule-day-toggle > strong {
  color: var(--white);
  font-size: 0.72rem;
}

.schedule-day-toggle > small {
  font-size: 0.6rem;
}

.schedule-day-toggle.active {
  border-color: rgba(185, 107, 255, 0.45);
  background: rgba(185, 107, 255, 0.09);
}

.custom-time-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  text-align: left;
}

.custom-time-trigger > span {
  color: var(--white);
  font-weight: 740;
}

.custom-time-trigger > small {
  color: var(--violet-pale);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}

/* Page builder widgets and unblocked image controls */
.page-widget-controls {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.page-widget-controls > .eyebrow {
  margin-bottom: 4px;
}

.page-widget-controls > button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.016);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.page-widget-controls > button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--violet-bright);
}

.page-widget-controls > button strong {
  color: var(--white);
  font-size: 0.67rem;
}

.page-widget-controls > button small {
  font-size: 0.57rem;
}

.page-widget-controls > button.active {
  border-color: rgba(185, 107, 255, 0.42);
  background: rgba(185, 107, 255, 0.08);
}

.page-preview-widget {
  padding: 42px 34px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}

.page-preview-widget h2 {
  margin: 8px 0 18px;
}

.page-preview-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-preview-journal-grid > div {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.page-preview-journal-grid img {
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 7px;
  object-fit: cover;
}

.page-preview-journal-grid strong {
  font-size: 0.67rem;
}

.builder-image-frame {
  isolation: isolate;
}

.page-preview-hero > .inline-page-image {
  z-index: auto;
}

.inline-page-image img {
  pointer-events: none;
}

.inline-page-image > button,
.image-change-button {
  z-index: 30;
  pointer-events: auto;
}

.builder-image-frame .image-change-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(220, 203, 255, 0.2);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.84);
  color: var(--violet-pale);
  font-size: 0.62rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

/* Image library upload */
.library-upload-zone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px dashed rgba(185, 107, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 20%, rgba(185, 107, 255, 0.09), transparent 36%),
    rgba(255, 255, 255, 0.014);
}

.library-upload-zone.is-dragover,
.library-upload-zone.is-drag-over {
  border-color: var(--violet-bright);
  background: rgba(185, 107, 255, 0.09);
}

.library-upload-zone > div:not(.library-upload-progress) {
  display: grid;
  gap: 4px;
}

.library-upload-zone strong {
  color: var(--white);
  font-size: 0.74rem;
}

.library-upload-zone span {
  color: var(--muted);
  font-size: 0.63rem;
}

.library-upload-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.library-upload-progress[hidden] {
  display: none;
}

.library-upload-progress > span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.library-upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a2be2, #d3a6ff);
  box-shadow: 0 0 16px rgba(185, 107, 255, 0.5);
  transition: width 100ms linear;
}

.library-upload-progress strong {
  font-size: 0.61rem;
}

/* Compact expandable product cards */
.merch-product-editor-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merch-product-editor {
  display: block;
  padding: 0;
  overflow: hidden;
}

.merch-product-summary {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) auto 18px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.merch-product-summary > img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
}

.merch-product-summary > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.merch-product-summary strong,
.merch-product-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merch-product-summary strong {
  font-size: 0.72rem;
}

.merch-product-summary small {
  color: var(--muted);
  font-size: 0.61rem;
}

.merch-product-summary > i {
  margin: 0;
  font-style: normal;
}

.merch-product-summary > b {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.merch-product-editor.open {
  grid-column: 1 / -1;
  border-color: rgba(185, 107, 255, 0.32);
}

.merch-product-editor.open .merch-product-summary > b {
  transform: rotate(225deg) translate(-2px, -2px);
}

.merch-product-editor-details {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 17px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.merch-product-editor-details[hidden] {
  display: none;
}

/* Asset manager */
.asset-workspace.is-updating {
  opacity: 0.84;
  transition: opacity 90ms ease;
}

.asset-folder-draft {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(185, 107, 255, 0.48);
  border-radius: 12px;
  background: rgba(185, 107, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(185, 107, 255, 0.05);
}

.asset-folder-draft input {
  min-width: 0;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid rgba(220, 203, 255, 0.2);
  outline: 0;
  background: transparent;
  color: var(--white);
  font-weight: 720;
}

.asset-folder-draft small {
  color: var(--muted);
  font-size: 0.58rem;
}

.asset-detail-meta {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .schedule-admin-row {
    grid-template-columns: 135px minmax(0, 1fr);
  }

  .schedule-time-field {
    grid-column: 2;
  }

  .merch-product-editor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .time-picker-modal,
  .button-editor-modal,
  .library-meta-modal,
  .media-modal,
  .settings-modal,
  .asset-detail-modal {
    padding: 10px;
  }

  .settings-modal-panel,
  .media-modal-panel,
  .asset-detail-panel,
  .time-picker-panel,
  .button-editor-panel,
  .library-meta-panel,
  .production-media-modal .media-modal-panel {
    height: calc(100svh - 20px);
    border-radius: 15px;
  }

  .schedule-admin-row,
  .merch-product-editor-details {
    grid-template-columns: 1fr;
  }

  .schedule-time-field {
    grid-column: auto;
  }

  .library-upload-zone {
    grid-template-columns: auto 1fr;
  }

  .library-upload-zone > .filter-chip {
    grid-column: 1 / -1;
  }

  .merch-product-editor-list {
    grid-template-columns: 1fr;
  }

  .merch-product-summary {
    grid-template-columns: 54px minmax(0, 1fr) 16px;
  }

  .merch-product-summary > i {
    display: none;
  }

  .page-preview-journal-grid {
    grid-template-columns: 1fr;
  }
}

/* Ordered page editor and expanded live content */
.page-section-palette nav button {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  cursor: grab;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.page-section-palette nav button:active {
  cursor: grabbing;
}

.page-section-palette nav button strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-section-palette nav button small {
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-section-palette nav button.section-disabled {
  opacity: 0.4;
  border-style: dashed;
  background: rgba(0, 0, 0, 0.12);
}

.page-section-palette nav button.is-dragging {
  opacity: 0.25;
}

.page-section-palette nav button.is-drag-over {
  transform: translateY(2px);
  border-color: var(--violet-bright);
  box-shadow: 0 -3px 0 rgba(185, 107, 255, 0.5);
}

.page-preview-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.page-preview-values {
  display: grid;
  gap: 9px;
}

.page-preview-values > div,
.page-preview-format-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.page-preview-values strong {
  font-size: 0.74rem;
}

.page-preview-values span,
.page-preview-format-grid p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.page-preview-live-feature,
.schedule-widget-live-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 12px;
  margin-top: 20px;
}

.page-preview-stream-image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 14px;
  background: #09090d;
}

.page-preview-stream-image > .inline-page-image {
  position: absolute;
  inset: 0;
}

.page-preview-stream-image > .inline-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-preview-stream-image > div {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: 42px 18px 17px;
  background: linear-gradient(transparent, rgba(8, 8, 12, 0.94));
}

.page-preview-stream-image > div > strong {
  color: var(--white);
  font-size: 1.05rem;
}

.page-preview-stream-image > div > span {
  color: var(--violet-pale);
  font-size: 0.65rem;
}

.page-preview-live-feature > aside {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.page-preview-live-feature > aside h3 {
  margin: 7px 0 18px;
}

.page-preview-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.page-preview-format-grid h3 {
  margin: 0;
  font-size: 0.9rem;
}

/* Live page header image */
.live-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.live-page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 13, 18, 0.96), rgba(13, 13, 18, 0.5)),
    linear-gradient(0deg, rgba(13, 13, 18, 0.92), transparent 60%);
}

.page-hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.page-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Complete schedule widget preview */
.schedule-widget-preview {
  margin-bottom: 18px;
  padding: 22px;
  overflow: hidden;
}

.schedule-widget-preview-copy {
  max-width: 720px;
  margin-bottom: 20px;
}

.schedule-widget-preview-copy h2 {
  margin: 8px 0 10px;
}

.schedule-widget-preview-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.schedule-widget-live-feature .stream-card {
  min-height: 380px;
}

.schedule-widget-live-feature .schedule-card {
  min-height: 380px;
}

.schedule-widget-preview > .text-arrow {
  margin-top: 18px;
}

/* Merch admin tabs */
.merch-admin-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.merch-admin-tabs button {
  min-height: 40px;
  flex: 1;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 720;
  cursor: pointer;
}

.merch-admin-tabs button.active {
  border-color: rgba(185, 107, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(185, 107, 255, 0.1)),
    rgba(185, 107, 255, 0.05);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.merch-admin-panel {
  animation: merch-panel-in 160ms ease both;
}

.merch-admin-panel[hidden] {
  display: none;
}

.merch-admin-panel[data-merch-admin-panel="settings"] {
  max-width: 760px;
}

.merch-widget-preview-card {
  min-width: 0;
}

@keyframes merch-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar folder rows and deletion */
.asset-tree-folder-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 3px;
  align-items: center;
  border-radius: 9px;
}

.asset-tree-folder-row > [data-asset-workspace-folder] {
  width: 100%;
}

.asset-tree-folder-row.active > [data-asset-workspace-folder],
.asset-tree-folder-row:hover > [data-asset-workspace-folder] {
  border-color: rgba(185, 107, 255, 0.35);
  background: rgba(185, 107, 255, 0.1);
  color: var(--white);
}

.asset-tree-nav .asset-folder-delete-button {
  display: grid;
  width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9c929f;
  font-size: 0.82rem;
  text-align: center;
}

.asset-tree-nav .asset-folder-delete-button:hover {
  border-color: rgba(255, 116, 147, 0.28);
  background: rgba(255, 116, 147, 0.08);
  color: #ff9bb2;
}

.asset-tree-nav .asset-folder-draft {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(185, 107, 255, 0.48);
  border-radius: 9px;
  background: rgba(185, 107, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(220, 203, 255, 0.04);
}

.asset-tree-nav .asset-folder-draft input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
}

.asset-tree-nav .asset-folder-draft small {
  color: var(--violet-pale);
}

/* Asset upload progress */
.asset-upload-progress-panel {
  width: min(540px, 100%);
}

.asset-upload-progress-body {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 38px 28px;
  text-align: center;
}

.asset-upload-progress-body > strong {
  color: var(--white);
  font-size: 0.9rem;
}

.asset-upload-progress-body > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.asset-upload-progress-body .library-upload-progress {
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

@media (max-width: 820px) {
  .page-preview-story-grid,
  .page-preview-live-feature,
  .schedule-widget-live-feature {
    grid-template-columns: 1fr;
  }

  .page-preview-format-grid {
    grid-template-columns: 1fr;
  }

  .schedule-widget-live-feature .stream-card,
  .schedule-widget-live-feature .schedule-card {
    min-height: 330px;
  }
}

@media (max-width: 680px) {
  .merch-admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .asset-tree-folder-row {
    min-width: 0;
  }
}
