/* =========================================================
   Digistore — stylesheet (rebuilt from scratch)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #F7F4EE;
  --bg-alt: #F0ECE3;
  --surface: #FFFFFF;
  --ink: #16171B;
  --ink-soft: #55565E;
  --muted: #93929B;
  --border: #EAE5DA;
  --primary: #2F5CFF;
  --primary-dark: #1E44D9;
  --primary-tint: #E9EFFF;
  --accent: #FF6B45;
  --accent-tint: #FFE9E0;
  --success: #17A967;
  --danger: #E1483D;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --shadow-sm: 0 2px 6px rgba(22, 23, 27, 0.05);
  --shadow: 0 12px 32px rgba(22, 23, 27, 0.07);
  --shadow-lg: 0 24px 64px rgba(22, 23, 27, 0.12);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; height: auto; } /* safety net: SVGs can never exceed their box even without a specific rule */
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

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

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--primary); box-shadow: var(--shadow); }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
.whatsapp-float svg { width: 34px; height: 34px; }
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}

/* ---------- Announcement bar ---------- */
.topbar { background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 9px 0; text-align: center; font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- Pill navbar ---------- */
.navbar { position: sticky; top: 16px; z-index: 50; background: transparent; }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  padding: 10px 12px 10px 26px; max-width: 1180px;
  height: max(64px, calc(var(--logo-height, 34px) + 20px)); box-sizing: border-box; overflow: hidden; /* grows only as much as the chosen logo size needs, never further */
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); display: inline-block; transform: rotate(45deg); flex-shrink: 0; }
.logo .brand-logo-img { height: var(--logo-height, 34px); max-height: var(--logo-height, 34px); width: auto; max-width: 220px; object-fit: contain; display: block; flex-shrink: 0; }
.admin-sidebar .logo .brand-logo-img { max-width: 180px; filter: brightness(0) invert(1); }
.footer-about .logo .brand-logo-img { max-width: 200px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--ink); background: var(--bg);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-alt); }
.cart-badge {
  position: absolute; top: 0px; right: 0px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
}

/* ---------- Avatars ---------- */
.avatars { display: flex; }
.avatars span {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; font-family: var(--font-display);
}
.avatars span:first-child { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero-shell { background: linear-gradient(135deg, #FAF8F3 0%, #FFFFFF 65%); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 64px 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 52px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lede { font-size: 18px; max-width: 480px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 26px; }
.hero-stats div span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-icon-rail { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.hero-icon-rail .icon-btn { background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.hero-stat-chip {
  position: absolute; bottom: 22px; left: -12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: 999px; padding: 10px 18px 10px 12px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; z-index: 2;
}

/* ---------- Section shell ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; max-width: 560px; }
.section-head p { max-width: 460px; }

/* ---------- Category chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--ink-soft); background: var(--surface); transition: all .15s ease; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: visible; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-thumb { height: 190px; background: var(--bg-alt); background-size: cover; background-position: center; position: relative; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; }
.product-cat-badge { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; background: var(--ink); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.product-quick-add {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; background: var(--surface); color: var(--ink);
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  z-index: 2; font-size: 18px; font-weight: 600; line-height: 1; padding: 0;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.product-quick-add:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; left: 50px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font-mono); padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: .03em; z-index: 2; }
.product-badge.included { background: var(--primary); color: #fff; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.product-body h3 { font-size: 16px; margin: 0; }
.product-desc { font-size: 14px; margin: 0; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.product-price .was { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.product-rating { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.product-avatars span { width: 24px; height: 24px; font-size: 9px; }
.product-actions { padding: 0 20px 20px; display: flex; gap: 10px; }

/* ---------- Promo split ---------- */
.promo-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.promo-dark-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 44px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; }
.promo-dark-card .eyebrow { color: rgba(255,255,255,.55); }
.promo-dark-card .eyebrow::before { background: var(--accent); }
.promo-dark-card h3 { color: #fff; font-size: 30px; max-width: 300px; margin-bottom: 12px; }
.promo-dark-card p { color: rgba(255,255,255,.65); max-width: 300px; margin-bottom: 22px; }
.promo-visual { position: absolute; right: 24px; top: 24px; width: 190px; height: 190px; opacity: .96; }
.promo-mini-stack { display: flex; flex-direction: column; gap: 20px; }
.promo-mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; transition: transform .18s ease, box-shadow .18s ease; }
.promo-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-mini-card .thumb { height: 96px; border-radius: var(--r-sm); overflow: hidden; position: relative; }
.promo-mini-card .name { font-size: 13.5px; font-weight: 600; }
.promo-mini-card .cat { font-size: 11px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.promo-trust-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.promo-trust-row .avatars span { width: 32px; height: 32px; font-size: 11px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; align-items: stretch; }
.faq-support-card {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column;
}
.faq-support-card .icon-circle {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.faq-support-card h3 { font-size: 19px; margin-bottom: 8px; color: #fff; }
.faq-support-card p { font-size: 14px; margin-bottom: 20px; color: rgba(255,255,255,.65); flex: 1; }
.faq-support-card .btn-outline { border-color: rgba(255,255,255,.25); color: #fff; }
.faq-support-card .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.faq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.faq-card summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-icon-badge { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-card summary .q-text { font-weight: 700; font-size: 15.5px; flex: 1; padding-top: 9px; }
.faq-card .faq-toggle { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 8px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.faq-card[open] .faq-toggle { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-card .faq-answer { padding: 14px 0 0 56px; margin: 0; font-size: 14px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 30px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--primary); margin-bottom: 18px; }
.step-card h3 { font-size: 19px; }
.step-card p { font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 0 auto 44px; }
.pricing-toggle button { border: none; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.pricing-toggle button.active { background: var(--ink); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; max-width: 1100px; margin: 0 auto; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.035); box-shadow: var(--shadow-lg); }
.plan-card.featured .plan-desc, .plan-card.featured .plan-feature { color: rgba(255,255,255,.72); }
.plan-tag { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-mono); padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.plan-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; min-height: 40px; }
.plan-price { font-family: var(--font-display); font-size: 42px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan-price span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-card.featured .plan-price span { color: rgba(255,255,255,.6); }
.plan-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.plan-feature svg { flex-shrink: 0; margin-top: 2px; stroke: var(--success); }
.plan-card.featured .plan-feature svg { stroke: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; margin: 0 auto; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.testimonial-card .stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-card .stars svg { fill: var(--accent); stroke: none; }
.testimonial-card p { font-size: 14.5px; color: var(--ink-soft); }
.testimonial-person { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 14px; }
.testimonial-person strong { display: block; font-size: 14px; }
.testimonial-person span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 60px; text-align: center; margin: 0 20px; }
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-about p { font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; color: var(--muted); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }

/* ---------- Breadcrumb / page head ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a:hover { color: var(--primary); }
.page-head { padding: 50px 0 20px; }
.page-head h1 { font-size: 38px; }

/* ---------- Legal / policy pages ---------- */
.legal-content { max-width: 740px; margin: 0 auto; padding: 10px 0 90px; }
.legal-content .legal-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 36px; }
.legal-content h2 { font-size: 21px; margin-top: 42px; margin-bottom: 14px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin-top: 26px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 15px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 15px; }
.legal-content ul li { margin-bottom: 8px; color: var(--ink-soft); }
.legal-content a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.legal-content strong { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 30px 0 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.contact-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0 90px; align-items: start; }
.pd-gallery img, .pd-gallery .pd-thumb { border-radius: var(--r-lg); border: 1px solid var(--border); }
.pd-thumb { height: 420px; background-size: cover; background-position: center; overflow: hidden; }
.pd-info h1 { font-size: 32px; margin-bottom: 10px; }
.pd-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.pd-price { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.pd-was { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pd-actions { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.pd-included-note { background: var(--primary-tint); color: var(--primary-dark); border-radius: var(--r-sm); padding: 14px 16px; font-size: 13.5px; margin-bottom: 26px; display: flex; gap: 10px; align-items: flex-start; }
.pd-section h3 { font-size: 16px; margin-bottom: 10px; }
.pd-section { margin-bottom: 26px; }
.pd-feature-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; align-items: flex-start; }
.pd-feature-list svg { flex-shrink: 0; margin-top: 3px; stroke: var(--success); }

/* ---------- Auth ---------- */
.auth-shell { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { margin-bottom: 28px; font-size: 14.5px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); font-family: inherit; font-size: 14.5px; background: var(--bg); transition: border-color .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #E9FBF2; color: #106B41; }
.alert-error { background: #FDEDEC; color: #A6291F; }
.alert-info { background: var(--primary-tint); color: var(--primary-dark); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 40px 0 90px; align-items: start; }
.cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item .thumb { width: 84px; height: 64px; border-radius: var(--r-sm); background-size: cover; background-position: center; flex-shrink: 0; overflow: hidden; }
.cart-item .info { flex: 1; }
.cart-item h4 { font-size: 15px; margin: 0 0 4px; }
.cart-item .cat { font-size: 12.5px; color: var(--muted); }
.cart-item .price { font-family: var(--font-display); font-weight: 700; }
.cart-remove { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; display: inline-block; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; position: sticky; top: 96px; }
.summary-card h3 { font-size: 17px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 12px; color: var(--ink-soft); }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { margin: 0 auto 18px; color: var(--muted); stroke: var(--muted); }
.empty-state h3 { font-size: 20px; }

/* ---------- Dashboard / Account ---------- */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0 90px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.dash-nav a { padding: 11px 16px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.dash-nav a:hover { background: var(--bg-alt); }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; margin-bottom: 22px; }
.dash-card h3 { font-size: 17px; margin-bottom: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.stat-box span { font-size: 13px; color: var(--muted); }
.stat-box strong { display: block; font-family: var(--font-display); font-size: 26px; margin-top: 6px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.badge-paid, .badge-active { background: #E9FBF2; color: #106B41; }
.badge-pending, .badge-created { background: #FFF6E5; color: #92650C; }
.badge-failed, .badge-cancelled { background: #FDEDEC; color: #A6291F; }
.table-actions { display: flex; gap: 8px; }
.table-actions a, .table-actions button { font-size: 13px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0 90px; align-items: start; }
.checkout-summary-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .steps, .pricing-grid, .testimonial-grid, .promo-split, .faq-layout, .faq-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail, .cart-layout, .checkout-layout, .dash-shell { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; overflow-x: auto; position: static; }
  .promo-visual { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-shell { padding: 40px 24px; }
  .hero h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { margin: 0; border-radius: 0; padding: 44px 20px; }
}
