/*
  WebVariation — Website Marketplace
  Design based on TemplateMo 622 Clearwave (templatemo.com/tm-622-clearwave)
  Free for personal and commercial use
*/

/* ── TOKENS ── */
:root {
  --bg:            #E8F4F2;
  --bg-alt:        #DFF0EE;
  --surface:       #F4FAFA;
  --surface-2:     #FFFFFF;
  --accent:        #1A7A6E;
  --accent-mid:    #2A9D8F;
  --accent-light:  #5BBFB5;
  --accent-ghost:  rgba(26,122,110,0.08);
  --accent-border: rgba(26,122,110,0.15);
  --text-1:        #0D1E1C;
  --text-2:        #3A5C58;
  --text-3:        #6B8C88;
  --border:        rgba(13,30,28,0.08);
  --shadow-sm:     0 2px 12px rgba(13,30,28,0.06);
  --shadow-md:     0 8px 32px rgba(13,30,28,0.10);
  --shadow-lg:     0 24px 64px rgba(13,30,28,0.13);
  --silk:          cubic-bezier(0.16, 1, 0.3, 1);
  --silk-dur:      0.8s;
  --radius:        16px;
  --radius-lg:     24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-ghost); border: 1px solid var(--accent-border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.section-label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; color: var(--text-1);
}
.section-title em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
}
.section-sub {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-2); max-width: 520px; margin-top: 16px;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--silk), transform 0.7s var(--silk); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: padding var(--silk-dur) var(--silk), background var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(232,244,242,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-1);
}
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-size: 19px; font-weight: 800; color: var(--text-1); }
.nav-logo-sub { font-size: 10px; letter-spacing: 1.6px; color: var(--text-3); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 1.05rem; font-weight: 500; color: var(--text-2);
  padding: 7px 16px; border-radius: 100px;
  background: transparent;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-ghost); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-size: 1.05rem; font-weight: 500; color: var(--text-2);
  padding: 9px 20px; border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-ghost); }
.btn-primary {
  font-size: 0.875rem; font-weight: 600; color: #fff;
  background: var(--accent); padding: 10px 22px; border-radius: 100px;
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
  box-shadow: 0 4px 16px rgba(26,122,110,0.25);
}
.btn-primary:hover { background: var(--accent-mid); transform: scale(1.02); box-shadow: 0 6px 24px rgba(26,122,110,0.35); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--text-1);
  border-radius: 2px; transition: all 0.4s var(--silk);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--silk);
  overflow-y: auto;
  padding: 100px 32px 100px;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 600; color: var(--text-1);
  padding: 14px 0; width: 100%; text-align: center;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--silk), transform 0.5s var(--silk), color 0.3s;
}
.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu .mobile-cta {
  margin-top: 28px;
  font-size: 0.9375rem; font-weight: 600;
  background: var(--accent); color: #fff;
  padding: 14px 40px; border-radius: 100px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--silk) 0.3s, transform 0.5s var(--silk) 0.3s, background 0.3s;
}
.mobile-menu.open .mobile-cta { opacity: 1; transform: none; }
.mobile-menu .mobile-cta:hover { background: var(--accent-mid); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  display: flex; align-items: center;
  padding: 130px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(ellipse at center, rgba(91,191,181,0.18) 0%, rgba(42,157,143,0.06) 50%, transparent 75%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -15%; left: -8%;
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(ellipse at center, rgba(26,122,110,0.10) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 6px 16px 6px 8px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.hero-badge span { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.hero-badge strong { color: var(--accent); }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-2); max-width: 460px; margin-bottom: 32px;
}

/* Hero Search */
.hero-search {
  display: flex; max-width: 460px;
  background: var(--surface-2); border: 1.5px solid var(--accent-border);
  border-radius: 100px; overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ghost), var(--shadow-md);
}
.hero-search input {
  flex: 1; border: none; outline: none;
  padding: 14px 20px; font-size: 14px; background: transparent;
  color: var(--text-1); font-family: 'DM Sans', sans-serif;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search button {
  background: var(--accent); color: #fff;
  border: none; padding: 10px 24px; margin: 5px;
  border-radius: 100px; font-size: 14px; font-weight: 600;
  transition: background 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.hero-search button:hover { background: var(--accent-mid); }

/* Trust badges */
.hero-trust {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; color: var(--text-3); font-weight: 500;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-divider { width: 1px; height: 18px; background: var(--border); }

/* Hero visual — marketplace mockup */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-mockup {
  width: 100%; max-width: 500px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--silk-dur) var(--silk);
}
.hero-mockup:hover { transform: scale(1.01); }
.mockup-bar {
  background: var(--bg-alt); padding: 11px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #a855f7; }
.mockup-dot:nth-child(2) { background: #FF5F57; }
.mockup-dot:nth-child(3) { background: #FFBD2E; }
.mockup-dot:nth-child(4) { background: #28CA41; }
.mockup-dot:nth-child(5) { background: #f97316; }
.mockup-bar-url {
  flex: 1; background: var(--surface-2); border-radius: 100px;
  padding: 5px 14px; font-size: 11px; color: var(--text-3);
  margin: 0 8px; border: 1px solid var(--border);
}
.mockup-body { padding: 18px; }
.mockup-cats {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.mockup-cat {
  font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--accent-border); color: var(--accent); background: var(--accent-ghost);
}
.mockup-cat.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockup-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; overflow: hidden;
}
.mockup-card-img {
  height: 56px; border-radius: 8px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mockup-card-title { font-size: 11px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.mockup-card-price { font-size: 11px; color: var(--accent); font-weight: 600; }
.mockup-card-btn {
  margin-top: 8px; width: 100%;
  background: var(--accent); color: #fff;
  border-radius: 6px; padding: 5px;
  font-size: 10px; font-weight: 600; text-align: center;
}

/* Floating badges */
.hero-float-badge {
  position: absolute; bottom: -16px; left: -24px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-badge-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.float-badge-text { font-size: 0.75rem; }
.float-badge-text strong { display: block; font-weight: 700; color: var(--text-1); }
.float-badge-text span { color: var(--text-3); }

.hero-float-badge-2 {
  position: absolute; top: 16px; right: -16px;
  background: var(--accent); border-radius: var(--radius);
  padding: 10px 16px; box-shadow: 0 8px 24px rgba(26,122,110,0.35);
  animation: floatBadge 4s ease-in-out 2s infinite;
}
.float-badge-2-val { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.float-badge-2-label { font-size: 0.7rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* ══════════════════════════════════════════
   CATEGORY TICKER
══════════════════════════════════════════ */
.ticker-section {
  padding: 40px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
}
.ticker-label {
  text-align: center; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
  margin-bottom: 24px;
}
.ticker-track-wrap { overflow: hidden; }
.ticker-track {
  display: flex; align-items: center; gap: 48px;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-3); white-space: nowrap; flex-shrink: 0;
  transition: color 0.3s;
}
.ticker-item:hover { color: var(--accent); }
.ticker-item-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-ghost); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ticker-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-light); flex-shrink: 0; opacity: 0.5;
}

/* ══════════════════════════════════════════
   BROWSE SECTION (Marketplace Cards)
══════════════════════════════════════════ */
.browse-section {
  padding: 100px 0;
}
.browse-header {
  text-align: center; margin-bottom: 60px;
}
.browse-header .section-sub { margin: 12px auto 0; text-align: center; }

/* Category filters */
.category-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 32px;
}
.cat-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  padding: 9px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.3s;
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-ghost); }
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px rgba(26,122,110,0.25); }

/* Sort bar */
.sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 32px;
}
.sort-bar span { font-size: 13px; color: var(--text-3); font-weight: 500; }
.sort-bar select {
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--text-1);
  cursor: pointer; outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.3s;
}
.sort-bar select:hover { border-color: var(--accent); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Website card */
.website-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
  display: flex; flex-direction: column;
}
.website-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-thumb {
  width: 100%; height: 180px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; overflow: hidden;
  position: relative;
}
.card-thumb-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-ghost), transparent 60%);
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-ghost); border: 1px solid var(--accent-border);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; letter-spacing: -0.02em; }
.card-desc { font-size: 0.8125rem; color: var(--text-3); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 1.05rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.card-actions { display: flex; gap: 8px; }
.btn-preview {
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--accent-border); background: var(--accent-ghost);
  padding: 8px 14px; border-radius: 100px;
  transition: all 0.3s; font-family: 'DM Sans', sans-serif;
}
.btn-preview:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-buy {
  font-size: 12px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 8px 16px; border-radius: 100px;
  box-shadow: 0 3px 10px rgba(26,122,110,0.25);
  transition: background 0.3s, transform 0.3s; font-family: 'DM Sans', sans-serif;
}
.btn-buy:hover { background: var(--accent-mid); transform: scale(1.03); }

.no-result { text-align: center; color: var(--text-3); font-size: 15px; padding: 60px 0; }

/* ══════════════════════════════════════════
   HOW IT WORKS SECTION
══════════════════════════════════════════ */
.how-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.how-header { text-align: center; margin-bottom: 64px; }
.how-header .section-sub { margin: 12px auto 0; text-align: center; }
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px;
}
.how-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-step {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.how-emoji { font-size: 28px; margin-bottom: 10px; }
.how-title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.how-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ══════════════════════════════════════════
   PREVIEW MODAL
══════════════════════════════════════════ */
.preview-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,30,28,0.6);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.preview-overlay.open { display: flex; }
.preview-modal {
  background: var(--surface-2); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 780px; max-height: 90vh;
  overflow-y: auto; padding: 32px;
  position: relative;
}
.preview-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-2);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s, color 0.3s;
}
.preview-close:hover { background: var(--accent); color: #fff; }
.preview-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 16px;
}
.preview-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.03em; }
.preview-price { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-top: 4px; display: block; }
.preview-buy-btn {
  background: var(--accent); color: #fff;
  padding: 11px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(26,122,110,0.28);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s; flex-shrink: 0;
}
.preview-buy-btn:hover { background: var(--accent-mid); }
.preview-main {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.preview-main img {
  width: 100%; height: 340px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  flex: 1;
}
.slide-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: 20px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: 'DM Sans', sans-serif;
  transition: background 0.3s, color 0.3s;
}
.slide-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.preview-counter { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.preview-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.thumb-item {
  width: 68px; height: 48px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--border);
  cursor: pointer; transition: border-color 0.3s, transform 0.2s;
}
.thumb-item.active, .thumb-item:hover { border-color: var(--accent); transform: scale(1.05); }

/* ══════════════════════════════════════════
   BUY MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,30,28,0.6);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface-2); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; padding: 36px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-2);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s, color 0.3s;
}
.modal-close:hover { background: var(--accent); color: #fff; }
.modal h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.03em; }
.modal-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--text-3); margin-bottom: 20px; font-weight: 500; }

/* Payment buttons */
.payment-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.btn-bkash {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #E2136E; color: #fff;
  padding: 14px; border-radius: 100px;
  font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(226,19,110,0.28);
  transition: background 0.3s, transform 0.3s;
}
.btn-bkash:hover { background: #c40d5c; transform: scale(1.02); }
.bkash-logo {
  width: 22px; height: 22px; border-radius: 5px;
  background: #fff; color: #E2136E;
  font-weight: 900; font-style: italic; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.btn-ssl {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px; border-radius: 100px;
  font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(26,122,110,0.28);
  transition: background 0.3s, transform 0.3s;
}
.btn-ssl:hover { background: var(--accent-mid); transform: scale(1.02); }

/* Extras */
.modal-extras {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.extra-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-2);
}
.extra-item span { font-weight: 600; color: var(--text-1); }
.modal-note {
  font-size: 12px; color: var(--accent); font-weight: 500; text-align: center;
}

/* ══════════════════════════════════════════
   CHECKOUT FORM MODAL
══════════════════════════════════════════ */
.checkout-field { margin-bottom: 14px; }
.checkout-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.checkout-field input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text-1);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.checkout-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text-1); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 9999; white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 0.875rem; color: var(--text-3); line-height: 1.7; max-width: 280px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all 0.3s;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem; color: var(--text-2); font-weight: 500;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8125rem; color: var(--text-3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8125rem; color: var(--text-3); transition: color 0.3s; }
.footer-legal a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 140px 0 80px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .how-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-search { max-width: 100%; }
  .hero-trust { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .preview-main img { height: 220px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .category-filters { gap: 6px; }
  .cat-btn { padding: 7px 14px; font-size: 12px; }
}
