/* IMAGIVO — light enterprise marketplace styling */
:root {
  --bg: #f4f8fc;
  --bg-elevated: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --surface-elevated: #ffffff;
  --surface-tab: #f0f6ff;
  --surface-tab-active: #e8f0fe;
  --border: #d8e3f0;
  --border-subtle: #e5edf7;
  --border-strong: #b8c9de;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-2: #2563eb;
  --accent-teal: #0d9488;
  --warning: #d97706;
  --danger: #dc2626;
  --success: #059669;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --shadow-tab: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-tab-active: 0 4px 12px rgba(37, 99, 235, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Form Tools promotional system */
.nav-link-form-tools { display:inline-flex;align-items:center;justify-content:center;gap:.38rem;min-height:42px;padding:.48rem .72rem;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:#fff;background:linear-gradient(135deg,#2563eb,#0d9488);box-shadow:0 5px 14px rgba(13,148,136,.24);font-weight:800;white-space:nowrap;animation:form-tools-glow 9s ease-in-out infinite;transition:transform .18s ease,box-shadow .18s ease; }
.nav-primary .nav-link-form-tools small{padding:.12rem .3rem;border-radius:999px;color:#155e75;background:#cffafe;font-size:.58rem;font-weight:900;letter-spacing:.04em}.nav-primary .nav-link-form-tools:hover,.nav-primary .nav-link-form-tools:focus-visible{color:#fff;background:linear-gradient(135deg,#1d4ed8,#0f766e);transform:translateY(-2px);box-shadow:0 8px 18px rgba(13,148,136,.32);animation-play-state:paused}.nav-primary .nav-link-form-tools:focus-visible{outline:3px solid #67e8f9;outline-offset:3px}.form-tools-arrow{transition:transform .18s ease}.nav-link-form-tools:hover .form-tools-arrow,.nav-link-form-tools:focus-visible .form-tools-arrow{transform:translate(2px,-1px)}
.form-tools-promo{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;margin:1rem 0 1.25rem;padding:1rem 1.15rem;border:1px solid #99f6e4;border-radius:16px;background:linear-gradient(120deg,#eff6ff,#f0fdfa);box-shadow:0 8px 22px rgba(15,23,42,.08)}.form-tools-promo-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#dbeafe;font-size:1.5rem}.form-tools-promo h2{margin:0 0 .2rem;font-size:1.08rem}.form-tools-promo p{margin:0;color:#475569;font-size:.9rem}.form-tools-promo>a{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.65rem .9rem;border-radius:999px;color:#fff;background:linear-gradient(135deg,#2563eb,#0d9488);font-weight:800;text-decoration:none;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease}.form-tools-promo>a:hover,.form-tools-promo>a:focus-visible{transform:translateY(-2px);box-shadow:0 8px 18px rgba(13,148,136,.28)}.form-tools-promo>a:focus-visible{outline:3px solid #0e7490;outline-offset:3px}
@keyframes form-tools-glow{0%,12%,100%{box-shadow:0 5px 14px rgba(13,148,136,.24)}6%{box-shadow:0 5px 20px rgba(45,212,191,.58),0 0 0 4px rgba(45,212,191,.12)}}
@media(max-width:900px){.nav-primary .nav-link-form-tools{width:100%;min-height:46px;justify-content:center!important}}
@media(max-width:600px){.persistent-form-tools{min-width:44px;padding:.45rem}.persistent-form-tools .form-tools-label,.persistent-form-tools small,.persistent-form-tools .form-tools-arrow{display:none}}
@media(max-width:600px){.form-tools-promo{grid-template-columns:auto minmax(0,1fr);padding:.9rem}.form-tools-promo>a{grid-column:1/-1;width:100%;white-space:normal}}
@media(prefers-reduced-motion:reduce){.nav-link-form-tools{animation:none;transition:none}.nav-link-form-tools:hover,.nav-link-form-tools:focus-visible,.form-tools-promo>a:hover,.form-tools-promo>a:focus-visible{transform:none}.form-tools-arrow{transition:none}}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 450;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1240px, 94vw); margin: 0 auto; }
.product-page-main { padding: 1rem 0 3rem; max-width: 1240px; }

h1, h2, h3, h4 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-weight: 750; font-size: clamp(1.85rem, 3.5vw, 2.65rem); margin: 0 0 1rem; }
h2 { font-weight: 700; font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0 0 0.75rem; }
h3 { font-weight: 650; font-size: 1.12rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--text-soft); font-weight: 450; }
strong { font-weight: 650; color: var(--text); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0;
}
.header-row {
  flex-wrap: nowrap;
}
.brand-text { white-space: nowrap; }
.header-locale {
  margin-left: auto;
  flex-shrink: 0;
}
.ecosystem-switcher { position: relative; flex-shrink: 0; }
.ecosystem-switcher summary { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid var(--border); border-radius: 0.65rem; color: var(--muted); background: var(--surface); cursor: pointer; list-style: none; }
.ecosystem-switcher summary::-webkit-details-marker { display: none; }
.ecosystem-switcher summary:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-tab); }
.ecosystem-switcher summary svg { width: 1rem; height: 1rem; fill: currentColor; }
.ecosystem-panel { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 80; width: 17.5rem; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.ecosystem-panel > p { margin: 0.15rem 0.65rem 0.4rem; color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ecosystem-panel a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.ecosystem-panel a:hover { background: var(--surface-tab); text-decoration: none; }
.ecosystem-panel a > span:last-child { display: grid; text-align: left; }
.ecosystem-panel strong { font-size: 0.8rem; }
.ecosystem-panel small { color: var(--muted); font-size: 0.68rem; }
.ecosystem-product-mark { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; border-radius: 0.6rem; color: var(--accent); background: var(--surface-tab-active); font-weight: 750; }
.nav-primary {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow: visible;
}
.nav-primary a {
  min-height: 2.15rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-ask-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.locale-bar-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0;
  flex-wrap: nowrap;
}
.locale-control-compact { margin: 0; }
.locale-select-compact {
  min-width: 5.5rem;
  max-width: 7.5rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
}
.nav-menu-toggle { flex-shrink: 0; margin-left: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: #0f172a; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' rx='36' fill='%231B2A4C'/%3E%3Cpath d='M132 0 L200 0 L200 62 Z' fill='%232C4066'/%3E%3Cpath d='M132 0 L200 62' stroke='rgba(255,255,255,0.28)' stroke-width='3' fill='none'/%3E%3Crect x='46' y='128' width='72' height='10' rx='5' fill='rgba(255,255,255,0.85)'/%3E%3Crect x='46' y='150' width='50' height='10' rx='5' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-tab);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { height: 4px; }
.nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #526174;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.nav a:hover {
  color: #0f172a;
  background: var(--surface-tab);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-tab);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav a.is-active,
.nav a[aria-current="page"] {
  color: #0f172a;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tab-active) 100%);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-tab-active);
  transform: translateY(-1px);
}
.nav a.is-active:hover,
.nav a[aria-current="page"]:hover {
  color: var(--text);
  text-decoration: none;
}

/* Main category tabs — elevated pill bar, distinct from utility nav */
.main-tab-bar-wrap {
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
}
.main-tab-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.55rem 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.main-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tab) 100%);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-tab);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.main-tab:hover {
  color: #0f172a;
  border-color: var(--border-strong);
  transform: translateY(-1px);
  text-decoration: none;
}
.main-tab.is-active,
.main-tab[aria-current="page"] {
  color: #0f172a;
  font-weight: 700;
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tab-active) 100%);
  box-shadow: var(--shadow-tab-active), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Sub-tabs — secondary visual language: smaller, underline accent */
.sub-tab-bar {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0.85rem 0 1rem;
  padding: 0.35rem 0.35rem 0.15rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-tab);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sub-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #526174;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.sub-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.sub-tab.is-active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
  background: #ffffff;
}

.staging-banner {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #92400e;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 1rem 0 0;
}

.hero-compact {
  padding: 1.1rem 0 0.65rem;
}
.hero-compact h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}
.hero-sub {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 38rem;
}
.hero-search-row {
  margin: 0;
  flex-wrap: nowrap;
}
.hero-search-row .discovery-search-input {
  flex: 1 1 auto;
  min-height: 2.65rem;
}
.hero-search-row .btn { flex-shrink: 0; min-width: 6.5rem; }
.home-price-strip { margin: 0.65rem 0 0.85rem; padding: 0; background: transparent; border: none; box-shadow: none; }
.home-price-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.persona-compact { margin: 0.5rem 0 1rem; }
.persona-compact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.4rem; font-weight: 700; }
.persona-compact-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
.shelf-section { margin: 1.1rem 0; }
.shelf-view-all { font-size: 0.88rem; font-weight: 650; color: var(--accent); white-space: nowrap; }
.shelf-view-all:hover { color: var(--accent-hover); text-decoration: none; }
.trust-strip { margin-top: 1.5rem; }
.trust-card h3 { font-size: 1rem; }
.product-generator-flow { margin-top: 1rem; }
body[data-marketplace-product] #panel-form > h1,
body[data-marketplace-product] #panel-form > p.product-form-lead,
body[data-marketplace-product] #panel-form > p:first-of-type:not(.field-hint) {
  display: none;
}
.product-detail-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.product-spec-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.product-spec-tab {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
}
.product-spec-tab h3 { font-size: 0.92rem; margin: 0 0 0.35rem; color: var(--text); }
.product-spec-tab p, .product-spec-tab li { font-size: 0.84rem; color: var(--muted); margin: 0; }
.product-spec-tab ul { margin: 0.35rem 0 0; padding-left: 1rem; }
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}
.price-tag small { color: var(--muted); font-size: 0.95rem; font-weight: 500; }

.card {
  background: linear-gradient(165deg, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.6rem;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card h2, .card h3 { margin-top: 0; color: var(--text); }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn:not(:disabled):hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(180deg, #4b8df8 0%, var(--accent-hover) 100%);
  color: #f8fafc;
  border: 1px solid #1d4ed8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 4px 14px rgba(37, 99, 235, 0.32);
}
.btn-primary:not(:disabled):hover {
  background: linear-gradient(180deg, #5b9aff 0%, #2f6fe8 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 6px 18px rgba(37, 99, 235, 0.38);
  color: #fff;
}
.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:not(:disabled):hover {
  background: var(--surface-tab);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost {
  background: #ffffff;
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:not(:disabled):hover {
  background: var(--surface-tab);
  color: var(--text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.product-card h2 { margin: 0.35rem 0 0.5rem; font-size: 1.15rem; }
.product-card p { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 800px) { .products-grid { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--muted);
  font-weight: 450;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.field-hint {
  display: block;
  margin: -0.15rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 450;
}
.field-required {
  color: var(--accent-2);
  font-weight: 700;
  margin-left: 0.15rem;
}
.form-help {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.form-help h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
}
.form-help ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 450;
}
.form-help li + li { margin-top: 0.25rem; }
.form-error { margin-bottom: 1rem; }

input, textarea, select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-weight: 450;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 0;
  border-color: var(--accent);
}

.steps {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--surface-tab);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.step-pill.active {
  border-color: var(--border-strong);
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface-tab-active) 100%);
  box-shadow: var(--shadow-tab-active);
}
.step-pill.done {
  border-color: rgba(5, 150, 105, 0.45);
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
}

.status-box {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  font-weight: 450;
}
.status-box.pending { border-color: rgba(37, 99, 235, 0.35); color: #1d4ed8; }
.status-box.success { border-color: rgba(5, 150, 105, 0.35); color: #047857; }
.status-box.error { border-color: rgba(220, 38, 38, 0.35); color: #b91c1c; }
.checkout-return-hint {
  margin: -0.4rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.result-output {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 220px;
  line-height: 1.7;
  font-weight: 450;
  color: var(--text-soft);
}

.actions-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 450;
  background: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-grid strong {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 650;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.legal-page main { padding: 2.5rem 0 3rem; }
.legal-page h1 { margin-top: 0; font-weight: 800; }
.legal-page h2 {
  margin-top: 2rem;
  color: var(--accent-2);
  font-weight: 700;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hidden { display: none !important; }

.public-counter {
  text-align: center;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 450;
  border-top: 1px solid var(--border-subtle);
}

.article-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.article-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.article-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.article-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.article-card h2 a:hover { color: var(--accent-2); text-decoration: none; }

.article-page .breadcrumb {
  color: var(--muted);
  margin: 1.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.article-page .breadcrumb a { color: var(--muted); }
.article-page .breadcrumb a:hover { color: var(--accent-2); }
.article-page h1 { font-weight: 800; margin-bottom: 0.5rem; }
.article-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.article-meta { color: var(--muted); font-size: 0.9rem; font-weight: 450; }
.article-resources {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
}
.article-cta { margin-top: 2rem; }
.related-articles {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.related-articles h2 { font-weight: 700; font-size: 1.2rem; }
.related-articles ul { padding-left: 1.2rem; }
.related-articles li { margin-bottom: 0.4rem; }

main > h1,
main .container > h1 {
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.7;
}

.locale-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.locale-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.locale-label {
  font-weight: 600;
  white-space: nowrap;
}
.locale-select {
  width: auto;
  min-width: 6.5rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  border-radius: 8px;
  background: var(--surface-tab);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body.rtl .site-header .inner,
[dir="rtl"] .site-header .inner {
  flex-direction: row-reverse;
}
body.rtl .nav,
[dir="rtl"] .nav {
  direction: rtl;
}
body.rtl .breadcrumb,
[dir="rtl"] .breadcrumb {
  direction: rtl;
  text-align: right;
}
body.rtl .form-grid label,
[dir="rtl"] .form-grid label {
  text-align: right;
}

/* Discovery & persona UX */
.discovery-search-section { margin: 1.25rem 0 1.75rem; padding: 1.25rem; }
.discovery-search-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.discovery-search-form { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.discovery-search-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.discovery-section { margin: 1.75rem 0; }
.discovery-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.discovery-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip, .persona-chip {
  border: 1px solid var(--border);
  background: var(--surface-tab);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.chip.is-active, .persona-chip.is-active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.category-card {
  text-align: left;
  cursor: pointer;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease;
}
.category-card:hover { border-color: var(--accent); }
.category-card h3 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.category-card p { font-size: 0.82rem; margin: 0; color: var(--muted); }
.badge-muted { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.persona-links { font-size: 0.88rem; margin-top: 0.65rem; }
.muted { color: var(--muted); }
.discovery-tool-card h3 { font-size: 1.05rem; margin: 0.35rem 0 0.5rem; }
.tool-use-case { font-size: 0.88rem; color: var(--muted); min-height: 1.25rem; }

body.ux-simple { font-size: 1.05rem; line-height: 1.75; }
body.ux-simple h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
body.ux-simple h2, body.ux-simple h3 { font-size: 1.25rem; }
body.ux-simple .btn { font-size: 1.05rem; padding: 0.85rem 1.15rem; }
body.ux-simple .discovery-search-input { font-size: 1.1rem; padding: 0.9rem 1rem; }
body.ux-senior { font-size: 1.12rem; }
body.ux-senior .btn { font-size: 1.1rem; min-height: 3rem; }
body.ux-parent-assisted main::before {
  content: 'Parent-assisted mode — a trusted adult should guide use.';
  display: block;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(45, 212, 191, 0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Marketplace retail cards */
.mp-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.25);
}
.mp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.mp-icon {
  font-size: 1.35rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}
.mp-badges-wrap { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.mp-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mp-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.45rem; border-radius: 999px; }
.mp-badge-live { background: rgba(74, 222, 128, 0.12); color: var(--success); text-transform: uppercase; }
.mp-badge-new { background: rgba(59, 130, 246, 0.2); color: var(--accent-2); }
.mp-badge-popular { background: rgba(45, 212, 191, 0.15); color: var(--accent-teal); }
.mp-badge-proof { background: rgba(255, 255, 255, 0.06); color: var(--muted); text-transform: none; }
.mp-price-row { font-size: 1.2rem; font-weight: 750; color: var(--text); letter-spacing: -0.01em; }
.mp-price-row-lg { font-size: 1.45rem; margin: 0.5rem 0; }
.price-sale { color: var(--accent-teal); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.9em; margin-left: 0.35rem; font-weight: 500; }
.mp-title { font-size: 1.05rem; margin: 0; font-weight: 680; }
.mp-benefit { font-size: 0.88rem; color: var(--text-soft); flex: 1; margin: 0; line-height: 1.45; }
.mp-lang { font-size: 0.78rem; color: var(--muted); margin: 0; }
.mp-cta { margin-top: auto; align-self: flex-start; }
.product-detail { margin-bottom: 1.5rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1rem 0; }
.faq-list details { margin-bottom: 0.65rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; margin-top: 1rem; }
.shop-filters label { display: block; margin-bottom: 0.75rem; font-size: 0.88rem; }
.shop-filters select, .shop-filters input[type="number"] { width: 100%; margin-top: 0.25rem; }
.shop-results { align-content: start; }
.order-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.order-table th, .order-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.mp-category-row { margin: 1.5rem 0; }
.mp-shelf {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mp-shelf .mp-card {
  flex: 0 0 min(210px, calc((100% - 4 * 0.85rem) / 5));
  scroll-snap-align: start;
  min-height: 200px;
}
@media (max-width: 768px) {
  .mp-shelf .mp-card { flex: 0 0 min(72vw, 260px); }
}
.mp-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mp-title { font-size: 1rem; font-weight: 720; color: var(--text); }
.mp-benefit { font-size: 0.84rem; color: var(--text-soft); flex: 1; margin: 0; line-height: 1.4; }
.mp-price-row { font-size: 1.25rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; margin: 0.15rem 0; }
.mp-badge-live { background: rgba(5, 150, 105, 0.12); color: #047857; }
.mp-badge-new { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.mp-badge-popular { background: rgba(13, 148, 136, 0.12); color: #0f766e; }
.mp-badge-planned { background: rgba(148, 163, 184, 0.12); color: var(--muted); }
.mp-category-chips { flex-wrap: wrap; }
.mp-category-chips .chip { white-space: nowrap; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0.5rem; }
.breadcrumbs a { color: var(--accent-2); text-decoration: none; }
.shop-category-main { padding-bottom: 2.5rem; overflow-x: hidden; }
.shop-category-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.shop-pagination { margin-top: 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.shop-pagination button { min-width: 2.5rem; }
body { overflow-x: hidden; }

@media (min-width: 900px) {
  .mp-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    overflow: visible;
    padding: 0;
  }
  .mp-shelf-grid .mp-card { flex: unset; min-height: 200px; }
}

@media (max-width: 800px) {
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav-primary a { padding: 0.35rem 0.45rem; font-size: 0.78rem; }
  .nav-ask-btn { font-size: 0.76rem; padding: 0.35rem 0.55rem; }
}

@media (max-width: 900px) {
  .product-detail-hero-grid { grid-template-columns: 1fr; }
  .product-spec-tabs { grid-template-columns: 1fr; }
  .header-row { flex-wrap: wrap; }
  .nav-menu-toggle { display: inline-flex; order: 3; }
  .header-locale { order: 4; width: 100%; justify-content: flex-end; }
  .nav-primary {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 0 0.15rem;
  }
  .nav-ask-btn { order: 6; width: 100%; justify-content: center; }
  .header-row.nav-drawer-open .nav-primary,
  .header-row.nav-drawer-open .nav-ask-btn { display: flex; }
  .nav-primary a, .nav-ask-btn { width: 100%; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .discovery-search-form .btn,
  .actions-row .btn,
  .assistant-form .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .actions-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }
  .main-tab { min-height: 44px; }
  .sub-tab { min-height: 44px; }
}

.mp-badge-planned { background: rgba(148, 163, 184, 0.15); color: var(--muted); font-size: 0.68rem; }
.mp-badge-tier30 { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; font-size: 0.68rem; }
.mp-badge-tier50 { background: rgba(124, 58, 237, 0.12); color: #6d28d9; font-size: 0.68rem; }
.mp-badge-tier75 { background: rgba(180, 83, 9, 0.12); color: #9a3412; font-size: 0.68rem; }
.mp-badge-tier100 { background: rgba(15, 118, 110, 0.12); color: #0f766e; font-size: 0.68rem; }
.result-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.result-tab { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.82rem; cursor: pointer; }
.result-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mp-social { font-size: 0.78rem; color: var(--muted); margin: 0; }
.shop-filter-strip { margin: 1rem 0; padding: 1rem 1.1rem; }
.filter-bar-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; font-weight: 650; }
.price-chip-row, .dept-chip-row { display: flex; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.35rem; margin-bottom: 0.75rem; -webkit-overflow-scrolling: touch; }
.price-chip {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-tab);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}
.price-chip.is-active { border-color: var(--accent); background: rgba(37, 99, 235, 0.1); color: #0f172a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
.price-chip-row-lg .price-chip {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tab), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.persona-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.filters-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-tab);
  color: var(--text-soft);
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.shop-advanced-filters {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}
.shop-advanced-filters.is-open { display: block; }
.shop-advanced-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.shop-advanced-form label { font-size: 0.88rem; }
.price-input { width: 5rem; margin: 0 0.35rem; }
.shop-results-shelf { margin: 1.25rem 0 2rem; min-height: 12rem; }
.page-title { color: var(--text); font-weight: 800; }
.shop-lead { max-width: 42rem; }
.shop-search-row { margin: 1rem 0 1.25rem; }
.shop-search-row .discovery-search-input { flex: 1 1 280px; }
.shop-search-row .btn { flex: 0 0 auto; min-width: 7rem; }
.mp-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-teal); margin: 0; font-weight: 700; }
.mp-approx { font-size: 0.82rem; color: var(--muted); margin: 0; }
.mp-status { display: inline-block; margin-top: auto; }
.price-current { color: var(--accent-teal); font-weight: 800; }
.product-detail-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.35rem 0 0.75rem; }
.product-detail-benefit { color: var(--text-soft); }
.product-detail-aside { background: linear-gradient(165deg, rgba(31, 47, 74, 0.7) 0%, var(--surface) 100%); }
.product-detail-cta { margin: 1rem 0 0.25rem; }
.product-breadcrumb { margin: 0 0 1rem; }
.orders-empty { text-align: center; padding: 1.5rem 1rem; }
.orders-empty-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.nav-ask-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.nav-ask-btn:hover { background: rgba(45, 212, 191, 0.2); color: #5eead4; }
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-tab);
  cursor: pointer;
}
.nav-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
}
.discovery-section h2 { color: var(--text-soft); font-weight: 700; }
.hero h1 { color: var(--text); }
h1.page-title { color: var(--text); }
.dept-chip {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.dept-chip.is-active { color: var(--accent-2); border-bottom-color: var(--accent); background: rgba(59,130,246,0.08); }
.profession-filter-label { display: block; font-size: 0.88rem; margin-top: 0.5rem; }
.product-feedback { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }
.product-feedback h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.feedback-actions { flex-wrap: wrap; gap: 0.5rem; }
.feedback-btn.is-selected { border-color: var(--accent); background: rgba(59, 130, 246, 0.14); color: var(--accent-2); }
.feedback-status { font-size: 0.85rem; color: var(--muted); min-height: 1.2rem; margin: 0.35rem 0 0.5rem; }
.result-actions { flex-wrap: wrap; gap: 0.5rem; }
.result-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.result-toast.hidden { display: none; }
.result-fallback-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--text);
  font-size: 0.88rem;
}
.result-fallback-banner.hidden { display: none; }
.result-fallback-banner-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.result-fallback-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.1rem 0.35rem;
}
.result-fallback-banner-close:hover { color: var(--text); }
.feedback-btn:focus-visible,
.result-actions .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media print {
  .site-header, .site-footer, .staging-banner, .actions-row, .steps, .no-print,
  #imagivo-assistant-root, #product-detail-mount, .assistant-fab, .assistant-panel,
  #panel-form, #panel-payment, #panel-generate, .product-generator-flow .steps,
  .result-panel-header, .result-tabs, .result-toast, .result-fallback-banner, .product-feedback,
  .product-page-main > :not(#panel-result) { display: none !important; }
  #panel-result { display: block !important; border: none; box-shadow: none; }
  body { background: white; color: black; }
  .result-output { border: none; padding: 0; white-space: pre-wrap; }
}

/* Ask IMAGIVO assistant */
.assistant-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(45, 212, 191, 0.9));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.assistant-fab-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.assistant-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.5rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.assistant-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.assistant-sub {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-subtle);
}
.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.assistant-msg { font-size: 0.9rem; line-height: 1.45; }
.assistant-msg-user { align-self: flex-end; background: rgba(59, 130, 246, 0.15); padding: 0.5rem 0.75rem; border-radius: 12px 12px 4px 12px; max-width: 90%; }
.assistant-msg-bot { align-self: flex-start; }
.assistant-reason { color: var(--muted); font-size: 0.85rem; }
.assistant-note { font-size: 0.8rem; color: var(--muted); }
.assistant-actions { margin-top: 0.5rem; }
.assistant-alt-title { margin: 0.65rem 0 0.25rem; font-size: 0.85rem; color: var(--muted); }
.assistant-alt-list { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; }
.assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.assistant-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
}
.intent-search-wrap { margin-top: 0.85rem; }
.intent-search-result { padding: 1rem; }
.intent-search-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.35rem; }

/* Payment summary & result polish */
.payment-summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  padding: 1.1rem 1.15rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.payment-summary-card h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.payment-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-subtle);
}
.payment-summary-row:last-child { border-bottom: none; }
.payment-summary-row strong { color: var(--text); font-weight: 700; }
.payment-summary-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.75rem 0 0.5rem;
}
.payment-secure-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.result-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.result-panel-header h2 { margin: 0; }

.help-page-main {
  max-width: 1180px;
  padding: 1.25rem 0 2.5rem;
}
.help-lead {
  font-size: 1.05rem;
  max-width: 42rem;
  color: var(--text-soft);
}
.help-step-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}
.help-step-list li + li { margin-top: 0.65rem; }
.help-topics { margin: 1.75rem 0; }
.help-topics h2 { margin-bottom: 1rem; }
.help-topic-grid { margin-top: 0.5rem; }
.help-topic-card h3 { margin-top: 0; font-size: 1.05rem; }
.help-topic-card p { font-size: 0.9rem; margin-bottom: 0.85rem; }
.help-faq h3 { margin-top: 1.25rem; font-size: 1rem; }
.help-cta { margin-top: 1.5rem; }

/* Premium compact hero */
.hero-premium { padding: 0.85rem 0 0.5rem; }
.hero-premium-inner { display: flex; align-items: center; gap: 1rem; position: relative; min-height: 4.5rem; }
.hero-geo { position: relative; width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.hero-geo-shape { position: absolute; border-radius: 12px; border: 1px solid rgba(37, 99, 235, 0.2); background: rgba(37, 99, 235, 0.06); }
.hero-geo-a { inset: 0; animation: heroFloatA 5s ease-in-out infinite; }
.hero-geo-b { inset: 0.45rem; animation: heroFloatB 5s ease-in-out infinite reverse; opacity: 0.75; }
@keyframes heroFloatA { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
@keyframes heroFloatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(2px) rotate(-5deg); } }
.hero-eyebrow { margin: 0 0 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.hero-premium h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0; line-height: 1.15; font-weight: 800; }
.hero-animated-text { display: inline-block; transition: opacity 0.28s ease, transform 0.28s ease; }
.hero-animated-text:not(.hero-phrase-visible) { opacity: 0; transform: translateY(6px); }
.hero-phrase-visible { opacity: 1; transform: translateY(0); }

/* Persona + product icons */
.persona-chip-icon, .mp-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.persona-icon-svg, .mp-icon-svg { display: inline-flex; width: 1.15rem; height: 1.15rem; color: var(--accent); flex-shrink: 0; }
.persona-icon-svg svg, .mp-icon-svg svg { width: 100%; height: 100%; }
.mp-icon { width: 2.35rem; height: 2.35rem; border-radius: 10px; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.14); align-items: center; justify-content: center; }
.mp-icon .mp-icon-svg { width: 1.35rem; height: 1.35rem; }

/* Product card link behavior */
.mp-card { padding: 0; overflow: hidden; }
.mp-card-link { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.95rem 1rem 0.5rem; color: inherit; text-decoration: none; flex: 1; }
.mp-card-link:hover { text-decoration: none; color: inherit; }
.mp-card-footer { padding: 0 1rem 0.95rem; margin-top: auto; }
.mp-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }

/* Compact footer */
.footer-compact {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
.footer-tagline { margin: 0.35rem 0 0; font-size: 0.86rem; color: var(--muted); max-width: 18rem; }
.footer-brand { margin-bottom: 0.15rem; }
.footer-links-col strong { display: block; font-size: 0.82rem; margin-bottom: 0.35rem; color: var(--text); }
.footer-inline-links { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.footer-inline-links a { color: #526174; text-decoration: none; }
.footer-inline-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border-subtle); font-size: 0.82rem; color: var(--muted); }
.site-footer { margin-top: 2rem; padding: 1.35rem 0 1.75rem; }

/* Active filter chips */
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.75rem 0 0.35rem; }
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.08);
  color: #0f172a; font-size: 0.8rem; font-weight: 650; cursor: pointer;
}
.filter-result-count { margin: 0.35rem 0 0.75rem; font-size: 0.88rem; font-weight: 650; color: #526174; }
.shop-empty-state { padding: 1.25rem; text-align: center; }
.shop-empty-title { font-weight: 700; margin: 0 0 0.35rem; }
.shop-empty-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.85rem; }
.shop-active-filters.hidden { display: none !important; }

body.rtl .footer-compact { direction: rtl; }
body.rtl .hero-search-row, body.rtl .active-filter-chips { direction: rtl; }

@media (max-width: 900px) {
  .footer-compact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-compact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .assistant-fab-label { display: none; }
  .assistant-fab { padding: 0.75rem; border-radius: 50%; }
}

.parent-assisted-badge {
  display: inline-block; margin-left: 0.5rem; padding: 0.2rem 0.55rem;
  font-size: 0.72rem; font-weight: 650; border-radius: 999px;
  background: rgba(251, 191, 36, 0.15); color: #92400e; border: 1px solid rgba(251, 191, 36, 0.35);
}
.parent-assisted-banner {
  margin: 0.75rem 0 1rem; padding: 0.75rem 1rem; font-size: 0.9rem;
  background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25);
}
.kids-shelf-section .discovery-section-head { align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.kids-age-strip { margin: 0.75rem 0 1rem; padding: 0.85rem 1rem; }
.education-landing-hero { margin-bottom: 1.25rem; }

/* OTP-only login/signup widget (Phase 2) */
.auth-form { max-width: 360px; }
.auth-form label { margin-top: 0; }
.auth-form input { margin-bottom: 0.85rem; }
.auth-form-hint { margin: 0 0 0.85rem; font-size: 0.9rem; color: var(--muted); }
.auth-form-status { display: none; margin-top: 0.85rem; }
.auth-form-status:not(:empty) { display: block; }
.auth-form .auth-form-resend { margin-top: 0.6rem; }
.auth-inline-card {
  max-width: 400px;
  margin: 1.25rem auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.auth-modal-card h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.auth-modal-card > .muted { margin: 0 0 1.1rem; }
.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
}
.auth-modal-close:hover { color: var(--text); }

/* Cross-site Jyotish Q&A promotion ---------------------------------------- */
.jyotish-cta-nav { display:inline-flex;align-items:center;justify-content:center;gap:.38rem;min-height:42px;padding:.48rem .72rem;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:#1f1300;background:linear-gradient(135deg,#fbbf24,#d97706);box-shadow:0 5px 14px rgba(217,119,6,.26);font-weight:800;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease; }
.jyotish-cta-nav:hover,.jyotish-cta-nav:focus-visible { color:#1f1300;background:linear-gradient(135deg,#fcd34d,#b45309);transform:translateY(-2px);box-shadow:0 8px 18px rgba(217,119,6,.34); }
.jyotish-cta-nav:focus-visible { outline:3px solid #fde68a;outline-offset:3px; }
.jyotish-cta-nav .jyotish-cta-free { padding:.12rem .3rem;border-radius:999px;color:#fbbf24;background:#1f1300;font-size:.58rem;font-weight:900;letter-spacing:.04em; }
.jyotish-cta-nav:hover .form-tools-arrow,.jyotish-cta-nav:focus-visible .form-tools-arrow { transform:translate(2px,-1px); }
@media(max-width:900px){.jyotish-cta-nav{width:100%;min-height:46px;justify-content:center!important}}
/* Mirror the Form Tools collapse so the CTA stays reachable on narrow phones. */
@media(max-width:600px){.persistent-jyotish-cta{min-width:44px;padding:.45rem}.persistent-jyotish-cta .jyotish-cta-label,.persistent-jyotish-cta .jyotish-cta-free,.persistent-jyotish-cta .form-tools-arrow{display:none}}
@media(max-width:420px){.jyotish-cta-nav{gap:.3rem;min-height:38px;padding:.4rem .55rem;font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.jyotish-cta-nav{transition:none}.jyotish-cta-nav:hover,.jyotish-cta-nav:focus-visible{transform:none}}

/* ============ AI Studio (ai.html) ============ */
.ai-studio-hero { padding: 1.1rem 0 0.4rem; }
.ai-studio-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ai-studio-hero p { color: var(--muted); margin: 0; }
.ai-hot-badge {
  display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #f97316); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
  animation: ai-hot-pulse 2s ease-in-out infinite;
}
@keyframes ai-hot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.ai-studio-tabs { display: flex; gap: 0.5rem; margin: 1rem 0 1.1rem; flex-wrap: wrap; }
.ai-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.9rem; padding: 0.55rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tab) 100%); color: var(--text-soft);
  font-weight: 650; font-size: 0.92rem; font-family: var(--font); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ai-tab:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.ai-tab.is-active {
  color: #0f172a; font-weight: 750; border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 60%, #e4efff 100%);
  box-shadow: var(--shadow-tab-active), 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ai-tab-emoji { font-size: 1.05rem; }
.ai-tab-price { background: rgba(13, 148, 136, 0.12); color: #0f766e; font-size: 0.72rem; font-weight: 800; padding: 0.18rem 0.5rem; border-radius: 999px; }
.ai-tab-hot {
  background: linear-gradient(135deg, #f43f5e, #f97316); color: #fff; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.05em; padding: 0.18rem 0.5rem; border-radius: 999px; animation: ai-hot-pulse 1.8s ease-in-out infinite;
}
.ai-tab-bundle { color:#fff; border-color:transparent; background:linear-gradient(135deg,#7c3aed,#db2777 58%,#f97316); box-shadow:0 6px 18px rgba(219,39,119,.3); animation:bundle-tab-glow 2.8s ease-in-out infinite; }
.ai-tab-bundle:hover,.ai-tab-bundle.is-active { color:#fff; border-color:rgba(255,255,255,.5); background:linear-gradient(135deg,#6d28d9,#db2777 58%,#f97316); box-shadow:0 8px 24px rgba(219,39,119,.42),0 0 0 3px rgba(244,114,182,.16); }
.ai-tab-bundle .ai-tab-price { background:rgba(255,255,255,.2); color:#fff; }
@keyframes bundle-tab-glow { 0%,100%{box-shadow:0 6px 16px rgba(219,39,119,.28)} 50%{box-shadow:0 7px 25px rgba(249,115,22,.48),0 0 0 4px rgba(244,114,182,.12)} }
.bundle-hero { display:flex; align-items:center; justify-content:space-between; gap:1rem; background:linear-gradient(135deg,#faf5ff,#fff1f2 58%,#fff7ed); border-color:rgba(219,39,119,.2); }
.bundle-hero h2 { margin:.65rem 0 .35rem; }
.bundle-hero p { margin:0; color:var(--muted); }
.bundle-balance { min-width:120px; text-align:center; padding:.85rem 1rem; border-radius:1rem; color:#fff; background:linear-gradient(135deg,#7c3aed,#db2777); box-shadow:0 8px 20px rgba(124,58,237,.22); text-decoration:none; transition:transform .15s ease,box-shadow .15s ease; }
.bundle-balance:hover { color:#fff; text-decoration:none; transform:translateY(-2px); box-shadow:0 11px 25px rgba(124,58,237,.3); }
.bundle-balance:focus-visible { outline:3px solid rgba(124,58,237,.3); outline-offset:3px; }
.bundle-balance span { display:block; font-size:.75rem; font-weight:700; }
.bundle-balance strong { display:block; font-size:2rem; line-height:1.1; }
.bundle-pricing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.bundle-price-card { position:relative; padding:1.25rem; border:1px solid var(--border); border-radius:1rem; background:#fff; box-shadow:var(--shadow-sm); overflow:hidden; }
.bundle-price-card h3 { margin:.35rem 0; font-size:1.25rem; }
.bundle-best { border:2px solid #db2777; box-shadow:0 10px 28px rgba(219,39,119,.14); }
.bundle-discount { display:inline-flex; padding:.2rem .55rem; border-radius:999px; color:#9f1239; background:#ffe4e6; font-size:.7rem; font-weight:900; }
.bundle-best-badge { position:absolute; top:0; right:0; padding:.35rem .7rem; border-radius:0 0 0 .7rem; color:#fff; background:linear-gradient(135deg,#7c3aed,#db2777); font-size:.68rem; font-weight:900; }
.bundle-price { margin:.65rem 0 .15rem; }.bundle-price del { color:var(--muted); }.bundle-price strong { margin-left:.35rem; font-size:2rem; color:#7c3aed; }
.bundle-credit-count { margin:.2rem 0; font-weight:800; }.bundle-buy { width:100%; margin-top:.65rem; }
.bundle-eligible { scroll-margin-top:1rem; }
.bundle-eligible h3 { margin-top:0; }
.bundle-use-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.bundle-use-option { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.8rem; border:1px solid var(--border); border-radius:.8rem; background:var(--surface-2); color:var(--text); text-decoration:none; transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease; }
.bundle-use-option:hover { color:var(--text); text-decoration:none; border-color:rgba(124,58,237,.45); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.bundle-use-option > span:first-child { display:flex; align-items:center; gap:.45rem; }
.bundle-use-icon { font-size:1.15rem; }
.bundle-eligible > p { margin-bottom:0; color:var(--muted); }
@media(max-width:620px){.bundle-hero{align-items:stretch;flex-direction:column}.bundle-pricing-grid,.bundle-use-options{grid-template-columns:1fr}.bundle-balance{display:flex;align-items:center;justify-content:space-between}.bundle-balance strong{font-size:1.7rem}.ai-tab-bundle{flex-basis:100%!important}}
@media(prefers-reduced-motion:reduce){.ai-tab-bundle{animation:none}}
.ai-tool-panel { animation: ai-panel-in .22s ease; }
@keyframes ai-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.ai-example-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 0.2rem; }
.ai-chip {
  background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--accent-2);
  font-size: 0.78rem; font-weight: 650; padding: 0.4rem 0.7rem; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ai-chip:hover { background: #eaf1ff; border-color: var(--accent); transform: translateY(-1px); }

.ai-loading-wrap { display: flex; justify-content: center; padding: 1.4rem 0 0.4rem; }
.ai-spinner {
  width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(37, 99, 235, 0.15);
  border-top-color: var(--accent); animation: ai-spin .9s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

.ai-result-box-wrap { margin-top: 0.5rem; }
.ai-result-box {
  margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 0.92rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto;
}

.my-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 0.9rem; }
.my-image-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.my-image-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f4fa; }
.my-image-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.5rem 0.6rem; }

.btn-lg { min-height: 48px; font-size: 0.98rem; padding: 0.72rem 1.4rem; }
.photo-upload-zone { padding: 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.photo-preview-wrap { max-width: 440px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #f4f7fb; }
.photo-preview-wrap img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.ocr-result-text { display:block; width:100%; min-height:260px; resize:vertical; font-family:inherit; }
.extractions-list { display:grid; gap:.85rem; margin-top:.9rem; }
.extraction-card { display:grid; grid-template-columns:110px minmax(0,1fr); gap:.8rem; padding:.7rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); }
.extraction-card img { width:110px; height:110px; object-fit:cover; border-radius:.45rem; }
.extraction-card pre { margin:0 0 .55rem; max-height:130px; overflow:auto; white-space:pre-wrap; word-break:break-word; font:inherit; font-size:.85rem; }
/* AI Studio utility tools (Translate / Fix My Writing / Audio to Text / Ask AI) */
.utility-result-text { display:block; width:100%; min-height:220px; resize:vertical; font-family:inherit; line-height:1.55; }
.word-counter { color:var(--muted); font-size:.8rem; }
.word-counter.over-limit { color:#b91c1c; font-weight:700; }
.utility-lang-row { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:.6rem; align-items:end; }
.utility-lang-arrow { font-size:1.2rem; color:var(--muted); padding-bottom:.65rem; }
.utility-changes { margin-top:.75rem; padding:.7rem .85rem; border:1px dashed var(--border-strong, var(--border)); border-radius:var(--radius-sm); background:var(--surface-2); }
.utility-changes pre { margin:.35rem 0 0; white-space:pre-wrap; word-break:break-word; font:inherit; font-size:.88rem; color:var(--muted); }
.utility-history-list { display:grid; gap:.85rem; margin-top:.9rem; }
.utility-history-card { padding:.75rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); min-width:0; }
.utility-history-meta { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:.45rem; }
.utility-history-input { margin:0 0 .4rem; color:var(--muted); font-size:.82rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.utility-history-output { margin:0 0 .55rem; max-height:150px; overflow:auto; white-space:pre-wrap; word-break:break-word; font:inherit; font-size:.88rem; }
@media(max-width:520px){.utility-lang-row{grid-template-columns:1fr}.utility-lang-arrow{display:none}}
@media(max-width:520px){.extraction-card{grid-template-columns:78px minmax(0,1fr)}.extraction-card img{width:78px;height:78px}.ai-studio-tabs .ai-tab{flex:1 1 46%;justify-content:center;padding:.5rem}.ai-tab-hot{display:none}}

/* 2026 visual polish: scalable AI Studio navigation and shared surfaces */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.ai-tool-picker { margin:1rem 0 1.35rem; padding:1rem; border:1px solid var(--border-subtle); border-radius:18px; background:rgba(255,255,255,.78); box-shadow:var(--shadow-sm); }
.ai-tool-picker-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.ai-tool-picker-head h2 { margin:0 0 .15rem; font-size:1rem; letter-spacing:0; }
.ai-tool-picker-head p { margin:0; color:var(--muted); font-size:.82rem; }
.ai-tool-search { position:relative; display:flex; align-items:center; width:min(18rem,100%); margin:0; }
.ai-tool-search > span:not(.sr-only) { position:absolute; left:.8rem; z-index:1; color:var(--muted); font-size:1.1rem; pointer-events:none; }
.ai-tool-search input { min-height:42px; padding:.6rem .85rem .6rem 2.15rem; border-radius:999px; background:#fff; }
.ai-tool-filters { display:flex; gap:.4rem; overflow-x:auto; padding:.1rem 0 .7rem; scrollbar-width:none; }
.ai-tool-filters::-webkit-scrollbar { display:none; }
.ai-tool-filter { flex:0 0 auto; min-height:34px; padding:.38rem .72rem; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--text-soft); font:700 .76rem var(--font); cursor:pointer; transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease; }
.ai-tool-filter:hover { border-color:var(--border-strong); transform:translateY(-1px); }
.ai-tool-filter.is-active { border-color:rgba(37,99,235,.38); background:var(--surface-tab-active); color:var(--accent-hover); }
.ai-tool-filter:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ai-studio-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; margin:0; }
.ai-studio-tabs .ai-tab { width:100%; min-width:0; min-height:52px; justify-content:flex-start; padding:.55rem .65rem; text-align:left; }
.ai-studio-tabs .ai-tab-label { flex:1; min-width:0; line-height:1.2; }
.ai-studio-tabs .ai-tab-hot { animation:none; }
.ai-studio-tabs .ai-tab.is-filtered-out { display:none!important; }
.ai-tool-empty { margin:.65rem 0 0; padding:.8rem; border-radius:var(--radius-sm); background:var(--surface-2); color:var(--muted); text-align:center; font-size:.88rem; }
.ai-tool-panel > .card { margin-bottom:1rem; }
.ai-tool-panel > .card:first-of-type { border-top:3px solid rgba(37,99,235,.42); }
.ai-tool-panel .payment-summary-card { background:linear-gradient(145deg,#f8fbff,#fff); box-shadow:inset 0 1px 0 #fff; }
.ai-tool-panel .result-actions { padding-top:.75rem; border-top:1px solid var(--border-subtle); }
.badge-muted { display:inline-flex; align-items:center; min-height:1.6rem; padding:.18rem .5rem; border-radius:999px; background:var(--surface-tab-active); color:var(--accent-hover); font-size:.72rem; font-weight:800; }

/* Crawlable indexes remain available to search engines without displacing products. */
#shop-category-page .crawlable-category-tools,
#shop-category-page .crawlable-category-index { display:none; }
#shop-category-page .crawlable-persona-cta { margin:.8rem 0 .25rem; padding:.65rem .8rem; border:1px solid var(--border-subtle); border-radius:var(--radius-sm); background:rgba(255,255,255,.68); font-size:.88rem; }
.shop-category-main > h1 { margin-bottom:.4rem; }
.shop-category-main > .lead { max-width:48rem; margin-bottom:1.2rem; }
.shop-category-toolbar { padding:.65rem .75rem; border:1px solid var(--border-subtle); border-radius:var(--radius-sm); background:rgba(255,255,255,.72); }
#order-history.card:empty { min-height:5rem; background:linear-gradient(100deg,#fff 30%,#f3f7fc 50%,#fff 70%); background-size:220% 100%; animation:surface-loading 1.5s ease-in-out infinite; }
@keyframes surface-loading { to { background-position:-220% 0; } }

@media(max-width:900px){
  .ai-studio-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:620px){
  .container { width:min(100% - 1.35rem,1240px); }
  .product-page-main { padding-top:.7rem; }
  h1 { font-size:clamp(1.7rem,8vw,2.1rem); }
  .card { padding:1.15rem 1rem; border-radius:13px; }
  .ai-studio-hero { padding:.75rem 0 .15rem; }
  .ai-studio-hero p { line-height:1.5; }
  .ai-tool-picker { margin:.8rem -.15rem 1.1rem; padding:.8rem; border-radius:15px; }
  .ai-tool-picker-head { align-items:stretch; flex-direction:column; gap:.65rem; }
  .ai-tool-search { width:100%; }
  .ai-studio-tabs { display:flex; flex-wrap:nowrap; gap:.55rem; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:.1rem; padding:.1rem .05rem .7rem; scrollbar-width:thin; }
  .ai-studio-tabs .ai-tab { flex:0 0 min(76vw,245px); width:auto; min-height:58px; justify-content:flex-start; scroll-snap-align:start; padding:.55rem .7rem; }
  .ai-studio-tabs .ai-tab-hot { display:inline-flex; font-size:.58rem; padding:.14rem .36rem; }
  .ai-studio-tabs .ai-tab-price { padding:.15rem .42rem; }
  .steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.3rem; margin-bottom:.9rem; }
  .step-pill { justify-content:center; min-width:0; min-height:36px; padding:.35rem .2rem; font-size:.7rem; text-align:center; }
  .payment-summary-row { align-items:flex-start; gap:.6rem; }
  .payment-summary-row strong { max-width:62%; text-align:right; }
  .shop-category-toolbar { justify-content:space-between; gap:.6rem; }
  .shop-category-toolbar label { margin:0; }
  .page-title { margin-top:.8rem; }
  .site-footer { margin-top:2rem; }
}
@media(prefers-reduced-motion:reduce){
  #order-history.card:empty { animation:none; }
  .ai-tool-filter,.ai-studio-tabs .ai-tab { transition:none; }
}

/* Highlighted main tab (AI Images) — gradient + glow pulse */
.main-tab.main-tab-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #fff; border-color: transparent; box-shadow: 0 5px 16px rgba(13, 148, 136, 0.28);
  animation: main-tab-glow 3s ease-in-out infinite;
}
.main-tab.main-tab-highlight:hover { color: #fff; border-color: transparent; }
.main-tab.main-tab-highlight.is-active,
.main-tab.main-tab-highlight[aria-current="page"] {
  color: #fff; border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.36);
}
@keyframes main-tab-glow {
  0%, 100% { box-shadow: 0 5px 14px rgba(13, 148, 136, 0.26); }
  50% { box-shadow: 0 5px 22px rgba(45, 212, 191, 0.55), 0 0 0 4px rgba(45, 212, 191, 0.14); }
}
.main-tab-badge {
  display: inline-block; margin-left: 0.4rem; padding: 0.14rem 0.45rem; border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #f97316); color: #fff; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.05em; vertical-align: middle; animation: ai-hot-pulse 2s ease-in-out infinite;
}

/* Content-safety notice near prompt and upload boxes (2026-10-16) */
.safety-note{margin:.6rem 0 0;padding:.55rem .75rem;border-left:3px solid #c0392b;background:rgba(192,57,43,.06);border-radius:6px;font-size:.82rem;line-height:1.45;color:inherit}
.safety-note a{font-weight:600}

/* ===== Somurobo family layout (2026-10-18) =====
   Same container, gutters, header bar, footer spacing and "बड़े अक्षर"
   button as Numerology Design A. Layout only; Imagivo colours unchanged.
   Screen only, so print/PDF/card output is untouched. */
@media screen {
:root { --family-container: 1320px; --family-gutter: 16px; --family-bar: 64px; }
@media (min-width: 768px) { :root { --family-gutter: 24px; } }
@media (min-width: 1280px) { :root { --family-gutter: 48px; --family-bar: 72px; } }
html[data-large-type=true] { font-size: 20px; }
html { overflow-x: clip; }

.container { box-sizing: border-box; width: 100%; max-width: var(--family-container); padding-left: var(--family-gutter); padding-right: var(--family-gutter); }
.site-header .inner.header-row { min-height: var(--family-bar); padding-left: var(--family-gutter); padding-right: var(--family-gutter); }

.family-large-type { flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface, #fff); color: var(--text); font: inherit; font-size: 0.75rem; white-space: nowrap; cursor: pointer; }
.family-large-type > span:last-child { color: var(--accent); font-weight: 700; }
.family-large-type[aria-pressed=true] { border-color: var(--accent); }

/* Desktop/tablet: brand bar on one line, the main links on a clean second
   line (eight links + locale + Ask never fitted in one row and overlapped). */
@media (min-width: 901px) {
  .header-row { flex-wrap: wrap; row-gap: 0; }
  .header-row .brand { order: 1; }
  .header-row > .nav-link-form-tools { order: 1; }
  .header-row .header-locale { order: 2; margin-left: auto; }
  .header-row .nav-ask-btn { order: 3; }
  .header-row .family-large-type { order: 4; }
  .header-row .ecosystem-switcher { order: 5; }
  .header-row .nav-primary { order: 10; flex: 1 1 100%; justify-content: flex-start; gap: 4px; padding: 0 0 6px; margin-left: -10px; }
  .header-row .nav-primary a { padding: 8px 10px; }
}

/* Mobile: two tidy rows instead of four — brand + Form Tools + बड़े अक्षर +
   switcher, then language/currency + Ask. Thumb-sized (44px) controls. */
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 8px; }
  .header-row .brand { order: 1; flex: 1 1 0; min-width: 150px; }
  .header-row .brand-text { overflow: hidden; text-overflow: ellipsis; }
  .header-row .nav-link-form-tools { order: 2; }
  .header-row .family-large-type { order: 3; }
  .header-row .ecosystem-switcher { order: 6; }
  .header-row .ecosystem-switcher summary { width: 40px; height: 40px; }
  .header-row .nav-menu-toggle { order: 5; }
  .header-row .header-locale { order: 6; flex: 0 1 auto; width: auto; min-width: 0; justify-content: flex-start; }
  .header-row .header-locale select { min-width: 0; width: 70px; min-height: 40px; font-size: 0.78rem; padding-inline: 6px; }
  .header-row .nav-ask-btn { order: 7; flex: 0 0 auto; width: auto; min-height: 40px; margin-left: auto; padding: 8px 10px; font-size: 0.8rem; }
  .header-row .nav-primary { order: 8; }
}
@media (max-width: 767px) {
  .family-large-type { padding: 6px; }
  .family-large-type-label { display: none; }
  .header-row .brand { font-size: 1rem; gap: 0.5rem; }
}

/* Festival strips: thin one-line bars (44–52px), full width, readable. */
main .gc-home-card.show { min-height: 44px; max-height: 52px; padding: 6px 8px 6px 16px; border-radius: 10px; gap: 10px; }
main .gc-home-card.show > span:first-child { min-width: 0; overflow: hidden; }
main .gc-home-card.show strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
main .gc-home-card.show small { display: none; }
main .gc-home-card.show .gc-home-cta { padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; white-space: nowrap; }
main a[href="/festival-wishes"][style] { display: flex !important; align-items: center; min-height: 44px; max-height: 52px; padding: 6px 16px !important; border-radius: 10px !important; font-size: 0.9rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none !important; }
main a[href="/festival-wishes"][style] strong { color: #fff1b8; margin-right: 0.35em; }

/* Tablet two columns; desktop keeps its existing 3–4 column grids. */
@media (min-width: 768px) and (max-width: 1279px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-footer { margin-top: 32px; padding-top: 32px; padding-bottom: 24px; }
}
