/* ============================================================
   NameSlip Design System — Main CSS
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #4FACFE;
  --blue-dark:  #2d8cde;
  --mint:       #43E97B;
  --mint-dark:  #2ec760;
  --yellow:     #FFD93D;
  --coral:      #FF6B6B;
  --coral-dark: #e84f4f;
  --purple:     #A855F7;
  --white:      #FFFFFF;
  --off-white:  #F8FBFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-600:   #6B7280;
  --gray-800:   #1F2937;
  --text:       #1A202C;
  --text-muted: #6B7280;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill:999px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

  --font:       'Nunito', sans-serif;
  --transition: .2s ease;

  --container:  1200px;
  --navbar-h:   68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--navbar-h);
}

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

/* --- Utilities --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-auto { margin-top: auto; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.section-title { text-align: center; margin-bottom: .5rem; }
.section-sub   { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  gap: 1rem;
}

.nav-logo { display: flex; align-items: center; }
.logo-text {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.4rem; font-weight: 900; color: var(--blue);
}
.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a { color: var(--gray-800); transition: color var(--transition); }
.nav-links a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: .8rem; }

.btn-wa-nav {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-wa-nav:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(37,211,102,.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(79,172,254,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,172,254,.55);
}
.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255,107,107,.35);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,.5);
}
.btn-green {
  background: linear-gradient(135deg, #25D366, #1da853);
  color: white;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #EBF8FF 0%, #F0FFF4 50%, #FFF5F5 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,172,254,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--yellow), #FFB347);
  color: #7a4800;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(255,211,61,.4);
}
.hero h1 { margin-bottom: 1.2rem; }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: white;
  border-radius: var(--radius-pill);
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: var(--gray-800);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-mockup-bg {
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.hero-mockup-placeholder {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  text-align: center;
  font-weight: 700;
  width: 100%;
}
.mockup-slip {
  background: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: .6rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.mockup-photo {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4FACFE, #A855F7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.mockup-info { text-align: left; }
.mockup-name { font-weight: 800; color: var(--text); font-size: 1rem; }
.mockup-class { font-size: .8rem; color: var(--text-muted); }
.mockup-school { font-size: .75rem; color: var(--blue); font-weight: 600; }

.float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.float-badge-1 { top: 10%; left: -5%; animation: float1 3s ease-in-out infinite; }
.float-badge-2 { bottom: 15%; right: -5%; animation: float2 3.5s ease-in-out infinite; }

@keyframes float1 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 45px; left: 16.66%;
  width: 66.66%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  z-index: 0;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 12px rgba(79,172,254,.4);
}
.step-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.step-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.step-card p { color: var(--text-muted); font-size: .95rem; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue);
}
.product-card-img {
  background: linear-gradient(135deg, #EBF8FF, #F0FFF4);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: white;
  border-radius: var(--radius-pill);
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 700;
}
.product-card-body { padding: 1.2rem; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.product-price {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.price-current { font-size: 1.3rem; font-weight: 900; color: var(--blue); }
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: .9rem; }
.price-discount {
  background: #FEF3C7;
  color: #92400E;
  padding: .15rem .5rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
}

/* ============================================================
   VARIANTS (Product Page)
   ============================================================ */
.variant-list { display: flex; flex-direction: column; gap: .75rem; }
.variant-item {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.variant-item:hover,
.variant-item.selected {
  border-color: var(--blue);
  background: #EBF8FF;
}
.variant-item.selected { box-shadow: 0 0 0 3px rgba(79,172,254,.2); }
.variant-badge {
  position: absolute;
  top: -8px; right: 12px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: var(--radius-pill);
}
.variant-name { font-weight: 700; font-size: .95rem; }
.variant-desc { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }
.variant-price-wrap { text-align: right; }
.variant-price { font-weight: 900; color: var(--blue); font-size: 1.05rem; }
.variant-original { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }

/* ============================================================
   STAR RATING
   ============================================================ */
.stars { display: inline-flex; gap: 2px; }
.star { color: #FFD93D; font-size: 1rem; }
.star.empty { color: var(--gray-200); }
.rating-row { display: flex; align-items: center; gap: .5rem; }
.rating-count { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.review-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.reviewer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-date { font-size: .8rem; color: var(--text-muted); }
.review-text { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }
.review-verified {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .8rem;
  font-size: .8rem; color: var(--mint-dark); font-weight: 600;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.2rem;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.trust-badge {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.trust-badge-icon { display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; color: var(--blue); }
.trust-badge h4 { font-size: .95rem; margin-bottom: .3rem; }
.trust-badge p { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   THEMES SHOWCASE
   ============================================================ */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.theme-card {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  font-weight: 700;
  font-size: .9rem;
}
.theme-card:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.theme-card-icon { font-size: 2rem; margin-bottom: .5rem; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--gray-800);
}
.required-mark { color: var(--coral); margin-left: .2rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  color: var(--text);
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,172,254,.15);
}
.form-control.error { border-color: var(--coral); }
.form-error {
  display: none;
  font-size: .82rem;
  color: var(--coral);
  margin-top: .3rem;
  font-weight: 600;
}
.form-error.show { display: block; }
.form-hint { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   MODAL / CUSTOMIZER DRAWER
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 95vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.modal-overlay.active .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 40px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 1rem auto .5rem;
}

.modal-header {
  padding: .5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title { font-size: 1.25rem; font-weight: 800; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--gray-100);
  position: sticky;
  bottom: 0;
  background: white;
}

/* Steps indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0;
}
.step-ind {
  display: flex;
  align-items: center;
  flex: 1;
}
.step-ind-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}
.step-ind.active .step-ind-num { background: var(--blue); color: white; }
.step-ind.done .step-ind-num   { background: var(--mint); color: white; }
.step-ind-label { font-size: .82rem; font-weight: 600; margin-left: .5rem; color: var(--text-muted); }
.step-ind.active .step-ind-label,
.step-ind.done .step-ind-label { color: var(--text); }
.step-ind-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 .5rem; }
.step-ind.done + .step-ind .step-ind-line { background: var(--mint); }

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.upload-zone {
  border: 2.5px dashed var(--blue);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #EBF8FF;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover { background: #DBEFFE; border-color: var(--blue-dark); }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 3rem; margin-bottom: .8rem; }
.upload-text { font-weight: 700; font-size: 1.05rem; color: var(--blue); margin-bottom: .3rem; }
.upload-hint { font-size: .85rem; color: var(--text-muted); }

.photo-preview-wrap {
  position: relative;
  display: inline-block;
  margin: 1rem auto 0;
}
.photo-preview {
  width: 120px; height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--blue);
  box-shadow: var(--shadow);
}
.photo-remove {
  position: absolute;
  top: -8px; right: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Photo Tips Modal */
.tips-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.tips-modal.active { opacity: 1; pointer-events: all; }
.tips-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  transform: scale(.9);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.tips-modal.active .tips-box { transform: scale(1); }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.tips-col h4 { font-size: .9rem; margin-bottom: .6rem; }
.tips-col li { font-size: .85rem; color: var(--text-muted); margin-bottom: .35rem; display: flex; gap: .4rem; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
.order-summary {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}
.order-summary h3 { margin-bottom: 1rem; }
.order-line {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  font-size: .93rem;
  border-bottom: 1px solid var(--gray-100);
}
.order-line:last-child { border: none; }
.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 1.2rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 2px solid var(--gray-100);
}
.order-photo-preview {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--blue);
}

.payment-methods { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.payment-method {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.payment-method:hover, .payment-method.selected {
  border-color: var(--blue);
  background: #EBF8FF;
}
.payment-method input[type="radio"] { accent-color: var(--blue); width: 18px; height: 18px; }
.payment-method-icon { font-size: 1.5rem; }
.payment-method-label { font-weight: 700; font-size: .95rem; }
.payment-method-desc { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   TRACKING PAGE
   ============================================================ */
.track-form-wrap {
  max-width: 560px;
  margin: 0 auto 3rem;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.track-toggle { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.track-tab {
  flex: 1; padding: .6rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  font-weight: 700; font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.track-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.status-timeline { margin-top: 2rem; }
.timeline-step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 38px;
  width: 2px; height: calc(100% - 20px);
  background: var(--gray-200);
}
.timeline-step.done::after { background: var(--mint); }
.timeline-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--mint); color: white; }
.timeline-step.current .timeline-dot { background: var(--blue); color: white; animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,172,254,.4); }
  50% { box-shadow: 0 0 0 8px rgba(79,172,254,0); }
}
.timeline-content h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.timeline-content p { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-body {
  background: #F0F4F8;
  font-family: var(--font);
  min-height: 100vh;
  padding-top: 0;
}
.admin-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 240px;
  background: #1A202C;
  color: white;
  overflow-y: auto;
  z-index: 100;
  transition: transform .3s;
}
.admin-logo {
  padding: 1.2rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 900;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: .5rem;
}
.admin-nav { padding: 1rem 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  font-size: .93rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  color: white;
  background: rgba(255,255,255,.08);
}
.admin-nav-item.active {
  color: var(--blue);
  background: rgba(79,172,254,.1);
  border-left-color: var(--blue);
}
.admin-nav-label { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .08em; padding: .8rem 1.5rem .2rem; }

.admin-main {
  margin-left: 240px;
  min-height: 100vh;
}
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.3rem; }
.admin-content { padding: 1.5rem; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
}
.stat-card.green  { border-left-color: var(--mint); }
.stat-card.coral  { border-left-color: var(--coral); }
.stat-card.yellow { border-left-color: var(--yellow); }
.stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 2rem; font-weight: 900; margin: .3rem 0; }
.stat-sub { font-size: .82rem; color: var(--text-muted); }

.admin-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table th {
  background: var(--gray-50);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-200);
}
table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--gray-50); }

/* Status Pills */
.status-pill {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-confirmed  { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #EDE9FE; color: #5B21B6; }
.status-packed     { background: #D1FAE5; color: #065F46; }
.status-shipped    { background: #D1FAE5; color: #065F46; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }
.pay-paid    { background: #D1FAE5; color: #065F46; }
.pay-pending { background: #FEF3C7; color: #92400E; }
.pay-failed  { background: #FEE2E2; color: #991B1B; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: 1rem;
}
.page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn.active, .page-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-wrap {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}
.thankyou-icon { font-size: 5rem; margin-bottom: 1rem; animation: bounceIn .5s ease; }
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.order-id-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.order-id-box strong { font-size: 1.3rem; color: var(--blue); display: block; margin-top: .3rem; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  right: 20px; bottom: 90px;
  background: #25D366;
  color: white;
  border-radius: var(--radius-pill);
  padding: .7rem 1.2rem .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-wa:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(37,211,102,.6); }

/* ============================================================
   STICKY MOBILE BAR
   ============================================================ */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  z-index: 800;
  gap: .6rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sticky-btn {
  flex: 1;
  padding: .8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-align: center;
}
.sticky-wa { background: #25D366; color: white; }
.sticky-buy { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: white; }

/* ============================================================
   COUPON INPUT
   ============================================================ */
.coupon-row {
  display: flex;
  gap: .5rem;
}
.coupon-row .form-control { border-radius: var(--radius-pill) 0 0 var(--radius-pill) !important; }
.coupon-row .btn { border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important; white-space: nowrap; }

/* ============================================================
   PAGE CONTENT (CMS pages)
   ============================================================ */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1rem;
  line-height: 1.9;
  color: var(--text);
}
.page-content h2 { margin: 2rem 0 1rem; color: var(--blue); }
.page-content p  { margin-bottom: 1rem; }
.page-content ul { margin: .8rem 0 1rem 1.5rem; list-style: disc; }
.page-content ul li { margin-bottom: .4rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  .nav-links {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-120%);
    transition: transform .3s;
    z-index: 999;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: .8rem 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .modal-sheet { max-height: 100vh; border-radius: 0; }

  .sticky-bar { display: flex; }
  body { padding-bottom: 80px; }

  .float-wa span { display: none; }
  .float-wa { border-radius: 50%; padding: .75rem; bottom: 100px; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }

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

  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .themes-grid { grid-template-columns: repeat(3, 1fr); }

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

@media (min-width: 769px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    border-radius: var(--radius-xl);
    max-height: 90vh;
    transform: scale(.9);
  }
  .modal-overlay.active .modal-sheet { transform: scale(1); }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: .93rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warn    { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1A202C;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.footer-social {
  display: flex;
  gap: .6rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--blue); color: white; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--transition);
  display: flex; align-items: center; gap: .4rem;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: .5rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-pill);
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 600;
}

/* ============================================================
   ICON UTILITY
   ============================================================ */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
svg { vertical-align: middle; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: 100%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
