:root{
  --bg: #07070A;
  --bg2:#0b0b10;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --gold: #C9A676;
  --gold2:#f0d4a6;

  --pink: #FF4FA3;
  --pink2:#ff8bc7;

  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 22px;
  --radius2: 18px;

  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  background: radial-gradient(1200px 700px at 10% 0%, rgba(255,79,163,.16), transparent 55%),
              radial-gradient(1000px 650px at 90% 10%, rgba(201,166,118,.14), transparent 55%),
              radial-gradient(900px 600px at 60% 90%, rgba(255,79,163,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; }
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.shell{
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(7,7,10,.58);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.brand-name{
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-sub{
  font-size: 12px;
  opacity: .70;
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav-link{
  font-size: 13px;
  opacity: .84;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .18s ease, opacity .18s ease, transform .18s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.06);
  opacity: 1;
  transform: translateY(-1px);
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.search input{
  width: 320px;
  max-width: 42vw;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 14px;
  outline: none;
}
.search input::placeholder{ color: rgba(255,255,255,.55); }
.search input:focus{
  border-color: rgba(255,79,163,.35);
  box-shadow: 0 0 0 4px rgba(255,79,163,.12);
}

.iconbtn{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* Hero */
.hero{
  padding: 56px 0 18px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 26px;
  align-items: center;
}
.kicker{
  margin:0 0 10px;
  font-size: 12px;
  letter-spacing: .22em;
  opacity: .70;
}
.hero-title{
  margin:0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-accent{
  color: var(--gold2);
  text-shadow: 0 0 24px rgba(201,166,118,.25);
}
.hero-sub{
  margin: 14px 0 18px;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.55;
  opacity: .78;
}
.hero-proof{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  font-size: 13px;
  opacity: .82;
}
.hero-proof i{ font-style: normal; opacity: .45; }

.hero-cta{
  display:flex;
  gap: 12px;
  margin-top: 18px;
}
.hero-note{
  margin: 14px 0 0;
  font-size: 13px;
  opacity: .72;
}
.hero-note a{
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .1px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, rgba(255,79,163,.92), rgba(201,166,118,.92));
  color: rgba(10,10,12,.92);
  box-shadow: 0 16px 50px rgba(255,79,163,.14);
}
.btn-primary:hover{ box-shadow: 0 22px 70px rgba(255,79,163,.20); transform: translateY(-1px); }

.btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* Hero showcase (right) */
.hero-showcase .glass-card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 16px;
}
.glass-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 14px;
}
.pill-gold, .pill-pink{
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.pill-gold{ color: var(--gold2); }
.pill-pink{ color: var(--pink2); }

.glass-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.glass-shot{
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(220px 110px at 30% 40%, rgba(255,79,163,.22), transparent 60%),
    radial-gradient(260px 120px at 70% 40%, rgba(201,166,118,.20), transparent 60%),
    rgba(255,255,255,.04);
}
.shot-2{ background:
  radial-gradient(240px 110px at 30% 30%, rgba(201,166,118,.22), transparent 60%),
  radial-gradient(240px 120px at 70% 60%, rgba(255,79,163,.18), transparent 60%),
  rgba(255,255,255,.04);
}
.shot-3{ background:
  radial-gradient(240px 110px at 40% 30%, rgba(255,79,163,.20), transparent 60%),
  rgba(255,255,255,.04);
}
.shot-4{ background:
  radial-gradient(240px 110px at 70% 40%, rgba(201,166,118,.20), transparent 60%),
  rgba(255,255,255,.04);
}

.glass-bottom{
  display:flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  opacity: .70;
}

/* Sections */
.section{
  padding: 34px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.section-sub{
  margin: 8px 0 0;
  font-size: 13px;
  opacity: .72;
  max-width: 70ch;
}
.section-link{
  font-size: 13px;
  opacity: .78;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.section-link:hover{ opacity: 1; }

/* Category tiles */
.cat-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat{
  position: relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 18px;
  overflow:hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.cat:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.cat-title{ font-weight: 900; letter-spacing: .2px; }
.cat-meta{ margin-top: 6px; font-size: 13px; opacity: .72; }
.cat-strip{
  position:absolute;
  inset:auto -10px -20px -10px;
  height: 60px;
  background: radial-gradient(240px 80px at 20% 40%, rgba(255,79,163,.18), transparent 60%),
              radial-gradient(260px 80px at 80% 40%, rgba(201,166,118,.16), transparent 60%);
  transform: rotate(-2deg);
  filter: blur(0px);
}

/* Template cards */
.tpl-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tpl-grid-compact{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpl{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  outline: none;
}
.tpl:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.055);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.tpl:focus-visible{
  border-color: rgba(255,79,163,.45);
  box-shadow: 0 0 0 4px rgba(255,79,163,.14);
}

.tpl-media{
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.04);
}
.tpl-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .22s ease;
}
.tpl:hover .tpl-media img{ transform: scale(1.04); }

.tpl-badges{
  position:absolute;
  left: 14px;
  top: 14px;
  display:flex;
  gap: 8px;
}
.badge{
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.badge.gold{ color: var(--gold2); }
.badge.pink{ color: var(--pink2); }

.tpl-info{
  padding: 14px 14px 16px;
}
.tpl-row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tpl-name{
  font-weight: 900;
  letter-spacing: .1px;
}
.tpl-price{
  font-weight: 900;
  color: var(--gold2);
}
.tpl-price span{
  font-weight: 800;
  opacity: .75;
  margin-left: 6px;
  font-size: 12px;
}
.tpl-sub{
  margin-top: 8px;
  font-size: 13px;
  opacity: .72;
}

/* Callout */
.callout{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 240px at 30% 40%, rgba(255,79,163,.12), transparent 60%),
    radial-gradient(900px 260px at 80% 40%, rgba(201,166,118,.10), transparent 60%),
    rgba(255,255,255,.04);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.callout-title{ margin:0; font-size: 18px; }
.callout-sub{ margin: 6px 0 0; font-size: 13px; opacity: .72; }

/* Footer */
.footer{
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0 0;
  background: rgba(0,0,0,.12);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  padding-bottom: 18px;
}
.footer-brand{ font-weight: 900; letter-spacing: .2px; }
.footer-text{ margin: 8px 0 0; font-size: 13px; opacity: .72; max-width: 48ch; }
.footer-title{ font-size: 12px; letter-spacing: .18em; opacity: .70; margin-bottom: 10px; }
.footer-col a{ display:block; font-size: 13px; opacity: .78; padding: 6px 0; }
.footer-col a:hover{ opacity: 1; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 18px;
  font-size: 13px;
  opacity: .70;
}

/* Modal */
.preview-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.preview-modal.is-open{ display:block; }
.preview-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
}
.preview-dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 26px));
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,14,.78);
  box-shadow: 0 50px 140px rgba(0,0,0,.58);
  overflow:hidden;
}
.preview-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(255,79,163,.12), transparent 60%),
    radial-gradient(700px 240px at 80% 0%, rgba(201,166,118,.10), transparent 60%),
    rgba(255,255,255,.04);
}
.preview-titlewrap h3{
  margin:0;
  font-size: 14px;
  font-weight: 900;
}
.preview-meta{
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .72;
}
.preview-close{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.preview-media{
  aspect-ratio: 16 / 9;
  background: #0b0b10;
}
.preview-media video,
.preview-media iframe{
  width: 100%;
  height: 100%;
  display:block;
}
.preview-actions{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

body.modal-open{ overflow:hidden; }

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .hero-inner{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .cat-grid{ grid-template-columns: 1fr 1fr; }
  .tpl-grid{ grid-template-columns: 1fr; }
  .tpl-grid-compact{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .search input{ width: 220px; max-width: 60vw; }
  .footer-inner{ grid-template-columns: 1fr; }
  .callout{ flex-direction: column; align-items:flex-start; }
}

/* ============================
   STORE MARKETPLACE GRID (Elite)
   Paste at BOTTOM of styles.css
============================ */

/* Hard safety: keep logo from ever exploding */
.store-logo{
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

/* Compact hero for store page */
.store-hero--compact{ padding-bottom: 18px; }
.hero-card--compact{ min-height: 260px; }
.hero-title--compact{ margin-top: 6px; }

/* Filterbar */
.store-filterbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 0 18px;
}

.filter-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pill-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,12,0.28);
  color: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pill-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,215,165,0.35);
  background: rgba(10,10,12,0.38);
}
.pill-btn.is-active{
  border-color: rgba(255,215,165,0.60);
  background: rgba(255,215,165,0.14);
}

/* Sort select */
.select select{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,12,0.28);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight:600;
  cursor:pointer;
}

/* Product grid (marketplace) */
.product-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.product-card{
  grid-column: span 4;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,12,0.34);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,215,165,0.30);
  background: rgba(10,10,12,0.46);
}

.product-badge{
  position:absolute;
  z-index:3;
  top:12px; left:12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  color: #111;
  background: rgba(255,215,165,0.95);
}
.product-badge.soft{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
}

.product-media{
  width:100%;
  padding:0;
  border:0;
  background: transparent;
  cursor:pointer;
  display:block;
}
.product-thumb{
  position:relative;
  aspect-ratio: 16/10;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .22s ease;
}
.product-card:hover .product-thumb img{
  transform: scale(1.06);
}

.product-body{
  padding: 16px 16px 14px;
}

.product-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.product-body h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  color: rgba(255,255,255,0.95);
}
.product-body p{
  margin: 10px 0 12px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.5;
}

.price-mini{
  text-align:right;
  white-space:nowrap;
}
.price-mini .strike{
  display:block;
  font-size: 12px;
  opacity: .55;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.price-mini .price{
  font-weight: 800;
  font-size: 14px;
}
.price-mini .usd{
  font-weight: 700;
  font-size: 11px;
  opacity: .75;
  margin-left: 4px;
}

.product-foot{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 12px;
}

/* Coming soon feel */
.product-card.is-coming{
  border-style: dashed;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 1100px){
  .product-card{ grid-column: span 6; }
}
@media (max-width: 680px){
  .store-filterbar{ flex-direction: column; align-items: flex-start; }
  .product-card{ grid-column: span 12; }
}

/* ============================
   QUICK VIEW MODAL (AI Video)
============================ */
.modal-open{ overflow:hidden; }

.qv{
  position:fixed;
  inset:0;
  z-index: 9999;
  display:none;
}
.qv.is-open{ display:block; }

.qv__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.qv__panel{
  position:relative;
  width: min(1100px, calc(100% - 28px));
  margin: 6vh auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,12,0.72);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  overflow:hidden;
}

.qv__close{
  position:absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  cursor:pointer;
}

.qv__grid{
  display:grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 0;
}

.qv__media{
  background: rgba(255,255,255,0.05);
  min-height: 420px;
}
.qv__video,
.qv__iframe{
  width:100%;
  height:100%;
  min-height: 420px;
  display:block;
}
.qv__iframe{ border:0; }

.qv__placeholder{
  padding: 18px;
  color: rgba(255,255,255,0.75);
}

.qv__info{
  padding: 18px 18px 16px;
}
.qv__kicker{
  font-weight: 800;
  letter-spacing: .10em;
  font-size: 11px;
  opacity: .75;
  margin-bottom: 8px;
}
.qv__title{
  margin: 0 0 10px;
  font-size: 22px;
  color: rgba(255,255,255,0.95);
}
.qv__price{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}
.qv__price span{
  font-weight: 700;
  font-size: 12px;
  opacity: .75;
  margin-left: 6px;
}
.qv__desc{
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 14px;
}
.qv__actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}
.qv__note{
  display:block;
  margin-top: 12px;
  opacity: .70;
}

@media (max-width: 900px){
  .qv__grid{ grid-template-columns: 1fr; }
  .qv__video,.qv__iframe{ min-height: 320px; }
  .qv__media{ min-height: 320px; }
}
/* =========================
   SUPPORT PAGE (LUXE)
========================= */
.support-wrap{
  width:min(1120px, 92%);
  margin:0 auto;
  padding:38px 0 64px;
}

.support-hero{
  padding:26px 22px;
  border-radius:22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.support-hero h1{
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4.2vw, 56px);
  margin:0 0 10px;
}

.support-hero p{
  margin:0 0 16px;
  max-width: 70ch;
  opacity: .92;
}

.support-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.support-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  margin-top:22px;
  align-items:start;
}

.support-main{
  padding:18px;
  border-radius:18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.support-main h2{
  margin:0 0 14px;
}

.faq{
  border-radius:14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding:12px 14px;
  margin:10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:600;
}

.faq p{
  margin:10px 0 0;
  opacity:.92;
}

.support-aside{
  display:grid;
  gap:14px;
}

.support-card{
  padding:16px;
  border-radius:18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.support-card h3{
  margin:0 0 8px;
}

.support-card .muted{
  opacity:.85;
}

/* Contact form */
.support-contact{
  margin-top:26px;
  padding:18px;
  border-radius:18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.support-form{
  margin-top:12px;
}

.support-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  align-items:start;
}

.support-form-grid label span{
  display:block;
  font-size:14px;
  opacity:.9;
  margin:0 0 6px;
}

.support-form-grid input,
.support-form-grid textarea{
  width:100%;
  border-radius:14px;
  padding:12px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color:#fff;
  outline:none;
}

.support-form-grid textarea{ resize: vertical; }

.support-form-grid .full{
  grid-column: 1 / -1;
}

.support-form-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Mobile */
@media (max-width: 900px){
  .support-grid{ grid-template-columns: 1fr; }
  .support-form-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Global alignment system
========================= */
:root{
  --container: 1120px;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.page{
  padding: 40px 0 64px;
}

/* Make sure all pages respect box sizing */
*, *::before, *::after{ box-sizing: border-box; }

/* =========================
   Header banner (all pages)
========================= */
.store-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,10,12,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.store-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.store-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 220px;
}

.store-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.store-brand-text{
  display: grid;
  line-height: 1.05;
}

.store-brand-name{ font-weight: 700; }
.store-brand-sub{ opacity: .7; font-size: .88rem; }

.store-links{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-links a{
  text-decoration: none;
  color: rgba(255,255,255,.88);
  padding: 8px 10px;
  border-radius: 999px;
}

.store-links a:hover{
  background: rgba(255,255,255,.06);
}

.store-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-search input{
  width: 280px;
  max-width: 42vw;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  color: #fff;
  outline: none;
}

.store-cart{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  text-decoration: none;
  color: #fff;
}

@media (max-width: 860px){
  .store-search input{ display:none; }
  .store-brand{ min-width: auto; }
}

.store-cart svg { display:block; }
.store-cart { display:flex; align-items:center; justify-content:center; }

/* =========================
   Footer centering (all pages)
========================= */
.store-footer,
footer{
  text-align: center;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
}

.store-footer p,
footer p{
  margin: 0;
  opacity: .8;
}

/* =========================
   MOBILE FIX PACK (SAFE)
   Desktop stays untouched.
   Paste at bottom of styles.css
========================= */

/* Safe global (won't break desktop) */
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }

/* Better tap targets on mobile only */
@media (max-width: 620px) {
  .btn { min-height: 44px; padding: 12px 16px; }
}

/* =========================
   NAV + SEARCH (MOBILE ONLY)
========================= */
@media (max-width: 900px) {
  .store-header { position: sticky; top: 0; z-index: 1000; }

  .store-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: inherit;
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1;
  }

  /* Hide links until menu opened */
  .store-links {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
  }

  body.nav-open .store-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Search row becomes full width */
  .store-actions { width: 100%; }
  .store-search { width: 100%; display: block; }
  .store-search input { width: 100%; }
}

/* Hide hamburger on desktop */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

/* =========================
   HERO (MOBILE ONLY)
========================= */
@media (max-width: 900px) {
  .store-hero .hero-card,
  .hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-title,
  .hero-title--compact {
    font-size: clamp(32px, 7.5vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .hero-sub { font-size: 15px; line-height: 1.55; }

  .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
}

/* =========================
   FILTER BAR (MOBILE ONLY)
========================= */
@media (max-width: 900px) {
  .store-filterbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
  .filter-right, .select, .select select { width: 100%; }
  .select select { min-height: 44px; }
}

/* =========================
   PRODUCT GRID (RESPONSIVE ONLY)
========================= */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =========================
   INDEX MOBILE FIXES
   Paste at bottom of css/styles.css
========================= */

:root { --topbar-h: 72px; }

.topbar { position: sticky; top: 0; z-index: 999; }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Keep brand from shrinking too much */
.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand-logo { width: 38px; height: 38px; }

/* Toggle defaults */
.nav-toggle { display: none; }

/* Desktop nav default */
.nav { display: flex; align-items: center; gap: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Search sizing (desktop) */
.search input {
  width: min(520px, 45vw);
  max-width: 100%;
}

/* HERO layout defaults */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

/* Grids default */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- MOBILE / TABLET ---------- */
@media (max-width: 980px) {

  /* Show hamburger, hide inline nav */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--topbar-h) + 8px);
    padding: 14px;
    border-radius: 16px;
    background: rgba(10,10,14,.92);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 10px;
  }

  /* When open */
  body.nav-open .nav { display: flex; }

  /* Make topbar wrap nicely */
  .topbar-inner { flex-wrap: wrap; position: relative; padding-top: 10px; padding-bottom: 10px; }

  /* Actions should fill full width on mobile */
  .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 10px;
  }

  .search { flex: 1; }
  .search input { width: 100%; }

  /* Hero stacks */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-showcase { order: 2; }

  /* Hero type scales down */
  .hero-title { font-size: clamp(34px, 7vw, 48px); line-height: 1.05; }
  .hero-sub { font-size: 16px; }

  /* Hero CTA stacks */
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Grids become 2 columns */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --topbar-h: 64px; }

  /* Brand text can shrink */
  .brand-text .brand-name { font-size: 14px; }
  .brand-text .brand-sub { font-size: 12px; opacity: .8; }

  /* Categories + templates to 1 column */
  .cat-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
}

/* ---------- Modal mobile fix ---------- */
.preview-dialog {
  max-width: min(980px, 92vw);
}
@media (max-width: 850px) {
  .preview-dialog { width: 92vw; }
  .preview-actions { display: grid; gap: 10px; }
  .preview-actions .btn { width: 100%; text-align: center; }
}
/* =========================
   STORE HEADER: stop cart overflow
   (templates.html + store pages)
========================= */

/* Safety: prevent horizontal scroll if something slips */
html, body { overflow-x: hidden; }

/* Make header layout flexible */
.store-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;           /* allows wrap instead of overflow */
}

/* Let brand + nav + actions shrink correctly */
.store-brand { flex: 0 0 auto; }
.store-links { flex: 1 1 320px; min-width: 0; }
.store-actions { flex: 1 1 320px; min-width: 0; display:flex; gap:10px; justify-content:flex-end; }

/* Key fix: input must be allowed to shrink */
.store-search { flex: 1 1 auto; min-width: 0; }
.store-search input {
  width: 100%;
  min-width: 0;              /* this is the big one */
}

/* Keep cart visible */
.store-cart { flex: 0 0 auto; }

/* Mobile: stack nicely */
@media (max-width: 860px) {
  .store-links { order: 3; width: 100%; justify-content: space-between; display:flex; flex-wrap:wrap; gap:10px; }
  .store-actions { order: 2; width: 100%; justify-content: space-between; }
  .store-search { flex: 1 1 100%; }
}

/* =========================
   HEADER OVERFLOW FIX (desktop cart drift)
========================= */
html, body { overflow-x: hidden; }

.topbar .topbar-inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Allow flex children to shrink instead of pushing cart off-screen */
.topbar .topbar-inner,
.topbar-actions,
.topbar .search,
.topbar .search input { min-width: 0; }

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Control search width on desktop so it doesn’t shove the cart away */
.topbar .search input{
  width: clamp(180px, 26vw, 420px);
}

/* Keep the cart button inside the header */
.topbar .iconbtn{
  flex: 0 0 auto;
}

/* ===== Templates page sizing (smaller cards) ===== */
.templates-page .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

@media (min-width: 1100px) {
  .templates-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.templates-page .product-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.templates-page .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.templates-page .product-body {
  padding: 16px;
}

.templates-page .product-topline h3 {
  font-size: 1.05rem;
}

.templates-page .product-foot {
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   TEMPLATES PAGE – COMPACT GRID
   (does NOT affect storefront)
========================= */

.templates-page .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* Kill the storefront span rule ONLY on templates page */
.templates-page .product-card {
  grid-column: auto;
  max-width: 100%;
}

/* Reduce visual weight */
.templates-page .product-thumb {
  aspect-ratio: 16 / 10;
}

.templates-page .product-body {
  padding: 14px;
}

.templates-page .product-body h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.templates-page .product-body p {
  font-size: 13px;
}

.templates-page .product-foot {
  gap: 10px;
  flex-wrap: wrap;
}
