:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: rgba(17, 27, 33, 0.1);
  --text: #111b21;
  --muted: #54656f;
  --primary: #008069;
  --primary-hover: #006e5a;
  --wa-green: #25d366;
  --wa-green-hover: #1ebe5b;
  --wa-mint: #d9fdd3;
  --wa-cream: #fcf5eb;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --success: #008069;
  --success-bg: #d9fdd3;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

body.is-landing {
  background: var(--wa-cream);
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 14px calc(24px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0 0 22px 22px;
  margin: -12px 0 20px;
  box-shadow: 0 6px 20px rgba(17, 27, 33, 0.06);
}

body.is-landing .topbar {
  background: rgba(252, 245, 235, 0.97);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-actions-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.profile-avatar,
.profile-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-avatar {
  object-fit: cover;
}

.profile-avatar-fallback {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.profile-meta {
  min-width: 0;
  line-height: 1.2;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.profile-name-row strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.profile-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.profile-signout {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  background: #ffffff !important;
}

.household-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  min-height: 38px;
  max-width: 145px;
}

/* ── WhatsApp.com Light Landing Page ── */
.landing-page {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-bottom: 24px;
}

.wa-hero {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 32px;
  padding: 52px 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(17, 27, 33, 0.03), 0 24px 60px rgba(17, 27, 33, 0.07);
  background-image:
    radial-gradient(circle at 88% 18%, rgba(37, 211, 102, 0.14), transparent 44%),
    radial-gradient(circle at 12% 92%, rgba(0, 128, 105, 0.06), transparent 42%);
}

.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eafdf0;
  border: 1px solid rgba(0, 128, 105, 0.18);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22);
}

.wa-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.3vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.wa-hero-sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.wa-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wa-trust-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.wa-trust-row .dot {
  opacity: 0.4;
}

.wa-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 28px;
}

.phone-frame {
  width: 100%;
  max-width: 344px;
  background: #ffffff;
  border: 6px solid #e7ecee;
  border-radius: 36px;
  padding: 12px 12px 16px;
  box-shadow: 0 20px 50px rgba(17, 27, 33, 0.12);
}

.phone-notch {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: #d8dfe2;
  margin: 0 auto 12px;
}

.phone-screen {
  background: var(--wa-cream);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 4px 4px;
}

.phone-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.phone-app-brand img {
  border-radius: 6px;
  display: block;
}

.phone-live-tag {
  color: var(--primary);
  font-size: 11px;
  background: #eafdf0;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.floating-pair-badge {
  position: relative;
  margin-top: -18px;
  align-self: flex-end;
  margin-right: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 16px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 26px rgba(0, 128, 105, 0.28);
}

.floating-pair-badge strong {
  font-size: 18px;
  letter-spacing: 1.5px;
}

.btn-wa-green {
  background: var(--wa-green);
  color: #111b21;
  border-radius: 999px;
  font-weight: 700;
}

.btn-wa-green:hover {
  background: var(--wa-green-hover);
}

.btn-wa-outline {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn-wa-outline:hover {
  background: #ebedf0;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
  min-height: 48px;
}

.wa-hero-mockup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wa-cream);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.mockup-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 4px 12px rgba(17, 27, 33, 0.04);
}

.mockup-card.locked {
  border-color: rgba(220, 38, 38, 0.35);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.mockup-meta {
  min-width: 0;
}

.mockup-tv-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--text);
}

.mockup-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.mockup-pill.online {
  background: var(--success-bg);
  color: var(--primary);
}

.mockup-pill.locked {
  background: var(--danger-bg);
  color: var(--danger);
}

.mockup-timer {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.mockup-timer.locked-txt {
  font-size: 15px;
  color: var(--danger);
}

.mockup-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.m-btn.green { background: var(--wa-green); color: #111b21; }
.m-btn.teal { background: var(--primary); color: #ffffff; }
.m-btn.dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.m-btn.red { background: var(--danger-bg); color: var(--danger); }

.mockup-pair-chip {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.mockup-pair-chip strong {
  letter-spacing: 1.5px;
  font-size: 15px;
}

.wa-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
}

.wa-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.wa-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
}

.wa-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.wa-steps-grid,
.wa-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wa-step-card,
.wa-feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(17, 27, 33, 0.04);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #111b21;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.wa-step-card h3,
.wa-feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}

.wa-step-card p,
.wa-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.feat-svg,
.setup-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eafdf0;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.setup-guide-head .setup-icon {
  margin-bottom: 0;
}

.wa-step-card,
.wa-feature-card,
.setup-guide-card {
  background: #ffffff;
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(17, 27, 33, 0.03), 0 10px 28px rgba(17, 27, 33, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wa-feature-card:hover,
.setup-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 27, 33, 0.04), 0 16px 36px rgba(17, 27, 33, 0.07);
}

.wa-feature-card code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary);
}

.wa-cta-banner {
  background: var(--primary);
  color: #ffffff;
  border-radius: 26px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.wa-cta-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}

.wa-cta-banner p {
  margin: 0;
  color: var(--wa-mint);
  font-size: 15px;
}

.wa-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ── Auth, Dashboard & Modals (Light Theme Only, Mobile Optimized) ── */
.center-card {
  max-width: 440px;
  margin: 32px auto;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(17, 27, 33, 0.08);
}

.hero-icon {
  font-size: 46px;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 13px;
  min-height: 40px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--danger);
}

.btn-success {
  background: var(--success-bg);
  border-color: rgba(0, 128, 105, 0.28);
  color: var(--primary);
}

.btn-warning {
  background: var(--warning-bg);
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--warning);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-google {
  width: 100%;
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(17, 27, 33, 0.06);
}

.invite-banner {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wa-mint);
  border: 1px solid rgba(0, 128, 105, 0.25);
  color: var(--primary);
  font-size: 13px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* 16px font-size prevents iOS Safari auto-zoom on input focus */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.code-input {
  text-align: center;
  font-size: 22px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.code-input-hero {
  height: 68px !important;
  font-size: 34px !important;
  font-weight: 800;
  letter-spacing: 4px;
  border: 2px solid rgba(0, 128, 105, 0.3) !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 128, 105, 0.08);
}

.code-input-hero:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 128, 105, 0.14);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: -2px 0;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-scan-qr-full {
  width: 100%;
  height: 48px;
  border-radius: 14px;
}

.qr-scanner-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}

#qr-video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #111b21;
}

.slug-preview {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding-left: 12px;
  font-size: 14px;
  color: var(--muted);
}

.slug-preview input {
  border: none;
  background: transparent;
  padding-left: 4px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-header h2 {
  margin: 0 0 2px;
  font-size: 22px;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.tv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(17, 27, 33, 0.05);
}

.tv-card.is-locked {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.08);
}

.tv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.tv-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.tv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.pill.online { background: var(--success-bg); color: var(--primary); }
.pill.offline { background: #e9edef; color: var(--muted); }
.pill.locked { background: var(--danger-bg); color: var(--danger); }
.pill.paused { background: var(--warning-bg); color: var(--warning); }

.tv-timer-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.tv-countdown {
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: var(--text);
}

.tv-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tv-controls-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed rgba(17, 27, 33, 0.22);
  border-radius: 22px;
  padding: 36px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 27, 33, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(17, 27, 33, 0.2);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
}

.btn-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.setup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  margin: 10px 0 14px;
}

.setup-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.setup-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(17, 27, 33, 0.08);
}

.setup-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 54dvh;
  overflow-y: auto;
}

.setup-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.setup-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wa-mint);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.setup-step-row strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text);
}

.setup-step-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Device Setup Visualizations (TV & Smartphone) ── */
.viz-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 4px;
}

.viz-tv-bezel {
  width: 100%;
  max-width: 310px;
  background: #111b21;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(17, 27, 33, 0.16);
}

.viz-tv-screen {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 8px;
  padding: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viz-tv-stand {
  width: 72px;
  height: 7px;
  background: #334155;
  border-radius: 0 0 8px 8px;
}

.viz-tv-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.viz-tv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.viz-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.viz-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.viz-sub {
  font-size: 10px;
  color: #94a3b8;
}

.viz-qr-box {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 6px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.viz-qr-box span {
  background: #111b21;
  border-radius: 1px;
}

.viz-qr-box span:nth-child(2),
.viz-qr-box span:nth-child(4),
.viz-qr-box span:nth-child(6),
.viz-qr-box span:nth-child(8) {
  background: transparent;
}

.viz-pill-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  white-space: nowrap;
}

.viz-pill-btn.focused {
  background: #25d366;
  color: #111b21;
  font-weight: 700;
}

.viz-phone-bezel {
  width: 170px;
  background: #111b21;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(17, 27, 33, 0.16);
}

.viz-phone-notch {
  width: 44px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  margin: 0 auto 6px;
}

.viz-phone-screen {
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.viz-phone-screen .viz-tag {
  align-self: center;
}

.viz-phone-toggles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.viz-phone-bar {
  width: 50px;
  height: 3px;
  background: #475569;
  border-radius: 999px;
  margin: 6px auto 0;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
}

.invite-result {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.inline-action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.inline-action-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
}

.inline-action-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
  height: 46px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
}

.pin-input {
  text-align: center;
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
}

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

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(0, 128, 105, 0.18);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #111b21;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 28px rgba(17, 27, 33, 0.25);
}

/* ── Mobile Responsive & Bottom-Sheet Optimization ── */
/* ── FAQ Section ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(17, 27, 33, 0.03);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Support / Contact Form ── */
.wa-contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
  box-shadow: 0 10px 30px rgba(17, 27, 33, 0.05);
}

.wa-contact-info h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--text);
}

.wa-contact-info p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.wa-contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-contact-badges span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wa-mint);
  color: var(--primary);
}

.wa-contact-form {
  margin-top: 0;
}

.contact-success {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--success-bg);
  border: 1px solid rgba(0, 128, 105, 0.25);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.footer-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ── TV Screenshot Viewer Modal ── */
.modal-screenshot-card {
  max-width: 560px;
}

.screenshot-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.screenshot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Setup Instructions Cards & Modal ── */
.setup-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.setup-guide-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(17, 27, 33, 0.04);
}

.setup-guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.setup-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--wa-mint);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.setup-guide-head h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.setup-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.setup-list strong {
  color: var(--text);
}

.setup-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70dvh;
  overflow-y: auto;
}

.setup-modal-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.setup-modal-block h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

/* ── Pricing & Dummy Checkout ── */
.billing-toggle {
  display: inline-flex;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 999px;
  margin-top: 16px;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.save-badge {
  background: var(--wa-green);
  color: #111b21;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(17, 27, 33, 0.04);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 14px 34px rgba(0, 128, 105, 0.12);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--wa-green);
  color: #111b21;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.plan-sub {
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.checkout-notice {
  background: #fef3c7;
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: #92400e;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
}

.checkout-summary strong {
  font-size: 18px;
  color: var(--primary);
}

/* ── Consolidated Mobile & Tablet Responsive Rules (always last) ── */
@media (max-width: 860px) {
  .wa-hero,
  .wa-steps-grid,
  .wa-features-grid,
  .setup-guides-grid,
  .pricing-grid,
  .wa-contact-card {
    grid-template-columns: 1fr;
  }
  .wa-hero {
    padding: 28px 20px;
    gap: 24px;
  }
  .nav-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px 12px calc(24px + env(safe-area-inset-bottom));
  }
  .topbar {
    top: 0;
    padding: 10px 12px;
    margin: -10px -12px 16px;
    border-radius: 0 0 18px 18px;
    border-top: none;
    border-left: none;
    border-right: none;
    gap: 10px;
  }
  body:not(.is-landing) .topbar {
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  body:not(.is-landing) .user-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body:not(.is-landing) .profile-strip {
    width: 100%;
    border-radius: 14px;
    padding: 8px 10px;
  }
  body:not(.is-landing) .profile-meta {
    flex: 1;
  }
  body:not(.is-landing) .profile-name-row strong,
  body:not(.is-landing) .profile-email {
    max-width: none;
  }
  body:not(.is-landing) .user-actions-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  body:not(.is-landing) .user-actions-bar .household-select {
    flex: 1 1 100%;
    max-width: 100%;
  }
  body:not(.is-landing) .user-actions-bar .btn-sm {
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: 12px;
    min-height: 38px;
    white-space: nowrap;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .landing-nav .btn-sm {
    padding: 7px 11px;
    font-size: 12px;
    min-height: 36px;
  }
  .dash-header {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .dash-actions .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
  .tv-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .modal-card::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 27, 33, 0.16);
    margin: 0 auto 12px;
  }
  .wa-hero-ctas .btn,
  .wa-cta-banner .btn {
    width: 100%;
  }
  .wa-cta-banner {
    padding: 24px 20px;
  }
  .wa-step-card,
  .wa-feature-card,
  .setup-guide-card,
  .pricing-card,
  .wa-contact-card {
    padding: 22px 18px;
  }
}
