/* ================================================
   PRIMABLOX — Clean Green Theme (index2 style)
   ================================================ */
:root {
  --primary: #1DB96A;
  --primary-dark: #17a35d;
  --primary-light: #e8f8f0;
  --primary-border: #a7e8c7;
  --bg: #ffffff;
  --surface: #ffffff;
  --text-1: #111827;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --error: #EF4444;
  --error-light: #FEF2F2;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.11);
  --transition: 0.18s ease;

  /* Legacy aliases for app.js/topup.js compat */
  --indigo: #1DB96A;
  --indigo-2: #1DB96A;
  --cyan: #17a35d;
  --emerald: #10b981;
  --text: #111827;
  --muted: #9CA3AF;
  --muted-2: #4B5563;
  --gradient: linear-gradient(135deg, #0f7a42, #1DB96A);
  --surface-2: #F9FAFB;
  --border-accent: var(--primary-border);
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --r-pill: 99px;
  --shadow: var(--shadow-md);
  --line: #E5E7EB;
  --warning-var: #F59E0B;
}

.footer-help,
.footer-buy {
  display: grid;
  gap: 6px;
  min-width: 180px;
}
.footer-help strong,
.footer-buy strong {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.footer-help a,
.footer-buy a {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--transition), transform var(--transition);
}
.footer-help a:hover,
.footer-buy a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.legal-hero {
  background:
    linear-gradient(135deg, rgba(29,185,106,0.14), rgba(255,255,255,0.9) 45%),
    #fff;
  border-bottom: 1px solid var(--border);
}
.legal-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 34px;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}
.legal-title {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 800;
  color: var(--text-1);
}
.legal-sub {
  max-width: 720px;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}
.legal-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 42px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.legal-section {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-1);
}
.legal-section h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
}
.legal-section p,
.legal-section li {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.8;
}
.legal-section p + p {
  margin-top: 10px;
}
.legal-section ul,
.legal-section ol {
  margin: 8px 0 0 20px;
}
.legal-section a {
  color: var(--primary-dark);
  font-weight: 800;
}
.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .footer-help,
  .footer-buy {
    justify-items: center;
  }
  .footer-help a:hover,
  .footer-buy a:hover {
    transform: none;
  }
  .legal-title {
    font-size: 26px;
  }
  .legal-hero-inner {
    padding-top: 34px;
  }
  .legal-section {
    padding: 18px;
  }
}

/* Final homepage mobile polish */
@media (max-width: 640px) {
  body .hero-section {
    overflow: visible !important;
  }

  body .hero-inner {
    padding: 22px 16px 0 !important;
    gap: 8px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  body .hero-left {
    display: grid !important;
    justify-items: center !important;
    width: 100% !important;
  }

  body .hero-title {
    max-width: 330px !important;
    margin: 0 auto 8px !important;
    font-size: 25px !important;
    line-height: 1.14 !important;
    text-align: center !important;
  }

  body .hero-sub {
    max-width: 330px !important;
    margin: 0 auto 12px !important;
    font-size: 12.8px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  body .hero-badges {
    width: min(100%, 350px) !important;
    margin: 0 auto 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  body .hero-badge {
    min-height: 42px !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    border-radius: 18px !important;
    font-size: 10.2px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .hero-badge .dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
  }

  body .hero-badge strong {
    display: inline !important;
  }

  body .hero-btns {
    width: min(100%, 300px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body .btn-hero-primary,
  body .btn-hero-outline {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  body .btn-hero-primary .btn-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  body .hero-char-wrap {
    display: flex !important;
    width: 100vw !important;
    height: 286px !important;
    margin: 12px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  body .hero-glow {
    width: 410px !important;
    height: 255px !important;
    bottom: 0 !important;
    filter: blur(18px) !important;
    opacity: 0.72 !important;
  }

  body .hero-char {
    height: 286px !important;
    max-width: none !important;
    transform: translateY(0) !important;
  }

  body .stats-section,
  body .stats-row {
    display: block !important;
  }

  body .stats-section {
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative !important;
    z-index: 3 !important;
    margin-top: 18px !important;
  }

  body .stats-inner {
    padding: 0 16px !important;
  }

  body .stats-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-top: 0 !important;
  }

  body .stat-item {
    padding: 13px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 12px !important;
  }

  body .stat-item:last-child {
    border-bottom: 0 !important;
  }

  body .stat-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
  }

  body .stat-text {
    text-align: left !important;
  }

  body .stat-text h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  body .stat-text p {
    font-size: 11.2px !important;
    line-height: 1.45 !important;
  }
}

/* Ultimate homepage mobile fix */
@media (max-width: 640px) {
  body .hero-badges {
    width: min(100%, 350px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    margin: 0 auto 14px !important;
  }

  body .hero-badge {
    min-height: 42px !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    border-radius: 18px !important;
    font-size: 10.2px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .hero-badge .dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
  }

  body .hero-badge strong {
    display: inline !important;
  }

  body .hero-char-wrap {
    height: 286px !important;
  }

  body .hero-glow {
    width: 410px !important;
    height: 255px !important;
    bottom: 0 !important;
    filter: blur(18px) !important;
    opacity: 0.72 !important;
  }

  body .hero-char {
    height: 286px !important;
  }

  body .stats-section {
    position: relative !important;
    z-index: 3 !important;
    margin-top: 18px !important;
  }
}

@media (max-width: 370px) {
  body .hero-badges {
    grid-template-columns: 1fr !important;
    width: min(100%, 300px) !important;
  }

  body .hero-badge {
    min-height: 34px !important;
    border-radius: 14px !important;
  }
}

/* Homepage hero/stat join fix */
@media (max-width: 640px) {
  body .hero-section {
    overflow: hidden !important;
    border-bottom: 0 !important;
  }

  body .hero-inner {
    padding-bottom: 0 !important;
  }

  body .hero-char-wrap {
    height: 320px !important;
    margin: 10px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
  }

  body .hero-char {
    height: 320px !important;
    transform: translateY(0) !important;
  }

  body .hero-glow {
    width: 420px !important;
    height: 240px !important;
    bottom: 12px !important;
    opacity: 0.62 !important;
    filter: blur(18px) !important;
  }

  body .stats-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 4 !important;
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
  }
}

/* Homepage hero/stat join fix */
@media (max-width: 640px) {
  body .hero-section {
    overflow: hidden !important;
    border-bottom: 0 !important;
  }

  body .hero-inner {
    padding-bottom: 0 !important;
  }

  body .hero-char-wrap {
    height: 320px !important;
    margin: 10px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
  }

  body .hero-char {
    height: 320px !important;
    transform: translateY(0) !important;
  }

  body .hero-glow {
    width: 420px !important;
    height: 240px !important;
    bottom: 12px !important;
    opacity: 0.62 !important;
    filter: blur(18px) !important;
  }

  body .stats-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 4 !important;
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
  }
}

@media (max-width: 370px) {
  body .hero-badges {
    grid-template-columns: 1fr !important;
    width: min(100%, 300px) !important;
  }

  body .hero-badge {
    min-height: 34px !important;
    border-radius: 14px !important;
  }
}

/* Homepage mobile polish */
@media (max-width: 640px) {
  body .hero-section {
    overflow: visible !important;
  }

  body .hero-inner {
    padding: 22px 16px 0 !important;
    gap: 8px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  body .hero-left {
    display: grid !important;
    justify-items: center !important;
    width: 100% !important;
  }

  body .hero-title {
    max-width: 330px !important;
    margin: 0 auto 8px !important;
    font-size: 25px !important;
    line-height: 1.14 !important;
    text-align: center !important;
  }

  body .hero-sub {
    max-width: 330px !important;
    margin: 0 auto 12px !important;
    font-size: 12.8px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  body .hero-badges {
    width: min(100%, 350px) !important;
    margin: 0 auto 14px !important;
  }

  body .hero-btns {
    width: min(100%, 300px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body .btn-hero-primary,
  body .btn-hero-outline {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  body .btn-hero-primary .btn-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  body .hero-char-wrap {
    display: flex !important;
    width: 100vw !important;
    height: 292px !important;
    margin: 12px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  body .hero-glow {
    width: 430px !important;
    height: 300px !important;
    bottom: -24px !important;
    filter: blur(20px) !important;
    opacity: 0.9 !important;
  }

  body .hero-char {
    height: 292px !important;
    max-width: none !important;
    transform: translateY(0) !important;
  }

  body .stats-section,
  body .stats-row {
    display: block !important;
  }

  body .stats-section {
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }

  body .stats-inner {
    padding: 0 16px !important;
  }

  body .stats-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-top: 0 !important;
  }

  body .stat-item {
    padding: 13px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 12px !important;
  }

  body .stat-item:last-child {
    border-bottom: 0 !important;
  }

  body .stat-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
  }

  body .stat-text {
    text-align: left !important;
  }

  body .stat-text h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  body .stat-text p {
    font-size: 11.2px !important;
    line-height: 1.45 !important;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Promo Bar ─────────────────────────────── */
.promo-bar {
  background: linear-gradient(90deg, #0f7a42 0%, var(--primary) 50%, #0f7a42 100%);
  background-size: 200% 100%;
  animation: promoBG 5s ease infinite;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@keyframes promoBG { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.promo-bar span { opacity: 0.85; font-weight: 400; margin-left: 10px; }
.promo-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  padding: 1px 10px;
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

/* ── Header / Navbar ───────────────────────── */
.navbar, .topbar, header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.navbar-inner, .topbar-inner, .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 58px;
}

/* Logo */
.logo, .brand-wrap {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon, .brand-logo {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: none;
}
.logo-name, .brand { display: none; }
.logo-tag, .brand-sub { display: none; }

/* Nav links */
.nav-menu, .nav-links, nav {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}
.nav-menu a, .nav-links a, nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover, .nav-links a:hover, nav a:hover,
.nav-menu a.active, .nav-links a.active, nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-shrink: 0; }

/* Nav buttons */
.btn-nav, .nav-cta {
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-nav:hover, .nav-cta:hover { background: var(--primary-dark); }

.btn-outline {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

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

/* ── Layout ────────────────────────────────── */
.page-wrap, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  position: relative;
  z-index: 1;
}

.page-header { margin-bottom: 22px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--text-1); margin-bottom: 3px; }
.page-sub { color: var(--text-2); font-size: 13.5px; }

.landing-layout, .layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .landing-layout, .layout { grid-template-columns: 1fr; }
}

/* ── Card ──────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card:last-child { margin-bottom: 0; }

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-1);
}
.step-num {
  width: 22px; height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Alternate cards from old design */
.product-card, .featured-card, .purchase-form-card, .main-card,
.checkout-card, .hf-item, .step-card, .step-item, .faq-card, .faq-item,
.info-section, .stat-card-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── Type Cards ────────────────────────────── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--surface);
  user-select: none;
}
.type-card:hover { border-color: var(--primary-border); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.type-card.active { border-color: var(--primary); background: var(--primary-light); }
.type-card .badge {
  position: absolute; top: -10px; right: 12px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 800;
  padding: 2px 9px; border-radius: 99px;
  letter-spacing: 0.03em;
}
.type-card .badge.orange { background: var(--warning); }
.type-check {
  position: absolute; top: 10px; left: 10px;
  width: 18px; height: 18px;
  background: var(--primary); border-radius: 50%;
  align-items: center; justify-content: center;
  color: white; font-size: 10px; font-weight: 700;
  display: none;
}
.type-card.active .type-check { display: flex; }
.type-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.type-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text-1); }
.type-desc { font-size: 12px; color: var(--text-2); }

/* ── Buttons ───────────────────────────────── */
.btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}
.btn:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,185,106,0.35);
}
.btn:active:not(:disabled),
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn:disabled,
.btn-primary:disabled { background: #D1D5DB; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block, .wide-btn { width: 100%; }

.btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Form Inputs ───────────────────────────── */
.form-group, .field-group { margin-bottom: 14px; }

label, .form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"], input[type="tel"], input[type="number"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 40px 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,185,106,0.12); }
input.valid { border-color: var(--primary); }
input.error { border-color: var(--error); }
input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
input::placeholder { color: var(--text-3); }
input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; padding: 0; }

.input-row, .username-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Range labels */
.range-labels, .range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
}
.range-labels strong, .range-values strong { color: var(--text-1); font-size: 14px; font-weight: 800; }

/* ── Quote Cards ───────────────────────────── */
.quote-cards, .quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.quote-card, .quote-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.quote-card span, .quote-box span { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.quote-card strong, .quote-box strong { font-size: 20px; font-weight: 800; color: var(--text-1); }
.quote-card.accent, .quote-box.accent { background: var(--primary-light); border-color: var(--primary-border); }
.quote-card.accent strong, .quote-box.accent strong { color: var(--primary); }
.quote-card.total, .quote-box.total { background: var(--primary-light); border-color: var(--primary-border); }
.quote-card.total strong, .quote-box.total strong { color: var(--primary-dark); }

/* ── Chips ─────────────────────────────────── */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 600px) { .chips-grid { grid-template-columns: repeat(3, 1fr); } }
.chip {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--surface);
  user-select: none;
}
.chip:hover { border-color: var(--primary-border); background: var(--primary-light); transform: translateY(-1px); }
.chip.active { border-color: var(--primary); background: var(--primary-light); }
.chip-amt { font-size: 13px; font-weight: 700; display: block; color: var(--text-1); }
.chip-price { font-size: 10.5px; color: var(--text-2); display: block; margin-top: 2px; }

/* ── Info Boxes ─────────────────────────────── */
.info-box, .info-alert, .info-note {
  border-radius: var(--radius-md);
  padding: 13px 15px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.info-box.green, .info-note {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: #0c5e36;
}
.info-box.yellow, .info-alert {
  background: var(--warning-light);
  border: 1px solid #fde68a;
  color: #78350f;
}
.info-box.red { background: var(--error-light); border: 1px solid #fecaca; color: #7f1d1d; }
.info-box .ib-icon, .info-alert .ib-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.info-box .ib-body { flex: 1; line-height: 1.6; }
.info-box strong, .info-alert strong, .info-note strong { font-weight: 700; }
.info-alert strong { display: block; margin-bottom: 4px; font-size: 12.5px; color: #78350f; }
.info-alert p, .info-note p { margin: 0; color: #78350f; font-size: 12.5px; line-height: 1.65; }

/* ── User Card ──────────────────────────────── */
.user-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  margin-bottom: 14px;
}
.user-card img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--primary-border);
}
.user-card h3 { margin: 0 0 3px; font-size: 15px; font-weight: 800; color: var(--text-1); }
.user-card p { margin: 0; color: var(--text-3); font-size: 12px; }

/* ── Pass Items ─────────────────────────────── */
.pass-state { margin-bottom: 10px; font-weight: 700; font-size: 13px; color: var(--text-1); }
.pass-list { display: grid; gap: 8px; }

.pass-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
}
.pass-item:hover { border-color: var(--primary-border); background: var(--primary-light); }
.pass-item.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(29,185,106,0.1); }
.pass-meta h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; color: var(--text-1); }
.pass-meta p { margin: 0; color: var(--text-2); font-size: 12px; }

.tag-ok, .tag-warn {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.tag-ok { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-border); }
.tag-warn { background: var(--warning-light); color: #78350f; border: 1px solid #fde68a; }

/* ── Summary Sidebar ────────────────────────── */
.lp-sidebar { position: sticky; top: 76px; }

.sum-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sum-header {
  background: linear-gradient(135deg, #0a5c30 0%, var(--primary) 100%);
  padding: 22px 20px;
  text-align: center;
  color: white;
}
.sum-avatar, .sum-avatar-img {
  width: 66px; height: 66px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  margin: 0 auto 10px; display: block;
  object-fit: cover;
}
.sum-username { font-size: 16px; font-weight: 800; color: #fff; }
.sum-dn { font-size: 12px; opacity: 0.75; margin-top: 2px; color: #fff; }
.sum-body { padding: 18px 20px; }
.sum-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sum-row:last-of-type { border-bottom: none; }
.sum-row .lbl { color: var(--text-2); }
.sum-row .val { font-weight: 700; color: var(--text-1); }
.sum-total { font-size: 20px; font-weight: 800; color: var(--primary) !important; }

/* Legacy summary classes */
.summary-panel, .summary-list {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--text-2); }
.summary-row strong { font-weight: 700; color: var(--text-1); }
.summary-row.total { font-size: 15px; font-weight: 900; }
.summary-row.total strong { color: var(--primary); }

/* Checkout card (right panel in old layout) */
.checkout-card, aside.checkout-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 76px;
}
.card-header, .checkout-head, .section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.card-header h3, .checkout-head h3, .section-title-row h3 {
  margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--text-1);
}
.card-header p, .checkout-head p, .section-title-row p { margin: 0; color: var(--text-2); font-size: 13px; }

.checkout-note, .helper.small {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.65;
  text-align: center;
  display: block;
}
.helper { margin: 0; color: var(--text-3); line-height: 1.7; font-size: 13px; }
.small { font-size: 12px; }

.payment-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1.5px solid var(--border);
}

/* Badges */
.badge-live, .mini-chip, .secure-tag, .secure-badge, .status-pill, .intro-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-live, .mini-chip { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-border); }
.secure-tag, .secure-badge, .status-pill, .intro-badge { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-border); }

/* Eyebrow labels */
.eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Stats Section ──────────────────────────── */
.stats-section, .store-stats { padding: 0; margin-bottom: 16px; }

.stats-inline {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.stat-inline-item {
  flex: 1;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-inline-item:last-child { border-right: none; }
.stat-icon-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  font-size: 18px;
  flex-shrink: 0;
}
.stat-inline-item strong { display: block; font-size: 17px; font-weight: 800; color: var(--text-1); line-height: 1.1; }
.stat-inline-item span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 600; }

/* Legacy stats bar */
.stats-bar, .stats-grid {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.stat-item, .stat-strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child, .stat-strip-item:last-child { border-right: none; }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  font-size: 20px;
  flex-shrink: 0;
}
.stat-info strong, .stat-strip-item strong { display: block; font-size: 18px; font-weight: 900; color: var(--text-1); line-height: 1.1; margin-bottom: 2px; }
.stat-info span, .stat-strip-item span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.stat-divider { display: none; }

/* ── Recent Purchases ───────────────────────── */
.recent-section, .recent-purchases-box { margin-bottom: 16px; }
.recent-head h3 { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; }
.recent-slider { overflow: hidden; }
.recent-track {
  display: flex;
  gap: 10px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.recent-card {
  min-width: 200px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  flex-shrink: 0;
}
.recent-card.active { border-color: var(--primary-border); background: var(--primary-light); }
.recent-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.recent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.recent-meta strong { display: block; color: var(--primary); font-size: 17px; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.recent-meta span { display: block; color: var(--text-3); font-size: 11.5px; }
.recent-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.recent-dots button {
  width: 5px; height: 5px;
  border-radius: 99px;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.recent-dots button.active { width: 20px; background: var(--primary); }

.mini-purchase-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 740;
  width: auto;
  max-width: min(360px, calc(100vw - 36px));
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 56px minmax(0, max-content);
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(29,185,106,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(15,23,42,.14);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity .22s ease, transform .22s ease;
}
.mini-purchase-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.mini-toast-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-weight: 900;
}
.mini-toast-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-toast-copy {
  min-width: 0;
  max-width: 270px;
}
.mini-toast-copy small {
  display: block;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.mini-toast-copy strong {
  display: block;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.mini-toast-copy span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
}
.mini-toast-copy span::before {
  content: "✓";
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #1d9bf0;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}
.mini-toast-badge { display: none; }

@media (max-width: 640px) {
  .mini-purchase-toast {
    left: 10px;
    right: auto;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: auto;
    max-width: min(285px, calc(100vw - 28px));
    min-width: 0;
    display: inline-grid;
    grid-template-columns: 42px minmax(0, max-content);
    gap: 10px;
    border-radius: 15px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
    transform: translateY(12px);
  }
  .mini-purchase-toast.show {
    transform: translateY(0);
  }
  .mini-toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .mini-toast-copy small {
    font-size: 13px;
    line-height: 1.22;
  }
  .mini-toast-copy strong {
    font-size: 13px;
    line-height: 1.24;
    margin-top: 1px;
  }
  .mini-toast-copy span {
    display: inline-flex;
    font-size: 12px;
    margin-top: 5px;
  }
}

@media (max-width: 380px) {
  .mini-purchase-toast {
    max-width: min(270px, calc(100vw - 22px));
  }
  .mini-toast-copy strong {
    font-size: 12px;
  }
  .mini-toast-copy small {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .mini-toast-copy strong {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mini-toast-copy span {
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.home-reviews-wrap {
  margin: -12px 0 28px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.home-reviews-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-reviews-head h3 {
  margin: 0;
  color: var(--text-1);
  font-size: 16px;
  font-weight: 900;
}

.home-reviews-head a {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.home-review-slider {
  overflow: hidden;
}

.home-review-track {
  display: flex;
  gap: 10px;
  transition: transform 0.36s ease;
}

.home-review-card {
  flex: 0 0 calc((100% - 20px) / 3);
  min-height: 94px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
}

.home-review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
}

.home-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-review-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-review-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-review-card .stars {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-review-row strong {
  min-width: 0;
  color: var(--text-1);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-review-card p {
  margin: 0;
  color: var(--text-1);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-review-card small {
  min-width: 0;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Home popular item categories */
.home-popular-items {
  position: relative;
  margin: -4px 0 30px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(29,185,106,.14), rgba(56,189,248,.08) 42%, rgba(255,255,255,0) 72%),
    repeating-linear-gradient(135deg, rgba(17,24,39,.035) 0 1px, transparent 1px 13px),
    #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.home-popular-items::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.home-popular-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 10px;
}
.home-popular-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
}
.home-popular-head a {
  color: var(--primary-dark);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}
.home-popular-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scrollbar-width: thin;
}
.home-popular-card {
  --card-accent: var(--primary);
  --card-soft: var(--primary-light);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 124px;
  min-width: 0;
  min-height: 128px;
  padding: 7px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.98)),
    var(--card-soft);
  text-decoration: none;
  color: var(--text-1);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-popular-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--card-accent);
  opacity: .88;
}
.home-popular-card:nth-child(3n+2) {
  --card-accent: var(--primary);
  --card-soft: var(--primary-light);
}
.home-popular-card:nth-child(3n+3) {
  --card-accent: var(--primary);
  --card-soft: var(--primary-light);
}
.home-popular-card:nth-child(4n+4) {
  --card-accent: var(--primary);
  --card-soft: var(--primary-light);
}
.home-popular-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-accent) 44%, #ffffff);
  box-shadow: 0 18px 30px rgba(15, 23, 42, .12);
}
.home-popular-card.featured {
  flex-basis: 124px;
  min-height: 128px;
  color: var(--text-1);
  border-color: var(--primary-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.home-popular-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(6px);
}
.home-popular-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-soft);
  color: var(--card-accent);
  font-weight: 900;
  margin-bottom: 7px;
}
.home-popular-card.featured .home-popular-media {
  flex: none;
  min-height: 0;
  margin: 0 0 7px;
  border-radius: 10px;
}
.home-popular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-popular-body {
  display: block;
  min-width: 0;
  padding: 0 1px 18px;
}
.home-popular-body small {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--card-accent);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.home-popular-body strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-popular-card.featured .home-popular-body strong {
  color: var(--text-1);
  font-size: 12px;
}
.home-popular-body > span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-popular-card.featured .home-popular-body > span {
  color: var(--text-2);
  white-space: nowrap;
}
.home-popular-card.featured .home-popular-body small {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.home-popular-action {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--card-accent);
  border: 1px solid rgba(17, 24, 39, .08);
  font-size: 9px;
  font-weight: 900;
}
.home-popular-card.featured .home-popular-action {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
}

/* ── Section Labels ─────────────────────────── */
.section-label { margin-bottom: 20px; }
.section-label h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--text-1); }
.section-label p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.section-label.center { text-align: center; }
.section-head { margin: 0 0 16px; }
.section-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--text-1); }
.section-head p { margin: 0; color: var(--text-2); font-size: 13px; }

/* ── Hero ───────────────────────────────────── */
.hero { padding: 0; }
.hero-inner { max-width: 100%; }
.hero-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
}
.pill-accent { background: var(--primary-light); border-color: var(--primary-border); color: var(--primary-dark); }
.hero-title { margin: 0 0 12px; font-size: 26px; font-weight: 800; color: var(--text-1); }
.gradient-text {
  background: linear-gradient(90deg, #0f7a42 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { margin: 0 0 20px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-cta .btn, .hero-cta .btn-primary { width: auto; }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hf-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: none;
}
.hf-item:hover { border-color: var(--primary-border); background: var(--primary-light); }
.hf-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.hf-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--text-1); }
.hf-item span { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ── Products Section ───────────────────────── */
.products-section { padding: 0; margin-bottom: 0; }
.product-grid, .product-showcase { display: grid; gap: 14px; }
.product-badge, .featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.featured-badge { position: static; display: inline-flex; }
.product-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.product-icon, .product-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29,185,106,0.28);
}
.product-main { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.product-main h3, .product-header h3 { margin: 0 0 5px; font-size: 20px; font-weight: 800; color: var(--text-1); }
.product-main p, .product-header p { margin: 0; color: var(--text-2); line-height: 1.65; font-size: 13.5px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.product-tags span {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.product-highlight, .sales-copy {
  padding: 13px 15px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.product-highlight strong, .sales-copy strong { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--text-1); }
.product-highlight p, .sales-copy p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* ── Purchase Section ───────────────────────── */
.purchase-section, .purchase-shell { padding: 0; margin: 0 0 16px; }
.purchase-header, .purchase-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.purchase-header-text .eyebrow, .purchase-intro .eyebrow { margin-bottom: 4px; }
.purchase-header h2, .purchase-intro h3 { margin: 0 0 5px; font-size: 20px; font-weight: 800; color: var(--text-1); }
.purchase-header p, .purchase-intro p { margin: 0; color: var(--text-2); line-height: 1.65; font-size: 13px; }
.purchase-grid, .purchase-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 18px;
  align-items: start;
}

/* ── Steps / How to Buy ─────────────────────── */
.howto-section, .steps-section { margin-bottom: 24px; }
.steps-row { display: flex; align-items: stretch; gap: 10px; }
.step-card, .step-item {
  flex: 1;
  padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-card:hover, .step-item:hover { border-color: var(--primary-border); background: var(--primary-light); }
.step-num, .step-no {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
  background: none;
  -webkit-text-fill-color: unset;
}
.step-arrow { font-size: 16px; color: var(--border); flex-shrink: 0; align-self: center; }
.step-card h4, .step-item h4 { margin: 0 0 5px; font-size: 14px; font-weight: 800; color: var(--text-1); }
.step-card p, .step-item p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* ── FAQ ────────────────────────────────────── */
.faq-section { margin-bottom: 24px; }
.faq-grid, .faq-list { display: grid; gap: 10px; }
.faq-grid { grid-template-columns: repeat(2, 1fr); }
.faq-card, .faq-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-card:hover, .faq-item:hover { border-color: var(--primary-border); }
.faq-card h4, .faq-item h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.faq-card p, .faq-item p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* FAQ Accordion style */
.faq-list-acc { margin-top: 4px; }
.faq-list-acc .faq-item { padding: 0; border-radius: var(--radius-md); margin-bottom: 0; }
.faq-list-acc .faq-item + .faq-item { border-top: 1px solid var(--border); border-radius: 0; }
.faq-list-acc .faq-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.faq-list-acc .faq-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-1);
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; gap: 8px;
}
.faq-q .arr { transition: transform var(--transition); font-size: 10px; color: var(--text-3); flex-shrink: 0; }
.faq-q.open .arr { transform: rotate(180deg); }
.faq-a { font-size: 13px; color: var(--text-2); padding: 0 16px 12px; line-height: 1.65; display: none; }
.faq-a.open { display: block; }

/* ── Copy tiles ─────────────────────────────── */
.checkout-copy { display: grid; gap: 8px; margin-bottom: 14px; }
.copy-tile {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
}
.copy-tile strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--text-1); }
.copy-tile span { color: var(--text-2); font-size: 12.5px; line-height: 1.65; }

/* ── Footer ─────────────────────────────────── */
.footer {
  position: relative;
  border-top: 1px solid rgba(229,231,235,0.85);
  padding: 34px 0 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), #fff 34%),
    radial-gradient(circle at 12% 10%, rgba(29,185,106,0.12), transparent 30%),
    linear-gradient(135deg, rgba(29,185,106,0.06), rgba(17,24,39,0.02));
  margin-top: 18px;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), rgba(16,185,129,0.35), transparent);
  opacity: 0.85;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.footer-brand .logo-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 24px rgba(29,185,106,0.22);
}
.footer-brand > div {
  min-width: 0;
}
.footer-brand strong {
  display: block;
  font-weight: 800;
  color: var(--text-1);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.2;
}
.footer-brand span {
  display: block;
  max-width: 620px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.footer-copy {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(229,231,235,0.8);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.site-social-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.site-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(29,185,106,0.09);
  border: 1px solid rgba(29,185,106,0.16);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.site-social-links a::before {
  content: none;
}
.site-social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.site-social-links a:hover {
  transform: translateY(-1px);
  background: var(--primary-light);
  border-color: var(--primary-border);
}

/* ── Content Grid ───────────────────────────── */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 24px; }
.info-section { padding: 18px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); }

/* ── Utility ─────────────────────────────────  */
.hidden { display: none !important; }
.error { color: var(--error); }
.success { color: var(--primary); }

/* Spinner */
.spin {
  width: 13px; height: 13px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: doSpin 0.7s linear infinite;
  display: inline-block; flex-shrink: 0;
}
@keyframes doSpin { to { transform: rotate(360deg); } }

/* Section divider */
.section-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Removed dark bg elements */
.bg-orb, .orb-1, .orb-2, .orb-3, .bg-glow { display: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1080px) {
  .purchase-grid, .purchase-layout { grid-template-columns: 1fr; }
  .stats-bar, .stats-grid { flex-direction: column; }
  .stat-item, .stat-strip-item { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 20px; }
  .stat-item:last-child, .stat-strip-item:last-child { border-bottom: none; }
  .stats-inline { flex-direction: column; }
  .stat-inline-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-inline-item:last-child { border-bottom: none; }
  .checkout-card, aside.checkout-card { position: static; }
  .lp-sidebar { position: static; }
  .home-popular-card.featured { flex-basis: 124px; min-height: 128px; }
  .home-popular-card.featured .home-popular-media { min-height: 0; }
  .steps-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .content-grid, .hero-features { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-wrap, .container { padding: 18px 16px; }
  .hero-title { font-size: 22px; }
  .hero-features, .quote-cards, .quote-grid, .faq-grid, .steps-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .purchase-header, .purchase-intro { flex-direction: column; gap: 10px; }
  .section-label h2 { font-size: 20px; }
  /* footer responsive ditangani di blok "Primatle-style footer" di bawah (980/640px) */
  .topbar-inner, .navbar-inner, .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .home-popular-items { padding: 13px; border-radius: 16px; }
  .home-popular-head { align-items: flex-start; }
  .home-popular-card { flex-basis: 118px; min-height: 122px; }
  .home-popular-card.featured {
    flex-basis: 118px;
    min-height: 122px;
  }
  .home-popular-card.featured .home-popular-media { min-height: 0; }
  .input-row, .username-row { grid-template-columns: 1fr; }
  .product-main, .product-header { flex-direction: column; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .chips-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Primatle-style footer */
.footer {
  border-top: 1px solid rgba(229,231,235,0.9);
  padding: 46px 0 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), #fff 34%),
    radial-gradient(circle at 14% 0%, rgba(29,185,106,0.10), transparent 30%),
    linear-gradient(135deg, rgba(29,185,106,0.045), rgba(17,24,39,0.02));
  color: var(--text-1);
  margin-top: 18px;
  overflow: hidden;
}
.footer::before {
  background: linear-gradient(90deg, transparent, rgba(29,185,106,0.70), rgba(29,185,106,0.20), transparent);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) minmax(210px, 0.95fr) minmax(140px, 0.58fr) minmax(145px, 0.58fr);
  grid-template-areas:
    "brand help buy social"
    "payments help buy social"
    "copy copy copy copy";
  align-items: start;
  justify-content: stretch;
  column-gap: 34px;
  row-gap: 16px;
}
.footer-brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.footer-brand .logo-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: none;
}
.footer-brand .site-logo-img {
  max-width: 170px !important;
  max-height: 46px !important;
  filter: drop-shadow(0 6px 14px rgba(15,23,42,0.08));
}
.footer-brand strong,
.footer-help strong,
.footer-buy strong,
.footer-social strong,
.footer-payments strong {
  display: block;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}
.footer-brand span {
  max-width: 420px;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.7;
}
.footer-payments {
  grid-area: payments;
  width: min(100%, 360px);
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(229,231,235,0.92);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 1px 2px rgba(15,23,42,0.035);
}
.footer-payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 8px;
}
.footer-payment-logos img {
  height: 24px;
  max-width: 64px;
  padding: 4px 6px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
}
.footer-payments span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.footer-help {
  grid-area: help;
}
.footer-buy {
  grid-area: buy;
}
.footer-social {
  grid-area: social;
}
.footer-help,
.footer-buy,
.footer-social {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.footer-help a,
.footer-buy a {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.footer-help a:hover,
.footer-buy a:hover {
  color: var(--primary);
  transform: none;
}
.footer-social .site-social-links {
  display: flex;
  gap: 9px;
  margin-top: 2px;
}
.footer-social .site-social-links a {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(29,185,106,0.09);
  border: 1px solid rgba(29,185,106,0.16);
}
.footer-social .site-social-links a span {
  display: none;
}
.footer-social .site-social-links img {
  width: 17px;
  height: 17px;
}
.footer-copy {
  grid-area: copy;
  width: 100%;
  margin: 6px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(229,231,235,0.9);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}

/* ── Tablet: brand penuh, 3 kolom link, lalu pembayaran + copy ── */
@media (max-width: 980px) {
  .footer {
    padding: 38px 0 22px;
  }
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "brand brand brand"
      "help buy social"
      "payments payments payments"
      "copy copy copy";
    column-gap: 24px;
    row-gap: 22px;
  }
  .footer-brand span {
    max-width: none;
  }
  .footer-payments {
    width: 100%;
    max-width: 460px;
  }
}

/* ── Mobile: brand penuh, Bantuan|Beli berdampingan, sosial, pembayaran, copy ── */
@media (max-width: 640px) {
  .footer {
    padding: 30px 0 20px;
    margin-top: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "help buy"
      "social social"
      "payments payments"
      "copy copy";
    column-gap: 16px;
    row-gap: 22px;
    text-align: left;
    justify-items: stretch;
  }
  .footer-brand {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .footer-brand .logo-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
  }
  .footer-brand strong {
    font-size: 16px;
  }
  .footer-brand span {
    max-width: none;
    font-size: 12px;
    line-height: 1.6;
  }
  .footer-help,
  .footer-buy,
  .footer-social {
    justify-items: start;
    gap: 9px;
  }
  .footer-payments {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .footer-social .site-social-links {
    justify-content: flex-start;
  }
  .footer-copy {
    grid-area: copy;
    margin-top: 2px;
    padding-top: 16px;
    text-align: center;
  }
}

/* ── HP kecil: link jadi satu kolom kalau benar-benar sempit ── */
@media (max-width: 360px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "help"
      "buy"
      "social"
      "payments"
      "copy";
  }
}

/* Mobile sync and bottom actions */
.mobile-action-dock,
.mobile-floating-help {
  display: none;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  body.has-mobile-action-dock {
    padding-bottom: 112px;
  }
  .promo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    font-size: 9.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .promo-bar span {
    display: inline-flex;
    align-items: center;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
  }
  .promo-bar .promo-pill {
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 1px 5px;
    font-size: 7.8px;
    letter-spacing: 0.025em;
  }
  .navbar-inner,
  .topbar-inner,
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    height: auto;
    min-height: 54px;
    padding: 9px 12px;
  }
  .logo,
  .brand-wrap {
    min-width: 0;
    margin: 0;
    gap: 7px;
    font-size: 14px;
  }
  .logo-icon,
  .brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .nav-actions {
    gap: 6px;
    min-width: 0;
  }
  .nav-actions .btn-outline {
    display: none;
  }
  .btn-nav,
  .nav-cta {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
  }
  .hero-section {
    overflow: hidden;
  }
  .hero-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    padding: 24px 14px 0 !important;
    align-items: start;
  }
  .hero-left {
    width: 100%;
    min-width: 0;
    padding-bottom: 0 !important;
  }
  .hero-title {
    max-width: 100%;
    margin-bottom: 9px !important;
    font-size: 25px !important;
    line-height: 1.16 !important;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .hero-sub {
    max-width: 100%;
    margin-bottom: 14px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }
  .hero-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7px !important;
    margin-bottom: 16px !important;
  }
  .hero-badge {
    min-width: 0;
    padding: 5px 8px !important;
    font-size: 9.5px !important;
    white-space: normal;
    line-height: 1.35;
  }
  .hero-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 10px 10px !important;
    border-radius: 9px !important;
    font-size: 11.5px !important;
  }
  .hero-char-wrap {
    display: flex !important;
    height: 248px !important;
    margin: 8px -18px 0;
    overflow: hidden;
  }
  .hero-glow {
    width: 330px !important;
    height: 250px !important;
    bottom: -44px !important;
    filter: blur(14px) !important;
  }
  .hero-char {
    height: 252px !important;
    max-width: none;
    transform: translateY(10px);
  }
  .stats-section,
  .stats-row {
    display: none;
  }
  .main-content {
    padding: 20px 14px !important;
  }
  .steps-row,
  .content-grid,
  .faq-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
  }
  .card,
  .product-card,
  .featured-card,
  .purchase-form-card,
  .main-card,
  .checkout-card,
  .hf-item,
  .step-card,
  .step-item,
  .faq-card,
  .faq-item,
  .info-section,
  .stat-card-box {
    border-radius: 12px;
  }
  .footer {
    padding-bottom: 116px;
  }
  .footer-inner {
    padding: 0 16px;
  }
  .footer-payments {
    width: 100%;
  }
  .footer-payment-logos img {
    height: 22px;
    max-width: 58px;
  }
  .legal-hero-inner,
  .legal-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-action-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 600;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid rgba(229,231,235,0.95);
    box-shadow: 0 -12px 32px rgba(15,23,42,0.12);
    backdrop-filter: blur(10px);
  }
  .mobile-action-help {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 3px 12px rgba(15,23,42,0.10);
  }
  .mobile-action-help img {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }
  .mobile-action-buy {
    min-width: 0;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #008f24;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,143,36,0.24);
  }
  .mobile-floating-help {
    position: fixed;
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 590;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #008f24;
    box-shadow: 0 14px 28px rgba(0,143,36,0.28);
  }
  .mobile-floating-help img {
    width: 27px;
    height: 27px;
    object-fit: contain;
  }
}

/* Final homepage mobile polish */
@media (max-width: 640px) {
  body .hero-section {
    overflow: visible !important;
  }

  body .hero-inner {
    padding: 22px 16px 0 !important;
    gap: 8px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  body .hero-left {
    display: grid !important;
    justify-items: center !important;
    width: 100% !important;
  }

  body .hero-title {
    max-width: 330px !important;
    margin: 0 auto 8px !important;
    font-size: 25px !important;
    line-height: 1.14 !important;
    text-align: center !important;
  }

  body .hero-sub {
    max-width: 330px !important;
    margin: 0 auto 12px !important;
    font-size: 12.8px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  body .hero-badges {
    width: min(100%, 350px) !important;
    margin: 0 auto 14px !important;
  }

  body .hero-btns {
    width: min(100%, 300px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body .btn-hero-primary,
  body .btn-hero-outline {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  body .btn-hero-primary .btn-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  body .hero-char-wrap {
    display: flex !important;
    width: 100vw !important;
    height: 292px !important;
    margin: 12px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  body .hero-glow {
    width: 430px !important;
    height: 300px !important;
    bottom: -24px !important;
    filter: blur(20px) !important;
    opacity: 0.9 !important;
  }

  body .hero-char {
    height: 292px !important;
    max-width: none !important;
    transform: translateY(0) !important;
  }

  body .stats-section,
  body .stats-row {
    display: block !important;
  }

  body .stats-section {
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }

  body .stats-inner {
    padding: 0 16px !important;
  }

  body .stats-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-top: 0 !important;
  }

  body .stat-item {
    padding: 13px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 12px !important;
  }

  body .stat-item:last-child {
    border-bottom: 0 !important;
  }

  body .stat-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
  }

  body .stat-text {
    text-align: left !important;
  }

  body .stat-text h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  body .stat-text p {
    font-size: 11.2px !important;
    line-height: 1.45 !important;
  }
}

/* Ultimate homepage mobile fix */
@media (max-width: 640px) {
  body .hero-badges {
    width: min(100%, 350px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    margin: 0 auto 14px !important;
  }

  body .hero-badge {
    min-height: 42px !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    border-radius: 18px !important;
    font-size: 10.2px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .hero-badge .dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
  }

  body .hero-badge strong {
    display: inline !important;
  }

  body .hero-char-wrap {
    height: 286px !important;
  }

  body .hero-glow {
    width: 410px !important;
    height: 255px !important;
    bottom: 0 !important;
    filter: blur(18px) !important;
    opacity: 0.72 !important;
  }

  body .hero-char {
    height: 286px !important;
  }

  body .stats-section {
    position: relative !important;
    z-index: 3 !important;
    margin-top: 18px !important;
  }
}

@media (max-width: 370px) {
  body .hero-badges {
    grid-template-columns: 1fr !important;
    width: min(100%, 300px) !important;
  }

  body .hero-badge {
    min-height: 34px !important;
    border-radius: 14px !important;
  }
}
/* Homepage hero/stat join fix - final */
@media (max-width: 640px) {
  body .hero-section {
    overflow: hidden !important;
    border-bottom: 0 !important;
  }

  body .hero-inner {
    padding-bottom: 0 !important;
  }

  body .hero-char-wrap {
    height: 320px !important;
    margin: 10px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
  }

  body .hero-char {
    height: 320px !important;
    transform: translateY(0) !important;
  }

  body .hero-glow {
    width: 420px !important;
    height: 240px !important;
    bottom: 12px !important;
    opacity: 0.62 !important;
    filter: blur(18px) !important;
  }

  body .stats-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 4 !important;
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
  }

  body .hero-badge {
    display: grid !important;
    grid-template-columns: 7px minmax(0, auto) !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 7px !important;
  }

  body .hero-badge .dot {
    align-self: center !important;
    margin-top: 0 !important;
  }

  body .hero-badge strong {
    line-height: 1.18 !important;
  }
}

/* Mobile homepage hero reset */
@media (max-width: 640px) {
  body .hero-section {
    overflow: hidden !important;
    border-bottom: 1px solid var(--border) !important;
  }

  body .hero-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    padding: 24px 18px 0 !important;
    gap: 0 !important;
    text-align: center !important;
    justify-items: center !important;
    align-items: start !important;
  }

  body .hero-left {
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
    display: grid !important;
    justify-items: center !important;
  }

  body .hero-title {
    max-width: 340px !important;
    margin: 0 auto 10px !important;
    font-size: 27px !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .hero-sub {
    max-width: 340px !important;
    margin: 0 auto 16px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body .hero-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100%, 340px) !important;
    gap: 10px !important;
    margin: 0 auto 16px !important;
    align-items: stretch !important;
  }

  body .hero-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .hero-badge .dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body .hero-badge strong {
    display: inline !important;
    flex: 0 0 auto !important;
    line-height: inherit !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body .hero-badge:nth-child(2) strong {
    flex: 1 1 auto !important;
    white-space: normal !important;
    text-wrap: balance;
  }

  body .hero-btns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100%, 340px) !important;
    gap: 10px !important;
    margin: 0 auto !important;
  }

  body .btn-hero-primary,
  body .btn-hero-outline {
    width: 100% !important;
    min-height: 42px !important;
    padding: 9px 10px !important;
    border-radius: 11px !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body .btn-hero-primary .btn-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    font-size: 10px !important;
  }

  body .hero-char-wrap {
    display: flex !important;
    width: 100vw !important;
    height: 294px !important;
    margin: 14px calc(50% - 50vw) 0 !important;
    overflow: visible !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  body .hero-char {
    height: 294px !important;
    max-width: none !important;
    transform: none !important;
  }

  body .hero-glow {
    width: 410px !important;
    height: 230px !important;
    bottom: 10px !important;
    opacity: 0.62 !important;
    filter: blur(18px) !important;
  }

  body .stats-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 4 !important;
  }
}

@media (max-width: 370px) {
  body .hero-badges,
  body .hero-btns {
    width: min(100%, 320px) !important;
  }

  body .hero-badge {
    min-height: 46px !important;
    padding-inline: 8px !important;
    font-size: 10.5px !important;
  }
}

/* Homepage category/cart quick actions */
.home-nav-actions {
  position: relative;
}

.home-nav-actions > .btn-outline,
.home-nav-actions > .btn-nav {
  display: none !important;
}

.category-menu {
  position: relative;
}

.category-menu summary,
.mobile-category-menu summary {
  list-style: none;
}

.category-menu summary::-webkit-details-marker,
.mobile-category-menu summary::-webkit-details-marker {
  display: none;
}

.quick-action-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.quick-action-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-border);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.quick-action-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-action {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-action:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.category-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 260;
  width: 190px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(229,231,235,0.96);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,0.16);
}

.category-menu[open] .category-menu-panel {
  display: grid;
  gap: 4px;
}

.category-menu-panel a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 800;
}

.category-menu-panel a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.home-mobile-actions {
  display: none;
}

@media (max-width: 640px) {
  body.home-page.has-mobile-bottom-nav {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  body.home-page .mobile-bottom-nav {
    display: grid !important;
  }

  body.home-page .mobile-menu-toggle,
  body.home-page .mobile-menu-panel {
    display: none !important;
  }

  .home-mobile-actions {
    display: none !important;
  }

  .mobile-category-menu {
    position: relative;
    min-width: 0;
  }

  .home-mobile-action {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .home-mobile-action svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .home-mobile-cart {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(29,185,106,0.24);
  }

  .mobile-category-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 770;
    width: min(220px, calc(100vw - 28px));
    display: none;
    padding: 8px;
    border: 1px solid rgba(229,231,235,0.96);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 -16px 38px rgba(15,23,42,0.16);
  }

  .mobile-category-menu[open] .mobile-category-panel {
    display: grid;
    gap: 4px;
  }

  .mobile-category-panel a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-category-panel a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
  }
}

@media (max-width: 640px) {
  body.home-page .home-mobile-actions {
    display: none !important;
  }

  body.home-page .mobile-bottom-nav {
    display: grid !important;
  }

  body.home-page.has-mobile-bottom-nav header .nav-actions.home-nav-actions {
    display: flex !important;
    margin-left: auto !important;
    gap: 6px !important;
  }

  body.home-page .home-nav-actions .quick-action-btn {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  body.home-page .home-nav-actions .quick-action-btn span {
    display: none !important;
  }

  body.home-page .home-nav-actions .quick-action-btn svg {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
  }

  body.home-page .category-menu-panel {
    right: 0 !important;
    width: min(210px, calc(100vw - 24px)) !important;
  }

  body .home-reviews-wrap {
    padding: 13px !important;
    border-radius: 8px !important;
    margin-top: -8px !important;
  }

  body .home-review-card {
    flex-basis: 100% !important;
    min-height: 92px !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 11px !important;
    gap: 9px !important;
  }

  body .home-review-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }

  body .home-review-card p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  body .home-review-row strong {
    font-size: 12px !important;
  }

  body .home-review-card .stars {
    font-size: 10px !important;
  }
}
