:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0b1017;
  --surface: #101722;
  --surface-2: #141e2c;
  --ink: #f4efe6;
  --muted: #a5b0be;
  --line: rgba(244, 239, 230, 0.14);
  --amber: #f5b642;
  --aqua: #20c7d9;
  --green: #54d29b;
  --red: #ff5a3d;
  --shadow: rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --max: 1180px;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  color: #10182b;
  background: #f7f9fc;
}

.legal-page .site-header {
  position: static;
}

.legal-page .legal-nav {
  display: flex;
}

.legal-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.legal-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid #dce3ed;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 10px 0 14px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.legal-content section {
  padding: 28px 0;
  border-bottom: 1px solid #dce3ed;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: #46536a;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content a {
  color: #075f73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-review-note {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid #efc36d;
  border-radius: 8px;
  background: #fff9eb;
}

.legal-review-note p {
  margin: 6px 0 0;
}

@media (max-width: 760px) {
  .legal-page .legal-nav {
    display: none;
  }

  .legal-content {
    width: min(100% - 28px, 900px);
    padding: 38px 0 56px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 239, 230, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 80px;
  color: var(--ink);
}

main {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(245, 182, 66, 0.12), transparent 36%, rgba(32, 199, 217, 0.1) 72%, transparent);
  opacity: 0.85;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
  scroll-margin-top: 96px;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.74);
  color: var(--ink);
  outline: none;
  padding: 14px 15px;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  background: var(--amber);
  color: #0a0d13;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.07);
}

.site-nav a.nav-login {
  margin-left: 6px;
  color: #071017;
  background: var(--ink);
  font-weight: 900;
}

.site-nav a.nav-login:hover {
  color: #071017;
  background: var(--amber);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.06);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section {
  position: relative;
  scroll-margin-top: 86px;
  min-height: min(860px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 44px) 56px;
  overflow-x: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 182, 66, 0.7), rgba(32, 199, 217, 0.5), transparent);
}

.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 34%, rgba(32, 199, 217, 0.18), transparent 28%),
    radial-gradient(circle at 18% 52%, rgba(245, 182, 66, 0.11), transparent 34%);
}

.hero-copy,
.hero-visual,
.band,
.site-footer {
  position: relative;
}

.hero-copy,
.hero-visual,
.media-copy,
.media-device-panel,
.platform-shell,
.platform-card {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.45rem, 4.35vw, 4.35rem);
  line-height: 1.04;
  font-weight: 900;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.copy-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--amber);
  color: #11100b;
  box-shadow: 0 16px 38px rgba(245, 182, 66, 0.2);
}

.button.secondary,
.copy-button {
  background: rgba(244, 239, 230, 0.07);
  color: var(--ink);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin: 34px 0 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.proof-strip div {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 23, 34, 0.88);
}

.proof-strip dt {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
}

.proof-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-visual {
  align-self: end;
}

.multi-device-stage {
  min-height: 650px;
  position: relative;
  display: block;
  isolation: isolate;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.multi-device-stage::before,
.multi-device-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.multi-device-stage::before {
  z-index: -4;
  inset: 2% -2% 4%;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 239, 230, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(32, 199, 217, 0.2), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(245, 182, 66, 0.16), transparent 24%),
    linear-gradient(135deg, #111721 0%, #06080d 62%, #161017 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.08),
    0 46px 120px rgba(0, 0, 0, 0.46);
}

.multi-device-stage::after {
  z-index: -3;
  left: 6%;
  right: 3%;
  bottom: 3%;
  height: 22%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(32, 199, 217, 0.2), rgba(245, 182, 66, 0.12), transparent),
    rgba(0, 0, 0, 0.36);
  filter: blur(34px);
  opacity: 0.8;
}

.room-layer {
  position: absolute;
  z-index: -2;
  inset: 7% 3% 5%;
  overflow: hidden;
  border-radius: 20px;
}

.room-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(244, 239, 230, 0.08) 58% 59%, rgba(0, 0, 0, 0.22) 59%),
    linear-gradient(90deg, rgba(244, 239, 230, 0.05), transparent 32%, rgba(244, 239, 230, 0.03));
}

.room-window {
  position: absolute;
  left: 5%;
  top: 12%;
  width: 17%;
  height: 38%;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(244, 239, 230, 0.09) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(32, 199, 217, 0.18), rgba(8, 13, 19, 0.36));
}

.room-console {
  position: absolute;
  right: 9%;
  bottom: 16%;
  width: 46%;
  height: 8%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(244, 239, 230, 0.16), rgba(244, 239, 230, 0.06));
  box-shadow: 0 22px 30px rgba(0, 0, 0, 0.34);
}

.room-sofa {
  position: absolute;
  left: 6%;
  bottom: 11%;
  width: 30%;
  height: 12%;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.16), rgba(84, 93, 103, 0.18));
}

.room-viewer {
  position: absolute;
  left: 20%;
  bottom: 15%;
  width: 42px;
  height: 74px;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 17%, rgba(244, 239, 230, 0.28) 0 18%, transparent 19%),
    linear-gradient(180deg, transparent 24%, rgba(7, 9, 13, 0.72) 25%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.room-plant {
  position: absolute;
  right: 4%;
  bottom: 24%;
  width: 46px;
  height: 84px;
  border-radius: 999px 999px 6px 6px;
  background:
    radial-gradient(circle at 30% 22%, rgba(84, 210, 155, 0.42), transparent 36%),
    radial-gradient(circle at 66% 16%, rgba(32, 199, 217, 0.28), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(244, 239, 230, 0.12) 59%);
}

.hero-tv-shell {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 10%;
  width: min(760px, 88%);
  transform: rotateY(-7deg) rotateX(2deg);
  transform-origin: center;
  filter: drop-shadow(0 38px 74px rgba(0, 0, 0, 0.5));
  animation: hero-tv-breathe 7.5s ease-in-out infinite;
}

.hero-tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 10px solid #161b23;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.86), rgba(4, 7, 12, 0.22) 56%, rgba(4, 6, 10, 0.7)),
    radial-gradient(circle at 78% 24%, rgba(32, 199, 217, 0.42), transparent 27%),
    radial-gradient(circle at 36% 18%, rgba(245, 182, 66, 0.22), transparent 26%),
    linear-gradient(135deg, #162839 0%, #071017 58%, #06070b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 239, 230, 0.12),
    0 0 80px rgba(32, 199, 217, 0.13);
}

.app-demo-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05070a;
  filter: saturate(1.08) contrast(1.04);
}

.hero-tv-screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(244, 239, 230, 0.18) 43%, transparent 47%),
    linear-gradient(180deg, transparent 0 72%, rgba(0, 0, 0, 0.34));
  opacity: 0.64;
  pointer-events: none;
}

.screen-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 22px;
}

.avatar-dot {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(244, 239, 230, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #f4efe6 0 18%, transparent 19%),
    radial-gradient(circle at 50% 72%, #20c7d9 0 30%, transparent 31%),
    #17212d;
}

.screen-topbar nav {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.screen-topbar nav span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(244, 239, 230, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
}

.screen-topbar nav span.active {
  color: #061015;
  background: rgba(244, 239, 230, 0.92);
}

.screen-topbar strong {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.86rem;
}

.screen-spotlight {
  position: relative;
  z-index: 2;
  max-width: 470px;
  padding: 42px 30px 18px;
}

.video-spotlight {
  width: fit-content;
  max-width: min(430px, calc(100% - 56px));
  margin: 132px 0 0 30px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 14px;
  background: rgba(5, 8, 12, 0.6);
  backdrop-filter: blur(14px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(84, 210, 155, 0.4);
  border-radius: 999px;
  background: rgba(84, 210, 155, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-spotlight h2 {
  margin: 14px 0 0;
  font-size: clamp(1.95rem, 4.4vw, 3.45rem);
  line-height: 1;
}

.video-spotlight h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
}

.screen-spotlight p {
  margin: 12px 0 0;
  color: rgba(244, 239, 230, 0.72);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.screen-tiles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 24px 0;
}

.screen-tiles article {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: end;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 10px;
  background: rgba(244, 239, 230, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.screen-tiles article::before {
  content: "";
  display: block;
  position: absolute;
}

.screen-tiles span,
.screen-tiles strong {
  display: block;
  position: relative;
}

.screen-tiles span {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-tiles strong {
  margin-top: 5px;
  font-size: 0.94rem;
}

.tile-live {
  background:
    radial-gradient(circle at 24% 24%, rgba(245, 182, 66, 0.5), transparent 24%),
    linear-gradient(135deg, rgba(32, 199, 217, 0.25), rgba(244, 239, 230, 0.06)) !important;
}

.tile-cinema {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 90, 61, 0.44), transparent 28%),
    linear-gradient(135deg, rgba(245, 182, 66, 0.22), rgba(244, 239, 230, 0.06)) !important;
}

.tile-series {
  background:
    radial-gradient(circle at 52% 18%, rgba(84, 210, 155, 0.44), transparent 27%),
    linear-gradient(135deg, rgba(32, 199, 217, 0.2), rgba(244, 239, 230, 0.06)) !important;
}

.tile-guide {
  background:
    radial-gradient(circle at 60% 22%, rgba(244, 239, 230, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(92, 76, 221, 0.28), rgba(244, 239, 230, 0.06)) !important;
}

.app-dot-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 18px 24px 22px;
  overflow: hidden;
}

.app-dot-row span {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.93);
  color: #071017;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.app-dot-row span:nth-child(2n) {
  background: var(--aqua);
}

.app-dot-row span:nth-child(3n) {
  background: var(--amber);
}

.tv-foot {
  display: block;
  width: 26%;
  height: 10px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.12);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.28);
}

.floating-device,
.activation-flow-card,
.playlist-flow-card {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(244, 239, 230, 0.14);
  background: rgba(9, 13, 19, 0.9);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

.floating-device {
  overflow: hidden;
  border-radius: 20px;
  animation: hero-device-float 6.2s ease-in-out infinite;
}

.tablet-device {
  left: 0;
  bottom: 16%;
  width: 36%;
  aspect-ratio: 16 / 10;
  border: 8px solid #080b10;
  transform: rotateY(10deg) rotateX(2deg);
}

.phone-device {
  left: 31%;
  bottom: 6%;
  width: 15%;
  min-width: 92px;
  aspect-ratio: 9 / 18;
  border: 7px solid #080b10;
  border-radius: 24px;
  animation-delay: -2.1s;
}

.laptop-device {
  right: 1%;
  bottom: 13%;
  width: 42%;
  aspect-ratio: 16 / 9;
  border: 7px solid #080b10;
  transform: rotateY(-8deg) rotateX(2deg);
  animation-delay: -3.2s;
}

.mini-screen {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  padding: 14px;
  background:
    radial-gradient(circle at 78% 24%, rgba(32, 199, 217, 0.38), transparent 28%),
    linear-gradient(135deg, #18202d, #06080c 72%);
}

.mini-screen span,
.mini-screen strong,
.mini-screen small {
  display: block;
}

.mini-live {
  width: fit-content;
  min-height: 24px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 90, 61, 0.15);
  color: #ff8d78;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-video {
  margin-top: 14px;
  min-height: 82px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(245, 182, 66, 0.54), transparent 50%),
    radial-gradient(circle at 68% 34%, rgba(32, 199, 217, 0.7), transparent 32%),
    #111b27;
}

.mini-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-controls span,
.phone-list span {
  height: 7px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.2);
}

.mini-controls span {
  flex: 1;
}

.phone-device strong,
.laptop-device strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
}

.phone-device small,
.laptop-device small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.phone-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.phone-list span {
  width: 100%;
}

.play-orb {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 45%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(244, 239, 230, 0.9);
  border-radius: 50%;
  background: rgba(7, 10, 16, 0.58);
  box-shadow:
    0 0 0 12px rgba(244, 239, 230, 0.06),
    0 22px 48px rgba(0, 0, 0, 0.44);
  transform: translate(-50%, -50%);
  animation: hero-play-pulse 3.2s ease-in-out infinite;
}

.play-orb::before {
  content: "";
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--ink);
}

.activation-flow-card,
.playlist-flow-card {
  border-radius: 14px;
  padding: 15px;
}

.activation-flow-card span,
.activation-flow-card strong,
.activation-flow-card small,
.playlist-flow-card span,
.playlist-flow-card strong,
.playlist-flow-card small {
  display: block;
}

.activation-flow-card span,
.playlist-flow-card span {
  color: var(--aqua);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.activation-flow-card strong,
.playlist-flow-card strong {
  margin-top: 7px;
}

.activation-flow-card small,
.playlist-flow-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.activation-flow-card {
  left: 4%;
  top: 6%;
  width: min(250px, 40%);
}

.playlist-flow-card {
  right: 3%;
  top: 6%;
  width: min(285px, 42%);
}

.channel-carousel {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 6%;
  bottom: 0;
  height: 168px;
  transform-style: preserve-3d;
  perspective: 1100px;
  pointer-events: none;
}

.channel-carousel article {
  position: absolute;
  bottom: 0;
  width: 132px;
  height: 150px;
  display: grid;
  align-content: end;
  padding: 13px;
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-radius: 14px;
  background:
    radial-gradient(circle at 60% 24%, rgba(32, 199, 217, 0.5), transparent 30%),
    linear-gradient(145deg, rgba(244, 239, 230, 0.13), rgba(7, 9, 13, 0.74));
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.42);
  animation: hero-carousel-drift 9s ease-in-out infinite;
}

.channel-carousel article:nth-child(1) {
  left: 0;
  opacity: 0.52;
  transform: translateZ(-120px) rotateY(34deg) scale(0.82);
}

.channel-carousel article:nth-child(2) {
  left: 19%;
  opacity: 0.72;
  transform: translateZ(-48px) rotateY(18deg) scale(0.92);
  animation-delay: -1.4s;
}

.channel-carousel article:nth-child(3) {
  left: 40%;
  transform: translateZ(28px) scale(1.04);
  animation-delay: -2.8s;
}

.channel-carousel article:nth-child(4) {
  right: 18%;
  opacity: 0.72;
  transform: translateZ(-48px) rotateY(-18deg) scale(0.92);
  animation-delay: -4.2s;
}

.channel-carousel article:nth-child(5) {
  right: 0;
  opacity: 0.52;
  transform: translateZ(-120px) rotateY(-34deg) scale(0.82);
  animation-delay: -5.6s;
}

.channel-carousel span,
.channel-carousel strong {
  display: block;
}

.channel-carousel span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-carousel strong {
  margin-top: 6px;
}

@keyframes hero-tv-breathe {
  0%,
  100% {
    transform: rotateY(-7deg) rotateX(2deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateY(-5deg) rotateX(2deg) translate3d(0, -8px, 16px);
  }
}

@keyframes hero-device-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes hero-play-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 12px rgba(244, 239, 230, 0.06),
      0 22px 48px rgba(0, 0, 0, 0.44);
  }
  50% {
    box-shadow:
      0 0 0 18px rgba(32, 199, 217, 0.1),
      0 28px 58px rgba(0, 0, 0, 0.54);
  }
}

@keyframes hero-carousel-drift {
  0%,
  100% {
    margin-bottom: 0;
  }
  50% {
    margin-bottom: 10px;
  }
}

.product-hero-stage {
  min-height: 560px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.product-hero-stage::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 7% 0 3%;
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(16, 23, 34, 0.86), rgba(6, 10, 14, 0.94));
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 40px 120px rgba(0, 0, 0, 0.42);
}

.product-screen {
  position: relative;
  width: min(820px, 100%);
  margin-left: auto;
  border: 10px solid #171C24;
  border-radius: 22px;
  overflow: hidden;
  background: #05070a;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(244, 239, 230, 0.12);
}

.product-screen-bar {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  background: rgba(8, 12, 18, 0.94);
}

.product-screen-bar span {
  font-weight: 900;
}

.product-screen-bar strong {
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.product-screen-body {
  display: grid;
  grid-template-columns: 68px 1fr;
  min-height: 430px;
  background:
    radial-gradient(circle at 80% 18%, rgba(32, 199, 217, 0.22), transparent 26%),
    linear-gradient(135deg, #0b1520, #07090d 62%);
}

.product-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 16px;
  border-right: 1px solid rgba(244, 239, 230, 0.08);
  background: rgba(7, 9, 13, 0.64);
}

.product-rail span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.1);
}

.product-rail span.active {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(245, 182, 66, 0.14);
}

.product-dashboard {
  padding: 28px;
}

.continue-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 22px;
  border: 1px solid rgba(245, 182, 66, 0.5);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(245, 182, 66, 0.18), transparent 55%),
    rgba(244, 239, 230, 0.06);
}

.continue-card span,
.continue-card strong,
.continue-card small {
  display: block;
}

.continue-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.continue-card strong {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.continue-card small {
  margin-top: 8px;
  color: var(--muted);
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.product-category-grid article {
  min-height: 144px;
  padding: 18px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 10px;
  background: rgba(16, 23, 34, 0.72);
}

.product-category-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #061014;
  background: var(--aqua);
  font-weight: 950;
}

.product-category-grid strong,
.product-category-grid small {
  display: block;
}

.product-category-grid strong {
  margin-top: 20px;
}

.product-category-grid small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.portal-receipt,
.activation-receipt {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 12px;
  background: rgba(15, 22, 32, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.portal-receipt {
  right: 2%;
  bottom: 0;
  width: min(360px, 50%);
  padding: 18px;
}

.activation-receipt {
  left: 2%;
  bottom: 8%;
  width: min(260px, 42%);
  padding: 16px;
}

.portal-receipt span,
.portal-receipt strong,
.portal-receipt small,
.activation-receipt span,
.activation-receipt strong,
.activation-receipt small {
  display: block;
}

.portal-receipt span,
.activation-receipt span {
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-receipt strong,
.activation-receipt strong {
  margin-top: 8px;
}

.portal-receipt small,
.activation-receipt small {
  margin-top: 7px;
  color: var(--muted);
}

.receipt-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.receipt-actions em {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--green);
  background: rgba(84, 210, 155, 0.12);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.tv-lounge {
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.tv-lounge::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 12% -4% 0;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(21, 27, 37, 0.4), rgba(3, 11, 16, 0.7)),
    radial-gradient(circle at 20% 92%, rgba(245, 182, 66, 0.16), transparent 24%);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 40px 90px rgba(0, 0, 0, 0.42);
}

.tv-lounge::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 10%;
  right: 8%;
  bottom: 6%;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(18px);
}

.neon-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neon-chip {
  position: absolute;
  min-width: 64px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 199, 217, 0.72);
  border-radius: 14px;
  background: rgba(13, 18, 29, 0.7);
  color: #dffbff;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow:
    0 0 16px rgba(32, 199, 217, 0.45),
    inset 0 0 18px rgba(245, 182, 66, 0.08);
  animation: float-neon 5.6s ease-in-out infinite;
}

.chip-live {
  left: 12%;
  top: 8%;
}

.chip-wifi {
  left: 43%;
  top: 1%;
  animation-delay: -1.2s;
}

.chip-uhd {
  right: 6%;
  top: 14%;
  animation-delay: -2.2s;
}

.chip-cast {
  left: 5%;
  bottom: 24%;
  animation-delay: -3.1s;
}

.chip-iptv {
  right: 2%;
  bottom: 18%;
  animation-delay: -4s;
}

.tv-frame {
  width: min(800px, 100%);
  border: 12px solid #171C24;
  border-radius: 28px;
  background: #05070A;
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(244, 239, 230, 0.12),
    0 0 80px rgba(32, 199, 217, 0.14);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
}

.tv-screen {
  min-height: 430px;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(4, 6, 9, 0.72), rgba(4, 8, 12, 0.25)),
    radial-gradient(circle at 72% 28%, rgba(32, 199, 217, 0.4), transparent 32%),
    linear-gradient(135deg, #153747 0%, #0D1825 42%, #06080C 100%);
}

.tv-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 58px;
}

.tv-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(244, 239, 230, 0.12);
  color: rgba(244, 239, 230, 0.72);
  font-weight: 800;
}

.tv-tabs button.active {
  color: #0A1118;
  background: rgba(244, 239, 230, 0.92);
}

.tv-spotlight p,
.tv-spotlight h2,
.tv-spotlight span {
  display: block;
  max-width: 560px;
}

.tv-spotlight p {
  margin: 0 0 12px;
  color: #F4EFE6;
  font-weight: 900;
}

.tv-spotlight h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.tv-spotlight span {
  margin-top: 12px;
  color: rgba(244, 239, 230, 0.72);
}

.program-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.program-card {
  min-height: 96px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 182, 66, 0.18), transparent 44%),
    rgba(8, 11, 16, 0.74);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.program-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(32, 199, 217, 0.24), transparent 48%),
    rgba(8, 11, 16, 0.74);
}

.program-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(84, 210, 155, 0.22), transparent 48%),
    rgba(8, 11, 16, 0.74);
}

.program-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(255, 90, 61, 0.18), transparent 48%),
    rgba(8, 11, 16, 0.74);
}

.program-card.active,
.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(32, 199, 217, 0.88);
  box-shadow: 0 18px 36px rgba(32, 199, 217, 0.18);
}

.program-card span,
.program-card strong {
  display: block;
}

.program-card span {
  color: var(--aqua);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card strong {
  margin-top: 20px;
}

.app-dock {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  overflow: hidden;
}

.app-dock span {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.92);
  color: #071017;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  animation: dock-pulse 5s ease-in-out infinite;
}

.app-dock span:nth-child(even) {
  background: var(--aqua);
  animation-delay: -1.8s;
}

.device-float {
  position: absolute;
  right: 0;
  bottom: 7%;
  width: min(260px, 40%);
  padding: 18px;
  border: 1px solid rgba(32, 199, 217, 0.78);
  border-radius: 18px;
  background: rgba(11, 17, 25, 0.9);
  box-shadow: 0 0 34px rgba(32, 199, 217, 0.22);
  animation: float-device 4.8s ease-in-out infinite;
}

.device-float span,
.device-float strong,
.device-float small {
  display: block;
}

.device-float span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.device-float strong {
  margin-top: 8px;
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
}

.device-float small {
  margin-top: 6px;
  color: var(--muted);
}

@keyframes float-neon {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes float-device {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes dock-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 98px) clamp(18px, 4vw, 26px);
  scroll-margin-top: 86px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.experience-band {
  max-width: 1280px;
}

.media-player-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  margin: 0;
  padding: clamp(58px, 8vw, 92px) max(clamp(18px, 4vw, 44px), calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 239, 230, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(32, 199, 217, 0.18), transparent 27%),
    radial-gradient(circle at 14% 88%, rgba(245, 182, 66, 0.14), transparent 28%),
    linear-gradient(135deg, #0d131c 0%, #07090d 58%, #101722 100%);
  background-size: 80px 80px, 80px 80px, auto, auto, auto;
  color: var(--ink);
  overflow: hidden;
}

.media-copy {
  max-width: 790px;
  position: relative;
  z-index: 1;
}

.media-kicker {
  width: fit-content;
  margin: 0 0 10px;
  padding: 8px 11px;
  border: 1px solid rgba(245, 182, 66, 0.34);
  border-radius: var(--radius);
  background: rgba(245, 182, 66, 0.1);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.media-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.45vw, 4.45rem);
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.media-copy h2 span {
  display: block;
  color: var(--amber);
}

.media-copy p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.media-disclaimer {
  max-width: 760px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 182, 66, 0.22);
  border-radius: var(--radius);
  background: rgba(245, 182, 66, 0.08);
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.media-visual-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.human-spotlight,
.human-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-radius: 18px;
  background: rgba(16, 23, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 28px 80px rgba(0, 0, 0, 0.28);
}

.human-spotlight {
  margin: 0;
  min-height: 250px;
}

.human-spotlight img,
.human-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #071017;
  filter: saturate(1.04) contrast(1.04);
}

.human-spotlight img {
  aspect-ratio: 16 / 10;
}

.human-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(5, 8, 12, 0.84));
  pointer-events: none;
}

.human-spotlight figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.human-spotlight span,
.human-card span {
  display: block;
  color: var(--aqua);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.human-spotlight strong {
  display: block;
  max-width: 360px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.media-device-panel {
  position: relative;
  z-index: 1;
  min-height: 332px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 16%, rgba(32, 199, 217, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(244, 239, 230, 0.08), rgba(244, 239, 230, 0.035));
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 28px 80px rgba(0, 0, 0, 0.34);
}

.media-device-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(32, 199, 217, 0.14);
  border-radius: 14px;
  pointer-events: none;
}

.device-panel-kicker {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.media-device-panel > strong {
  max-width: 340px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
}

.device-panel-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(244, 239, 230, 0.11);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.54);
}

.device-panel-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071017;
  background: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.device-panel-row p {
  margin: 0;
}

.device-panel-row b,
.device-panel-row small {
  display: block;
}

.device-panel-row b {
  color: var(--ink);
}

.device-panel-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.platform-band {
  max-width: none;
  padding: clamp(34px, 6vw, 76px) max(clamp(18px, 4vw, 44px), calc((100vw - 1320px) / 2));
  overflow-x: hidden;
}

.human-band {
  max-width: 1280px;
}

.human-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.human-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.human-card img {
  aspect-ratio: 16 / 10.5;
}

.human-card div {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
}

.human-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.06;
}

.human-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 10%, rgba(245, 182, 66, 0.18), transparent 26%),
    radial-gradient(circle at 12% 90%, rgba(32, 199, 217, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(16, 23, 34, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 30px 90px rgba(0, 0, 0, 0.34);
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.platform-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
}

.platform-head p {
  margin: 10px 0 0;
  color: rgba(244, 239, 230, 0.72);
  font-weight: 700;
}

.install-help-button {
  flex: 0 0 auto;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(245, 182, 66, 0.38);
  border-radius: var(--radius);
  padding: 0 28px;
  color: #11100b;
  background: var(--amber);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(245, 182, 66, 0.16);
}

.install-help-button::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-radius: 12px;
  background: rgba(244, 239, 230, 0.065);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--aqua));
  opacity: 0.72;
}

.platform-card:hover {
  transform: translateY(-5px);
  background: rgba(244, 239, 230, 0.1);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.1), 0 24px 46px rgba(0, 0, 0, 0.28);
}

.platform-card.muted-card {
  background: rgba(244, 239, 230, 0.045);
}

.platform-logo-img {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  padding: 7px 8px;
  border: 1px solid rgba(14, 18, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.platform-card div,
.platform-card a,
.platform-card em {
  position: relative;
  z-index: 1;
}

.platform-card div {
  grid-column: 1 / 2;
}

.platform-card small,
.platform-card strong,
.platform-card p {
  display: block;
}

.platform-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-card strong {
  margin-top: 3px;
  font-size: 1rem;
  color: var(--ink);
}

.platform-card p {
  margin: 5px 0 0;
  color: rgba(165, 176, 190, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}

.platform-card em {
  position: absolute;
  right: 16px;
  top: 20px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 182, 66, 0.34);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--amber);
  background: rgba(245, 182, 66, 0.08);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-card a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 199, 217, 0.28);
  border-radius: 50%;
  color: var(--aqua);
  background: rgba(32, 199, 217, 0.1);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(32, 199, 217, 0.12);
}

.platform-card a:hover {
  color: #071017;
  background: var(--aqua);
}

.big-screen-showcase {
  position: relative;
  margin-top: 26px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.1), transparent 18%),
    radial-gradient(circle at 50% 18%, rgba(32, 199, 217, 0.24), transparent 30%),
    linear-gradient(180deg, #1A2426 0%, #0A0F13 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.big-screen-showcase::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background:
    linear-gradient(90deg, rgba(245, 182, 66, 0.16), transparent 34%, rgba(32, 199, 217, 0.14)),
    rgba(244, 239, 230, 0.08);
}

.wall-screen {
  position: relative;
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 4px solid #1B2027;
  border-radius: 8px;
  background: #090C10;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}

.wall-scene {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.28), rgba(5, 8, 12, 0.08)),
    radial-gradient(circle at 74% 22%, rgba(245, 182, 66, 0.48), transparent 18%),
    radial-gradient(circle at 18% 76%, rgba(32, 199, 217, 0.42), transparent 24%),
    linear-gradient(135deg, #1289B5 0%, #79C7D4 44%, #D5A448 100%);
  transition: background 260ms ease;
}

.wall-scene.mode-Maison-connectée {
  background:
    radial-gradient(circle at 18% 34%, rgba(84, 210, 155, 0.5), transparent 22%),
    radial-gradient(circle at 78% 64%, rgba(32, 199, 217, 0.42), transparent 24%),
    linear-gradient(135deg, #132236, #0D1320 56%, #1B2F32);
}

.wall-scene.mode-Photos {
  background:
    radial-gradient(circle at 24% 20%, rgba(245, 182, 66, 0.54), transparent 24%),
    radial-gradient(circle at 74% 58%, rgba(255, 90, 61, 0.34), transparent 22%),
    linear-gradient(135deg, #244F68, #72B6C3 45%, #E1B86B);
}

.wall-scene.mode-Diffusion {
  background:
    radial-gradient(circle at 20% 60%, rgba(32, 199, 217, 0.6), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(245, 182, 66, 0.42), transparent 20%),
    linear-gradient(135deg, #07111A, #123452 58%, #0E1014);
}

.wall-scene.mode-Télécommande {
  background:
    radial-gradient(circle at 22% 28%, rgba(244, 239, 230, 0.28), transparent 20%),
    radial-gradient(circle at 78% 68%, rgba(84, 210, 155, 0.46), transparent 24%),
    linear-gradient(135deg, #111723, #07090D 62%, #243129);
}

.wall-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(244, 239, 230, 0.045) 71px 72px);
}

.scene-copy {
  position: absolute;
  left: 34px;
  top: 34px;
  max-width: 420px;
  z-index: 1;
}

.scene-copy span,
.scene-copy strong {
  display: block;
}

.scene-copy span {
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.scene-copy strong {
  margin-top: 12px;
  font-size: clamp(1.55rem, 3.3vw, 2.8rem);
  line-height: 1.06;
}

.scene-strip {
  position: absolute;
  z-index: 1;
  left: 34px;
  right: 34px;
  bottom: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.scene-card {
  min-width: 150px;
  min-height: 64px;
  border: 1px solid rgba(244, 239, 230, 0.24);
  border-radius: 14px;
  background: rgba(7, 9, 13, 0.52);
  color: var(--ink);
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.scene-card.active {
  border-color: var(--ink);
  background: rgba(7, 9, 13, 0.74);
  box-shadow: 0 0 0 2px rgba(244, 239, 230, 0.18);
}

.mode-dock {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 28px auto 0;
}

.mode-dock button {
  min-height: 82px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(244, 239, 230, 0.92);
  color: #111820;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mode-dock button:hover,
.mode-dock button.active {
  transform: translateY(-8px);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(32, 199, 217, 0.26), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.activation-layout,
.upload-grid,
.simple-upload-layout,
.reseller-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
}

.panel,
.workflow-list article,
.price-card,
.credit-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.84);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.activation-form,
.upload-form,
.support-form {
  display: grid;
  align-content: start;
  gap: 17px;
  padding: clamp(18px, 3vw, 28px);
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.52);
}

.plan-option input {
  width: 18px;
}

.plan-option strong,
.plan-option small {
  display: block;
}

.plan-option small,
.form-note {
  color: var(--muted);
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.activation-console {
  padding: clamp(20px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(245, 182, 66, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(32, 199, 217, 0.12), transparent 72%),
    rgba(16, 23, 34, 0.88);
}

.console-topline,
.license-grid,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(84, 210, 155, 0.13);
}

.device-readout span,
.license-grid span {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}

.device-readout strong {
  display: block;
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.license-grid {
  align-items: stretch;
}

.license-grid div {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.58);
}

.license-grid strong {
  overflow-wrap: anywhere;
}

.copy-button {
  width: fit-content;
}

.upload-band {
  max-width: 1280px;
}

.upload-band .section-heading {
  max-width: 820px;
}

.upload-band .section-heading h2 {
  letter-spacing: 0;
}

.client-portal-page main {
  min-height: 100vh;
}

.client-portal-page .site-header {
  background: rgba(7, 9, 13, 0.88);
}

.client-portal-teaser {
  max-width: 1120px;
}

.portal-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(120deg, rgba(32, 199, 217, 0.14), transparent 44%),
    rgba(12, 18, 26, 0.88);
}

.portal-entry-panel h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.portal-entry-panel p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-hero {
  width: min(100% - 48px, 1180px);
  min-height: 58vh;
  margin: 0 auto;
  padding: clamp(126px, 14vw, 170px) 0 clamp(44px, 8vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.portal-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.portal-hero-copy p:not(.section-kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.portal-device-gate {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(245, 182, 66, 0.12), transparent 48%),
    rgba(12, 18, 26, 0.92);
}

.portal-device-gate input,
.bound-device-field input {
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.portal-workspace {
  width: min(100% - 48px, 1180px);
  margin: 0 auto clamp(52px, 8vw, 90px);
  display: grid;
  gap: 18px;
}

.portal-device-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(84, 210, 155, 0.1), transparent 48%),
    rgba(12, 18, 26, 0.92);
}

.portal-device-summary strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.portal-device-summary small {
  color: var(--muted);
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.05);
}

.portal-tabs button {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.portal-tabs button.active {
  color: #090807;
  border-color: rgba(245, 182, 66, 0.62);
  background: linear-gradient(135deg, var(--amber), #ffe1a3);
  box-shadow: 0 16px 34px rgba(245, 182, 66, 0.18);
}

.portal-panel {
  display: block;
}

.portal-panel .upload-form,
.portal-panel .simple-manager-panel {
  min-height: 0;
}

.bound-device-field input {
  background: rgba(245, 182, 66, 0.08);
}

.simple-upload-layout {
  position: relative;
  align-items: stretch;
}

.simple-upload-layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6%;
  right: 6%;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 199, 217, 0.7), rgba(245, 182, 66, 0.58), transparent);
  box-shadow: 0 0 32px rgba(32, 199, 217, 0.26);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.52);
}

.segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--aqua);
  color: #061014;
}

.xtream-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.simple-upload-form {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.055), transparent 18%),
    rgba(16, 23, 34, 0.92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
}

.simple-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.device-entry-card {
  background:
    linear-gradient(90deg, rgba(32, 199, 217, 0.08), transparent 42%),
    rgba(7, 9, 13, 0.16);
}

.device-entry-card input[name="uploadDeviceId"] {
  min-height: 58px;
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  text-transform: uppercase;
}

.simple-step:last-child {
  border-bottom: 0;
}

.playlist-entry-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.simple-step label,
.playlist-entry-card .segmented,
.playlist-entry-card .wide-field,
.playlist-entry-card .button {
  grid-column: 1 / -1;
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #061014;
  background: var(--aqua);
  font-weight: 950;
}

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  font-size: 1.02rem;
}

.step-copy small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.portal-sync-panel {
  min-height: 100%;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(32, 199, 217, 0.13), transparent 44%),
    linear-gradient(315deg, rgba(245, 182, 66, 0.11), transparent 52%),
    rgba(16, 23, 34, 0.88);
}

.simple-manager-panel {
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(32, 199, 217, 0.15), transparent 34%),
    linear-gradient(315deg, rgba(245, 182, 66, 0.11), transparent 56%),
    rgba(16, 23, 34, 0.92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.simple-manager-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.simple-manager-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.simple-manager-head .section-kicker {
  margin-bottom: 8px;
}

.sync-preview {
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(32, 199, 217, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.42), rgba(7, 9, 13, 0.72)),
    rgba(244, 239, 230, 0.045);
}

.sync-preview-screen {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.86), rgba(7, 17, 24, 0.58)),
    linear-gradient(135deg, #071017, #12313b 56%, #0b0f14);
  box-shadow: inset 0 0 46px rgba(32, 199, 217, 0.12);
}

.sync-preview-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(244, 239, 230, 0.16) 46%, transparent 55%);
  transform: translateX(-100%);
  animation: sync-scan 5.2s ease-in-out infinite;
}

.sync-preview-topline,
.sync-preview-device,
.sync-preview-playlist,
.sync-preview-rail {
  position: relative;
  z-index: 1;
}

.sync-preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-preview-topline strong {
  color: var(--green);
}

.sync-preview-device,
.sync-preview-playlist {
  margin-top: 22px;
}

.sync-preview-device span,
.sync-preview-playlist span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-preview-device strong,
.sync-preview-playlist strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.sync-preview-device strong {
  color: var(--amber);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
}

.sync-preview-playlist strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.sync-preview-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sync-preview-rail span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), rgba(245, 182, 66, 0.86));
  animation: sync-pulse 2.8s ease-in-out infinite;
}

.sync-preview-rail span:nth-child(2) {
  animation-delay: -0.8s;
}

.sync-preview-rail span:nth-child(3) {
  animation-delay: -1.6s;
}

@keyframes sync-scan {
  0%,
  42% {
    transform: translateX(-100%);
  }
  68%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes sync-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  45% {
    opacity: 1;
  }
}

.portal-sync-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.portal-sync-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.portal-sync-head .section-kicker {
  margin-bottom: 8px;
}

.device-switcher {
  display: block;
  margin-top: 18px;
}

.device-switcher select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: rgba(7, 9, 13, 0.64);
}

.manager-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.34);
}

.manager-summary strong,
.manager-summary small {
  display: block;
}

.manager-summary small {
  margin-top: 4px;
  color: var(--muted);
}

.manager-summary button {
  min-height: 38px;
  border: 1px solid rgba(255, 90, 61, 0.38);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--red);
  background: rgba(255, 90, 61, 0.1);
  font-weight: 800;
}

.manager-summary button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.simple-manager-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 0 0;
}

.simple-manager-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(255, 90, 61, 0.38);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--red);
  background: rgba(255, 90, 61, 0.1);
  font-weight: 800;
}

.simple-manager-toolbar button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.status-pill[data-state="ready"] {
  color: var(--aqua);
  background: rgba(32, 199, 217, 0.14);
}

.status-pill[data-state="error"] {
  color: var(--red);
  background: rgba(255, 90, 61, 0.14);
}

.linked-list {
  display: grid;
  gap: 12px;
  min-height: 160px;
  padding: 18px 0;
}

.empty-linked {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(244, 239, 230, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  background: rgba(7, 9, 13, 0.34);
}

.linked-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.48);
}

.linked-entry[data-state="paused"] {
  border-color: rgba(244, 239, 230, 0.08);
  opacity: 0.72;
}

.linked-entry-meta {
  min-width: 0;
}

.linked-entry-meta strong,
.linked-entry-meta small {
  display: block;
}

.linked-entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.linked-entry-badges span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #071017;
  background: var(--aqua);
  font-size: 0.74rem;
  font-weight: 900;
}

.linked-entry-badges .default-badge {
  color: #11100b;
  background: var(--amber);
}

.linked-entry-badges .paused-badge {
  color: var(--muted);
  background: rgba(244, 239, 230, 0.1);
}

.linked-entry-meta strong,
.linked-entry-meta small {
  overflow-wrap: anywhere;
}

.linked-entry-meta small,
.linked-entry-actions small {
  margin-top: 6px;
  color: var(--muted);
}

.linked-entry-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-items: stretch;
}

.linked-entry-actions button {
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: rgba(244, 239, 230, 0.07);
  font-weight: 800;
}

.linked-entry-actions button:disabled {
  color: var(--green);
  border-color: rgba(84, 210, 155, 0.28);
  background: rgba(84, 210, 155, 0.12);
  cursor: default;
}

.linked-entry-actions button.danger {
  color: var(--red);
  border-color: rgba(255, 90, 61, 0.38);
  background: rgba(255, 90, 61, 0.1);
}

.mini-steps {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-steps span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(244, 239, 230, 0.055);
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 22px;
}

.workflow-list span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #11100b;
  background: var(--amber);
  font-weight: 900;
}

.workflow-list h3,
.workflow-list p,
.price-card p,
.price-card h3 {
  margin: 0;
}

.workflow-list p {
  color: var(--muted);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(245, 182, 66, 0.8);
  background:
    linear-gradient(145deg, rgba(245, 182, 66, 0.16), transparent 46%),
    rgba(16, 23, 34, 0.9);
}

.price-card p {
  color: var(--amber);
  font-weight: 800;
}

.price-card h3 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.price-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--ink);
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--green);
}

.reseller-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.reseller-copy .button {
  margin-top: 18px;
}

.credit-table {
  overflow: hidden;
}

.credit-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.credit-table div:last-child {
  border-bottom: 0;
}

.credit-table strong {
  color: var(--amber);
  font-size: 1.25rem;
}

.support-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-form .wide,
.support-form button {
  grid-column: 1 / -1;
}

.support-form button {
  width: fit-content;
}

.legal-strip {
  position: relative;
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 24px clamp(18px, 4vw, 26px);
  border: 1px solid rgba(255, 90, 61, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 90, 61, 0.08);
}

.legal-strip strong {
  display: block;
  color: var(--red);
  margin-bottom: 8px;
}

.legal-strip p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 44px) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111925;
  color: var(--ink);
  box-shadow: 0 20px 60px var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 13, 0.96);
    box-shadow: 0 24px 70px var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a.nav-login {
    margin-left: 0;
  }

  .portal-hero,
  .portal-workspace {
    width: min(100% - 32px, 1180px);
  }

  .portal-hero {
    min-height: auto;
    padding-top: 110px;
    grid-template-columns: 1fr;
  }

  .portal-entry-panel,
  .portal-device-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-section,
  .media-player-band,
  .activation-layout,
  .upload-grid,
  .simple-upload-layout,
  .reseller-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .platform-head {
    display: grid;
    align-items: start;
  }

  .platform-head .button {
    width: fit-content;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .human-card-grid {
    grid-template-columns: 1fr;
  }

  .human-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-rows: none;
  }

  .human-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-section {
    min-height: auto;
  }

  .multi-device-stage {
    min-height: 620px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
  }

  .proof-strip,
  .support-form {
    grid-template-columns: 1fr;
  }

  .support-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .portal-tabs,
  .portal-entry-panel {
    grid-template-columns: 1fr;
  }

  .portal-hero-copy h1 {
    font-size: clamp(2.15rem, 13vw, 3.1rem);
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .hero-section {
    gap: 26px;
    padding-top: 34px;
    padding-left: 20px;
    padding-right: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 7.8vw, 2.05rem);
    line-height: 1.08;
  }

  .hero-copy,
  .media-copy {
    width: 100%;
    max-width: calc(100vw - 72px);
  }

  .hero-lede,
  .media-copy p,
  .media-disclaimer,
  .hero-actions,
  .proof-strip {
    width: 100%;
    max-width: 100%;
  }

  .hero-visual {
    order: 0;
  }

  .multi-device-stage {
    min-height: 390px;
    max-width: calc(100vw - 40px);
    margin-bottom: 8px;
    overflow: hidden;
  }

  .multi-device-stage::before {
    inset: 0;
    border-radius: 16px;
  }

  .multi-device-stage::after {
    left: 10%;
    right: 10%;
    bottom: 1%;
    height: 18%;
  }

  .room-layer {
    inset: 0;
    border-radius: 16px;
  }

  .room-window,
  .room-console,
  .room-plant {
    display: none;
  }

  .room-sofa {
    left: 8%;
    width: 42%;
    height: 10%;
  }

  .hero-tv-shell {
    left: 4%;
    top: 8%;
    width: 92%;
    transform: none;
  }

  .hero-tv-screen {
    border-width: 6px;
    border-radius: 16px;
  }

  .screen-topbar {
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
  }

  .avatar-dot {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .screen-topbar nav span {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .screen-topbar nav span:nth-child(n+4),
  .screen-topbar strong {
    display: none;
  }

  .screen-spotlight {
    padding: 22px 16px 8px;
  }

  .video-spotlight {
    max-width: calc(100% - 28px);
    margin: 86px 0 0 14px;
    padding: 12px;
  }

  .status-pill {
    min-height: 24px;
    font-size: 0.66rem;
  }

  .screen-spotlight h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .video-spotlight h2 {
    font-size: 1.05rem;
  }

  .screen-spotlight p {
    max-width: 230px;
    font-size: 0.75rem;
  }

  .screen-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 0;
  }

  .screen-tiles article {
    min-height: 68px;
    padding: 10px;
  }

  .screen-tiles article:nth-child(n+3) {
    display: none;
  }

  .screen-tiles strong {
    font-size: 0.82rem;
  }

  .app-dot-row,
  .tablet-device,
  .laptop-device,
  .activation-flow-card,
  .channel-carousel {
    display: none;
  }

  .phone-device {
    display: none;
  }

  .playlist-flow-card {
    left: 4%;
    right: 4%;
    top: auto;
    bottom: 4%;
    width: auto;
    padding: 12px;
  }

  .playlist-flow-card strong {
    font-size: 0.9rem;
  }

  .playlist-flow-card small {
    font-size: 0.76rem;
  }

  .play-orb {
    width: 58px;
    height: 58px;
    left: 51%;
    top: 42%;
  }

  .play-orb::before {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }

  .product-hero-stage {
    min-height: 360px;
  }

  .product-hero-stage::before {
    inset: 0;
    border-radius: 16px;
  }

  .product-screen {
    width: 100%;
    border-width: 6px;
    border-radius: 16px;
  }

  .product-screen-bar {
    min-height: 42px;
    padding: 0 12px;
  }

  .product-screen-bar strong {
    display: none;
  }

  .product-screen-body {
    grid-template-columns: 44px 1fr;
    min-height: 260px;
  }

  .product-rail {
    gap: 10px;
    padding: 16px 10px;
  }

  .product-rail span {
    width: 24px;
    height: 24px;
  }

  .product-dashboard {
    padding: 14px;
  }

  .continue-card {
    min-height: 96px;
    padding: 14px;
  }

  .continue-card strong {
    font-size: 1.25rem;
  }

  .product-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-category-grid article {
    min-height: 92px;
    padding: 12px;
  }

  .product-category-grid article:nth-child(3) {
    display: none;
  }

  .product-category-grid span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .product-category-grid strong {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .product-category-grid small {
    display: none;
  }

  .portal-receipt,
  .activation-receipt {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
  }

  .activation-receipt {
    display: none;
  }

  .tv-lounge {
    min-height: 240px;
  }

  .tv-lounge::before {
    inset: 0;
  }

  .neon-cloud,
  .device-float {
    display: none;
  }

  .tv-frame {
    width: 100%;
    border-width: 6px;
    border-radius: 18px;
    transform: none;
  }

  .tv-screen {
    min-height: 224px;
    padding: 12px;
  }

  .tv-tabs {
    gap: 6px;
    margin-bottom: 26px;
    overflow: hidden;
  }

  .tv-tabs button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .tv-tabs button:nth-child(n+4) {
    display: none;
  }

  .tv-spotlight h2 {
    font-size: 1.5rem;
  }

  .tv-spotlight span {
    font-size: 0.8rem;
  }

  .program-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .program-card {
    min-height: 62px;
    padding: 10px;
  }

  .program-card strong {
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .app-dock {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    padding: 14px 12px;
  }

  .proof-strip dt {
    font-size: 1.05rem;
  }

  .proof-strip dd {
    font-size: 0.82rem;
  }

  .hero-actions .button,
  .copy-button {
    width: 100%;
  }

  .media-player-band {
    gap: 24px;
    padding: 44px 36px 44px 20px;
  }

  .media-copy h2 {
    font-size: clamp(1.95rem, 8vw, 2.18rem);
    line-height: 1.08;
  }

  .media-device-panel {
    min-height: auto;
    padding: 18px;
  }

  .media-device-panel::before {
    inset: 10px;
  }

  .media-device-panel > strong {
    font-size: 1.3rem;
  }

  .device-panel-row {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }

  .device-panel-row span {
    width: 30px;
    height: 30px;
  }

  .platform-shell {
    border-radius: 18px;
    padding: 16px;
  }

  .platform-head {
    gap: 18px;
  }

  .install-help-button {
    width: 100%;
    justify-content: center;
  }

  .platform-card a {
    width: 32px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: auto;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    padding: 18px;
  }

  .platform-card div {
    grid-column: 1 / 3;
  }

  .platform-logo-img {
    height: 50px;
    object-position: center;
  }

  .platform-card em {
    position: static;
    grid-column: 1 / 3;
    width: fit-content;
    margin-top: 8px;
  }

  .hero-copy h1,
  .hero-lede,
  .hero-actions,
  .proof-strip,
  .media-copy h2,
  .media-copy p,
  .media-disclaimer,
  .media-visual-stack,
  .human-spotlight,
  .media-device-panel {
    width: min(100%, calc(100vw - 56px));
    max-width: 320px;
  }

  .human-card-grid {
    gap: 14px;
  }

  .human-card {
    grid-template-columns: 1fr;
  }

  .human-card img {
    height: auto;
    aspect-ratio: 16 / 10.5;
  }

  .human-card div {
    padding: 16px;
  }

  .license-grid,
  .console-topline,
  .portal-sync-head,
  .simple-manager-head,
  .manager-summary,
  .linked-entry,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .simple-step,
  .playlist-entry-card,
  .simple-manager-head,
  .xtream-fields {
    grid-template-columns: 1fr;
  }

  .simple-step .step-number,
  .simple-manager-head .step-number {
    margin-bottom: -4px;
  }

  .linked-entry {
    grid-template-columns: 1fr;
  }

  .linked-entry-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .workflow-list article {
    grid-template-columns: 1fr;
  }

  .workflow-list span {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Premium sales pass - storefront + guided client portal */
.sales-rhythm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sales-rhythm span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(244, 239, 230, 0.84);
  background: rgba(244, 239, 230, 0.06);
  font-size: 0.78rem;
  font-weight: 900;
}

.sales-rhythm span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 16px rgba(32, 199, 217, 0.72);
}

.stage-human-image {
  position: absolute;
  z-index: -1;
  inset: 5% 2% 4%;
  width: 96%;
  height: 91%;
  border-radius: 20px;
  object-fit: cover;
  opacity: 0.64;
  filter: saturate(1.04) contrast(1.08) brightness(0.9);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 78%);
}

.stage-human-image + .room-layer {
  opacity: 0.36;
}

.hero-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
}

.hero-copy h1 {
  max-width: 760px;
  letter-spacing: 0;
}

.hero-lede {
  color: rgba(244, 239, 230, 0.8);
}

.proof-strip dt {
  color: var(--amber);
}

.platform-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 182, 66, 0.2);
}

.portal-assistant-hero {
  width: min(100% - 48px, 1240px);
  min-height: 68vh;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.54fr);
  padding-top: clamp(112px, 12vw, 158px);
}

.portal-assistant-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: max(24px, calc((100% - 1240px) / 2));
  right: max(24px, calc((100% - 1240px) / 2));
  top: 106px;
  bottom: 18px;
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 22%, rgba(32, 199, 217, 0.2), transparent 28%),
    linear-gradient(115deg, rgba(245, 182, 66, 0.11), transparent 38%),
    rgba(7, 11, 16, 0.4);
  pointer-events: none;
}

.portal-step-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.portal-assistant-hero > .portal-step-track {
  grid-column: 1 / -1;
  margin-top: -8px;
}

.portal-step-track li {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.055);
}

.portal-step-track span,
.portal-step-track strong,
.portal-step-track small {
  display: block;
}

.portal-step-track span {
  color: var(--aqua);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 900;
}

.portal-step-track strong {
  margin-top: 9px;
  color: var(--ink);
}

.portal-step-track small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.portal-hero-side {
  display: grid;
  gap: 14px;
}

.portal-card-label {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #061014;
  background: var(--aqua);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-device-gate {
  border-color: rgba(245, 182, 66, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.portal-live-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(32, 199, 217, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(32, 199, 217, 0.16), transparent 48%),
    rgba(10, 16, 22, 0.84);
}

.portal-live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 40%, rgba(244, 239, 230, 0.18) 48%, transparent 56%);
  transform: translateX(-100%);
  animation: sync-scan 4.8s ease-in-out infinite;
}

.portal-live-card span,
.portal-live-card strong,
.portal-live-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.portal-live-card span {
  color: var(--aqua);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-live-card strong {
  margin-top: 8px;
}

.portal-live-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.portal-device-summary {
  position: relative;
  overflow: hidden;
}

.portal-device-summary::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(32, 199, 217, 0.7), rgba(245, 182, 66, 0.7), transparent);
  opacity: 0.5;
}

.portal-tabs {
  gap: 12px;
  padding: 10px;
}

.portal-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  text-align: center;
}

.portal-tabs button span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--aqua);
  background: rgba(32, 199, 217, 0.12);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.portal-tabs button.active span {
  color: #090807;
  background: rgba(7, 9, 13, 0.16);
}

.portal-panel .simple-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.44fr);
  align-items: stretch;
}

.portal-panel .playlist-entry-card {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.portal-import-aside {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(32, 199, 217, 0.12), transparent 42%),
    rgba(7, 9, 13, 0.22);
}

.portal-import-aside strong {
  font-size: clamp(1.22rem, 2.4vw, 1.72rem);
  line-height: 1.12;
}

.portal-import-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.portal-mini-tv {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 7px;
  margin-top: 8px;
  border: 8px solid #080b10;
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 76% 18%, rgba(32, 199, 217, 0.42), transparent 28%),
    radial-gradient(circle at 22% 28%, rgba(245, 182, 66, 0.3), transparent 30%),
    linear-gradient(135deg, #101a26, #05070a 70%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.portal-mini-tv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(244, 239, 230, 0.16) 46%, transparent 55%);
  transform: translateX(-100%);
  animation: sync-scan 5s ease-in-out infinite;
}

.portal-mini-tv span,
.portal-mini-tv strong,
.portal-mini-tv small {
  position: relative;
  z-index: 1;
  display: block;
}

.portal-mini-tv span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-mini-tv strong {
  color: #f8fafc;
  font-size: 1.25rem;
}

.portal-mini-tv small {
  color: var(--green);
}

.linked-entry {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.linked-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 199, 217, 0.24);
  background: rgba(12, 20, 28, 0.72);
}

.linked-entry-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-workspace.just-synced .sync-preview-screen {
  border-color: rgba(84, 210, 155, 0.72);
  box-shadow:
    inset 0 0 46px rgba(84, 210, 155, 0.2),
    0 0 0 1px rgba(84, 210, 155, 0.18),
    0 24px 80px rgba(84, 210, 155, 0.12);
}

.portal-workspace.just-synced .sync-preview-rail span {
  background: linear-gradient(90deg, var(--green), var(--aqua), var(--amber));
  animation-duration: 820ms;
}

.portal-workspace.just-synced .sync-preview-playlist strong {
  color: var(--green);
}

@media (max-width: 920px) {
  .hero-section,
  .portal-assistant-hero,
  .portal-panel .simple-upload-form {
    grid-template-columns: 1fr;
  }

  .portal-assistant-hero::before {
    left: 16px;
    right: 16px;
  }

  .portal-step-track {
    grid-template-columns: 1fr;
  }

  .portal-assistant-hero > .portal-step-track {
    margin-top: 0;
  }

  .portal-panel .playlist-entry-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .linked-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stage-human-image {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 74%);
  }

  .sales-rhythm {
    width: min(100%, calc(100vw - 56px));
  }

  .sales-rhythm span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .portal-tabs button {
    min-height: 58px;
  }

  .portal-assistant-hero {
    gap: 20px;
  }

  .portal-device-gate {
    gap: 14px;
    padding: 18px;
  }

  .portal-import-aside {
    padding: 18px;
  }

  .portal-mini-tv {
    min-height: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-live-card::before,
  .portal-mini-tv::before,
  .portal-workspace.just-synced .sync-preview-rail span {
    animation: none !important;
  }
}

/* Front polish pass - clearer device signal and stronger mobile first viewport */
.button,
.copy-button,
.nav-login {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.copy-button:hover,
.nav-login:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  box-shadow: 0 20px 46px rgba(245, 182, 66, 0.28);
}

.mobile-hero-device {
  display: none;
}

.sales-rhythm {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 640px;
  gap: 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(32, 199, 217, 0.08), rgba(245, 182, 66, 0.08)),
    rgba(11, 16, 23, 0.72);
}

.sales-rhythm::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, rgba(32, 199, 217, 0.72), rgba(245, 182, 66, 0.72));
  opacity: 0.72;
}

.sales-rhythm span {
  position: relative;
  min-height: 50px;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 22px 8px 0;
  background: transparent;
  text-align: center;
}

.sales-rhythm span::before {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: 0;
  transform: translateX(-50%);
  outline: 5px solid rgba(11, 16, 23, 0.92);
}

.portal-signal-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(32, 199, 217, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(32, 199, 217, 0.12), rgba(245, 182, 66, 0.1)),
    rgba(10, 16, 22, 0.7);
}

.portal-signal-route span {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 239, 230, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.portal-signal-route span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 16px rgba(32, 199, 217, 0.72);
}

.portal-signal-route span:nth-child(2)::before {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(245, 182, 66, 0.64);
}

.portal-signal-route span:nth-child(3)::before {
  background: var(--green);
  box-shadow: 0 0 16px rgba(84, 210, 155, 0.64);
}

@media (max-width: 920px) {
  .portal-signal-route {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-right: 20px;
  }

  .hero-copy,
  .media-copy {
    max-width: calc(100vw - 40px);
  }

  .mobile-hero-device {
    width: min(100%, calc(100vw - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(108px, 0.72fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 18px;
    padding: 10px;
    border: 1px solid rgba(244, 239, 230, 0.14);
    border-radius: 16px;
    background:
      linear-gradient(120deg, rgba(32, 199, 217, 0.14), rgba(245, 182, 66, 0.08)),
      rgba(12, 18, 26, 0.82);
    box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08), 0 20px 52px rgba(0, 0, 0, 0.28);
  }

  .mobile-hero-screen {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    border: 5px solid #080b10;
    border-radius: 13px;
    background: #05070a;
  }

  .mobile-hero-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
  }

  .mobile-hero-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.5));
    pointer-events: none;
  }

  .mobile-hero-state {
    position: absolute;
    z-index: 1;
    left: 8px;
    bottom: 8px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    color: #061014;
    background: var(--green);
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-hero-meta {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 6px;
  }

  .mobile-hero-meta span,
  .mobile-hero-meta strong,
  .mobile-hero-meta small {
    display: block;
  }

  .mobile-hero-meta span {
    color: var(--aqua);
    font-size: 0.64rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-hero-meta strong {
    color: var(--ink);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-hero-meta small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .sales-rhythm {
    width: min(100%, calc(100vw - 40px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px 4px;
  }

  .sales-rhythm::before {
    left: 30px;
    right: 30px;
    top: 22px;
  }

  .sales-rhythm span {
    min-height: 46px;
    padding: 20px 3px 0;
    font-size: 0.68rem;
  }

  .portal-hero-copy h1 {
    font-size: clamp(2rem, 10.2vw, 2.65rem);
    line-height: 1.02;
  }

  .portal-hero-copy p:not(.section-kicker) {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .portal-signal-route {
    display: none;
  }
}

/* HotPlayer-style premium commerce pass */
body.sales-page {
  background:
    linear-gradient(180deg, #f7f8fb 0 760px, #07090d 760px),
    var(--bg);
}

body.sales-page::before {
  display: none;
}

.sales-page .site-header {
  border-bottom-color: rgba(14, 23, 38, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.sales-page .brand strong {
  color: #0d1628;
}

.sales-page .brand small,
.sales-page .site-nav a {
  color: #5d6778;
}

.sales-page .nav-toggle {
  border-color: rgba(14, 23, 38, 0.12);
  background: rgba(14, 23, 38, 0.05);
}

.sales-page .nav-toggle span:not(.sr-only) {
  background: #0d1628;
}

.sales-page .site-nav a:hover {
  color: #0d1628;
  background: rgba(14, 23, 38, 0.06);
}

.sales-page .site-nav a.nav-login {
  color: #101827;
  background: #ffb000;
  box-shadow: 0 14px 30px rgba(255, 176, 0, 0.22);
}

.sales-page .site-nav a.nav-login:hover {
  background: #111827;
  color: #fff;
}

.commerce-hero {
  min-height: calc(100vh - 76px);
  max-width: none;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.72fr);
  align-items: stretch;
  gap: clamp(22px, 3.8vw, 54px);
  padding: clamp(42px, 5.4vw, 74px) max(clamp(20px, 4vw, 54px), calc((100vw - 1440px) / 2)) clamp(28px, 4vw, 52px);
  overflow: hidden;
  color: #101827;
  background:
    linear-gradient(118deg, rgba(255, 176, 0, 0.12), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #eef7fa 100%);
}

.commerce-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 13, 20, 0.08));
}

.commerce-hero::after {
  display: none;
}

.commerce-hero-copy {
  align-self: center;
  display: grid;
  align-content: center;
  max-width: 790px;
  min-height: 440px;
}

.commerce-hero-copy h1 {
  max-width: 760px;
  color: #0c1526;
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.commerce-hero-copy .hero-lede {
  max-width: 700px;
  color: #263244;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.64;
}

.legal-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #ffb000;
  color: #101827;
  font-size: 0.82rem;
  font-weight: 950;
}

.commerce-hero .button.primary {
  background: #101827;
  color: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.16);
}

.commerce-hero .button.secondary {
  border-color: rgba(16, 24, 39, 0.16);
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.commerce-hero .button.primary:hover {
  background: #ffb000;
  color: #111827;
  box-shadow: 0 20px 46px rgba(255, 176, 0, 0.24);
}

.hero-trust-note {
  display: grid;
  gap: 5px;
  max-width: 720px;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.68);
  color: #5a6576;
  line-height: 1.45;
}

.hero-trust-note strong {
  color: #111827;
}

.hero-platform-panel {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(18px);
}

.hero-panel-kicker {
  color: #111827;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.hero-panel-hint {
  margin: -8px 0 2px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.hero-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-platform-grid span,
.hero-platform-grid button {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 250, 0.86));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-platform-grid button {
  width: 100%;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-platform-grid button:hover,
.hero-platform-grid button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 0, 0.55);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13), 0 0 0 4px rgba(255, 176, 0, 0.12);
}

.hero-platform-grid img {
  max-width: 82%;
  max-height: 42px;
  object-fit: contain;
}

.premium-showcase-strip {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.9fr) minmax(230px, 0.55fr);
  gap: 16px;
  align-items: stretch;
  margin-top: clamp(12px, 2.5vw, 28px);
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 20, 0.98));
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.2);
}

.premium-screen-proof,
.premium-app-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #090e16;
}

.premium-screen-proof {
  margin: 0;
}

.premium-screen-proof img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.premium-screen-proof::after,
.premium-app-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(3, 7, 12, 0.78));
}

.premium-screen-proof figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.premium-screen-proof span,
.preview-overlay span {
  display: block;
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-screen-proof strong,
.preview-overlay strong {
  display: block;
  max-width: 430px;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.2;
}

.premium-app-preview {
  display: grid;
  min-height: 280px;
}

.premium-app-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(5, 9, 15, 0.68);
  backdrop-filter: blur(12px);
}

.preview-overlay small {
  display: block;
  margin-top: 5px;
  color: rgba(244, 239, 230, 0.74);
  font-family: Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.premium-showcase-strip .proof-strip {
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr;
  align-self: stretch;
}

.premium-showcase-strip .proof-strip div {
  display: grid;
  align-content: center;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.08);
}

.premium-showcase-strip .proof-strip dt {
  color: #fff;
}

.premium-showcase-strip .proof-strip dd {
  color: rgba(244, 239, 230, 0.72);
}

@media (max-width: 1100px) {
  .commerce-hero {
    grid-template-columns: 1fr;
  }

  .commerce-hero-copy {
    min-height: auto;
  }

  .hero-platform-panel {
    align-content: start;
  }

  .premium-showcase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .premium-showcase-strip .proof-strip {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sales-page .site-nav {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  }

  .commerce-hero {
    min-height: auto;
    padding-top: clamp(34px, 8vw, 56px);
  }

  .commerce-hero-copy h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 680px) {
  body.sales-page {
    background:
      linear-gradient(180deg, #f7f8fb 0 1060px, #07090d 1060px),
      var(--bg);
  }

  .commerce-hero {
    padding: 28px 20px 34px;
    gap: 22px;
  }

  .commerce-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .commerce-hero-copy .hero-lede {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust-note {
    margin-top: 14px;
    padding: 13px 14px;
  }

  .hero-platform-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-platform-grid {
    gap: 10px;
  }

  .hero-platform-grid span,
  .hero-platform-grid button {
    min-height: 58px;
  }

  .premium-showcase-strip {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 18px;
  }

  .premium-screen-proof img,
  .premium-app-preview {
    min-height: 230px;
  }

  .premium-showcase-strip .proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Cohesion pass - one commercial storefront language */
.sales-page {
  --sales-bg: #f6f8fb;
  --sales-bg-soft: #eef5f7;
  --sales-card: #ffffff;
  --sales-text: #0f172a;
  --sales-muted: #5f6b7a;
  --sales-line: rgba(15, 23, 42, 0.12);
  --sales-accent: #ffb000;
  --sales-cyan: #18bcca;
  color: var(--sales-text);
  background: var(--sales-bg);
}

.sales-page main {
  background:
    linear-gradient(180deg, #ffffff 0 720px, var(--sales-bg) 720px),
    var(--sales-bg);
}

.sales-page .commerce-hero,
.sales-page .media-player-band,
.sales-page .band,
.sales-page .legal-strip,
.sales-page .site-footer {
  color: var(--sales-text);
}

.sales-page .commerce-hero {
  background:
    linear-gradient(118deg, rgba(255, 176, 0, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f1f8fa 100%);
}

.sales-page .commerce-hero::before {
  display: none;
}

.sales-page .premium-showcase-strip {
  border-color: var(--sales-line);
  border-radius: 8px;
  background: var(--sales-card);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.sales-page .premium-screen-proof,
.sales-page .premium-app-preview {
  border-radius: 8px;
}

.sales-page .premium-showcase-strip .proof-strip {
  background: rgba(15, 23, 42, 0.1);
}

.sales-page .premium-showcase-strip .proof-strip div {
  background: #f8fafc;
}

.sales-page .premium-showcase-strip .proof-strip dt {
  color: var(--sales-text);
}

.sales-page .premium-showcase-strip .proof-strip dd {
  color: var(--sales-muted);
}

.sales-page .media-player-band {
  max-width: none;
  margin: 0;
  border: 0;
  background: var(--sales-bg);
}

.sales-page .media-kicker,
.sales-page .section-kicker {
  color: #101827;
}

.sales-page .media-kicker,
.sales-page .legal-kicker {
  border-color: rgba(255, 176, 0, 0.18);
  background: var(--sales-accent);
  color: #111827;
}

.sales-page .media-copy h2,
.sales-page .section-heading h2,
.sales-page .platform-head h2,
.sales-page .human-card h3,
.sales-page .price-card h3,
.sales-page .reseller-copy p,
.sales-page .portal-entry-panel h3 {
  color: var(--sales-text);
}

.sales-page .media-copy p,
.sales-page .section-heading p:last-child,
.sales-page .platform-head p,
.sales-page .human-card p,
.sales-page .platform-card p,
.sales-page .price-card span,
.sales-page .price-card li,
.sales-page .reseller-copy p,
.sales-page .legal-strip p,
.sales-page .field-hint,
.sales-page label span,
.sales-page legend {
  color: var(--sales-muted);
}

.sales-page .media-disclaimer,
.sales-page .hero-trust-note,
.sales-page .legal-strip {
  border-color: var(--sales-line);
  background: #edf2f7;
  color: var(--sales-muted);
}

.sales-page .media-disclaimer strong,
.sales-page .hero-trust-note strong,
.sales-page .legal-strip strong {
  color: var(--sales-text);
}

.sales-page .human-spotlight,
.sales-page .human-card,
.sales-page .media-device-panel,
.sales-page .platform-shell,
.sales-page .platform-card,
.sales-page .panel,
.sales-page .workflow-list article,
.sales-page .price-card,
.sales-page .credit-table,
.sales-page .support-form,
.sales-page .portal-entry-panel {
  border: 1px solid var(--sales-line);
  border-radius: 8px;
  background: var(--sales-card);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sales-page .platform-shell {
  padding: clamp(18px, 3vw, 34px);
  background: var(--sales-card);
}

.sales-page .platform-card {
  overflow: hidden;
}

.sales-page .platform-card::before,
.sales-page .media-device-panel::before {
  display: none;
}

.sales-page .platform-card small,
.sales-page .human-card span,
.sales-page .human-spotlight span,
.sales-page .device-panel-kicker,
.sales-page .status-pill {
  color: var(--sales-cyan);
}

.sales-page .platform-card strong,
.sales-page .media-device-panel > strong,
.sales-page .device-panel-row b,
.sales-page .human-spotlight strong,
.sales-page .price-card p,
.sales-page .workflow-list h3,
.sales-page .credit-table strong {
  color: var(--sales-text);
}

.sales-page .platform-card em,
.sales-page .platform-card a,
.sales-page .device-panel-row span,
.sales-page .workflow-list span,
.sales-page .price-card.featured p {
  background: var(--sales-accent);
  color: #111827;
}

.sales-page .platform-card a:hover,
.sales-page .install-help-button:hover,
.sales-page .button.primary:hover {
  background: #111827;
  color: #ffffff;
}

.sales-page .media-device-panel {
  background: #ffffff;
}

.sales-page .device-panel-row {
  border-color: var(--sales-line);
  background: #f8fafc;
}

.sales-page .device-panel-row small {
  color: var(--sales-muted);
}

.sales-page .human-spotlight::after,
.sales-page .human-card::after {
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.74));
}

.sales-page .human-band,
.sales-page .experience-band,
.sales-page .activation-band,
.sales-page .client-portal-teaser,
.sales-page .pricing-band,
.sales-page .reseller-band,
.sales-page .support-band,
.sales-page .platform-band {
  max-width: min(100% - 40px, 1180px);
  padding-top: clamp(38px, 5vw, 62px);
  padding-bottom: clamp(38px, 5vw, 62px);
}

.sales-page .media-player-band {
  padding-top: clamp(46px, 5.6vw, 70px);
  padding-bottom: clamp(46px, 5.6vw, 70px);
}

.sales-page .platform-head p,
.sales-page .media-copy p,
.sales-page .section-heading p:last-child {
  font-weight: 400;
}

.sales-page .install-help-button::before {
  display: none;
}

.sales-page .install-help-button {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 20px;
}

.sales-page .sales-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sales-page .sales-flow-list article {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  padding: 22px;
}

.sales-page .sales-flow-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
}

.sales-page .activation-console,
.sales-page .credit-table {
  color: var(--sales-text);
}

.sales-page input,
.sales-page textarea {
  border-color: var(--sales-line);
  background: #ffffff;
  color: var(--sales-text);
}

.sales-page .plan-option {
  border: 1px solid var(--sales-line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.sales-page .device-readout,
.sales-page .license-grid div,
.sales-page .credit-table div {
  border-color: var(--sales-line);
  background: #f8fafc;
}

.sales-page .device-readout strong,
.sales-page .license-grid strong {
  color: var(--sales-text);
}

.sales-page .price-card.featured {
  border-color: rgba(255, 176, 0, 0.42);
  background: #fff9e8;
}

.sales-page .price-card li::before {
  background: var(--sales-cyan);
}

.sales-page .support-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-page .legal-strip {
  max-width: min(100% - 40px, 1180px);
}

.sales-page .legal-strip strong {
  color: #b42318;
}

.sales-page .site-footer {
  border-top: 1px solid var(--sales-line);
  background: #ffffff;
}

.sales-page .site-footer a {
  color: var(--sales-muted);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.language-switcher select {
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0 32px 0 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: #111827;
  box-shadow: none;
}

.text-button:hover {
  background: rgba(15, 23, 42, 0.06);
}

.trial-cta-band {
  width: min(100% - 40px, 1180px);
  margin: clamp(26px, 4vw, 46px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(115deg, #ffffff 0%, #fff7df 52%, #e9fbff 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.trial-cta-band h2 {
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.trial-cta-band p:last-child {
  max-width: 680px;
  margin: 0;
  color: #5f6b7a;
  font-size: 1.04rem;
  line-height: 1.7;
}

.trial-actions,
.reseller-actions,
.reseller-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trial-actions {
  justify-content: flex-end;
}

.installer-band .platform-card p {
  min-height: 42px;
}

.reseller-portal-page {
  --reseller-bg: #f6f8fb;
  --reseller-card: #ffffff;
  --reseller-text: #0f172a;
  --reseller-muted: #657284;
  --reseller-line: rgba(15, 23, 42, 0.12);
  --reseller-accent: #ffb000;
  --reseller-cyan: #18bcca;
  min-height: 100vh;
  color: var(--reseller-text);
  background:
    linear-gradient(180deg, #ffffff 0 420px, var(--reseller-bg) 420px),
    var(--reseller-bg);
}

.reseller-portal-page.is-authenticated [data-reseller-auth],
.reseller-portal-page:not(.is-authenticated) [data-reseller-app] {
  display: none;
}

.reseller-auth-panel {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 190px);
  margin: 48px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 251, 0.82)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  padding: clamp(28px, 5vw, 64px);
}

.reseller-auth-copy h1 {
  max-width: 620px;
  margin: 12px 0 16px;
  color: var(--reseller-text);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.reseller-auth-copy p {
  max-width: 640px;
  color: var(--reseller-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.reseller-login-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.reseller-login-form label {
  display: grid;
  gap: 8px;
  color: var(--reseller-text);
  font-weight: 800;
}

.reseller-login-form input {
  min-height: 50px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: var(--reseller-text);
  font: inherit;
  padding: 0 14px;
}

.reseller-login-form input:focus {
  outline: 3px solid rgba(24, 188, 202, 0.2);
  border-color: var(--reseller-cyan);
}

.invitation-shell {
  min-height: min(680px, calc(100vh - 190px));
}

.invitation-success {
  margin: 0;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 12px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 850;
  line-height: 1.5;
  padding: 14px;
}

.admin-portal-page.is-authenticated [data-admin-auth],
.admin-portal-page:not(.is-authenticated) [data-admin-app] {
  display: none;
}

.admin-portal-page .dashboard-shell {
  width: min(100% - 40px, 1440px);
  padding-top: 78px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-portal-page .dashboard-content {
  gap: 14px;
  padding-left: 18px;
}

.admin-portal-page .invitation-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--brand-line);
  padding-top: 18px;
}

.admin-portal-page .invitation-result[hidden] {
  display: none;
}

.admin-portal-page .invitation-result label {
  display: grid;
  gap: 8px;
}

.admin-portal-page .invitation-result input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--brand-ink);
  padding: 0 12px;
}

.admin-portal-page code {
  white-space: nowrap;
}

.admin-portal-page .two-column-view {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.admin-portal-page .two-column-view > * {
  min-width: 0;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.6fr) minmax(150px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.admin-filter-bar.reseller-filter-bar {
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.6fr) auto;
}

.admin-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--brand-muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  padding: 0 12px;
}

.admin-filter-actions,
.admin-dialog-actions,
.admin-table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-filter-actions .button {
  min-height: 44px;
  white-space: nowrap;
}

.admin-device-table {
  min-width: 1180px;
}

.admin-reseller-table {
  min-width: 900px;
}

.admin-table-actions {
  flex-wrap: wrap;
  min-width: 210px;
}

.admin-table-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-action-dialog {
  width: min(100% - 32px, 560px);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  padding: 26px;
}

.admin-action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.admin-action-dialog h2 {
  margin: 5px 0 0;
}

.admin-dialog-actions {
  justify-content: flex-end;
  margin-top: 6px;
}

@media (max-width: 1040px) {
  .admin-portal-page .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-portal-page .app-sidebar {
    position: static;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-portal-page .dashboard-content {
    padding-left: 0;
  }

  .admin-portal-page .two-column-view {
    grid-template-columns: 1fr;
  }

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

  .admin-filter-bar .wide,
  .admin-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .reseller-auth-panel {
    width: min(100% - 24px, 1120px);
    min-height: 0;
    margin: 88px auto 28px;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .reseller-auth-copy h1 {
    font-size: 2.35rem;
  }

  .admin-portal-page .dashboard-shell {
    width: min(100% - 24px, 1440px);
  }

  .admin-portal-page .app-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar,
  .admin-filter-bar.reseller-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar .wide,
  .admin-filter-actions {
    grid-column: auto;
  }

  .admin-filter-actions,
  .admin-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-actions .button,
  .admin-dialog-actions .button {
    width: 100%;
  }
}

.form-error {
  margin: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 800;
  padding: 10px 12px;
}

.dashboard-user-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--reseller-text);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
}

.dashboard-logout {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
}

.reseller-portal-page .site-header {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--reseller-text);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.reseller-portal-page .brand strong,
.reseller-portal-page .brand small,
.reseller-portal-page .site-nav a {
  color: var(--reseller-text);
}

.reseller-portal-page .button.secondary {
  border: 1px solid var(--reseller-line);
  background: #ffffff;
  color: var(--reseller-text);
  box-shadow: none;
}

.reseller-portal-page .button.secondary:hover {
  border-color: rgba(255, 176, 0, 0.48);
  background: #fff8e3;
}

.reseller-shell {
  width: min(100% - 36px, 1320px);
  margin: 0 auto;
  padding: clamp(86px, 8vw, 102px) 0 clamp(44px, 7vw, 76px);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}

.reseller-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.reseller-account-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.reseller-account-card strong {
  color: var(--reseller-text);
  font-size: 1.1rem;
}

.reseller-account-card small,
.reseller-legal-note {
  color: var(--reseller-muted);
  line-height: 1.55;
}

.reseller-sidebar nav {
  display: grid;
  gap: 6px;
}

.reseller-sidebar nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--reseller-text);
  font-weight: 850;
  text-decoration: none;
}

.reseller-sidebar nav a:hover,
.reseller-sidebar nav a:focus-visible {
  background: #fff3d2;
}

.reseller-content {
  display: grid;
  gap: 22px;
}

.reseller-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 460px);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, #ffffff 0%, #eef8fb 100%);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
}

.reseller-hero h1 {
  max-width: 660px;
  margin: 10px 0 14px;
  color: var(--reseller-text);
  font-size: clamp(2.2rem, 4.15vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.reseller-hero p:not(.section-kicker) {
  max-width: 620px;
  color: var(--reseller-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.reseller-hero-image {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ec;
}

.reseller-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
}

.reseller-hero-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.reseller-hero-image span,
.reseller-kpi-card span,
.reseller-preview-card span,
.reseller-balance-card span,
.reseller-timeline span {
  color: var(--reseller-cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reseller-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reseller-kpi-card,
.reseller-panel {
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background: var(--reseller-card);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.reseller-kpi-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.reseller-kpi-card strong {
  color: var(--reseller-text);
  font-size: 2.25rem;
  line-height: 1;
}

.reseller-kpi-card small {
  color: var(--reseller-muted);
  line-height: 1.45;
}

.reseller-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
}

.reseller-panel {
  padding: clamp(18px, 3vw, 28px);
}

.reseller-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.reseller-panel-head h2 {
  margin: 6px 0 0;
  color: var(--reseller-text);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.reseller-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reseller-form label {
  display: grid;
  gap: 8px;
  color: var(--reseller-muted);
  font-weight: 850;
}

.reseller-form .wide,
.reseller-form .full {
  grid-column: 1 / -1;
}

.reseller-form input,
.reseller-form select,
.reseller-form textarea,
.reseller-table button {
  width: 100%;
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--reseller-text);
  font: inherit;
}

.reseller-form input,
.reseller-form select {
  min-height: 50px;
  padding: 0 14px;
}

.reseller-form textarea {
  padding: 12px 14px;
  resize: vertical;
}

.reseller-preview-card,
.reseller-balance-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background: #f8fafc;
}

.reseller-preview-card strong,
.reseller-balance-card strong,
.reseller-timeline strong {
  color: var(--reseller-text);
}

.reseller-preview-card small,
.reseller-balance-card small,
.reseller-timeline small {
  color: var(--reseller-muted);
  line-height: 1.5;
}

.credit-pack-grid {
  display: grid;
  gap: 12px;
}

.credit-pack {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
  color: var(--reseller-text);
  text-align: left;
  cursor: pointer;
}

.credit-pack.active,
.credit-pack:hover {
  border-color: rgba(255, 176, 0, 0.48);
  background: #fff8e3;
}

.credit-pack strong {
  font-size: 1.28rem;
}

.credit-pack small {
  color: var(--reseller-muted);
}

.reseller-table-wrap {
  overflow-x: auto;
}

.reseller-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.reseller-table th,
.reseller-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--reseller-line);
  text-align: left;
  vertical-align: middle;
}

.reseller-table th {
  color: var(--reseller-muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reseller-table td {
  color: var(--reseller-text);
  font-weight: 750;
}

.reseller-table button {
  min-height: 34px;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.table-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 950;
}

.table-status.active {
  background: #e7fbf5;
  color: #087f5b;
}

.table-status.trial {
  background: #fff3d2;
  color: #8a5a00;
}

.reseller-timeline {
  display: grid;
  gap: 12px;
}

.reseller-timeline div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--reseller-line);
  border-radius: 8px;
  background: #f8fafc;
}

.reseller-portal-page .legal-strip,
.reseller-portal-page .site-footer {
  color: var(--reseller-text);
}

.reseller-portal-page .legal-strip {
  max-width: none;
  margin: 0;
  border-color: var(--reseller-line);
  border-radius: 8px;
  background: #edf2f7;
}

.client-portal-page .legal-strip,
.reseller-portal-page .legal-strip {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(248, 250, 252, 0.92);
}

.client-portal-page .legal-strip strong,
.reseller-portal-page .legal-strip strong {
  color: #0b1220;
}

.client-portal-page .legal-strip p,
.reseller-portal-page .legal-strip p {
  color: #475569;
}

.reseller-portal-page .site-footer {
  border-top: 1px solid var(--reseller-line);
  background: #ffffff;
}

@media (max-width: 920px) {
  .sales-page .sales-flow-list,
  .sales-page .support-form {
    grid-template-columns: 1fr;
  }

  .sales-page .human-band,
  .sales-page .experience-band,
  .sales-page .activation-band,
  .sales-page .client-portal-teaser,
  .sales-page .pricing-band,
  .sales-page .reseller-band,
  .sales-page .support-band,
  .sales-page .platform-band,
  .trial-cta-band {
    max-width: min(100% - 28px, 1180px);
  }

  .trial-cta-band,
  .reseller-shell,
  .reseller-hero,
  .reseller-grid {
    grid-template-columns: 1fr;
  }

  .trial-actions {
    justify-content: flex-start;
  }

  .reseller-shell {
    width: min(100% - 28px, 1320px);
    padding-top: 104px;
  }

  .reseller-sidebar {
    position: static;
  }

  .reseller-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sales-page,
  body.sales-page,
  .sales-page main {
    background: var(--sales-bg);
  }

  .sales-page .commerce-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fa 100%);
  }

  .sales-page .premium-showcase-strip {
    margin-top: 8px;
  }

  .trial-cta-band {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .trial-actions .button,
  .reseller-actions .button,
  .reseller-hero-actions .button {
    width: 100%;
  }

  .language-switcher,
  .language-switcher select {
    width: 100%;
  }

  .reseller-kpi-grid {
    grid-template-columns: 1fr;
  }

  .reseller-hero {
    padding: 20px;
  }

  .reseller-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .reseller-panel-head {
    display: grid;
  }
}

/* Premium maquettes pass */
:root {
  --brand-ink: #0f172a;
  --brand-muted: #64748b;
  --brand-line: rgba(15, 23, 42, 0.12);
  --brand-card: #ffffff;
  --brand-surface: #f6f8fb;
  --brand-amber: #ffb000;
  --brand-blue: #2563eb;
  --brand-navy: #061a33;
  --brand-green: #16a34a;
  --brand-red: #dc2626;
}

.product-page,
.portal-page,
.reseller-portal-page {
  color: var(--brand-ink);
  background: var(--brand-surface);
}

.metric-card,
.action-card,
.form-card,
.pricing-card,
.data-table,
.store-row {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-card);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.app-sidebar {
  background: linear-gradient(180deg, var(--brand-navy), #020817);
  color: #ffffff;
}

.sales-page .commerce-hero-copy h1 span {
  display: block;
  color: var(--brand-amber);
}

.hero-offer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 10px;
}

.sales-page .hero-actions {
  margin-top: 0;
}

.hero-offer-strip div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.hero-offer-strip span,
.hero-offer-strip strong {
  display: block;
}

.hero-offer-strip span {
  color: var(--brand-muted);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-offer-strip strong {
  color: var(--brand-ink);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.15;
}

.portal-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.portal-entry-actions .button {
  min-width: 160px;
  justify-content: center;
}

.store-row-list {
  display: grid;
  gap: 14px;
}

.store-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}

.store-device {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-device img {
  width: 52px;
  height: 38px;
  object-fit: contain;
}

.store-device strong,
.store-device small {
  display: block;
}

.store-device strong {
  color: var(--brand-ink);
}

.store-device small {
  color: var(--brand-muted);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.store-row > span[aria-hidden="true"] {
  color: var(--brand-ink);
  font-size: 1.8rem;
  line-height: 1;
}

.platform-install-modal[hidden] {
  display: none;
}

.platform-install-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.platform-install-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(2, 8, 23, 0.58);
  backdrop-filter: blur(10px);
}

.platform-install-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 251, 0.96));
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.34);
}

.platform-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.platform-install-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 42px;
}

.platform-install-logo-frame {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.platform-install-logo-frame img {
  max-width: 76px;
  max-height: 48px;
  object-fit: contain;
}

.platform-install-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.16);
  color: #7a4b00;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-install-top h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: 0;
}

.platform-install-top p {
  margin: 8px 0 0;
  color: var(--brand-muted);
  line-height: 1.65;
}

.platform-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.platform-action-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.platform-action-card:hover,
.platform-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.platform-action-card strong {
  font-size: 0.96rem;
}

.platform-action-card span {
  color: var(--brand-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.platform-action-card em {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.platform-install-steps {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.platform-install-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-ink);
}

.platform-install-steps ol {
  margin: 0;
  padding-left: 21px;
  color: var(--brand-muted);
  line-height: 1.7;
}

.platform-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

.platform-install-actions .button.secondary {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--brand-ink);
}

.app-preview-card {
  background: linear-gradient(180deg, #061a33 0%, #020817 100%);
  color: #ffffff;
}

.app-preview-card .preview-card-label {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-preview-card .console-topline,
.app-preview-card .device-readout,
.app-preview-card .license-grid div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.app-preview-card .device-readout strong,
.app-preview-card .license-grid strong {
  color: #38bdf8;
}

.client-portal-page {
  color: var(--brand-ink);
  background: var(--brand-surface);
}

.client-portal-page .site-header {
  border-color: var(--brand-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.client-portal-page .brand strong,
.client-portal-page .brand small,
.client-portal-page .site-nav a {
  color: var(--brand-ink);
}

.client-portal-page .portal-hero {
  background:
    linear-gradient(118deg, #ffffff 0%, #f1f7fb 100%);
  color: var(--brand-ink);
}

.client-portal-page .portal-hero-copy h1 {
  color: var(--brand-ink);
}

.client-portal-page .portal-hero-copy p,
.client-portal-page .portal-live-card small,
.client-portal-page .portal-step-track small {
  color: var(--brand-muted);
}

.client-portal-page .portal-signal-route,
.client-portal-page .portal-device-gate,
.client-portal-page .portal-live-card,
.client-portal-page .portal-step-track,
.client-portal-page .portal-device-summary,
.client-portal-page .upload-form,
.client-portal-page .portal-sync-panel {
  border-color: var(--brand-line);
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.client-portal-page input,
.client-portal-page textarea,
.client-portal-page select {
  border-color: var(--brand-line);
  background: #ffffff;
  color: var(--brand-ink);
}

.client-portal-page input::placeholder,
.client-portal-page textarea::placeholder {
  color: #94a3b8;
  font-weight: 700;
  opacity: 1;
}

.client-portal-page main {
  padding-top: 74px;
}

.client-portal-page .portal-hero.portal-assistant-hero {
  width: min(100% - 32px, 1120px);
  min-height: 0;
  margin: 32px auto 22px;
  padding: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 48px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.client-portal-page .portal-assistant-hero::before,
.client-portal-page .portal-signal-route,
.client-portal-page .portal-live-card,
.client-portal-page .portal-step-track {
  display: none;
}

.client-portal-page .portal-hero-copy {
  align-self: center;
}

.client-portal-page .portal-hero-copy h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  color: var(--brand-ink);
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.client-portal-page .portal-hero-copy p {
  max-width: 660px;
  color: var(--brand-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.client-portal-page .portal-hero-side {
  display: block;
}

.client-portal-page .portal-device-gate {
  padding: 28px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

.client-portal-page .portal-card-label {
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: #22c7d6;
  color: #05111f;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-portal-page .portal-workspace {
  width: min(100% - 32px, 1120px);
  margin: 0 auto 80px;
  padding: 0;
}

.client-portal-page .portal-device-summary {
  margin: 0 0 22px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.portal-choice-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 8px 0 20px;
  color: var(--brand-ink);
}

.portal-choice-heading span {
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-choice-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  letter-spacing: 0;
}

.client-portal-page .portal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.client-portal-page .portal-tabs button {
  min-height: 136px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.client-portal-page .portal-tabs button span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--brand-blue);
  font-weight: 950;
}

.client-portal-page .portal-tabs button.active {
  border-color: rgba(255, 176, 0, 0.42);
  background: #fff8e6;
  color: var(--brand-ink);
}

.client-portal-page .portal-tabs button.active span {
  background: var(--brand-amber);
  color: #05111f;
}

.client-portal-page .portal-panel .simple-upload-form,
.client-portal-page .simple-manager-panel {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.device-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.device-guidance-card[data-tone="active"],
.device-guidance-card[data-tone="trial"] {
  border-color: rgba(34, 197, 94, 0.32);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.device-guidance-card[data-tone="expired"],
.device-guidance-card[data-tone="blocked"] {
  border-color: rgba(245, 158, 11, 0.36);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.94));
}

.device-guidance-copy {
  display: grid;
  gap: 8px;
}

.device-guidance-copy h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.device-guidance-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--brand-muted);
}

.device-guidance-copy small {
  color: rgba(15, 23, 42, 0.7);
}

.device-guidance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cycle-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cycle-status span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.cycle-status span[data-state="ready"] {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(220, 252, 231, 0.72);
  color: #166534;
}

.cycle-status span[data-state="blocked"] {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(254, 243, 199, 0.88);
  color: #92400e;
}

.upload-form[data-import-disabled="true"] {
  position: relative;
  opacity: 0.74;
}

.activation-prefill-hint {
  color: #166534;
  font-weight: 800;
}

.client-portal-page .segmented {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #f1f5f9;
  padding: 5px;
}

.client-portal-page .segmented button {
  min-height: 48px;
  border-radius: 6px;
  color: var(--brand-muted);
  font-weight: 900;
}

.client-portal-page .segmented button.active {
  background: #22c7d6;
  color: #05111f;
  box-shadow: none;
}

.dashboard-header {
  border-color: var(--brand-line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-ink);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-header .brand strong,
.dashboard-header .brand small,
.dashboard-header .site-nav a {
  color: var(--brand-ink);
}

.dashboard-credit-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff7d6;
  color: var(--brand-ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.dashboard-shell {
  width: min(100% - 32px, 1340px);
  margin: 0 auto;
  padding: 96px 0 56px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
}

.reseller-portal-page .dashboard-view[hidden] {
  display: none !important;
}

.reseller-portal-page .dashboard-view.active {
  display: block;
}

.reseller-portal-page .dashboard-view.active.two-column-view {
  display: grid;
}

.app-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 8px 0 0 8px;
}

.app-sidebar a {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.app-sidebar a.active,
.app-sidebar a:hover,
.app-sidebar a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dashboard-content {
  min-width: 0;
  display: grid;
  gap: 26px;
  padding: 0 0 0 26px;
}

.dashboard-view {
  scroll-margin-top: 96px;
  display: grid;
  gap: 18px;
}

.dashboard-view h1,
.dashboard-view h2,
.dashboard-view h3 {
  margin: 0;
  color: var(--brand-ink);
  letter-spacing: 0;
}

.dashboard-view h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.dashboard-view p {
  margin: 8px 0 0;
  color: var(--brand-muted);
  line-height: 1.6;
}

.dashboard-title-row,
.dashboard-panel,
.form-card {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.dashboard-title-row,
.dashboard-panel,
.form-card {
  padding: clamp(18px, 3vw, 28px);
}

.metric-grid,
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.action-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span,
.action-card span {
  color: var(--brand-blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--brand-ink);
  font-size: 2.4rem;
  line-height: 1;
}

.metric-card small,
.action-card strong {
  color: var(--brand-muted);
  line-height: 1.45;
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.dashboard-panel-head a {
  color: var(--brand-blue);
  font-weight: 850;
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.data-pager {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
}

.data-pager button {
  min-height: 40px;
}

.data-pager span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .data-pager {
    justify-content: space-between;
  }
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  box-shadow: none;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--brand-line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.data-table td {
  color: var(--brand-ink);
  font-weight: 750;
}

.data-table button {
  min-height: 34px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  font-weight: 850;
}

.table-status.pending {
  background: #fff7d6;
  color: #995d00;
}

.two-column-view {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  align-items: start;
}

.dashboard-form {
  display: grid;
  gap: 14px;
}

.dashboard-form label {
  display: grid;
  gap: 8px;
}

.dashboard-form .wide {
  grid-column: 1 / -1;
}

.dashboard-form input,
.dashboard-form textarea,
.dashboard-form select,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-ink);
  padding: 0 14px;
}

.dashboard-form textarea {
  padding: 12px 14px;
}

.license-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.license-choice-grid label {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.license-choice-grid span,
.license-choice-grid strong,
.license-choice-grid em,
.license-choice-grid small {
  display: block;
}

.license-choice-grid em {
  color: var(--brand-ink);
  font-style: normal;
  font-weight: 950;
}

.form-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.client-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(128px, 0.22fr) minmax(128px, 0.22fr) minmax(150px, 0.24fr) auto auto;
  align-items: end;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.client-filter-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-filter-row label span {
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.client-filter-row .button {
  min-height: 48px;
  white-space: nowrap;
}

.activation-preview dl,
.order-summary dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.activation-preview div,
.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 10px;
}

.activation-preview dt,
.order-summary dt {
  color: var(--brand-muted);
}

.activation-preview dd,
.order-summary dd {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 900;
}

.support-ticket-form {
  margin-top: 18px;
}

.activity-timeline {
  display: grid;
  gap: 14px;
}

.activity-timeline div {
  position: relative;
  display: grid;
  gap: 5px;
  padding-left: 26px;
}

.activity-timeline span {
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
}

.activity-timeline small,
.support-priority li,
.support-stats span {
  color: var(--brand-muted);
}

.support-priority ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 18px;
}

.support-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-stats div {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.support-stats strong,
.support-stats span {
  display: block;
}

@media (max-width: 1040px) {
  .metric-grid,
  .quick-actions-grid,
  .two-column-view {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-sidebar {
    position: static;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
  }

  .dashboard-content {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .hero-offer-strip {
    grid-template-columns: 1fr 1fr;
    margin: 18px 0;
  }

  .hero-offer-strip div {
    min-height: 74px;
  }

  .portal-entry-actions,
  .portal-entry-actions .button {
    width: 100%;
  }

  .store-row,
  .metric-grid,
  .quick-actions-grid,
  .two-column-view,
  .license-choice-grid,
  .support-stats {
    grid-template-columns: 1fr;
  }

  .store-actions {
    justify-content: stretch;
  }

  .store-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .platform-install-modal {
    align-items: end;
    padding: 12px;
  }

  .platform-install-dialog {
    max-height: 90vh;
    padding: 20px;
    border-radius: 12px 12px 8px 8px;
  }

  .platform-install-top {
    grid-template-columns: 1fr;
    padding-right: 38px;
  }

  .platform-install-logo-frame {
    width: 96px;
  }

  .platform-option-grid {
    grid-template-columns: 1fr;
  }

  .platform-action-card {
    min-height: 92px;
  }

  .platform-install-actions .button {
    width: 100%;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    width: min(100% - 24px, 1340px);
    padding-top: 92px;
  }
}

@media (max-width: 900px) {
  .client-portal-page .portal-hero.portal-assistant-hero {
    grid-template-columns: 1fr;
    margin-top: 18px;
    padding: 32px 22px;
  }

  .client-portal-page .portal-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .client-portal-page main {
    padding-top: 66px;
  }

  .client-portal-page .portal-hero.portal-assistant-hero,
  .client-portal-page .portal-workspace {
    width: min(100% - 20px, 1120px);
  }

  .client-portal-page .portal-hero-copy h1 {
    font-size: clamp(2.05rem, 12vw, 3rem);
  }

  .client-portal-page .portal-device-gate,
  .client-portal-page .portal-tabs button {
    padding: 18px;
  }

  .client-portal-page .portal-tabs button {
    min-height: 108px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .client-portal-page .portal-tabs button span {
    width: 40px;
    height: 40px;
  }
}

/* Maquette fidelity pass - public, portal, reseller */
.sales-page .commerce-hero {
  min-height: auto;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(18px, 2.8vw, 32px);
}

.sales-page .commerce-hero-copy {
  min-height: 0;
  align-content: center;
}

.sales-page .commerce-hero-copy h1 {
  font-size: 3.5rem;
}

.sales-page .commerce-hero-copy .hero-lede {
  font-size: clamp(1rem, 1.18vw, 1.16rem);
}

.sales-page .hero-trust-note {
  margin-top: 16px;
  padding: 13px 15px;
}

.sales-page .hero-platform-panel {
  border-radius: 8px;
  padding: clamp(18px, 2.4vw, 26px);
}

.sales-page .hero-platform-grid {
  gap: 10px;
}

.sales-page .hero-platform-grid span {
  min-height: 56px;
}

.sales-page .premium-showcase-strip {
  display: none;
}

.sales-page .trial-cta-band {
  width: min(100% - 64px, 1120px);
  margin: 18px auto 52px;
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(110deg, #07162b, #0b1f3a 58%, #fff7d6 100%);
}

.sales-page .trial-cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.sales-page .trial-cta-band p:not(.section-kicker) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.sales-page .trial-cta-band .section-kicker {
  color: var(--brand-amber);
}

.sales-page .store-actions .button.secondary,
.sales-page .store-actions .button.primary {
  min-width: 138px;
  justify-content: center;
  opacity: 1;
}

.sales-page .store-actions .button.secondary {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
}

.sales-page .store-actions .button.primary {
  background: var(--brand-amber);
  color: #06111f;
}

.sales-page .activation-band {
  padding-top: clamp(42px, 5vw, 72px);
}

.activation-page main {
  min-height: calc(100vh - 160px);
  padding-top: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 199, 214, 0.14), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #edf7f8 100%);
}

.activation-page .activation-focus-panel {
  margin-top: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.08);
}

.activation-page .activation-focus-panel .section-heading {
  max-width: 760px;
}

.activation-page .activation-focus-panel h1 {
  margin: 8px 0 12px;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.sales-page .activation-layout {
  align-items: stretch;
}

.sales-page .activation-console.app-preview-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 199, 214, 0.22), transparent 30%),
    linear-gradient(180deg, #061426, #08101d);
  color: #e5edf7;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
}

.sales-page .activation-console.app-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
}

.sales-page .activation-console.app-preview-card > * {
  position: relative;
  z-index: 1;
}

.sales-page .activation-console .preview-card-label,
.sales-page .activation-console .console-topline,
.sales-page .activation-console .device-readout,
.sales-page .activation-console .license-grid div,
.sales-page .activation-console .activation-qr-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.sales-page .activation-console .device-readout strong {
  color: #38bdf8;
  font-size: 2.65rem;
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sales-page .activation-console .device-readout strong {
    font-size: 1.65rem;
  }
}

.activation-qr-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid;
  border-radius: 8px;
  padding: 14px;
}

.activation-qr-panel span,
.activation-qr-panel strong {
  display: block;
}

.activation-qr-panel span {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.76rem;
  font-weight: 850;
}

.activation-qr-panel strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.9rem;
}

.activation-qr-panel img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #ffffff;
}

.client-portal-page .portal-hero.portal-assistant-hero {
  margin-top: 24px;
  margin-bottom: 16px;
  padding: clamp(28px, 3.4vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: clamp(22px, 3vw, 36px);
}

.client-portal-page .portal-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2.6rem, 4.4vw, 4.1rem);
}

.client-portal-page .portal-device-gate {
  padding: 22px;
}

.turnstile-slot {
  min-height: 65px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.turnstile-slot[hidden] {
  display: none;
}

.client-portal-page .portal-device-summary {
  margin-bottom: 12px;
  padding: 18px 22px;
}

.client-portal-page .portal-device-summary strong {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.client-portal-page .portal-choice-heading {
  margin: 4px 0 12px;
}

.client-portal-page .portal-choice-heading h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.client-portal-page .portal-tabs {
  gap: 16px;
  margin-bottom: 18px;
}

.client-portal-page .portal-tabs button {
  min-height: 96px;
  padding: 18px 20px;
}

.client-portal-page .portal-panel .simple-upload-form {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.client-portal-page .portal-import-aside {
  padding: clamp(20px, 2.6vw, 28px);
  background:
    linear-gradient(150deg, rgba(255, 176, 0, 0.1), transparent 40%),
    linear-gradient(180deg, #eef8fb, #f8fafc);
  color: var(--brand-ink);
}

.client-portal-page .portal-import-aside p {
  color: #475569;
}

.client-portal-page .portal-import-aside .section-kicker {
  color: #b45309;
}

.client-portal-page .empty-linked {
  border-color: rgba(37, 99, 235, 0.22);
  background: #f8fafc;
  color: #334155;
}

.client-portal-page .sync-preview-topline span,
.client-portal-page .sync-preview-device span,
.client-portal-page .sync-preview-playlist span {
  color: #a9b8ca;
}

.client-portal-page .sync-preview-playlist strong {
  color: #e5edf7;
}

.client-portal-page .simple-manager-toolbar button:disabled {
  opacity: 0.68;
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
  color: #b91c1c;
}

.reseller-portal-page .dashboard-shell {
  width: min(100% - 40px, 1360px);
  padding-top: 78px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.reseller-portal-page .app-sidebar {
  top: 88px;
  min-height: calc(100vh - 112px);
  padding: 14px 12px;
}

.reseller-portal-page .app-sidebar a {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.reseller-portal-page .dashboard-content {
  gap: 14px;
  padding-left: 18px;
}

.reseller-portal-page .dashboard-title-row,
.reseller-portal-page .dashboard-panel,
.reseller-portal-page .form-card {
  padding: clamp(15px, 2vw, 22px);
}

.reseller-portal-page .dashboard-view {
  gap: 12px;
}

.reseller-portal-page .dashboard-loading .dashboard-panel,
.reseller-portal-page .dashboard-error .dashboard-panel {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.reseller-portal-page .dashboard-loading .dashboard-panel {
  background:
    linear-gradient(100deg, rgba(37, 99, 235, 0.06), rgba(255, 176, 0, 0.08)),
    #ffffff;
}

.reseller-portal-page .dashboard-error .dashboard-panel {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff7f7;
}

.reseller-portal-page .dashboard-view h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

.reseller-portal-page .metric-grid,
.reseller-portal-page .quick-actions-grid {
  gap: 10px;
}

.reseller-portal-page .metric-card,
.reseller-portal-page .action-card {
  gap: 6px;
  padding: 14px;
}

.reseller-portal-page .metric-card strong {
  font-size: 2rem;
}

.reseller-portal-page .data-table th,
.reseller-portal-page .data-table td {
  padding: 10px 11px;
}

.reseller-portal-page .two-column-view {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 18px;
}

.reseller-portal-page #buy-credits.two-column-view {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.reseller-portal-page .credit-pack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reseller-portal-page .credit-pack,
.reseller-portal-page .custom-credit-pack {
  position: relative;
  min-height: 132px;
  align-content: start;
  border-radius: 8px;
  padding: 18px 16px;
  text-align: left;
}

.reseller-portal-page .credit-pack em {
  position: absolute;
  right: 10px;
  top: -11px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--brand-amber);
  color: #06111f;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
}

.reseller-portal-page .custom-credit-pack {
  display: grid;
  gap: 8px;
  border: 1px solid var(--brand-line);
  background: #ffffff;
}

.reseller-portal-page .custom-credit-pack input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 0 10px;
}

.reseller-offer-strip {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 176, 0, 0.34);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #fff7cf, #ffe28a);
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(161, 98, 7, 0.13);
}

.reseller-offer-strip div {
  display: grid;
  gap: 2px;
}

.reseller-offer-strip span,
.metric-card span,
.client-summary-strip span,
.api-key-panel span {
  color: #7c5b00;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reseller-offer-strip strong,
.reseller-offer-strip small {
  display: block;
}

.reseller-offer-strip em {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.68);
  color: #b42318;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
}

.reseller-console-title,
.compact-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.console-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.console-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.attention-list {
  display: grid;
  gap: 10px;
}

.attention-list article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.attention-list article > span {
  width: 10px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.attention-list article > span.warning {
  background: var(--brand-amber);
}

.attention-list article > span.danger {
  background: var(--brand-red);
}

.attention-list strong,
.attention-list small,
.stack-cell strong,
.stack-cell small {
  display: block;
}

.attention-list small,
.stack-cell small,
.empty-note {
  color: var(--brand-muted);
}

.client-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-summary-strip article {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.client-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-ink);
  font-size: 1.6rem;
  line-height: 1;
}

.country-cell,
.stack-cell,
.table-badge-row,
.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.country-cell {
  min-width: 48px;
}

.country-cell strong {
  min-width: 28px;
  border-radius: 6px;
  padding: 4px 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  text-align: center;
}

.country-cell small {
  color: var(--brand-muted);
  font-weight: 850;
}

.system-badge,
.table-badge,
.table-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.system-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.table-badge {
  background: #edf2f7;
  color: #334155;
}

.table-badge.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.table-badge.active {
  background: #dcfce7;
  color: #15803d;
}

.table-badge.warning {
  background: #fff7d6;
  color: #995d00;
}

.table-code {
  border-radius: 7px;
  padding: 4px 7px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.82rem;
}

.table-code.is-secret {
  color: #2563eb;
}

.client-device-panel {
  min-width: 0;
  padding: 12px;
}

.client-device-table-wrap {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #ffffff;
}

.client-device-table {
  min-width: 1040px;
}

.client-device-table th,
.client-device-table td {
  padding: 11px 10px;
}

.client-device-table th:first-child,
.client-device-table td:first-child {
  min-width: 210px;
}

.client-device-table th:nth-child(2),
.client-device-table td:nth-child(2) {
  min-width: 150px;
}

.client-device-table th:last-child,
.client-device-table td:last-child {
  min-width: 190px;
}

.client-device-table .stack-cell {
  display: grid;
  align-items: start;
}

.table-empty-note {
  margin: 14px;
  border: 1px dashed var(--brand-line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.table-actions a,
.table-actions button {
  min-height: 30px;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--brand-ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.table-actions .danger,
.table-actions button.danger {
  border-color: rgba(220, 38, 38, 0.24);
  color: var(--brand-red);
}

.client-device-table .table-actions {
  display: flex;
  flex-wrap: nowrap;
}

.client-device-table .table-actions a,
.client-device-table .table-actions button {
  white-space: nowrap;
}

.credit-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.credit-rules span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.credit-rules em {
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--brand-amber);
  color: #06111f;
  font-style: normal;
  font-weight: 950;
}

.device-search-result {
  margin-top: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
}

.device-result-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.device-result-list div,
.security-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 9px;
}

.device-result-list dt,
.security-row span {
  color: var(--brand-muted);
}

.device-result-list dd {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--brand-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-green);
}

.api-key-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.api-key-panel div {
  display: grid;
  gap: 6px;
}

.api-endpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.api-endpoint-card {
  display: grid;
  gap: 12px;
}

.endpoint-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.api-endpoint-card pre {
  max-height: 220px;
  overflow: auto;
  border-radius: 8px;
  margin: 0;
  padding: 14px;
  background: #111827;
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.45;
}

.network-view .data-table {
  min-width: 860px;
}

.transfer-card h4,
.security-card h4 {
  margin: 18px 0 10px;
}

.volume-discount-table {
  margin-top: 16px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.volume-discount-table h3 {
  padding: 14px 16px 0;
}

.volume-discount-table table {
  width: 100%;
  border-collapse: collapse;
}

.volume-discount-table th,
.volume-discount-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--brand-line);
  text-align: left;
}

.volume-discount-table th {
  color: var(--brand-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .sales-page .premium-showcase-strip {
    display: none;
  }

  .reseller-portal-page .credit-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-portal-page #buy-credits.two-column-view {
    grid-template-columns: 1fr;
  }

  .console-dashboard-grid,
  .api-endpoint-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-offer-strip,
  .api-key-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .sales-page .trial-cta-band {
    width: min(100% - 24px, 1120px);
    margin: 14px auto 38px;
  }

  .client-portal-page .portal-panel .simple-upload-form,
  .client-portal-page .portal-hero.portal-assistant-hero {
    grid-template-columns: 1fr;
  }

  .reseller-portal-page .credit-pack-grid {
    grid-template-columns: 1fr;
  }

  .client-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .reseller-console-title,
  .compact-title-row {
    display: grid;
  }

  .console-title-actions {
    justify-content: stretch;
  }

  .console-title-actions .button {
    width: 100%;
  }
}

/* Production mobile fix: reseller shell must collapse to one readable column. */
@media (max-width: 720px) {
  .reseller-portal-page .dashboard-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 88px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .reseller-portal-page .app-sidebar {
    position: static;
    top: auto;
    min-height: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 8px;
    scroll-snap-type: x proximity;
  }

  .reseller-portal-page .app-sidebar a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .reseller-portal-page .dashboard-content {
    width: 100%;
    min-width: 0;
    padding-left: 0;
  }

  .reseller-portal-page .dashboard-view.active,
  .reseller-portal-page .dashboard-view.active.two-column-view,
  .reseller-portal-page #buy-credits.two-column-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .reseller-portal-page .metric-grid,
  .reseller-portal-page .quick-actions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reseller-portal-page .dashboard-title-row,
  .reseller-portal-page .dashboard-panel,
  .reseller-portal-page .form-card,
  .reseller-portal-page .legal-strip {
    max-width: 100%;
    overflow: hidden;
  }

  .reseller-portal-page .data-table-wrap,
  .reseller-portal-page .reseller-table-wrap {
    width: 100%;
    overflow-x: auto;
  }

  .client-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-filter-row .button {
    width: 100%;
  }
}

/* Production portal refinement: compact device-first flow and premium playlist cards. */
.client-portal-page.device-identified .portal-hero.portal-assistant-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  margin-bottom: 10px;
  padding: clamp(18px, 2.5vw, 28px);
}

.client-portal-page.device-identified .portal-hero-copy h1 {
  max-width: 560px;
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
}

.client-portal-page.device-identified .portal-hero-copy p:not(.section-kicker),
.client-portal-page.device-identified .portal-signal-route,
.client-portal-page.device-identified .portal-live-card,
.client-portal-page.device-identified .portal-step-track {
  display: none;
}

.client-portal-page.device-identified .portal-device-gate {
  padding: 16px;
}

.client-portal-page.device-identified .portal-device-gate label {
  margin-top: 10px;
}

.client-portal-page.device-identified .portal-workspace {
  margin-top: 8px;
}

.client-portal-page .portal-choice-heading {
  justify-items: start;
  margin: 6px 0 10px;
}

.client-portal-page .portal-choice-heading span {
  display: none;
}

.client-portal-page .portal-tabs {
  gap: 10px;
  margin-bottom: 14px;
}

.client-portal-page .portal-tabs button {
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.client-portal-page .portal-tabs button span {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.client-portal-page .simple-manager-panel {
  background: #ffffff;
  color: var(--brand-ink);
}

.client-portal-page .simple-manager-head {
  align-items: center;
  padding-bottom: 14px;
}

.client-portal-page .manager-summary {
  border-color: var(--brand-line);
  background: #f8fafc;
}

.client-portal-page .linked-entry {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border-color: var(--brand-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 42%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.client-portal-page .linked-entry:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 42%),
    #ffffff;
}

.client-portal-page .linked-entry-badges span {
  color: #062033;
  background: #dff8fb;
}

.client-portal-page .linked-entry-badges .default-badge {
  background: var(--brand-amber);
}

.client-portal-page .linked-entry-meta strong {
  color: var(--brand-ink);
  font-size: 1.02rem;
}

.client-portal-page .linked-entry-source {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-family: Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-portal-page .linked-entry-details {
  color: var(--brand-muted);
}

.client-portal-page .linked-entry-actions {
  width: min(360px, 36vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.client-portal-page .linked-entry-actions button {
  border-color: var(--brand-line);
  color: var(--brand-ink);
  background: #ffffff;
}

.client-portal-page .linked-entry-actions button:not(:disabled):hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eef4ff;
}

.client-portal-page .linked-entry-actions button:disabled {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
  background: #ecfdf5;
}

.client-portal-page .linked-entry-actions button.danger {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff1f2;
}

@media (max-width: 900px) {
  .device-guidance-card {
    grid-template-columns: 1fr;
  }

  .device-guidance-actions {
    justify-content: stretch;
  }

  .device-guidance-actions .button {
    width: 100%;
  }

  .client-portal-page.device-identified .portal-hero.portal-assistant-hero,
  .client-portal-page .linked-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-portal-page .linked-entry-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .client-portal-page .portal-tabs button {
    min-height: 56px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px;
  }

  .client-portal-page .portal-tabs button span {
    width: 30px;
    height: 30px;
  }
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .trial-actions,
html[dir="rtl"] .portal-tabs button,
html[dir="rtl"] .linked-entry {
  direction: rtl;
}

/* 10/10 UX refinement: device status first, then one deliberate playlist action. */
.client-portal-page .portal-workspace[data-awaiting-choice] .portal-panel {
  display: none;
}

.client-portal-page .portal-workspace[data-device-state="not-found"] .portal-choice-heading,
.client-portal-page .portal-workspace[data-device-state="not-found"] .portal-tabs,
.client-portal-page .portal-workspace[data-device-state="trial-expired"] .portal-choice-heading,
.client-portal-page .portal-workspace[data-device-state="trial-expired"] .portal-tabs,
.client-portal-page .portal-workspace[data-device-state="session-expired"] .portal-choice-heading,
.client-portal-page .portal-workspace[data-device-state="session-expired"] .portal-tabs {
  display: none;
}

.client-portal-page .device-guidance-actions .button.secondary {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.client-portal-page .portal-workspace[data-awaiting-choice] .portal-choice-heading {
  margin-top: 18px;
}

.client-portal-page .portal-workspace[data-awaiting-choice] .portal-choice-heading span {
  display: inline-flex;
}

.client-portal-page .portal-workspace[data-awaiting-choice] .portal-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.client-portal-page .portal-workspace[data-awaiting-choice] .portal-tabs button {
  min-height: 118px;
  align-content: center;
  border-color: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.12), transparent 38%),
    #ffffff;
}

.client-portal-page .portal-tab-copy,
.client-portal-page .portal-tab-copy strong,
.client-portal-page .portal-tab-copy small {
  display: block;
  min-width: 0;
}

.client-portal-page .portal-tab-copy small {
  margin-top: 5px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.client-portal-page .portal-workspace,
.client-portal-page .portal-panel {
  scroll-margin-top: 96px;
}

.client-portal-page .linked-entry-source {
  font-family: inherit;
  font-weight: 850;
}

.client-portal-page .linked-entry-source::before {
  content: "Source: ";
  color: #64748b;
  font-weight: 800;
}

.client-portal-page .linked-entry-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 10/10 mobile refinement: keep the promise, price, and actions above the fold. */
@media (max-width: 680px) {
  .sales-page .commerce-hero {
    gap: 12px;
    padding-top: 24px;
  }

  .sales-page .commerce-hero-copy {
    display: contents;
  }

  .sales-page .commerce-hero-copy .legal-kicker {
    order: 1;
  }

  .sales-page .commerce-hero-copy h1 {
    order: 2;
  }

  .sales-page .commerce-hero-copy .hero-lede {
    order: 3;
  }

  .sales-page .hero-platform-panel {
    order: 4;
  }

  .sales-page .hero-offer-strip {
    order: 5;
  }

  .sales-page .hero-actions {
    order: 6;
  }

  .sales-page .hero-trust-note {
    order: 7;
  }

  .sales-page .premium-showcase-strip {
    order: 8;
  }

  .sales-page .commerce-hero-copy h1 {
    font-size: 2rem;
    line-height: 1.02;
  }

  .sales-page .commerce-hero-copy .hero-lede {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-offer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0;
  }

  .hero-offer-strip div {
    min-height: 68px;
    padding: 11px 12px;
  }

  .hero-offer-strip strong {
    font-size: 0.92rem;
  }

  .sales-page .hero-actions {
    margin-top: 4px;
  }

  .sales-page .hero-actions .button {
    width: 100%;
  }

  .sales-page .hero-platform-panel {
    gap: 8px;
    margin-top: 6px;
    padding: 12px;
  }

  .sales-page .hero-platform-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .sales-page .hero-platform-grid button {
    min-height: 46px;
  }

  .sales-page .hero-platform-grid img {
    max-width: 88%;
    max-height: 26px;
  }

  .sales-page .hero-panel-hint {
    display: none;
  }

  .client-portal-page .portal-workspace[data-awaiting-choice] .portal-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-portal-page .portal-workspace[data-awaiting-choice] .portal-tabs button {
    min-height: 86px;
  }
}
