:root {
  --bg: #fffdf8;
  --bg-warm: #fbf5ea;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #1e293b;
  --ink-strong: #0f172a;
  --muted: #5b677a;
  --border: #e5e7eb;
  --border-warm: #fed7aa;

  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-soft: #fff7ed;

  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #f0fdfa;

  --green: #15803d;
  --green-soft: #ecfdf5;
  --green-border: #bbf7d0;

  --paypal: #0070ba;
  --paypal-dark: #005ea6;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, #fff5e8 0%, var(--bg) 42%, #f8fbfb 100%);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text {
  font-family: "Fredoka", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-strong);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.customer-auth-bar {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.auth-logged-out,
.auth-logged-in {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-auth-google,
.btn-auth-orders,
.btn-auth-signout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-auth-google {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-auth-google:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.google-g-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 78%, #ea4335 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.customer-email-pill {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.77rem;
  font-weight: 700;
}

.btn-auth-orders {
  border: 1.5px solid #99f6e4;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.btn-auth-orders:hover {
  background: #ccfbf1;
  border-color: var(--teal);
}

.btn-auth-signout {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--muted);
}

.btn-auth-signout:hover {
  border-color: #cbd5e1;
  color: var(--ink-strong);
}

.ui-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ui-lang-icon {
  position: absolute;
  left: 11px;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.ui-lang-switcher::after {
  content: "▾";
  position: absolute;
  right: 11px;
  font-size: 0.72rem;
  color: var(--ink-strong);
  pointer-events: none;
}

#uiLangSelect {
  width: auto;
  min-width: 124px;
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 31px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#uiLangSelect:hover {
  border-color: var(--primary);
  background: #fffaf5;
}

#uiLangSelect:focus-visible {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

/* Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-warm {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--border-warm);
}

.pill-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border: 1px solid #99f6e4;
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

/* Hero */
.hero-section {
  padding: 40px 0 28px;
}

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

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.07rem;
  color: var(--muted);
  max-width: 60ch;
}

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

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Hero Visual Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding-top: 22px;
  padding-left: 18px;
}

.mockup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.mockup-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 245px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
  border-color: #99f6e4;
  transform: rotate(-4deg);
}

.mockup-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-dark);
  text-transform: uppercase;
}

.mockup-title {
  font-weight: 800;
  font-size: 0.96rem;
  margin: 2px 0 6px;
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--muted);
}

.trace-dots {
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
}

.mockup-front {
  position: relative;
  margin-top: 46px;
  margin-left: 34px;
  padding: 16px;
  border: 2px solid #fed7aa;
}

.mockup-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.mockup-art {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mockup-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

/* Storefront Switcher */
.studio-section {
  padding: 12px 0 48px;
}

.storefront-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.storefront-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.storefront-tab:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.storefront-tab[data-storefront="story"].active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.14);
}

.storefront-tab[data-storefront="bilingual"].active {
  border-color: var(--teal);
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 70%);
  box-shadow: 0 10px 26px rgba(13, 148, 136, 0.14);
}

.tab-icon {
  font-size: 1.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-title {
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.tab-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Status Alert */
.status-alert {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.94rem;
}

.status-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.status-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* Studio Layout */
.studio-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: start;
}

.builder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.card-header h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
}

.step-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.step-pill-teal {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.price-display {
  text-align: right;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.price-value {
  font-family: "Fredoka", sans-serif;
  font-size: 1.45rem;
  color: var(--primary-dark);
}

.price-teal {
  color: var(--teal-dark);
}

/* COPPA Privacy Banner */
.coppa-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 18px;
}

.coppa-icon {
  font-size: 1.3rem;
  line-height: 1.2;
}

.coppa-banner strong {
  display: block;
  font-size: 0.9rem;
  color: #14532d;
}

.coppa-banner p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: #166534;
}

/* Form Elements */
.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 7px;
}

.label-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.label-hint {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

input[type="text"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink-strong);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

#panelBilingual input[type="text"]:focus,
#panelBilingual select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

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

/* Dropzones */
.dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: #fafcff;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dropzone.is-error {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.dropzone-compact {
  padding: 11px 12px;
}

.dropzone-icon {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.dropzone-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.dropzone-title .dropzone-browse {
  color: var(--primary-dark);
  text-decoration: underline;
}

.dropzone-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.dropzone-preview img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.dropzone-compact .dropzone-preview img {
  width: 44px;
  height: 44px;
}

.dropzone-file-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropzone-file-meta strong {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file-meta span {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

.btn-link-danger {
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
}

.btn-link-danger:hover {
  text-decoration: underline;
}

/* Co-Star Toggle Card */
.costar-box {
  margin-bottom: 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #fcfcfd;
  padding: 12px 14px;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

.toggle-card input:checked + .toggle-ui {
  background: var(--primary);
}

.toggle-card input:checked + .toggle-ui::after {
  transform: translateX(20px);
}

.toggle-card input:focus-visible + .toggle-ui {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.toggle-copy strong {
  font-size: 0.92rem;
}

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

.addon-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--border-warm);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.costar-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

/* Segmented Control (Paper Size) */
.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seg-option {
  position: relative;
  cursor: pointer;
}

.seg-option input {
  position: absolute;
  opacity: 0;
}

.seg-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  transition: all 0.15s ease;
  text-align: center;
}

.seg-option input:checked + span {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.seg-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.2);
}

/* Radio Cards (Age Tier & Bundle) */
.tier-cards,
.bundle-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card-body {
  height: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  transition: all 0.16s ease;
}

.radio-card input:checked + .radio-card-body {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.radio-card input:focus-visible + .radio-card-body {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.radio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.radio-card-top strong {
  font-size: 0.92rem;
  color: var(--ink-strong);
}

.radio-card-body p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.45;
}

.tag-pill,
.price-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
}

.tag-teal {
  background: #ccfbf1;
  color: var(--teal-dark);
}

.price-pill-save {
  background: var(--primary);
  color: #fff;
}

/* Learning Topic & Focus Item Chips */
.topic-section {
  margin-bottom: 18px;
}

.topic-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.topic-header .field-label {
  margin-bottom: 0;
}

.topic-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  padding: 3px 10px;
  border-radius: 999px;
}

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

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.topic-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.topic-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.13);
}

.topic-card:focus-visible,
.item-chip:focus-visible,
.btn-chip-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

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

.topic-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.89rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.topic-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  flex-shrink: 0;
}

.topic-card.active .topic-count-pill {
  background: #ccfbf1;
  color: var(--teal-dark);
}

.topic-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.items-focus-box {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.items-focus-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.items-focus-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.items-focus-title {
  font-size: 0.86rem;
  color: var(--ink-strong);
}

.items-focus-hint {
  font-size: 0.77rem;
  color: var(--muted);
}

.items-focus-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.selected-count-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 3px 10px;
  border-radius: 999px;
}

.btn-chip-reset {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-chip-reset:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.item-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.item-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.22);
}

/* Quick-Pick Bilingual Tiers */
.quickpick-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quickpick-header .field-label {
  margin-bottom: 0;
}

.free-pair-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  padding: 3px 10px;
  border-radius: 999px;
}

.quickpick-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
}

.qp-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qp-tier-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.qp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qp-btn {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.qp-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.qp-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.24);
}

/* Free Language Pair Box */
.lang-pair-box {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.lang-pair-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.pair-chip {
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 3px 10px;
  border-radius: 999px;
}

.lang-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.swap-btn {
  height: 44px;
  width: 44px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  cursor: pointer;
  transition: all 0.14s ease;
}

.swap-btn:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.inline-warn {
  margin: 8px 0 0;
  font-size: 0.81rem;
  font-weight: 600;
  color: #b45309;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.btn-lg {
  padding: 15px 20px;
  font-size: 1.03rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fb923c 0%, var(--primary-dark) 100%);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.24);
}

.btn-teal:hover:not(:disabled) {
  background: linear-gradient(135deg, #14b8a6 0%, var(--teal-dark) 100%);
}

.btn-paypal {
  background: linear-gradient(135deg, var(--paypal) 0%, var(--paypal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 112, 186, 0.24);
}

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

.btn-demo {
  background: var(--green);
  color: #fff;
}

.btn-demo:hover {
  background: #166534;
}

.btn-demo-alt {
  background: var(--ink-strong);
  color: #fff;
}

.btn-demo-alt:hover {
  background: #334155;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  color: var(--green);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.submit-footnote {
  margin: 9px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Info Sidebar */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.sidebar-soft {
  background: var(--primary-soft);
  border-color: var(--border-warm);
}

.sidebar-soft-teal {
  background: var(--teal-soft);
  border-color: #99f6e4;
}

.sidebar-card p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--ink);
}

.mini-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-badge-teal {
  color: var(--teal-dark);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--green);
}

.check-list strong {
  color: var(--ink-strong);
}

/* Preview & Paywall Section */
.preview-section {
  padding: 12px 0 48px;
}

.preview-shell {
  background: var(--surface);
  border: 2px solid var(--border-warm);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.preview-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.qa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: #14532d;
  border: 1px solid var(--green-border);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.preview-header h2 {
  margin: 0;
  font-size: 1.65rem;
}

.preview-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.preview-loading-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.preview-loading-card strong {
  font-size: 1rem;
  color: var(--ink-strong);
}

.preview-loading-card span {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 52ch;
}

.preview-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid #e2e8f0;
  border-top-color: var(--primary);
  animation: abw-spin 0.8s linear infinite;
}

.preview-loading-card.is-teal .preview-spinner {
  border-top-color: var(--teal);
}

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

.story-progress-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 26px;
  border: 2px solid var(--border-warm);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9f2 0%, #ffffff 65%, #f0fdfa 100%);
  box-shadow: var(--shadow-sm);
}

.story-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.story-progress-title {
  margin: 0;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.story-progress-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border-warm);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.story-progress-track {
  position: relative;
  width: 100%;
  height: 15px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.story-progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 45%, #f59e0b 85%, #fb923c 100%);
  background-size: 200% 100%;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: abw-progress-flow 1.8s linear infinite;
}

@keyframes abw-progress-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.story-progress-status {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.story-progress-hint {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.page-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-card.free-card {
  cursor: zoom-in;
}

.page-card.free-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #fff;
}

.page-thumb-wrap img {
  width: 100%;
  height: auto;
}

.watermark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.22);
  transform: rotate(-24deg);
  text-transform: uppercase;
  text-align: center;
  user-select: none;
}

.watermark-large {
  font-size: 1.35rem;
}

.page-card-footer {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.page-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

.page-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-free {
  background: var(--green-soft);
  color: var(--green);
}

.status-locked {
  background: #fef3c7;
  color: #92400e;
}

/* Locked Blur Paywall Card */
.page-card.locked-card {
  cursor: pointer;
}

.locked-card .page-thumb-wrap img {
  filter: blur(8px) grayscale(15%);
  opacity: 0.5;
  transform: scale(1.03);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  background: rgba(255, 253, 248, 0.58);
  backdrop-filter: blur(2px);
}

.lock-badge {
  background: var(--ink-strong);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.lock-hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

/* Checkout Box */
.checkout-box {
  margin-top: 26px;
  background: linear-gradient(135deg, #fff7ed 0%, #f0fdfa 100%);
  border: 2px solid var(--border-warm);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.checkout-price-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.checkout-info h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
}

.checkout-info p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--ink);
}

.checkout-trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-downloads {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.demo-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 4px;
  text-align: center;
}

.demo-lock-notice {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.demo-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demo-btn-row .btn {
  font-size: 0.83rem;
  padding: 11px 10px;
}

/* Why Section */
.why-section {
  padding: 42px 0 64px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.65);
}

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

.section-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  font-size: 1.85rem;
  margin-bottom: 10px;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
}

.coppa-strip {
  margin-top: 28px;
  background: var(--green-soft);
  border: 1.5px solid var(--green-border);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.coppa-strip-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.coppa-shield {
  font-size: 2rem;
  line-height: 1;
}

.coppa-strip h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  color: #14532d;
}

.coppa-strip p {
  margin: 0;
  font-size: 0.9rem;
  color: #166534;
}

/* Footer */
.site-footer {
  background: var(--ink-strong);
  color: #cbd5e1;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  color: #fff;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 44ch;
}

.footer-meta p {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
}

.footer-links a {
  color: #fdba74;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.auth-modal-card {
  max-width: 460px;
}

.orders-modal-card {
  max-width: 820px;
}

.lightbox-card {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.modal-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.modal-summary {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.checkout-member-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.85rem;
  color: #1e3a8a;
}

.checkout-provider-group {
  margin-bottom: 14px;
}

.inline-modal-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
}

.checkout-order-success {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: #14532d;
}

.checkout-order-success strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.checkout-order-success p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #166534;
}

.checkout-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-note {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--primary-soft);
  border: 1px solid var(--border-warm);
  padding: 10px 12px;
  border-radius: 10px;
}

.modal-note-spaced {
  margin-top: 16px;
}

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

/* Google Auth Modal */
.auth-gate-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--border-warm);
  color: var(--primary-dark);
  font-size: 0.87rem;
  font-weight: 700;
}

.google-gsi-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.dev-google-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-google-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink-strong);
}

.dev-google-form input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.btn-google-submit {
  background: #ffffff;
  color: var(--ink-strong);
  border: 1.5px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.btn-google-submit:hover:not(:disabled) {
  border-color: #2563eb;
  background: #eff6ff;
}

.dev-login-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Customer Orders & Support Messaging Modal */
.orders-email-line {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.orders-loading-state,
.orders-empty-state {
  padding: 28px 18px;
  border-radius: 14px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.orders-empty-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.orders-empty-state strong {
  display: block;
  font-size: 1rem;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.orders-empty-state p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.orders-workspace {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: stretch;
}

.orders-col-heading {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.order-item-card {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.order-item-card:hover {
  border-color: var(--teal);
}

.order-item-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.order-item-id {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.order-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  text-transform: uppercase;
}

.order-status-pill.is-paid,
.order-status-pill.is-fulfilled {
  background: var(--green-soft);
  color: var(--green);
}

.order-status-pill.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status-pill.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.order-item-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 3px;
}

.order-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.orders-chat-col {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
  min-height: 320px;
}

.order-messages-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 2px 10px;
}

.msg-empty-hint {
  margin: auto 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 18px 8px;
}

.msg-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}

.msg-bubble.is-customer {
  align-self: flex-end;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--ink-strong);
}

.msg-bubble.is-admin {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--ink-strong);
}

.msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}

.msg-body {
  margin: 0;
  white-space: pre-wrap;
}

.order-message-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.order-message-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 58px;
  padding: 9px 11px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink-strong);
  background: #ffffff;
}

.order-message-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.lightbox-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  background: #fff;
}

.lightbox-frame img {
  max-height: 74vh;
  width: auto;
  object-fit: contain;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .nav-cta .pill-badge {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .studio-layout,
  .checkout-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .orders-workspace {
    grid-template-columns: 1fr;
  }

  .customer-email-pill {
    display: none;
  }
}

@media (max-width: 680px) {
  .storefront-switcher,
  .form-row-2,
  .tier-cards,
  .topic-grid,
  .bundle-cards,
  .benefits-grid,
  .demo-btn-row,
  .modal-actions {
    grid-template-columns: 1fr;
  }

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

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

  .swap-btn {
    width: 100%;
    height: 38px;
  }

  .coppa-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .builder-card,
  .preview-shell {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-cta {
    margin-left: auto;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    gap: 8px;
    min-height: 58px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .btn-auth-google,
  .btn-auth-orders,
  .btn-auth-signout {
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  #uiLangSelect {
    min-width: 108px;
    max-width: 138px;
    font-size: 0.78rem;
    padding: 6px 22px 6px 26px;
  }
}
