/* ============================================================
   Leloji — Ready-Made Websites for Growing Businesses
   Main Stylesheet
   ------------------------------------------------------------
   Sections:
   1.  CSS Variables (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Buttons
   5.  Layout Helpers (container, grid, sections)
   6.  Header & Navigation
   7.  Hero
   8.  Trust / Benefits
   9.  Template Cards & Grid
   10. How It Works
   11. Pricing
   12. Testimonials
   13. FAQ (Accordion)
   14. Final CTA
   15. Footer
   16. WhatsApp Floating Button
   17. Scroll-to-Top
   18. Template Details Page
   19. Contact Page
   20. About Page
   21. Legal Pages
   22. Animations
   23. Responsive (Tablet & Mobile)
   ============================================================ */

/* ============== 1. CSS Variables ============== */
:root {
  --color-primary: #6366f1;          /* Indigo  */
  --color-primary-dark: #4f46e5;
  --color-secondary: #8b5cf6;        /* Purple  */
  --color-accent: #ec4899;           /* Pink    */
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-danger: #ef4444;

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 72px;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== 2. Reset & Base ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(99, 102, 241, 0.5); outline-offset: 2px; border-radius: 4px; }

/* ============== 3. Typography ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--color-text-soft); }
.lead { font-size: 1.15rem; color: var(--color-text-soft); }

.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============== 4. Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(99, 102, 241, 0.35); }

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary-dark); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #1ebd5a; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost { background: var(--color-bg-muted); color: var(--color-text); }
.btn-ghost:hover { background: var(--color-border); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============== 5. Layout ============== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-soft { background: var(--color-bg-soft); }
.section-tint { background: var(--gradient-soft); }
.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-header .eyebrow {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.1rem; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============== 6. Header & Nav ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); background: rgba(255, 255, 255, 0.95); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.brand .brand-dot { color: var(--color-primary); }

.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); background: rgba(99, 102, 241, 0.08); }

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

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--color-bg-muted);
}
.hamburger span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  transform: translateY(-130%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-bg-muted);
  color: var(--color-text);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 0.75rem; }

/* ============== 7. Hero ============== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: var(--gradient-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { display: block; }
.hero .lead { font-size: 1.2rem; max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); }
.hero-stat .label { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.hero-visual:hover img { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.hero-visual .floating-badge {
  position: absolute;
  background: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-visual .floating-badge.top { top: -18px; left: -18px; color: var(--color-primary); }
.hero-visual .floating-badge.bottom { bottom: -18px; right: -18px; color: var(--color-success); }
.hero-visual .floating-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

/* ============== 8. Trust / Benefits ============== */
.trust { padding: 3.5rem 0; border-bottom: 1px solid var(--color-border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.trust-item:hover { transform: translateY(-4px); }
.trust-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-soft);
  color: var(--color-primary);
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.5rem;
}
.trust-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.trust-item p { font-size: 0.88rem; color: var(--color-text-muted); text-align: center; }

/* ============== 9. Template Cards ============== */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.template-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}
.template-card .thumb {
  position: relative;
  aspect-ratio: 4 / 2.8;
  overflow: hidden;
  background: var(--color-bg-muted);
}
.template-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.template-card:hover .thumb img { transform: scale(1.05); }
.template-card .category-tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.template-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.template-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.template-card .desc { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1rem; flex: 1; }
.template-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.template-card .price { font-size: 1.5rem; font-weight: 800; color: var(--color-text); }
.template-card .price-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.template-card .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.template-card .card-actions .btn-block { width: 100%; }
.template-card .card-actions .buy-row { grid-column: 1 / -1; }

/* ============== 10. How It Works ============== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  counter-increment: step;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  box-shadow: var(--shadow-glow);
}
.step-num::before { content: counter(step); }
.step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* ============== 11. Pricing ============== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card .ribbon {
  position: absolute;
  top: -14px; right: 1.5rem;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.price-card .price-sub { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.price-card .price-amount { font-size: 2.4rem; font-weight: 800; color: var(--color-text); }
.price-card .price-amount .currency { font-size: 1.2rem; vertical-align: super; color: var(--color-text-muted); }
.price-card ul { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.price-card li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--color-text-soft); }
.price-card li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card li.disabled { color: var(--color-text-muted); text-decoration: line-through; opacity: 0.6; }
.price-card li.disabled::before { content: "✕"; color: var(--color-text-muted); }

/* ============== 12. Testimonials ============== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial .stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: 2px; }
.testimonial blockquote { font-size: 0.98rem; color: var(--color-text-soft); line-height: 1.7; }
.testimonial .who { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.testimonial .who-name { font-weight: 700; font-size: 0.95rem; }
.testimonial .who-role { font-size: 0.82rem; color: var(--color-text-muted); }

/* ============== 13. FAQ ============== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, 0.4); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: var(--color-text);
}
.faq-q .icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-bg-muted);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.faq-item.open .faq-q .icon { background: var(--gradient-primary); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.4rem;
}
.faq-item.open .faq-a { padding: 0 1.4rem 1.2rem; max-height: 500px; }
.faq-a p { font-size: 0.95rem; }

/* ============== 14. Final CTA ============== */
.final-cta {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  max-width: calc(var(--container) - 2.5rem);
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.final-cta::before { width: 280px; height: 280px; top: -120px; left: -80px; }
.final-cta::after { width: 220px; height: 220px; bottom: -100px; right: -60px; }
.final-cta h2 { color: #fff; margin-bottom: 0.8rem; position: relative; }
.final-cta p { color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; margin-bottom: 1.75rem; position: relative; }
.final-cta .hero-actions { justify-content: center; position: relative; }
.final-cta .btn-secondary { background: #fff; color: var(--color-primary); border-color: #fff; }
.final-cta .btn-whatsapp { background: #25d366; }

/* ============== 15. Footer ============== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #94a3b8; font-size: 0.92rem; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: #94a3b8; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; color: #94a3b8; font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-contact .ico { color: var(--color-secondary); flex-shrink: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.88rem;
}
.footer-bottom .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ============== 16. WhatsApp Floating ============== */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 998;
  transition: transform var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-wa {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============== 17. Scroll-to-Top ============== */
.scroll-top {
  position: fixed;
  bottom: 22px; left: 22px;
  width: 46px; height: 46px;
  background: var(--color-text);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-primary); }

/* ============== 18. Template Details Page ============== */
.breadcrumb { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--color-primary); }
.details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.details-preview {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.details-preview img { width: 100%; }
.details-info h1 { margin-bottom: 0.5rem; }
.details-info .meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.details-info .meta-row .tag {
  background: var(--color-bg-muted);
  color: var(--color-text-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.details-info .meta-row .tag.price-tag { background: var(--gradient-primary); color: #fff; }
.details-info .price-block {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--gradient-soft);
  border-radius: var(--radius);
}
.details-info .price-block .amount { font-size: 2.2rem; font-weight: 800; color: var(--color-text); }
.details-info .price-block .label { color: var(--color-text-muted); font-size: 0.9rem; }
.details-actions { display: flex; flex-direction: column; gap: 0.65rem; margin: 1.5rem 0; }
.details-actions .btn { width: 100%; }
.payment-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}
.details-section { margin-top: 2rem; }
.details-section h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.details-section ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.details-section ul li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--color-text-soft); }
.details-section ul li::before { content: "✓"; color: var(--color-success); font-weight: 700; }
.feature-list li { display: flex; gap: 0.6rem; }
.details-section p { font-size: 1rem; line-height: 1.75; }

/* ============== 19. Contact Page ============== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; }
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--color-text); }
.form-group label .req { color: var(--color-danger); }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 0.95rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control.invalid { border-color: var(--color-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: var(--color-danger); font-size: 0.82rem; margin-top: 0.3rem; display: none; }
.form-group.has-error .form-error { display: block; }
textarea.form-control { resize: vertical; min-height: 130px; }
.contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.info-card h4 .ico { color: var(--color-primary); }
.info-card p { font-size: 0.92rem; }
.info-card a { color: var(--color-primary); font-weight: 600; }

/* ============== 20. About Page ============== */
.about-hero { background: var(--gradient-soft); padding: 4rem 0; text-align: center; }
.about-hero h1 { margin-bottom: 1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-soft);
  color: var(--color-primary);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.value-card h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.9rem; }

/* ============== 21. Legal Pages ============== */
.legal { padding: 3rem 0; }
.legal h1 { margin-bottom: 0.5rem; }
.legal .updated { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal p { margin-bottom: 1rem; line-height: 1.8; }
.legal ul { margin: 0 0 1rem 1.25rem; }
.legal ul li { margin-bottom: 0.4rem; color: var(--color-text-soft); list-style: disc; }
.legal a { color: var(--color-primary); text-decoration: underline; }
.legal .toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.legal .toc h4 { margin-bottom: 0.5rem; }
.legal .toc ul { margin: 0; list-style: none; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* ============== 22. Animations ============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.template-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}
.no-results .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.no-results h3 { color: var(--color-text); margin-bottom: 0.3rem; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.filter-btn {
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-soft);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.search-wrap {
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}
.search-wrap .ico {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-wrap input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12); }

/* Page header */
.page-header {
  background: var(--gradient-soft);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--color-text-soft); max-width: 640px; margin: 0 auto; }

/* ============== 23. Responsive ============== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .details-grid { grid-template-columns: 1fr; }
  .details-preview { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .template-grid, .pricing-grid, .testimonial-grid, .steps, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn:not(.hamburger) { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat .num { font-size: 1.4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .details-section ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .final-cta { padding: 3rem 1.5rem; }

  /* ─── MOBILE FLOATING BUTTONS FIX ───
     On mobile, move the scroll-to-top button to the RIGHT side
     (stacked above the WhatsApp button) so it does NOT overlap
     page content like the "Browse Templates" CTA button.
     Also add bottom padding to body so floating buttons never
     cover any content at the bottom of the page. */
  body { padding-bottom: 90px; }
  .scroll-top {
    bottom: 88px;       /* stack above WhatsApp button */
    left: auto;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .whatsapp-float {
    bottom: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  .template-grid, .pricing-grid, .testimonial-grid, .steps, .value-grid, .trust-grid, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .template-card .card-actions { grid-template-columns: 1fr; }
  .hero-visual .floating-badge { display: none; }

  /* ─── MOBILE FAQ + BUTTONS FIX ───
     Ensure FAQ "+" icon never gets cut off and the question
     text wraps cleanly without touching the icon. */
  .faq-q {
    padding-right: 3rem;  /* space for + icon */
    line-height: 1.4;
    font-size: 0.92rem;
  }
  .faq-q .icon {
    width: 24px; height: 24px;
    font-size: 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .faq-item { position: relative; }
  .faq-q { position: relative; padding-left: 1.4rem; padding-right: 3rem; }

  /* Smaller hero on very small phones */
  .hero h1 { font-size: 1.7rem; }
  .hero p.lead { font-size: 1rem; }

  /* Section header smaller on tiny screens */
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.95rem; }
}

/* ============================================================
   ADDITIONAL STYLES — UPGRADED SYSTEM
   ------------------------------------------------------------
   24. Template Card (Upgraded — dual pricing + new badge)
   25. "New Templates" section
   26. Template Details (gallery, payment card, warning)
   27. Razorpay / PayPal buttons
   28. Payment note + delivery time
   29. Secondary actions (Demo / Ask Before Buying)
   30. Warning box (manual delivery)
   31. Demo Bar (sticky top of every demo)
   32. Trust badges (upgraded)
   33. Search bar improvements
   34. Loading states
   35. Misc tweaks
   ============================================================ */

/* ============== 24. Template Card (Upgraded) ============== */
.template-card .thumb { position: relative; }
.template-card .thumb a { display:block; }
.badge-new {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
  z-index: 2;
}
.template-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.template-card .price-usd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.template-card .price-usd::before { content: "· "; opacity: 0.6; }
.template-card h3 a { color: inherit; }
.template-card h3 a:hover { color: var(--color-primary); }

/* ============== 25. "New Templates" section ============== */
.new-section .section-header h2 span {
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============== 26. Template Details (Upgraded) ============== */
.main-screenshot {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.main-screenshot img { width: 100%; display: block; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.gallery-thumb {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  transition: var(--transition);
}
.gallery-thumb:hover { border-color: var(--color-primary); }
.gallery-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.gallery-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.details-info h1 { margin-bottom: 0.75rem; }
.details-info .details-desc {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Price block — dual */
.price-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--gradient-soft);
  border-radius: var(--radius);
}
.price-block > div { text-align: center; }
.price-block .amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}
.price-block .label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============== 27. Payment buttons ============== */
.payment-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.payment-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.payment-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.btn-razorpay {
  background: #072654;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(7, 38, 84, 0.25);
}
.btn-razorpay:hover { background: #0a3a7d; transform: translateY(-2px); }
.btn-paypal {
  background: #ffb300;
  color: #003087;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.3);
}
.btn-paypal:hover { background: #ffc940; transform: translateY(-2px); }
.btn-razorpay .pay-icon,
.btn-paypal .pay-icon {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 0.85rem;
}
.btn-paypal .pay-icon { background: rgba(0, 48, 135, 0.15); color: #003087; }
.pay-region {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ============== 28. Payment note + delivery time ============== */
.payment-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.86rem;
  margin-top: 1rem;
  line-height: 1.55;
}
.delivery-time {
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  font-size: 0.86rem;
  text-align: center;
}

/* ============== 29. Secondary actions ============== */
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* ============== 30. Warning box (manual delivery) ============== */
.warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.86rem;
  margin: 1rem 0;
  line-height: 1.55;
}

/* ============== 31. Demo Bar (sticky top of every demo) ============== */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 0.88rem;
}
.demo-bar .msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.demo-bar .msg .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.demo-bar .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-bar .actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 999px;
}
.demo-bar .btn-buy {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.demo-bar .btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
@media (max-width: 600px) {
  .demo-bar { font-size: 0.78rem; }
  .demo-bar .msg { width: 100%; justify-content: center; text-align: center; }
  .demo-bar .actions { width: 100%; justify-content: center; }
}

/* ============== 32. Trust badges (upgraded) ============== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}
.trust-badge .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--color-primary);
  display: grid; place-items: center;
  font-size: 0.95rem;
}

/* ============== 33. Search bar improvements ============== */
.search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto 1rem;
}
.result-count {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ============== 34. Loading states ============== */
.loading-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============== 35. Misc tweaks ============== */
.btn-razorpay .pay-icon,
.btn-paypal .pay-icon,
.btn-whatsapp .pay-icon { flex-shrink: 0; }

.tag-success {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.tag-success::before { content: "✓ "; }

@media (max-width: 560px) {
  .price-block { grid-template-columns: 1fr; }
  .secondary-actions { grid-template-columns: 1fr; }
  .payment-buttons { gap: 0.6rem; }
}

/* ============================================================
   PRODUCT TYPE TABS + BADGES (New Category System)
   ============================================================ */

/* Product Type Bar — appears above search on templates page */
.product-type-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.product-type-btn {
  background: #fff;
  border: 2px solid var(--color-border);
  color: var(--color-text-soft);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.product-type-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.product-type-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Product Type Badge on template cards */
.card-type-row {
  margin-bottom: 0.6rem;
}
.badge-type {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-sm {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.badge-web {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

/* Responsive */
@media (max-width: 560px) {
  .product-type-bar { gap: 0.4rem; }
  .product-type-btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
}
