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

:root {
  --navy: #1e293b;
  --navy-light: #334155;
  --blue: #6366f1;
  --blue-hover: #4f46e5;
  --teal: #06b6d4;
  --teal-light: #22d3ee;
  --orange: #f43f5e;
  --orange-light: #fb7185;
  --green: #10b981;
  --green-light: #34d399;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  --bg: #fafaf8;
  --bg-warm: #f5f3ef;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e0dc;
  --border-light: #f0eee9;
  --shadow-sm: 0 1px 3px rgba(30,41,59,0.06);
  --shadow-md: 0 4px 16px rgba(30,41,59,0.08);
  --shadow-lg: 0 12px 40px rgba(30,41,59,0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  cursor: pointer;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  cursor: pointer;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--purple)) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { background: linear-gradient(135deg, var(--blue-hover), #7c3aed) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-hover), #7c3aed); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.35); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); background: rgba(30,41,59,0.03); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 7px; }

/* === SECTION COMMON === */
.section { padding: 90px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.section-title { font-size: 2.3rem; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* === HERO === */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(168deg, #f0f4ff 0%, #faf5ff 40%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(6,182,212,0.06) 40%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; max-width: 100%; }
}
.hero-content { text-align: left; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  color: var(--blue);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(99,102,241,0.15);
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards; animation-delay: 0.2s;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: 3.2rem; color: var(--navy); margin-bottom: 20px; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards; animation-delay: 0.4s;
}
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc {
  font-size: 1.12rem; color: var(--text-muted); margin-bottom: 36px; max-width: 520px; line-height: 1.7;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards; animation-delay: 0.6s;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards; animation-delay: 0.8s;
}
@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }
.hero-visual {
  position: relative;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards; animation-delay: 0.6s;
}
.hero-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: 0 20px 60px rgba(99,102,241,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(99,102,241,0.1); position: relative;
}
.hero-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1), rgba(6,182,212,0.2));
  z-index: -1; opacity: 0; transition: opacity 0.3s;
}
.hero-card:hover::before { opacity: 1; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat {
  background: var(--bg-warm); border-radius: var(--radius); padding: 20px; text-align: center;
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s;
}
.hero-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero-stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.hero-stat:nth-child(1) { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: rgba(99,102,241,0.15); }
.hero-stat:nth-child(1) .hero-stat-num { color: var(--blue); }
.hero-stat:nth-child(2) { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: rgba(16,185,129,0.15); }
.hero-stat:nth-child(2) .hero-stat-num { color: var(--green); }
.hero-stat:nth-child(3) { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: rgba(245,158,11,0.15); }
.hero-stat:nth-child(3) .hero-stat-num { color: var(--amber); }
.hero-stat:nth-child(4) { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-color: rgba(139,92,246,0.15); }
.hero-stat:nth-child(4) .hero-stat-num { color: var(--purple); }
.hero-float {
  position: absolute; background: var(--bg-card); border-radius: var(--radius); padding: 12px 18px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.hero-float-1 { top: -16px; right: -10px; }
.hero-float-2 { bottom: -16px; left: -10px; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* === TRUST BAR === */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  background: linear-gradient(90deg, #fafbff 0%, #faf5ff 50%, #f0fdfa 100%);
}
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.trust-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.trust-item:nth-child(1) .trust-icon { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--blue); }
.trust-item:nth-child(2) .trust-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--green); }
.trust-item:nth-child(3) .trust-icon { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: var(--amber); }
.trust-item:nth-child(4) .trust-icon { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: var(--purple); }
.trust-item:nth-child(5) .trust-icon { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: var(--teal); }
/* === SERVICES === */
.services { background: linear-gradient(180deg, #fafbff 0%, #f8f6ff 100%); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border-light); transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden; text-align: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity 0.25s; }
.service-card:hover::before { opacity: 1; }
.service-card:nth-child(1)::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, var(--teal), var(--green)); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, var(--sky), var(--blue)); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, var(--green), var(--teal)); }
.service-card:nth-child(6)::before { background: linear-gradient(90deg, var(--purple), var(--rose)); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.service-icon.blue { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.service-icon.teal { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.service-icon.orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.service-icon.navy { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.88rem; font-weight: 600; color: var(--blue); cursor: pointer; transition: gap 0.2s;
}
.service-card:hover .learn-more { gap: 10px; }
.service-expand { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.service-expand.open { max-height: 300px; opacity: 1; }
.service-expand-inner { padding-top: 14px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; border-top: 1px solid var(--border-light); margin-top: 14px; }

/* === PRODUCTS === */
.products-section { background: linear-gradient(180deg, #ffffff 0%, #fafbff 50%, #f0f4ff 100%); }
.products-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 24px; border-radius: 100px; font-size: 0.9rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted); transition: all 0.2s;
}
.tab-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab-btn.active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; border-color: transparent; }
.tab-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, opacity 0.35s ease; text-align: left;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.tab-hidden { opacity: 0; transform: scale(0.95) translateY(10px); pointer-events: none; position: absolute; visibility: hidden; }
.product-card.tab-visible { opacity: 1; transform: scale(1) translateY(0); visibility: visible; position: relative; }
.product-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.product-card:nth-child(1) .product-img { background: linear-gradient(135deg, #eef2ff, #c7d2fe); }
.product-card:nth-child(2) .product-img { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); }
.product-card:nth-child(3) .product-img { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.product-card:nth-child(4) .product-img { background: linear-gradient(135deg, #faf5ff, #e9d5ff); }
.product-card:nth-child(5) .product-img { background: linear-gradient(135deg, #f0fdfa, #99f6e4); }
.product-card:nth-child(6) .product-img { background: linear-gradient(135deg, #eff6ff, #bfdbfe); }
.product-card:nth-child(7) .product-img { background: linear-gradient(135deg, #fef2f2, #fecaca); }
.product-card:nth-child(8) .product-img { background: linear-gradient(135deg, #fefce8, #fef08a); }
.product-tag { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.product-tag.hot { background: linear-gradient(135deg, var(--orange), #ef4444); }
.product-tag.new { background: linear-gradient(135deg, var(--teal), var(--green)); }
.product-info { padding: 20px; }
.product-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.product-info .product-desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.product-price { display: flex; align-items: center; justify-content: space-between; }
.product-price .price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.product-price .price small { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
/* === ABOUT / WHY US === */
.about { background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content { text-align: left; }
.about-content h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 20px; letter-spacing: -0.02em; }
.about-content p { font-size: 1.02rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-feature { display: flex; align-items: flex-start; gap: 10px; }
.about-feature-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.about-feature:nth-child(1) .about-feature-icon { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--blue); }
.about-feature:nth-child(2) .about-feature-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--green); }
.about-feature:nth-child(3) .about-feature-icon { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: var(--amber); }
.about-feature:nth-child(4) .about-feature-icon { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: var(--purple); }
.about-feature h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.about-feature p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.about-visual { position: relative; }
.about-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.about-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 24px; }
.about-stat-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.about-stat-row:last-child { border-bottom: none; }
.about-stat-bar { flex: 1; height: 8px; background: var(--bg-warm); border-radius: 100px; overflow: hidden; }
.about-stat-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.5s ease; }
.about-stat-fill.blue { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.about-stat-fill.teal { background: linear-gradient(90deg, var(--teal), var(--green)); }
.about-stat-fill.orange { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.about-stat-label { font-size: 0.85rem; font-weight: 500; color: var(--text); min-width: 120px; }
.about-stat-val { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--navy); min-width: 40px; text-align: right; }

/* === TESTIMONIALS === */
.testimonials-section { background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 50%, #fff7ed 100%); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border-light); transition: transform 0.25s, box-shadow 0.25s; text-align: left;
}
.testimonial-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff; }
.testimonial-card:nth-child(1) .testimonial-avatar { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, var(--teal), var(--green)); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, var(--orange), var(--amber)); }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* === FAQ === */
.faq { background: linear-gradient(180deg, #fafbff 0%, #faf5ff 100%); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 12px; background: var(--bg-card); overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(99,102,241,0.2); }
.faq-item.open { border-color: rgba(99,102,241,0.3); box-shadow: 0 4px 12px rgba(99,102,241,0.08); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px;
  cursor: pointer; font-weight: 600; font-size: 0.98rem; color: var(--navy); gap: 16px;
  user-select: none; transition: background 0.2s;
}
.faq-question:hover { background: linear-gradient(90deg, rgba(99,102,241,0.03), rgba(139,92,246,0.03)); }
.faq-question:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.faq-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blue); transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }
/* === CONTACT === */
.contact { background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%); color: #fff; }
.contact .section-label { color: var(--teal-light); }
.contact .section-title { color: #fff; }
.contact .section-desc { color: rgba(255,255,255,0.65); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 800px; margin: 0 auto; }
.contact-info { text-align: left; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; text-align: left; }
.contact-item-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item:nth-child(1) .contact-item-icon { background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2)); }
.contact-item:nth-child(2) .contact-item-icon { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(16,185,129,0.2)); }
.contact-item:nth-child(3) .contact-item-icon { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(244,63,94,0.2)); }
.contact-item:nth-child(4) .contact-item-icon { background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(99,102,241,0.2)); }
.contact-item h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.contact-item a { color: var(--teal-light); transition: color 0.2s; }
.contact-item a:hover { color: #fff; }
.contact-form { background: rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 36px; border: 1px solid rgba(255,255,255,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; position: relative; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: rgba(255,255,255,0.8); transition: color 0.2s, transform 0.2s; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,182,212,0.15); }
.form-group input:focus + .form-error, .form-group textarea:focus + .form-error { display: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); color: #fff; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: var(--orange); }
.form-error { font-size: 0.78rem; color: var(--orange-light); margin-top: 4px; display: none; }
.form-group.error .form-error { display: block; }
.form-toast {
  position: fixed; bottom: 100px; right: 28px; background: #10b981; color: #fff;
  padding: 16px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-lg); z-index: 1002; transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease; pointer-events: none;
}
.form-toast.show { transform: translateY(0); opacity: 1; }
.social-links { display: flex; gap: 12px; margin-top: 28px; justify-content: center; }
.social-link {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  transition: all 0.2s; color: rgba(255,255,255,0.7); cursor: pointer;
}
.social-link:nth-child(1):hover { background: #1877f2; color: #fff; }
.social-link:nth-child(2):hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-link:nth-child(3):hover { background: #0a66c2; color: #fff; }
.social-link:nth-child(4):hover { background: #000; color: #fff; }
.social-link:nth-child(5):hover { background: #ff0000; color: #fff; }
.social-link:hover { transform: translateY(-2px); }
.social-link:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; }
.contact-map { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); }
.contact-map iframe { width: 100%; height: 320px; border: 0; display: block; filter: saturate(0.85); }

/* === FOOTER === */
.footer { background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%); color: rgba(255,255,255,0.6); padding: 60px 0 0; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; max-width: 300px; margin-left: 0; margin-right: 0; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 18px; background: linear-gradient(90deg, var(--teal-light), var(--purple-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.88rem; transition: color 0.2s; cursor: pointer; }
.footer ul a:hover { color: var(--teal-light); }
.footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; text-align: left; }
/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35); cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s; animation: wa-pulse 3s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.45); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.35); } 50% { box-shadow: 0 6px 24px rgba(37,211,102,0.55), 0 0 0 12px rgba(37,211,102,0.08); } }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-tooltip {
  position: absolute; right: 72px; background: #fff; color: var(--text);
  padding: 10px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
  white-space: nowrap; box-shadow: var(--shadow-md); opacity: 0; transform: translateX(8px);
  transition: all 0.3s; pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip, .whatsapp-float.tapped .wa-tooltip { opacity: 1; transform: translateX(0); }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 100px; left: 28px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3); opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s; pointer-events: none; font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 6px 20px rgba(99,102,241,0.4); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* === SCROLL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
}

/* Home page Tally section responsive */
@media (max-width: 1024px) {
  .tally-home-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}


@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); text-align: center;
  }
  .mobile-toggle { display: flex; }
  .hero { padding: 100px 0 50px; }
  .hero-inner { gap: 30px; }
  .hero h1 { font-size: 2rem; margin-bottom: 16px; }
  .hero-desc { font-size: 1rem; margin-bottom: 28px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .hero-card { padding: 24px; }
  .hero-stat { padding: 16px; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .hero-float { font-size: 0.8rem; padding: 10px 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: 0.95rem; }
  .section-label { font-size: 0.75rem; }
  .service-card { padding: 24px; }
  .service-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .product-img { height: 150px; font-size: 2.8rem; }
  .product-info { padding: 16px; }
  .product-info h4 { font-size: 0.95rem; }
  .product-desc { font-size: 0.8rem; }
  .product-price .price { font-size: 1rem; }
  .btn-sm { padding: 7px 14px; font-size: 0.78rem; }
  .about-content h2 { font-size: 1.8rem; }
  .about-content p { font-size: 0.95rem; }
  .about-features { grid-template-columns: 1fr; gap: 14px; }
  .about-feature-icon { width: 32px; height: 32px; min-width: 32px; font-size: 0.9rem; }
  .about-feature h4 { font-size: 0.85rem; }
  .about-feature p { font-size: 0.78rem; }
  .about-card { padding: 28px; }
  .about-stat-label { font-size: 0.8rem; min-width: 100px; }
  .about-stat-val { font-size: 0.85rem; min-width: 35px; }
  .testimonial-card { padding: 24px; }
  .testimonial-text { font-size: 0.9rem; }
  .testimonial-avatar { width: 38px; height: 38px; font-size: 0.85rem; }
  .testimonial-name { font-size: 0.85rem; }
  .testimonial-role { font-size: 0.75rem; }
  .contact-grid { gap: 36px; }
  .contact-info h3 { font-size: 1.2rem; }
  .contact-item { gap: 12px; margin-bottom: 20px; }
  .contact-item-icon { width: 40px; height: 40px; min-width: 40px; font-size: 1rem; }
  .contact-item h4 { font-size: 0.88rem; }
  .contact-item p { font-size: 0.85rem; }
  .contact-map iframe { height: 280px; }
  .contact-form { padding: 28px; }
  .form-group input, .form-group select, .form-group textarea { padding: 11px 14px; font-size: 0.88rem; }
  .form-group label { font-size: 0.82rem; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group { margin-bottom: 14px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .footer-brand { text-align: left; }
  .footer-brand .nav-logo { justify-content: flex-start; }
  .footer-brand p { max-width: 100%; }
  .footer h4 { font-size: 0.88rem; }
  .footer ul a { font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: left; align-items: flex-start; font-size: 0.78rem; padding: 20px 0; }
  .trust-inner { gap: 20px; }
  .trust-item { font-size: 0.85rem; }
  .trust-icon { width: 36px; height: 36px; font-size: 1rem; }
  .social-links { justify-content: center; gap: 10px; }
  .social-link { width: 40px; height: 40px; font-size: 1.05rem; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .wa-tooltip { right: 66px; font-size: 0.8rem; padding: 8px 14px; }
  .back-to-top { left: 20px; bottom: 88px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-desc { font-size: 0.92rem; }
  .hero-card { padding: 20px; }
  .hero-card-grid { gap: 12px; }
  .hero-stat { padding: 14px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.7rem; }
  .hero-float { font-size: 0.75rem; padding: 8px 12px; }
  .hero-float-1 { top: -12px; right: -6px; }
  .hero-float-2 { bottom: -12px; left: -6px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-img { height: 140px; font-size: 2.5rem; }
  .product-info { padding: 14px; }
  .product-info h4 { font-size: 0.9rem; }
  .product-desc { font-size: 0.78rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .products-tabs { flex-wrap: wrap; gap: 6px; }
  .tab-btn { padding: 8px 18px; font-size: 0.85rem; }
  .service-card { padding: 20px; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.85rem; }
  .about-content h2 { font-size: 1.6rem; }
  .about-content p { font-size: 0.9rem; }
  .about-card { padding: 24px; }
  .about-stat-row { gap: 12px; }
  .about-stat-label { font-size: 0.75rem; min-width: 90px; }
  .about-stat-val { font-size: 0.8rem; }
  .testimonial-card { padding: 20px; }
  .testimonial-text { font-size: 0.85rem; }
  .contact-info h3 { font-size: 1.1rem; }
  .contact-item { gap: 10px; margin-bottom: 18px; }
  .contact-item h4 { font-size: 0.85rem; }
  .contact-item p { font-size: 0.82rem; }
  .contact-map iframe { height: 250px; }
  .contact-form { padding: 24px; }
  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 0.85rem; }
  .btn { padding: 11px 20px; font-size: 0.88rem; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .section-desc { font-size: 0.9rem; }
  .footer { padding: 40px 0 0; }
  .footer-grid { gap: 20px; }
  .footer-brand p { font-size: 0.85rem; }
  .footer h4 { font-size: 0.85rem; margin-bottom: 14px; }
  .footer ul a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.75rem; }
  .trust-item { font-size: 0.8rem; }
  .trust-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* === E-COMMERCE UPGRADE === */
:root {
  --commerce-blue: #0b5cab;
  --commerce-blue-dark: #053c78;
  --commerce-cyan: #00a6c8;
  --commerce-gold: #f7b500;
  --commerce-ink: #10233f;
}
.nav { background: rgba(255,255,255,0.96); }
.nav-logo-icon { background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-cyan)); box-shadow: 0 8px 22px rgba(11,92,171,0.18); }
.btn-primary { background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-cyan)); box-shadow: 0 8px 20px rgba(11,92,171,0.14); }
.btn-primary:hover { background: linear-gradient(135deg, var(--commerce-blue-dark), var(--commerce-blue)); box-shadow: 0 10px 24px rgba(11,92,171,0.24); }
.nav-cta { background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-cyan)) !important; }
.hero { background: radial-gradient(circle at 82% 8%, rgba(0,166,200,0.14), transparent 28%), linear-gradient(165deg, #f8fbff 0%, #eef7ff 48%, #f8fff9 100%); }
.hero h1 span, .section-label { background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-card, .edition-card, .plan-card, .service-card, .testimonial-card { box-shadow: 0 10px 28px rgba(16,35,63,0.055); }
.product-card:hover, .edition-card:hover, .plan-card:hover { box-shadow: 0 18px 44px rgba(16,35,63,0.13); }

.commerce-strip {
  background: linear-gradient(135deg, #072b54 0%, #0b5cab 52%, #008fb0 100%);
  color: #fff;
  padding: 34px 0;
  position: relative;
  overflow: hidden;
}
.commerce-strip::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: -230px;
  right: -120px;
  background: radial-gradient(circle, rgba(247,181,0,0.28), transparent 64%);
}
.commerce-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.commerce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe08a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 8px;
}
.commerce-strip h2 { color: #fff; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.commerce-strip p { color: rgba(255,255,255,0.74); max-width: 720px; font-size: 0.96rem; }
.commerce-gateway-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.commerce-gateway-pills span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 100px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.commerce-enabled { display: flex; flex-direction: column; }
.commerce-enabled .commerce-actions { margin-top: auto; }
.commerce-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}
.edition-card .commerce-actions, .plans-grid .plan-card .commerce-actions, .cloud-pricing-card .commerce-actions { padding: 0; margin-top: 18px; }
.product-card .product-price + .commerce-actions { margin-top: 4px; }
.commerce-actions .btn { justify-content: center; width: 100%; padding: 11px 13px; font-size: 0.86rem; white-space: nowrap; }
.commerce-actions .commerce-enquire { background: #fff; border-color: rgba(11,92,171,0.25); color: var(--commerce-blue); }
.commerce-actions .commerce-enquire:hover { background: #f0f8ff; border-color: var(--commerce-blue); }
.commerce-legacy-cta { display: none !important; }
.product-price { margin-bottom: 14px; }
.product-price .btn { display: none; }

.commerce-cart-button {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 998;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-cyan));
  color: #fff;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(11,92,171,0.28);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
}
.cart-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--commerce-blue);
  font-size: 0.78rem;
}

body.checkout-open { overflow: hidden; }
.commerce-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6,18,36,0.62);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.commerce-modal.open { display: flex; }
.commerce-dialog {
  width: min(1040px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
}
.commerce-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  z-index: 2;
}
.checkout-head {
  padding: 34px 38px 24px;
  background: linear-gradient(135deg, #f7fbff, #eef8ff);
  border-bottom: 1px solid #e7eef7;
}
.checkout-head h2 { font-size: 2rem; color: var(--commerce-ink); margin-bottom: 6px; }
.checkout-head p { color: var(--text-muted); }
.checkout-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0; }
.checkout-panel { padding: 30px 38px; }
.checkout-panel:first-child { border-right: 1px solid #edf1f7; background: #fbfdff; }
.checkout-panel h3 { color: var(--commerce-ink); margin-bottom: 18px; font-size: 1.1rem; }
.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f7;
}
.checkout-item strong { color: var(--commerce-ink); }
.checkout-item span { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 3px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #d9e4f2; border-radius: 100px; overflow: hidden; background: #fff; }
.qty-control button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; color: var(--commerce-blue); font-size: 1rem; }
.qty-control span { width: 30px; text-align: center; margin: 0; font-weight: 800; color: var(--commerce-ink); }
.checkout-total-box { margin-top: 22px; padding: 18px; background: #fff; border: 1px solid #e6edf6; border-radius: 16px; }
.checkout-total-box div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; color: var(--text-muted); }
.checkout-total-box strong { color: var(--commerce-ink); }
.checkout-total-box .grand { border-top: 1px solid #e6edf6; margin-top: 8px; padding-top: 14px; font-size: 1.12rem; color: var(--commerce-ink); }
.checkout-note { font-size: 0.78rem; color: var(--text-light); line-height: 1.55; margin-top: 14px; }
.checkout-form label { display: block; color: var(--commerce-ink); font-size: 0.84rem; font-weight: 700; margin-bottom: 12px; }
.checkout-form input, .checkout-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid #dce6f2;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--commerce-ink);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--commerce-blue); box-shadow: 0 0 0 4px rgba(11,92,171,0.09); }
.gateway-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 16px 0; }
.gateway-choice button {
  border: 1.5px solid #dce6f2;
  background: #fff;
  color: var(--commerce-ink);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
}
.gateway-choice button.active { border-color: var(--commerce-blue); background: linear-gradient(135deg, rgba(11,92,171,0.1), rgba(0,166,200,0.1)); color: var(--commerce-blue); }
.checkout-pay, .checkout-whatsapp { width: 100%; justify-content: center; margin-top: 10px; }
.checkout-status { min-height: 22px; margin-top: 14px; font-size: 0.84rem; line-height: 1.5; color: var(--text-muted); }
.checkout-status.success { color: var(--green); font-weight: 700; }
.checkout-status.info { color: var(--commerce-blue); font-weight: 700; }

@media (max-width: 900px) {
  .commerce-strip-inner, .checkout-grid { grid-template-columns: 1fr; }
  .commerce-gateway-pills { justify-content: flex-start; }
  .checkout-panel:first-child { border-right: 0; border-bottom: 1px solid #edf1f7; }
}
@media (max-width: 640px) {
  .commerce-strip { padding: 28px 0; }
  .commerce-strip h2 { font-size: 1.35rem; }
  .commerce-actions { grid-template-columns: 1fr; }
  .commerce-cart-button { right: 16px; bottom: 82px; padding: 10px 14px; }
  .commerce-modal { padding: 10px; }
  .commerce-dialog { border-radius: 18px; max-height: 94vh; }
  .checkout-head, .checkout-panel { padding: 24px 20px; }
  .checkout-head h2 { font-size: 1.55rem; }
  .checkout-item { grid-template-columns: 1fr; align-items: start; }
  .gateway-choice { grid-template-columns: 1fr; }
}
