/* IPTV Spree website — matches player branding */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --base: #0B0E1A;
  --surface: #171D33;
  --raised: #222A47;
  --ink: #F4F5FB;
  --muted: #9AA1C4;
  --spree-a: #FF4D6D;
  --spree-b: #FFB347;
  --spree-c: #7C5CFF;
  --grad: linear-gradient(100deg, var(--spree-a), var(--spree-b));
  --grad-soft: linear-gradient(135deg, rgba(255,77,109,0.35), rgba(255,179,71,0.2));
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --glow: 0 0 60px rgba(255, 77, 109, 0.22);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.35);
  --section-space: clamp(56px, 9vw, 96px);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--base);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(255, 77, 109, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 8%, rgba(255, 179, 71, 0.14), transparent 50%),
    radial-gradient(ellipse 55% 40% at 50% 105%, rgba(124, 92, 255, 0.1), transparent 55%),
    var(--base);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
a { color: var(--spree-b); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--spree-b);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1140px, 92vw); margin: 0 auto; position: relative; }
body.page-sub { display: flex; flex-direction: column; min-height: 100vh; }
body.page-sub > .wrap { flex: 1; display: flex; flex-direction: column; width: min(1140px, 92vw); }
body.page-sub .blog-main { flex: 1; }
body.page-sub .site-footer { margin-top: auto; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 0; margin-bottom: 8px;
  position: sticky; top: 0; z-index: 100;
  transition: border-color 0.25s ease;
  isolation: isolate;
}
.site-header.scrolled {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.scrolled::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(11, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink) !important; text-decoration: none !important;
  line-height: 1;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  display: block;
}
.logo:hover { opacity: 0.92; text-decoration: none !important; }
.logo-word {
  display: inline-flex; align-items: baseline; gap: 0.45em;
}
.logo-iptv {
  font-weight: 700; letter-spacing: 0.06em; color: var(--ink);
}
.logo-spree {
  display: inline-flex; font-weight: 800; letter-spacing: 0.07em;
}
.logo-spree .ls-s { color: #FF4D6D; }
.logo-spree .ls-p { color: #FF6B4A; }
.logo-spree .ls-r { color: #FF8A42; }
.logo-spree .ls-e1 { color: #FFB347; }
.logo-spree .ls-e2 { color: #FFD06A; }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.nav a {
  color: var(--muted); font-size: 0.92rem; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav .nav-cta {
  color: #1A0A10; background: var(--grad); font-weight: 700;
}
.nav .nav-cta:hover { opacity: 0.92; color: #1A0A10; transform: translateY(-1px); }

.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--grad); color: #1A0A10;
  box-shadow: 0 8px 28px rgba(255, 77, 109, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(255, 77, 109, 0.45); }
.btn-ghost {
  background: rgba(23, 29, 51, 0.7); color: var(--ink);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 179, 71, 0.35); background: rgba(34, 42, 71, 0.85); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.section { margin: var(--section-space) 0; }
.section-head-center { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--spree-b); margin-bottom: 10px;
}
.section-head-center h2 {
  font-family: var(--font-display); font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px;
}
.section-head-center p { color: var(--muted); font-size: 1.05rem; }

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px;
  margin: 8px 0 var(--section-space);
  padding: 18px 24px;
  background: rgba(23, 29, 51, 0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--spree-a); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 0; }
.card {
  background: linear-gradient(165deg, rgba(34, 42, 71, 0.55), rgba(23, 29, 51, 0.9));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 71, 0.25);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card .icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,0.08);
  color: var(--spree-a);
}
.card .icon svg { width: 24px; height: 24px; }

.step-card { text-align: center; }
.step-num {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  background: var(--grad); color: #1A0A10;
  flex-shrink: 0;
}

.site-header-flow {
  margin-bottom: 4px;
}
.site-header-flow .logo-mark { width: 32px; height: 32px; }
.flow-home-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.flow-home-link:hover { color: var(--ink); background: rgba(255,255,255,0.06); text-decoration: none; }

.how-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(36px, 5vw, 72px);
  width: 100%;
  margin: var(--section-space) 0;
  scroll-margin-top: 96px;
}
.how-copy {
  flex: 1 1 auto;
  max-width: 40rem;
  padding-bottom: 4px;
  min-width: 0;
}
.how-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.how-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.how-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-benefits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.how-benefits strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.how-step-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: #1A0A10;
  background: var(--grad);
  border: 1px solid rgba(255,255,255,0.08);
}
.how-visual {
  position: relative;
  flex: 0 0 auto;
  width: min(460px, 42vw);
  height: clamp(380px, 42vw, 480px);
  overflow: hidden;
}
.how-phone {
  margin: 0;
  width: 100%;
  padding: 11px 10px 14px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a2f3d 0%, #14171f 55%, #0c0e14 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 28px 56px rgba(0, 0, 0, 0.55);
}
.how-phone::before {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #05060a;
}
.how-phone-screen {
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 40% at 20% 0%, rgba(255,77,109,0.18), transparent 55%),
    radial-gradient(ellipse 70% 35% at 100% 10%, rgba(124,92,255,0.16), transparent 50%),
    #0B0E1A;
  padding: 18px 14px 20px;
  min-height: 520px;
}
.how-phone-screen .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 6px;
}
.how-phone-screen h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.15;
  margin: 0 0 6px;
}
.how-phone-sub {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.how-phone-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.how-phone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
.how-phone-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
.how-phone-step.done {
  border-color: rgba(80, 200, 120, 0.45);
  color: #6ee7a0;
}
.how-phone-step.done span {
  background: rgba(80, 200, 120, 0.18);
  color: #6ee7a0;
}
.how-phone-step.active {
  border-color: rgba(255, 179, 71, 0.65);
  color: var(--spree-b);
}
.how-phone-step.active span {
  background: var(--grad);
  color: #1A0A10;
}
.how-phone-panel {
  border-radius: 14px;
  background: rgba(23, 29, 51, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
}
.how-phone-panel-head {
  margin-bottom: 10px;
}
.how-phone-panel-head strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.how-phone-panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
}
.how-phone-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  background: rgba(11, 14, 26, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
}
.how-phone-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.how-phone-card-name em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--spree-b);
  vertical-align: middle;
}
.how-phone-card-meta {
  color: var(--muted);
  font-size: 0.68rem;
}
.how-phone-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.how-phone-card-actions span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--spree-b);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  text-align: center;
}
@media (max-width: 860px) {
  .how-section {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .how-copy {
    max-width: none;
    width: 100%;
    order: 1;
  }
  .how-visual {
    order: 0;
    width: min(260px, 72vw);
    height: 260px;
  }
}

.pricing { margin: var(--section-space) 0; text-align: center; }
.pricing h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.pricing > p { color: var(--muted); margin-bottom: 36px; font-size: 1.05rem; }

.launch-story-section {
  margin: var(--section-space) 0;
}
.launch-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.story-compact {
  text-align: left;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(155deg, rgba(34, 42, 71, 0.45), rgba(23, 29, 51, 0.88));
  height: 100%;
}
.story-compact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.story-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.story-context {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
  opacity: 0.92;
}
.story-pains {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
.story-pains li {
  font-size: 0.8rem;
  color: var(--ink);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 14, 26, 0.55);
  border: 1px solid rgba(255, 179, 71, 0.2);
  line-height: 1.3;
}
.story-close {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.story-close strong { color: var(--spree-b); font-weight: 600; }

.launch-panel {
  text-align: left;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(155deg, rgba(34, 42, 71, 0.35), rgba(23, 29, 51, 0.82));
  height: 100%;
}
.launch-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.launch-intro {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.launch-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: none;
  margin: 0 0 16px;
}
.launch-form input[type="email"] {
  width: 100%;
  flex: none;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(23, 29, 51, 0.85);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.2;
}
.launch-player-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.launch-player-field select {
  width: 100%;
  flex: none;
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background-color: rgba(23, 29, 51, 0.85);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  line-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.launch-form input[type="email"]:focus,
.launch-player-field select:focus {
  outline: none;
  border-color: rgba(255, 179, 71, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
}
.launch-player-label {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 4px;
}
.launch-form .btn { width: 100%; padding-left: 24px; padding-right: 24px; }
.launch-form-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}
.launch-form-msg {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.launch-form-msg.is-success { color: #6ee7a0; }
.launch-form-msg.is-error { color: #fca5a5; }
.price-cards { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.price-card {
  background: linear-gradient(165deg, rgba(34, 42, 71, 0.5), rgba(23, 29, 51, 0.95));
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 34px; width: min(300px, 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  border-color: rgba(255,179,71,0.45);
  box-shadow: var(--glow), var(--shadow-card);
}
.price-card .ribbon {
  position: absolute; top: 16px; right: -4px;
  background: var(--grad); color: #1A0A10;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px 0 0 999px;
}
.price-card h3 { font-size: 1.05rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: var(--font); }
.price-card ul { list-style: none; text-align: left; margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }
.price-card li { padding: 7px 0; }
.price-card li::before { content: "✓ "; color: var(--spree-b); font-weight: 700; }

.panel {
  background: linear-gradient(165deg, rgba(34, 42, 71, 0.45), rgba(23, 29, 51, 0.92));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 36px; max-width: 480px; margin: 32px auto;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,77,109,0.25), transparent 40%, rgba(255,179,71,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.panel h1 { font-family: var(--font-display); font-size: 1.65rem; margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.panel .sub { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; line-height: 1.5; }
.panel a { color: var(--spree-b); }
.panel-wide { max-width: 560px; }
.panel-center { text-align: center; }
.panel-cta { margin-top: 20px; }
.panel-price-cards { margin: 0 0 20px; justify-content: center; }
.panel-price-cards .price-card { width: min(220px, 100%); padding: 22px; cursor: pointer; }
.plan-options { border: 0; padding: 0; }
.plan-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
.price-card:has(.plan-radio:focus-visible) {
  outline: 3px solid var(--spree-b);
  outline-offset: 4px;
}
.panel-price-cards .price-card.selected {
  border-color: rgba(255, 179, 71, 0.55);
  box-shadow: var(--glow);
  transform: scale(1.02);
}
.price-note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.pay-note { color: var(--muted); font-size: 0.8rem; margin-top: 16px; text-align: center; }
.pay-legal { color: var(--muted); font-size: 0.78rem; margin-top: 12px; text-align: center; line-height: 1.5; }
.pay-legal a { color: var(--spree-b); }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
  flex: 1; padding: 10px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--raised); color: var(--muted); font-weight: 600;
}
.tab.active { background: var(--grad); color: #1A0A10; }
.credential-state { font-weight: 400; color: var(--spree-b); }

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input, select {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  background: var(--raised); border: 2px solid transparent; border-radius: 10px;
  color: var(--ink); font-size: 1rem;
}
input:focus { outline: none; border-color: var(--spree-b); }

.msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.msg.ok { background: rgba(80,200,120,0.15); color: #8ce8a8; }
.msg.err { background: rgba(255,77,109,0.15); color: #ff8fa0; }
.msg.info { background: rgba(255,179,71,0.12); color: var(--spree-b); }

.qr-box { text-align: center; margin: 20px 0; }
.qr-box img { border-radius: 12px; background: #fff; padding: 8px; max-width: 220px; }

.site-footer {
  margin-top: 40px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(154, 161, 196, 0.6);
  font-size: 0.7rem;
  line-height: 1.4;
}
.site-footer a {
  color: rgba(154, 161, 196, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-meta { margin: 0; }
.footer-sep { margin: 0 0.35em; opacity: 0.35; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}
.footer-links a {
  white-space: nowrap;
  padding: 2px 0;
}

.legal-page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 24px auto 28px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.legal-page h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal-page .legal-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal-page p, .legal-page li {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
.legal-page ul, .legal-page ol { margin: 0 0 14px 1.2em; }
.legal-page a { color: var(--spree-b); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page .legal-callout {
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.9rem;
}
.legal-page .legal-callout strong { color: var(--ink); }

.page-flow {
  flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0 40px;
}
.flow-hero {
  text-align: center; max-width: 520px; margin-bottom: 24px;
}
.flow-hero .eyebrow { margin-bottom: 8px; }
.flow-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800; margin-bottom: 8px;
}
.flow-hero p { color: var(--muted); font-size: 0.95rem; }
.flow-steps {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; max-width: 560px;
}
.flow-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
}
.flow-step.active { color: var(--ink); border-color: rgba(255,179,71,0.35); background: rgba(255,179,71,0.1); }
.flow-step.done { color: #8ce8a8; border-color: rgba(80,200,120,0.3); }
.flow-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.flow-step.active .flow-step-num { background: var(--grad); color: #1A0A10; }
@media (max-width: 430px) {
  .page-flow { padding: 4px 0 28px; }
  .flow-hero { margin-bottom: 16px; max-width: none; }
  .flow-hero h1 { font-size: 1.45rem; }
  .flow-hero p { font-size: 0.88rem; padding: 0 4px; }
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
  }
  .flow-step {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 14px;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .site-header-flow { padding: 10px 0; margin-bottom: 0; }
  .site-header-flow .logo-mark { width: 28px; height: 28px; }
  .site-header-flow .logo { gap: 8px; font-size: 1.05rem; }
  .flow-home-link { padding: 6px 10px; font-size: 0.8rem; }
  .panel.panel-wide { padding: 18px 14px; }
}
body.marketing-shot .site-footer,
body.marketing-shot .compliance-strip { display: none !important; }
body.marketing-shot .flow-home-link,
body.marketing-shot .site-header-flow { display: none !important; }
body.marketing-shot .page-flow { padding-top: 28px !important; }

.success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(80,200,120,0.15); border: 2px solid rgba(80,200,120,0.4);
  animation: success-pop 0.5s ease;
}
.success-icon svg { width: 36px; height: 36px; color: #8ce8a8; }
@keyframes success-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.next-steps { text-align: left; margin: 24px 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li {
  color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5;
  padding-left: 32px; position: relative; counter-increment: step;
}
.next-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  background: var(--grad); color: #1A0A10;
}
.next-steps strong { color: var(--ink); }

/* ---------- playlist sync (multi-TV) ---------- */
.sync-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin: var(--section-space) 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(34, 42, 71, 0.45), rgba(23, 29, 51, 0.75));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}
.sync-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.sync-copy > p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 24px; }
.sync-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.sync-benefits li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--muted); font-size: 0.95rem; line-height: 1.55;
}
.sync-benefits strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.sync-benefit-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,0.08);
  color: var(--spree-a);
}
.sync-benefit-icon svg { width: 18px; height: 18px; }

.sync-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.sync-diagram {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.sync-tv {
  text-align: center;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: rgba(11, 14, 26, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sync-tv svg { width: 28px; height: 28px; margin: 0 auto 8px; display: block; color: var(--ink); }
.sync-tv.highlight {
  border-color: rgba(255, 179, 71, 0.45);
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.15);
}
.sync-hub {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
  position: relative;
}
.sync-hub::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,179,71,0.35), transparent);
  z-index: 0;
}
.sync-phone, .sync-cloud {
  position: relative; z-index: 1;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.sync-phone svg, .sync-cloud svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--spree-b); }
.sync-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--spree-b);
  box-shadow: 0 0 12px var(--spree-b);
  animation: pulse-dot 2s ease infinite;
}
.sync-caption {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .sync-section { grid-template-columns: 1fr; }
  .sync-visual { order: -1; min-height: auto; }
}

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px;
  font-size: 0.85rem; color: var(--muted); line-height: 1.45;
}
.checkbox-row input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.checkbox-row a { color: var(--spree-b); }

.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.section-note { color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin: 0; }

.playlist-section {
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.playlist-list { display: flex; flex-direction: column; gap: 12px; }
.playlist-card {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  background: var(--raised); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px;
}
.playlist-card-main { min-width: 0; flex: 1; }
.playlist-card-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.playlist-card-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.playlist-card-detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem; color: var(--ink); word-break: break-all;
}
.playlist-card-updated { color: var(--muted); font-size: 0.78rem; margin-top: 8px; }
.playlist-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,179,71,0.15); color: var(--spree-b); font-size: 0.75rem; font-weight: 600;
}
.playlist-card-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-ghost.danger { color: #ff8fa0; }
.btn-ghost.danger:hover { background: rgba(255,77,109,0.12); }

.compliance-strip {
  background: transparent; border: none; border-radius: 0;
  padding: 0; margin: 32px 0 0; text-align: center;
}
.compliance-strip h2 { display: none; }
.compliance-strip p { display: none; }
.compliance-strip .footer-links { margin-bottom: 0; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-sidebar h2 { font-size: 1rem; margin: 0 0 20px 8px; }
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.admin-sidebar .nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar .nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(160, 170, 190, 0.55);
  padding: 0 12px 6px;
}
.admin-sidebar nav a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted);
}
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: var(--raised); color: var(--ink); text-decoration: none; }
.mi-more-actions {
  position: relative;
}
.mi-more-actions > summary {
  list-style: none;
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  user-select: none;
}
.mi-more-actions > summary::-webkit-details-marker { display: none; }
.mi-more-actions > summary:hover { color: var(--ink); border-color: rgba(255,255,255,0.22); }
.mi-more-actions[open] > summary {
  color: var(--ink);
  border-color: rgba(255, 107, 53, 0.45);
}
.mi-more-actions > .btn,
.mi-more-actions > a.btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.mi-more-actions[open] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 150px;
}
.admin-main { padding: 28px 32px; overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(255,255,255,0.06); }
.stat .val { font-size: 1.8rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
th { color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge.trial { background: rgba(255,179,71,0.2); color: var(--spree-b); }
.badge.active { background: rgba(80,200,120,0.2); color: #8ce8a8; }
.badge.expired { background: rgba(255,77,109,0.2); color: #ff8fa0; }
.badge.revoked { background: rgba(255,77,109,0.2); color: #ff8fa0; }
.badge.none { background: rgba(255,255,255,0.08); color: var(--muted); }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-actions button { padding: 6px 12px; font-size: 0.8rem; border-radius: 8px; border: none; cursor: pointer; background: var(--raised); color: var(--ink); }
.admin-actions button.danger,
.admin-toolbar .danger,
.admin-actions .danger { background: rgba(255,77,109,0.25); color: #ff8fa0; }
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-main input,
.admin-main select {
  width: auto;
  flex: 1 1 180px;
  max-width: 320px;
  margin-bottom: 0;
}
.admin-main .admin-toolbar .btn,
.admin-main .admin-actions .btn,
.admin-main .admin-toolbar button,
.admin-main .admin-actions button {
  margin-bottom: 0;
  flex-shrink: 0;
  width: auto;
  padding: 10px 18px;
  font-size: 0.85rem;
}
.admin-main .admin-toolbar input,
.admin-main .admin-actions select {
  padding: 10px 14px;
  font-size: 0.88rem;
}
.household-code {
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  background: var(--raised);
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-block;
  margin: 12px 0;
}
.device-table code.device-id,
code.device-id {
  font-size: 0.78rem;
  word-break: break-all;
  white-space: normal;
  display: inline-block;
  max-width: 280px;
}
.device-table td { vertical-align: top; }

/* Customer map (admin dashboard) */
.map-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}
.map-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.map-panel-header h2 { font-size: 1.05rem; margin: 0; font-weight: 700; }
.map-panel-header .map-meta { color: var(--muted); font-size: 0.82rem; }
.map-panel-toggle {
  background: var(--raised);
  border: none;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.map-panel-body { height: 0; overflow: hidden; transition: height 0.25s ease; }
.map-panel.open .map-panel-body { height: 380px; }
.mi-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.mi-h1 { margin: 0 0 4px; font-size: 1.5rem; }
.mi-lead { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 520px; }
.mi-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Admin household detail */
.hh-detail { max-width: 1100px; }
.hh-detail .hh-back { margin-bottom: 12px; }
.hh-detail .household-code.hh-code-inline {
  margin: 8px 0 0;
  font-size: 1.15rem;
  padding: 8px 14px;
}
.hh-stats { margin-bottom: 18px; }
.hh-stats .stat .val { font-size: 1.15rem; line-height: 1.3; }
.hh-stats .hh-stat-date,
.hh-stats .hh-stat-plan { font-size: 0.98rem; font-weight: 700; word-break: break-word; }
.hh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.hh-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.hh-card h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.hh-card-full { margin-bottom: 14px; }
.hh-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hh-section-head h2 { margin: 0; }
.hh-dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.hh-dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.hh-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.hh-dl dd {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-word;
}
.hh-muted { color: var(--muted); }
.hh-current-email {
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.hh-saved-email {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(80, 200, 120, 0.08);
  border: 1px solid rgba(80, 200, 120, 0.28);
  border-radius: 12px;
}
.hh-saved-email-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: #8ce8a8;
  word-break: break-all;
  background: transparent;
  border: none;
  padding: 0;
}
.hh-email-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.hh-email-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.hh-detail .hh-email-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
}
.hh-detail .hh-email-row .btn {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.hh-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.hh-detail .hh-email-actions .btn { margin: 0; }
.hh-detail #hh-email-msg { margin-top: 10px; }

/* Household activity log */
.hh-activity {
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.hh-activity > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.hh-activity > summary::-webkit-details-marker { display: none; }
.hh-activity > summary:hover { background: rgba(255,255,255,0.03); }
.hh-activity[open] > summary {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hh-activity-sum-left,
.hh-activity-sum-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hh-activity-sum-right {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.hh-activity-sum-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.hh-activity-sum-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.22);
  color: #c6b8ff;
  font-size: 0.75rem;
  font-weight: 700;
}
.hh-activity-sum-preview {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
.hh-activity[open] .hh-activity-sum-preview { display: none; }
.hh-activity-sum-toggle {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spree-b);
  border: 1px solid rgba(255,179,71,0.35);
  background: rgba(255,179,71,0.08);
  padding: 5px 10px;
  border-radius: 8px;
}
.hh-activity[open] .hh-activity-sum-toggle {
  color: var(--ink);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}
.hh-activity-panel { padding: 12px 14px 14px; }
.hh-activity-empty {
  margin: 4px 2px 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.hh-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
}
.hh-log {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(11, 14, 26, 0.45);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.hh-log-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.hh-log-ok .hh-log-dot {
  background: #6fd98f;
  box-shadow: 0 0 0 3px rgba(80,200,120,0.18);
}
.hh-log-warn .hh-log-dot {
  background: #ffb347;
  box-shadow: 0 0 0 3px rgba(255,179,71,0.18);
}
.hh-log-bad .hh-log-dot {
  background: #ff8fa0;
  box-shadow: 0 0 0 3px rgba(255,77,109,0.18);
}
.hh-log-main { min-width: 0; }
.hh-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.hh-log-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.hh-log-when {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.hh-log-by {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.hh-log-by span {
  color: rgba(244,245,251,0.78);
  font-weight: 600;
}
.hh-log-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hh-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.3;
  word-break: break-word;
}
.hh-chip em {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.66rem;
}
.hh-chip-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hh-chip-plan {
  border-color: rgba(124,92,255,0.35);
  background: rgba(124,92,255,0.12);
}
.hh-chip-ok {
  border-color: rgba(80,200,120,0.3);
  background: rgba(80,200,120,0.1);
}
.hh-chip-bad {
  border-color: rgba(255,77,109,0.35);
  background: rgba(255,77,109,0.1);
}
@media (max-width: 640px) {
  .hh-activity > summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hh-activity-sum-right {
    width: 100%;
    justify-content: space-between;
  }
  .hh-activity-sum-preview {
    max-width: none;
    flex: 1;
  }
  .hh-log-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.hh-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,77,109,0.18);
}
.hh-danger .admin-toolbar { margin: 0; }
@media (max-width: 860px) {
  .hh-grid { grid-template-columns: 1fr; }
  .hh-dl > div { grid-template-columns: 1fr; gap: 4px; }
}
.mi-dashboard {
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.mi-controls {
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mi-filters, .mi-bulk { margin: 0; padding: 0; border: none; background: none; }
.mi-bulk { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.mi-search { min-width: 140px; max-width: 200px; }
.mi-list { display: flex; flex-direction: column; gap: 10px; }
.mi-status { margin-bottom: 0; }
.mi-status-summary { margin: 10px 0 0; line-height: 1.55; max-width: 72rem; }
.mi-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.mi-stat {
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 88px;
}
.mi-stat-n { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.mi-stat-l { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.mi-stat.warn .mi-stat-n { color: #ff8fa0; }
.mi-stat.good .mi-stat-n { color: var(--spree-b); }
.mi-meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; }
.mi-toolbar { margin-bottom: 16px; }
.mi-bulk-bar { margin-bottom: 14px; align-items: center; }
.mi-select-all-label, .mi-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
}
.mi-select-label input, .mi-select-all-label input { width: 16px; height: 16px; accent-color: var(--spree-b); }
.mi-card-head .mi-select-label { margin-right: 2px; }
.mi-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
}
.mi-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.mi-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.78rem; color: var(--muted); }
.mi-src-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mi-src-pill.reddit { background: rgba(255,69,0,0.15); color: #ff8c5a; border: 1px solid rgba(255,69,0,0.25); }
.mi-src-pill.forum { background: rgba(100,160,255,0.12); color: #8cb4ff; border: 1px solid rgba(100,160,255,0.22); }
.mi-src-sub { opacity: 0.85; font-weight: 500; }
.mi-src-sub::before { content: '·'; margin: 0 4px; opacity: 0.6; }
.mi-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.mi-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.mi-tag-reply { background: rgba(80,200,120,0.12); color: #8fdfb0; }
.mi-tag-ai { background: rgba(255,179,71,0.16); color: var(--spree-b); }
.mi-tag-skip { background: rgba(255,255,255,0.06); color: var(--muted); }
.mi-tag-pending { background: rgba(154,161,196,0.12); color: var(--muted); }
.mi-tag-score { font-variant-numeric: tabular-nums; font-weight: 600; }
.mi-tag-score.ok { background: rgba(255,179,71,0.18); color: var(--spree-b); }
.mi-tag-score.skip { background: rgba(255,255,255,0.07); color: #b0b6d4; }
.mi-ai-reason { font-size: 0.8rem; color: var(--spree-b); opacity: 0.9; margin: 4px 0 8px; }
.mi-ai-pct { color: var(--muted); font-weight: 600; }
.mi-card.mi-ai-eligible { border-color: rgba(255,179,71,0.28); }
.mi-tag-old { background: rgba(255,140,60,0.12); color: #ffb07a; }
.mi-app-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,179,71,0.12);
  color: #ffc87a;
}
.mi-app-more { background: rgba(255,255,255,0.06); color: var(--muted); }
.mi-score { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.mi-source, .mi-community { text-transform: capitalize; }
.mi-date { margin-left: auto; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.mi-title { margin: 0 0 6px; font-size: 0.98rem; line-height: 1.35; }
.mi-title a { color: var(--ink); text-decoration: none; }
.mi-title a:hover { color: var(--spree-b); text-decoration: underline; }
.mi-snippet { margin: 0 0 10px; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.mi-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }
.mi-author { font-size: 0.75rem; }
.mi-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.mi-card-foot .btn { padding: 4px 10px; font-size: 0.75rem; }
.mi-done-btn.is-done { border-color: rgba(80,200,120,0.35); color: #7dcea0; }
.mi-flash {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.mi-flash.ok { background: rgba(80,200,120,0.12); border: 1px solid rgba(80,200,120,0.25); color: #9fdfb8; }
.mi-flash.err { background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.25); color: #ffb3b3; }
.mi-flash.hidden { display: none; }

.mi-reply-log {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
}
.mi-reply-log.hidden { display: none; }
.mi-reply-log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.mi-reply-log-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.mi-reply-log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.mi-reply-log-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.mi-reply-log-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.mi-reply-log-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}

.mi-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mi-apps-details { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.mi-apps-details summary { cursor: pointer; user-select: none; }
.mi-apps { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mi-help-panel {
  background: rgba(255,179,71,0.08);
  border: 1px solid rgba(255,179,71,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.mi-help-panel { margin-bottom: 18px; }
.mi-help-panel ol { margin: 10px 0 10px 20px; }
.mi-help-panel pre { background: var(--raised); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 0.8rem; }
.mi-apps { margin: 8px 0 0; font-size: 0.8rem; }
.mi-apps .badge { margin-right: 4px; margin-bottom: 4px; }
.mi-app-tags .badge { margin-right: 4px; }
.mi-card.mi-done { opacity: 0.72; border-color: rgba(80,200,120,0.25); }
.mi-card.mi-done .mi-title a { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.25); }
.mi-card.mi-dismissed { opacity: 0.5; }
.mi-check-row {
  display: none;
}
.mi-draft {
  margin: 10px 0 0;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.mi-draft-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.8rem; color: var(--spree-b); font-weight: 600; }
.mi-draft-text {
  width: 100%;
  box-sizing: border-box;
  background: var(--raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 8px 10px;
  resize: vertical;
}
.chart-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.rev-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  width: 100%;
}
.rev-bar {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  cursor: default;
}
.rev-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--spree-b), #ff6b35);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.2s ease;
}
.an-chart-wrap {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 18px 12px;
  margin-bottom: 0;
  min-width: 0;
}
.an-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
}
.an-bar {
  flex: 1;
  min-width: 6px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.an-seg { width: 100%; min-height: 0; }
.an-seg-human { background: linear-gradient(180deg, #6ee7a0, #2f9e64); }
.an-seg-unc { background: linear-gradient(180deg, #ffb347, #d97706); }
.an-seg-bot { background: linear-gradient(180deg, #ff6b8a, #c4294b); }
.an-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
.an-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.an-dot-human { background: #6ee7a0; }
.an-dot-unc { background: #ffb347; }
.an-dot-bot { background: #ff6b8a; }
.an-explain {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.an-explain p { margin: 0 0 6px; }
.an-explain strong { color: var(--ink); font-weight: 600; }

/* Analytics breakdown cards — structured rows, no stretch chaos */
.an-tables {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.an-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}
.an-grid-main {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.an-grid-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.an-grid-foot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.an-grid-signups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Honeypot — invisible to humans, present in the DOM for bots */
.launch-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.an-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.an-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 650;
  flex: 0 0 auto;
}
.an-card-scroll {
  overflow: auto;
  max-height: 280px;
  margin: 0 -4px;
  padding: 0 4px;
}
.an-card-tall .an-card-scroll { max-height: 360px; }
.an-card .admin-table {
  font-size: 0.8rem;
  table-layout: fixed;
  width: 100%;
}
.an-card .admin-table th,
.an-card .admin-table td {
  padding: 7px 6px;
  vertical-align: middle;
}
.an-card .admin-table th:first-child,
.an-card .admin-table td:first-child {
  width: auto;
}
.an-card .admin-table th:not(:first-child),
.an-card .admin-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  width: 4.5rem;
}
.an-card .admin-table td:first-child code,
.an-path {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  word-break: normal;
}
.an-card .admin-table td:first-child code:hover,
.an-path:hover {
  white-space: normal;
  overflow: visible;
  word-break: break-all;
}
.an-card .mi-meta { margin: 0; }
@media (max-width: 1100px) {
  .an-grid-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .an-charts-row { grid-template-columns: 1fr; }
  .an-grid-main,
  .an-grid-foot,
  .an-grid-signups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .an-grid-meta { grid-template-columns: 1fr; }
}
.an-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}
.an-kind-genuine {
  color: #6ee7a0;
  background: rgba(80, 200, 120, 0.12);
  border-color: rgba(80, 200, 120, 0.35);
}
.an-kind-uncertain {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.35);
}
.an-kind-bot,
.an-kind-likely-bot {
  color: #ff8da3;
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.35);
}
.an-delta {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.an-delta.up { color: #6ee7a0; }
.an-delta.down { color: #ff8da3; }
.an-delta.flat { color: var(--muted); }
.an-charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.an-chart-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.an-hour-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
}
.an-hour-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.95), rgba(255, 107, 53, 0.45));
}
.an-map-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin-bottom: 20px;
}
.an-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.an-map-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.an-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.an-map-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.an-map-btn:hover { color: var(--ink); border-color: rgba(255,255,255,0.22); }
.an-map-btn.active {
  color: #fff;
  background: rgba(255, 107, 53, 0.22);
  border-color: rgba(255, 107, 53, 0.55);
}
.an-map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1d24;
}
.an-map-legend { margin-top: 10px; margin-bottom: 0; }
#customer-map { width: 100%; height: 380px; background: #1a1d24; }
.map-empty {
  padding: 24px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.system-banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.88rem;
  border: 1px solid rgba(255,179,71,0.35);
  background: rgba(255,179,71,0.1);
  color: var(--ink);
}
.system-banner.ok {
  border-color: rgba(80,200,120,0.35);
  background: rgba(80,200,120,0.08);
}
.system-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.system-pill {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.system-pill.good { color: #8ce8a8; border-color: rgba(80,200,120,0.35); }
.system-pill.warn { color: var(--spree-b); border-color: rgba(255,179,71,0.35); }
.expiring-list { margin-bottom: 24px; }
.expiring-list h3 { font-size: 0.95rem; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.expiring-list ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--ink); }
.expiring-list li { margin-bottom: 4px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.backup-codes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-family: ui-monospace, monospace; font-size: 0.95rem;
}
.backup-codes span {
  background: var(--raised); padding: 10px 12px; border-radius: 8px; text-align: center;
}
.auth-panel { max-width: 420px; width: 100%; }
.wizard-steps {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
  font-size: 0.75rem; color: var(--muted);
}
.wizard-steps span { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.wizard-steps span.active { background: rgba(99,179,255,0.2); color: var(--ink); }
.wizard-steps span.done { background: rgba(80,200,120,0.15); color: #8fd4a8; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .wrap {
    width: min(1140px, 100%);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top)) 0 12px;
  }
  .logo {
    font-size: 0.95rem;
    gap: 8px;
    justify-content: center;
    align-self: center;
    width: auto;
    max-width: 100%;
    padding: 0;
  }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { gap: 0.35em; }
  .logo-spree { letter-spacing: 0.03em; }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    font-size: 0.76rem;
    padding: 7px 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .launch-form { max-width: 100%; }
  .section { padding-left: 0; padding-right: 0; }
  .launch-story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-compact,
  .launch-panel { padding: 22px 18px; }
  .story-pains li { font-size: 0.76rem; }
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; min-width: 0; }
  .admin-sidebar {
    min-height: auto;
    padding: 12px 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .admin-sidebar h2 { margin: 0 0 10px; text-align: center; }
  .admin-sidebar nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .admin-sidebar .nav-group { flex-direction: row; flex: 0 0 auto; gap: 4px; }
  .admin-sidebar .nav-label { display: none; }
  .admin-sidebar nav a { white-space: nowrap; padding: 8px 10px; }
  .admin-sidebar #logout-btn { width: auto !important; margin: 6px auto 0 !important; padding: 8px 18px; }
  .admin-main { padding: 20px 16px; width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .admin-toolbar,
  .admin-actions { align-items: stretch; }
  .admin-main input,
  .admin-main select,
  .admin-main .admin-toolbar .btn,
  .admin-main .admin-actions .btn,
  .admin-main .admin-toolbar button,
  .admin-main .admin-actions button {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.badge.ok { background: rgba(80,200,120,0.2); color: #8ce8a8; }
.blog-admin-panel {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.blog-admin-panel label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.blog-admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.blog-topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.blog-admin-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.blog-admin-actions .btn {
  margin: 0;
  width: auto;
  min-height: 0;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 7px;
  box-shadow: none !important;
  transform: none !important;
}
.blog-admin-actions .btn-primary:hover {
  box-shadow: none !important;
  transform: none !important;
}
.blog-admin-actions .btn-ghost {
  padding: 4px 9px;
}
.admin-table .blog-sched-dt {
  font-size: 0.78rem;
  padding: 4px 6px;
  max-width: 11.5rem;
}
.blog-admin-editor {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(23,29,51,0.8);
  display: grid;
  gap: 8px;
}
.blog-admin-editor.hidden { display: none; }
.blog-admin-editor input, .blog-admin-editor textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.blog-admin-cover { max-width: 420px; border-radius: 10px; margin-bottom: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.admin-table-wrap { overflow-x: auto; }
