/* ═══════════════════════════════════════════════════
   STARLINK — Revendedor Autorizado Brasil
   Design System — Idêntico ao starlink.com
   v3.0 — Comprehensive pass: mobile, a11y, print, dark mode
   ═══════════════════════════════════════════════════ */

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

/* ── VARIABLES ── */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;

  --success: #22c55e;
  --warning: #f59e0b;
  --error:   #ef4444;
  --info:    #3b82f6;

  /* Primary colour stays white — the site IS a dark theme.
     Changing this in dark-mode queries breaks .btn--primary and checkout CTA. */
  --primary-color: #ffffff;
  --primary-rgb: 255, 255, 255;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 0px;
  --transition: 200ms ease;

  /* Focus ring colour — used everywhere via :focus-visible */
  --focus-ring: #0066cc;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a     { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
img   { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font); }

/* ── ACCESSIBILITY ── */

/* Skip link */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 200ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global focus-visible ring */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Form inputs get a box-shadow instead of outline to avoid layout shift */
.form-input:focus-visible,
.cobertura__input:focus-visible,
.ck-input-wrap input:focus-visible,
.ck-input-wrap select:focus-visible {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Button / interactive elements */
.btn:focus-visible,
.ck-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.nav__cart:focus-visible,
.nav__hamburger:focus-visible,
.cart-drawer__close:focus-visible,
.scroll-top:focus-visible,
.faq-item__q:focus-visible,
.cart-item__qty-btn:focus-visible,
.admin__sidebar-link:focus-visible,
.admin-nav__item:focus-visible,
.trk__btn:focus-visible,
.trk__tracking-copy:focus-visible,
.ck-pay-option:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Custom text selection */
::selection {
  background: rgba(66, 165, 245, 0.25);
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo svg { height: 24px; width: auto; }

.nav__logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition);
  letter-spacing: 0.5px;
  padding: 4px 0; /* larger tap target for keyboard users */
}

.nav__link:hover { color: var(--white); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cart {
  position: relative;
  color: var(--white);
  padding: 8px;
  transition: opacity var(--transition);
}
.nav__cart:hover { opacity: 0.7; }

.nav__cart-badge {
  position: absolute;
  top: 2px; right: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.3s ease;
}

.nav__cart-badge.show { display: flex; }

.nav__cart-badge.cart-badge--pop {
  animation: badgePop 0.35s ease both;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 768px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
}

/* 375px — tighten nav logo on small iPhones */
@media (max-width: 375px) {
  .nav__logo-text { font-size: 15px; letter-spacing: 2px; }
}

/* 320px — very small phones */
@media (max-width: 320px) {
  .nav__logo-text { font-size: 13px; letter-spacing: 1px; }
  .container { padding: 0 12px; }
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active:not(:disabled) { transform: scale(0.97); }

.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: var(--gray-200); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn--dark {
  background: var(--gray-900);
  color: var(--white);
  border: 1px solid var(--gray-800);
}
.btn--dark:hover { background: var(--gray-800); }

.btn--full  { width: 100%; }

.btn--lg { padding: 18px 40px; font-size: 15px; }

.btn--sm { padding: 10px 20px; font-size: 12px; }

/* Loading state */
.btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.btn--loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* WhatsApp float button */
.btn--whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  padding: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.btn--whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.btn--whatsapp svg { width: 28px; height: 28px; }

/* ════════════════════════════════════════
   HERO — Full viewport
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}

.hero__tag {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,1);
}

.hero__price { margin-bottom: 32px; }

.hero__price-current { font-size: 48px; font-weight: 800; }

.hero__price-old {
  font-size: 20px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 12px;
}

.hero__price-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */
.section { padding: 120px 0; }

.section--gray { background: var(--gray-950); }

.section__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__desc { margin: 0 auto; }

/* CTA hero overlay section */
.cta-hero {
  position: relative;
  overflow: hidden;
}

/* ════════════════════════════════════════
   FEATURES GRID
   ════════════════════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.feature {
  background: var(--black);
  padding: 48px 32px;
  text-align: center;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.feature:hover { background: var(--gray-950); }

/* Hover underline accent */
.feature::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 400ms ease;
}
.feature:hover::after { transform: scaleX(1); }

.feature__icon {
  width: 48px; height: 48px;
  margin: 0 auto 24px;
  color: var(--white);
}
.feature__icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.feature__text {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   PRODUCT CARDS
   ════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  overflow: hidden;
  transition: border-color var(--transition);
  position: relative; /* required for absolute badge children */
}
.product-card:hover { border-color: var(--gray-600); }

.product-card__img {
  position: relative;
  background: linear-gradient(135deg, var(--gray-950) 0%, #151515 50%, var(--gray-950) 100%);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.product-card__img img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  transition: transform 400ms ease;
}
.product-card:hover .product-card__img img { transform: scale(1.03); }

/* In-image tag (top-left) */
.product-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--white);
  color: var(--black);
}

/* Badge overlay (top-right, e.g. "OFERTA") — added by JS */
.product-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--error);
  color: var(--white);
}

.product-card__body { padding: 32px; }

.product-card__name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }

.product-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.product-card__spec { display: flex; flex-direction: column; gap: 2px; }

.product-card__spec-label {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__spec-value { font-size: 14px; font-weight: 600; }

.product-card__pricing {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  margin-bottom: 24px;
}

.product-card__price { font-size: 32px; font-weight: 800; }

.product-card__price-old {
  font-size: 16px;
  color: var(--gray-600);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

/* Monthly subscription line — also aliased as .product-card__plan */
.product-card__monthly,
.product-card__plan {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ════════════════════════════════════════
   PLANS TABLE
   ════════════════════════════════════════ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.plan {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.plan--highlight {
  background: var(--gray-950);
  border-top: 2px solid var(--white);
}
.plan--highlight:hover {
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.06);
}

.plan__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.plan__price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }

.plan__period { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }

.plan__features { flex: 1; margin-bottom: 32px; }

.plan__feature {
  font-size: 14px;
  color: var(--gray-300);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan__feature::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   SPLIT SECTION (image + text)
   ════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}
.split__content .section__title { margin-bottom: 20px; }
.split__content .section__desc  { margin-bottom: 32px; }

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split__content { padding: 48px 24px; }
  .split__media { height: 300px; }
}

/* ════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.stat {
  background: var(--black);
  padding: 40px 24px;
  text-align: center;
}

.stat__number { font-size: 40px; font-weight: 800; margin-bottom: 4px; }

.stat__label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════
   TRUST BAR
   ════════════════════════════════════════ */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.trust__item {
  background: var(--black);
  padding: 32px 24px;
  text-align: center;
}

.trust__item-icon {
  width: 32px; height: 32px;
  margin: 0 auto 12px;
  color: var(--gray-400);
}
.trust__item-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.trust__item-text { font-size: 13px; font-weight: 500; color: var(--gray-300); }

@media (max-width: 768px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--gray-800); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.faq-item__q-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gray-500);
}
.faq-item__q-icon svg { width: 100%; height: 100%; }

.faq-item.open .faq-item__q-icon { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-item__a-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}

.faq-item.open .faq-item__a { max-height: 500px; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--gray-800);
  padding: 48px 0;
}

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

.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

.footer__link {
  font-size: 13px;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }

.footer__copy { font-size: 13px; color: var(--gray-600); }

/* footer spacing helper */
.footer--spaced { margin-top: 60px; }

/* ════════════════════════════════════════
   CART DRAWER
   ════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--gray-950);
  border-left: 1px solid var(--gray-800);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--gray-800);
}

.cart-drawer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-drawer__close {
  color: var(--gray-400);
  padding: 4px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.cart-drawer__close:hover { color: var(--white); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-drawer__empty { text-align: center; padding: 64px 0; }

.cart-drawer__empty-text {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-800);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__img {
  width: 80px; height: 80px;
  background: var(--gray-900);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__img img {
  max-width: 60px; max-height: 60px;
  object-fit: contain;
}

.cart-item__info { flex: 1; }

.cart-item__name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.cart-item__price { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.cart-item__qty { display: flex; align-items: center; gap: 12px; }

.cart-item__qty-btn {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 14px;
  transition: all var(--transition);
  background: none;
  cursor: pointer;
}
.cart-item__qty-btn:hover { border-color: var(--white); }

.cart-item__qty-num {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 8px;
  transition: color var(--transition);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}
.cart-item__remove:hover { color: var(--error); }

.cart-drawer__footer {
  border-top: 1px solid var(--gray-800);
  padding: 24px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-drawer__total-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}

.cart-drawer__total-value { font-size: 20px; font-weight: 800; }

.cart-drawer__total-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ════════════════════════════════════════
   CHECKOUT PAGE (flex layout — checkout.html)
   ════════════════════════════════════════ */
.checkout {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.checkout__main {
  flex: 1;
  min-width: 0;
}

/* Steps (both naming conventions used across the codebase) */
.steps,
.checkout__steps {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.step,
.checkout__step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
  transition: opacity var(--transition);
}

.step.active,
.step.done,
.checkout__step.active,
.checkout__step.completed {
  opacity: 1;
}

.step__num,
.checkout__step-num {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gray-700);
  transition: all var(--transition);
  flex-shrink: 0;
}

.step.active .step__num,
.checkout__step.active .checkout__step-num {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.step.done .step__num,
.checkout__step.completed .checkout__step-num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.step__label,
.checkout__step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step.active .step__label,
.checkout__step.active .checkout__step-text {
  color: var(--white);
}

/* Checkout grid layout (alternative layout used on some pages) */
.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.checkout__title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

/* Form sections */
.checkout-section {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  margin-bottom: 24px;
}

.checkout-section__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout__form {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  margin-bottom: 24px;
}

.checkout__form-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--gray-800);
  color: var(--white);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
}

.form-input:focus { border-color: var(--gray-400); }

.form-input.valid  { border-color: var(--success); }

.form-input.success {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-input.error {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
  animation: shakeInput 0.3s ease;
}

.form-input::placeholder { color: var(--gray-700); }

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-input option {
  background: var(--gray-900);
  color: var(--white);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

/* Field-level error used by JS */
.form-field-error {
  color: #f44336;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-info {
  padding: 20px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
}

/* Payment methods (global .pay-method variant) */
.pay-method {
  border: 1px solid var(--gray-800);
  padding: 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.pay-method:hover { border-color: var(--gray-600); }
.pay-method.active { border-color: var(--white); }
.pay-method input[type="radio"] { display: none; }

.pay-method__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-method__title { font-size: 14px; font-weight: 600; }

.pay-method__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  letter-spacing: 0.5px;
}

.pay-method__desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Payment methods (alternative .payment-method variant) */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.payment-method {
  border: 1px solid var(--gray-800);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payment-method:hover  { border-color: var(--gray-600); }
.payment-method.active { border-color: var(--white); }
.payment-method input[type="radio"] { display: none; }

.payment-method__name { font-size: 14px; font-weight: 600; }
.payment-method__desc { font-size: 12px; color: var(--gray-500); }

.payment-details { margin-bottom: 16px; }

/* Card form */
.card-form {
  border: 1px solid var(--gray-800);
  padding: 24px;
  margin-top: 16px;
  display: none;
}
.card-form.show { display: block; }

/* Card brand icon */
.card-brand { width: 40px; height: 25px; object-fit: contain; }

/* Payment toggle (pill buttons) */
.payment-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-toggle__btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--gray-700);
  cursor: pointer;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  text-align: center;
}
.payment-toggle__btn:hover { border-color: var(--gray-500); }

/* Active state: white border + very subtle white tint */
.payment-toggle__btn--active {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Checkout terms checkbox row */
.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--gray-400);
}
.checkout-terms input { margin-top: 2px; accent-color: var(--white); }
.checkout-terms a { color: var(--gray-300); text-decoration: underline; }

/* Checkout steps counter (alternate nomenclature used inline) */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.checkout-step {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 4px;
  position: relative;
}

.checkout-step--active {
  color: var(--white);
  font-weight: 600;
}

/* Checkout summary sidebar (grid layout variant) */
.checkout-summary {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.checkout-summary__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.checkout-summary__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-900);
}

.checkout-summary__item-img {
  width: 56px; height: 56px;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-summary__item-img img {
  max-width: 40px; max-height: 40px;
  object-fit: contain;
}

.checkout-summary__item-name  { font-size: 13px; font-weight: 600; }
.checkout-summary__item-qty   { font-size: 12px; color: var(--gray-600); }
.checkout-summary__item-price { font-size: 14px; font-weight: 700; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-400);
}

.summary-row--total {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  border-top: 1px solid var(--gray-800);
  padding-top: 16px;
  margin-top: 8px;
}

.summary-trust {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
}

.summary-trust__item {
  font-size: 12px;
  color: var(--gray-500);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-trust__item svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  stroke: var(--gray-500);
  stroke-width: 2;
  fill: none;
}

/* Checkout sidebar (flex layout variant) */
.checkout__sidebar {
  width: 380px;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.checkout__sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.checkout__sidebar-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-400);
}

.checkout__sidebar-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  border-top: 1px solid var(--gray-800);
  padding-top: 16px;
  margin-top: 8px;
}

/* ════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════ */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 300ms ease;
  min-width: 280px;
}
.toast.show { transform: translateX(0); }

.toast--success { border-left: 3px solid var(--success); }
.toast--error   { border-left: 3px solid var(--error); }
.toast--info    { border-left: 3px solid var(--info); }

.toast__action {
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 200ms ease;
  font-family: var(--font);
}
.toast__action:hover { background: rgba(255, 255, 255, 0.12); }

/* ════════════════════════════════════════
   TERMS PAGE
   ════════════════════════════════════════ */
.terms {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
}

/* Explicit page-level padding helper */
.terms--page { padding-top: calc(var(--nav-h) + 64px); }

.terms__title {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.terms__date,
.terms__updated {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.terms__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.terms__body {
  max-width: 720px;
  color: var(--gray-300);
  line-height: 1.8;
}

.terms__body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 48px 0 16px;
}

.terms__body p { margin-bottom: 16px; }

.terms__body ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.terms__body li { margin-bottom: 8px; }

.terms__section { margin-bottom: 32px; }

.terms__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.terms__text {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════
   CONFIRMATION
   ════════════════════════════════════════ */
.confirmation { text-align: center; padding: 80px 0; }

.confirmation__icon {
  width: 64px; height: 64px;
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.confirmation__icon svg {
  width: 32px; height: 32px;
  stroke: var(--success);
  stroke-width: 2;
  fill: none;
}

.confirmation__title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.confirmation__text {
  font-size: 15px;
  color: var(--gray-400);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.confirmation__order {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  display: inline-block;
  padding: 16px 32px;
  margin-bottom: 32px;
}
.confirmation__order small {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.confirmation__order-num {
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login__box {
  width: 360px;
  max-width: 100%;
  padding: 40px;
  border: 1px solid var(--gray-800);
}

.admin-login__box h1 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  text-align: center;
}

.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin__sidebar {
  background: var(--gray-950);
  border-right: 1px solid var(--gray-800);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin__sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 16px;
}

.admin__sidebar-logo span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.admin__sidebar-logo small {
  display: block;
  font-size: 10px;
  color: var(--gray-600);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Sidebar navigation links */
.admin__sidebar-nav {
  display: flex;
  flex-direction: column;
}

.admin__sidebar-link,
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.admin__sidebar-link:hover,
.admin-nav__item:hover {
  color: var(--white);
  background: var(--gray-900);
}
.admin__sidebar-link.active,
.admin-nav__item.active {
  color: var(--white);
  background: var(--gray-900);
  border-left: 2px solid var(--white);
}

.admin__sidebar-link svg,
.admin-nav__item svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.admin__main {
  padding: 32px;
  overflow-y: auto;
}

.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin__header h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.admin__section {
  animation: fadeIn 300ms ease;
}

/* Stats grid — both naming conventions */
.admin-stats,
.admin__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat,
.admin__stat-card {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 24px;
}

.admin-stat__label,
.admin__stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.admin-stat__value,
.admin__stat-value {
  font-size: 28px;
  font-weight: 800;
}

/* Tables — both naming conventions */
.admin-table,
.admin__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.admin-table th,
.admin__table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-800);
}

.admin-table td,
.admin__table td {
  font-size: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-900);
  color: var(--gray-300);
}

.admin-table tr:hover td,
.admin__table tr:hover td {
  background: var(--gray-950);
}

.admin__table-wrap { overflow-x: auto; }

/* Status badges */
.status-badge,
.admin__status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-badge--pending,
.admin__status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-badge--paid,
.admin__status--active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.status-badge--shipped,
.admin__status--completed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.status-badge--cancelled,
.admin__status--cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Admin modal (legacy .admin-modal variant) */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.admin-modal.open { display: flex; }

.admin-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.admin-modal__content {
  position: relative;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  width: 600px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.admin-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--gray-500);
  font-size: 20px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.admin-modal__close:hover { color: var(--white); }

/* Admin modal (new .admin__modal variant) */
.admin__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.admin__modal {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  width: 700px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}

.admin__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-800);
}

.admin__modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.admin__modal-body { padding: 32px; }

/* Mobile toggle & overlay */
.admin__mobile-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 1050;
  width: 44px; height: 44px;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.admin__mobile-toggle:hover { border-color: var(--gray-500); }

.admin__sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}
.admin__sidebar-overlay.open { opacity: 1; visibility: visible; }

/* ════════════════════════════════════════
   SETTINGS TABS
   ════════════════════════════════════════ */
.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 32px;
  overflow-x: auto;
}

.settings-tab {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  text-transform: uppercase;
}
.settings-tab:hover  { color: var(--gray-300); }
.settings-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.settings-panel {
  max-width: 700px;
  animation: fadeIn 200ms ease;
}

.settings-panel h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray-300);
}

/* ════════════════════════════════════════
   COBERTURA / CEP CHECKER
   ════════════════════════════════════════ */
.cobertura {
  border-bottom: 1px solid var(--gray-800);
}

.cobertura__form { max-width: 600px; margin: 0 auto; }

/* Wrap div for label + input row */
.cobertura__input-wrap { }

.cobertura__label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.cobertura__input-row { display: flex; gap: 0; }

.cobertura__input {
  flex: 1;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-right: none;
  color: var(--white);
  padding: 18px 24px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}
.cobertura__input:focus { border-color: var(--white); }
.cobertura__input::placeholder { color: var(--gray-600); }

.cobertura__btn {
  border-radius: 0;
  white-space: nowrap;
  padding: 18px 32px;
}

.cobertura__result {
  margin-top: 20px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.cobertura__result--success {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #66bb6a;
}

.cobertura__result--error {
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.cobertura__result svg { flex-shrink: 0; margin-top: 2px; }

.cobertura__map-link { text-align: center; margin-top: 24px; }

/* ════════════════════════════════════════
   SKELETON LOADING
   ════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

/* ════════════════════════════════════════
   SCROLL TOP
   ════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 40px; height: 40px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--gray-800); border-color: var(--gray-500); }

/* ════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   PIX PAYMENT ELEMENTS
   ════════════════════════════════════════ */
.pix-pulse {
  width: 10px; height: 10px;
  background: #ff9800;
  border-radius: 50%;
  display: inline-block;
  animation: pixPulse 1.5s ease-in-out infinite;
}

#pixPaymentArea .form-input[readonly] {
  background: var(--gray-950);
  border-color: #1a3a1a;
  color: #4caf50;
  cursor: text;
  font-size: 11px;
}

#pixQrCode img { border-radius: 4px; }

/* PIX countdown */
#pixCountdown {
  text-align: center;
  margin-bottom: 12px;
  padding: 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
}

#pixCountdownTime {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  display: block;
  margin-top: 4px;
}

/* Card security bar */
#cardDetails {
  position: relative;
}
#cardDetails::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4caf50, #42a5f5, #4caf50);
  background-size: 200% 100%;
  animation: secureBar 3s linear infinite;
}

/* ════════════════════════════════════════
   FINANCEIRO — Admin Panel
   ════════════════════════════════════════ */
#sec-financeiro .form-group { margin-bottom: 16px; }

#sec-financeiro .form-input { background: var(--gray-950); }

/* ════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════ */

/* Generic fade in + lift (used by .admin__section and .cobertura__result) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade up — used by toast in checkout.js */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cart badge pop */
@keyframes badgePop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Button spinner */
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Checkout spinner (used inline by checkout.js) */
@keyframes ckSpin { to { transform: rotate(360deg); } }

/* CEP loading spinner — preserves translateY(-50%) centering */
@keyframes ckSpinCenter { to { transform: translateY(-50%) rotate(360deg); } }

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* PIX pulse dot */
@keyframes pixPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* Security bar on card details */
@keyframes secureBar {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Form shake on validation error */
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* Pulse — used inline by admin.js status indicators */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ════════════════════════════════════════
   CEP loading spinner class
   ════════════════════════════════════════ */
.ck-cep-loading {
  animation: ckSpinCenter 0.6s linear infinite !important;
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* ── 1024px — Tablet landscape ── */
@media (max-width: 1024px) {
  .checkout__grid    { grid-template-columns: 1fr; }
  .checkout-summary  { position: static; }

  .admin-stats,
  .admin__stats { grid-template-columns: repeat(2, 1fr); }

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

/* ── 900px — Checkout flex layout collapses ── */
@media (max-width: 900px) {
  .checkout { flex-direction: column; }
  .checkout__sidebar {
    width: 100%;
    position: static;
  }
  .checkout__steps { flex-direction: column; gap: 12px; }
}

/* ── 768px — Mobile standard ── */
@media (max-width: 768px) {
  /* Nav */
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }

  /* Sections */
  .section { padding: 80px 0; }
  .section__title { font-size: 24px; }
  .section__desc  { font-size: 15px; }

  /* Grids */
  .features { grid-template-columns: 1fr; }
  .stats    { grid-template-columns: repeat(2, 1fr); }
  .trust    { grid-template-columns: repeat(2, 1fr); }

  /* Split layout */
  .split { grid-template-columns: 1fr; }
  .split__content { padding: 48px 24px; }
  .split__media   { height: 300px; }

  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
  .form-row > * { margin-bottom: 20px; }
  .form-row--2  { grid-template-columns: 1fr; }

  /* Prevent iOS auto-zoom on inputs */
  .form-input { font-size: 16px; }

  /* Checkout sections */
  .checkout-section { padding: 24px 16px; }
  .steps,
  .checkout__steps  { flex-direction: column; gap: 12px; }

  /* Checkout grid */
  .checkout__grid { grid-template-columns: 1fr; }

  /* Checkout steps scrollable on narrow screens */
  .checkout__steps { overflow-x: auto; padding-bottom: 4px; }

  /* Admin */
  .admin__mobile-toggle { display: flex; }

  .admin { grid-template-columns: 1fr; }

  .admin__sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 1040;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 300ms ease;
  }
  .admin__sidebar.open { transform: translateX(0); }

  .admin__main {
    padding: 24px 16px;
    padding-top: 72px;
  }

  .admin-stats,
  .admin__stats { grid-template-columns: repeat(2, 1fr); }

  .admin__title { font-size: 16px; }

  /* Settings */
  .settings-tab { padding: 12px 16px; font-size: 10px; }

  /* Buttons — prevent overflow */
  .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* WhatsApp + scroll-top stacking */
  .btn--whatsapp {
    bottom: 16px; right: 16px;
    width: 48px; height: 48px;
  }
  .btn--whatsapp svg { width: 24px; height: 24px; }

  .scroll-top {
    bottom: 76px; right: 16px;
    width: 36px; height: 36px;
  }
}

/* ── 600px — Small tablets / large phones ── */
@media (max-width: 600px) {
  .settings-tab { padding: 12px 16px; font-size: 10px; }

  #sec-financeiro [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #financeBalance { font-size: 28px !important; }

  /* Cobertura stacked */
  .cobertura__input-row { flex-direction: column; }
  .cobertura__input {
    border-right: 1px solid var(--gray-700);
    border-bottom: none;
  }
  .cobertura__btn { width: 100%; }
}

/* ── 480px — Small phones ── */
@media (max-width: 480px) {
  /* Hero */
  .hero__price-current { font-size: 36px; }
  .hero__price-old     { font-size: 16px; }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .hero__actions .btn { width: 100%; max-width: 300px; }

  /* Stats */
  .stat__number { font-size: 28px; }
  .stat__label  { font-size: 10px; }

  /* Checkout */
  .checkout__form    { padding: 20px 16px; }
  .checkout__form-title { font-size: 12px; }
  .checkout__sidebar { padding: 20px 16px; }
  .checkout-section  { padding: 20px 14px; }

  .payment-method { padding: 12px 14px; }

  /* Prevent iOS auto-zoom */
  .form-input { font-size: 16px; }

  /* Confirmation */
  .confirmation__title { font-size: 18px; letter-spacing: 1px; }

  /* Plans */
  .plan { padding: 28px 20px; }
  .plan__price { font-size: 28px; }

  /* Toast — full width at bottom */
  .toast-wrap {
    right: 12px; left: 12px;
    bottom: 80px;
  }
  .toast { min-width: auto; font-size: 13px; }
}

/* ── 400px — Small Android phones ── */
@media (max-width: 400px) {
  .admin-login__box {
    padding: 32px 20px;
    border: none;
    border-top: 2px solid var(--gray-800);
  }
}

/* ── 375px — iPhone X/11/12/13 ── */
@media (max-width: 375px) {
  .hero__title          { font-size: 30px; }
  .hero__price-current  { font-size: 32px; }

  .product-card__specs  { grid-template-columns: 1fr; }
  .product-card__price  { font-size: 26px; }

  .checkout__steps      { gap: 8px; }
  .checkout__step-text  { font-size: 11px; }

  .plan__price          { font-size: 26px; }

  .confirmation__title  { font-size: 16px; }

  .admin__stats         { grid-template-columns: 1fr; }

  .nav__logo-text       { font-size: 15px; letter-spacing: 2px; }
}

/* ── 360px — Small Android (Galaxy A series) ── */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }

  .product-card__img {
    min-height: 200px;
    padding: 20px;
  }

  .product-card__body { padding: 20px; }
  .product-card__name { font-size: 18px; }
  .product-card__price { font-size: 28px; }
}

/* ── 320px — iPhone SE 1st gen, Galaxy A01 ── */
@media (max-width: 320px) {
  .container { padding: 0 12px; }

  .hero__title { font-size: 28px; letter-spacing: -0.5px; }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
  }

  .nav__logo-text { font-size: 13px; letter-spacing: 1px; }

  .section { padding: 60px 0; }
  .section__title { font-size: 20px; }

  .stats { grid-template-columns: 1fr; }
  .stat__number { font-size: 32px; }

  .trust    { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  .checkout {
    padding-left: 12px;
    padding-right: 12px;
  }
  .checkout__form    { padding: 16px 12px; }
  .checkout__sidebar { padding: 16px 12px; }

  .btn { font-size: 12px; padding: 12px 16px; }

  .faq-item__q { font-size: 14px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ════════════════════════════════════════
   DARK MODE — System preference
   NOTE: --primary-color intentionally stays #fff.
   The site is already dark-themed. Overriding to
   blue/other breaks .btn--primary and checkout CTAs
   which depend on white backgrounds.
   ════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  body {
    background: #0a0a0a;
    color: #f5f5f5;
  }

  .checkout-section,
  .checkout__form,
  .checkout-summary,
  .checkout__sidebar,
  .admin-stat,
  .admin__stat-card,
  .admin-modal__content,
  .admin__modal,
  .product-card,
  .plan,
  .cart-drawer {
    background: #111111;
    border-color: #2a2a2a;
  }

  .feature       { background: #0d0d0d; }
  .feature:hover { background: #111111; }

  .stat,
  .trust__item   { background: #0d0d0d; }

  .form-input {
    background: #111111;
    border-color: #2a2a2a;
    color: #f5f5f5;
  }
  .form-input:focus { border-color: #555555; }

  .nav.scrolled  { background: rgba(10, 10, 10, 0.9); }

  .section--gray { background: #0d0d0d; }

  .admin__sidebar {
    background: #0d0d0d;
    border-color: #2a2a2a;
  }

  .pay-method,
  .payment-method {
    border-color: #2a2a2a;
  }
  .pay-method:hover,
  .payment-method:hover {
    border-color: #444444;
  }

  .toast {
    background: #1a1a1a;
    border-color: #2a2a2a;
  }
}

/* ════════════════════════════════════════
   REDUCED MOTION — Accessibility
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════ */
@media print {
  /* Hide navigation, interactive, and decorative elements */
  .nav,
  .nav__mobile,
  .cart-overlay,
  .cart-drawer,
  .btn--whatsapp,
  .scroll-top,
  .toast-wrap,
  .admin__sidebar,
  .admin__mobile-toggle,
  .admin__sidebar-overlay,
  .footer,
  .hero__overlay,
  .features,
  .trust,
  .stats {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .hero__bg,
  .hero__overlay {
    display: none !important;
  }

  .section { padding: 24pt 0; }

  .product-card,
  .plan {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .checkout-summary,
  .checkout__sidebar {
    position: static;
    border: 1px solid #ccc;
  }

  .admin__main { padding: 0; }

  .admin-table td,
  .admin__table td {
    color: #000;
    border-bottom: 1px solid #ccc;
  }
}
