/* ==========================================================================
   chotobill — globals.css
   Design system লোগো থেকে নেওয়া: purple #8B2FF2 → pink #EC4899, dark GenZ থিম
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --purple: #8B2FF2;
  --purple-2: #7C3AED;
  --purple-light: #9B4DF5;
  --pink: #EC4899;
  --lime: #D9F99D;

  --bg: #0A0A12;
  --bg-2: #0D0D18;
  --surface: #12121C;
  --surface-2: #181826;
  --line: rgba(155, 77, 245, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);

  --text: #FFFFFF;
  --muted: #9CA3AF;
  --muted-2: #6B7280;

  --grad: linear-gradient(120deg, #8B2FF2 0%, #EC4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 47, 242, 0.16), rgba(236, 72, 153, 0.12));
  --glow: 0 8px 40px rgba(139, 47, 242, 0.45);
  --glow-sm: 0 4px 20px rgba(139, 47, 242, 0.35);

  --font-bn-head: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
  --font-bn: 'Hind Siliguri', 'Baloo Da 2', sans-serif;
  --font-en: 'Space Grotesk', monospace;

  --radius: 24px;
  --radius-sm: 16px;
  --nav-h: 76px;
  --container: 1180px;
}

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

html { scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--purple); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--pink)); border-radius: 99px; }

/* JS চালু থাকলেই reveal এলিমেন্ট লুকানো — GSAP দেখাবে */
.js [data-reveal] { visibility: hidden; }
.js [data-hero] { opacity: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-bn-head); font-weight: 800; line-height: 1.3; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.en { font-family: var(--font-en); letter-spacing: 0.02em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* ---------- Layout ---------- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.sec { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sec-head h2 { margin: 14px 0 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(139, 47, 242, 0.12);
  border: 1px solid rgba(139, 47, 242, 0.3);
  padding: 7px 16px; border-radius: 99px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 10px var(--pink);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-bn-head); font-weight: 700; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 99px; white-space: nowrap;
  transition: box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  position: relative; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow-sm); }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { border: 1.5px solid rgba(155, 77, 245, 0.5); background: rgba(139, 47, 242, 0.07); }
.btn-outline:hover { background: rgba(139, 47, 242, 0.16); border-color: var(--purple-light); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { border-color: var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
/* tilt হ্যান্ডেল করে GSAP — CSS transform transition বাদ */
.card.tilt { transition: border-color 0.35s, box-shadow 0.35s; }

.icon-blob {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid rgba(139, 47, 242, 0.25);
  color: var(--purple-light); font-size: 1.6rem;
}
.icon-blob svg { width: 26px; height: 26px; }

/* ---------- Sticker / badge ---------- */
.sticker {
  display: inline-block;
  font-family: var(--font-en); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--lime); color: #111;
  padding: 6px 14px; border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 14px rgba(217, 249, 157, 0.25);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(139, 47, 242, 0.14);
  border: 1px solid rgba(139, 47, 242, 0.3);
  color: var(--purple-light);
  padding: 5px 12px; border-radius: 99px;
}
.badge.pink { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.35); color: #F9A8D4; }
.badge.lime { background: rgba(217, 249, 157, 0.1); border-color: rgba(217, 249, 157, 0.3); color: var(--lime); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
/* gap-এর বদলে margin — যাতে -50% লুপ হুবহু সিমলেস হয় */
.marquee-pill { margin-right: 16px; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 600; font-size: 1rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 12px 22px; border-radius: 99px; white-space: nowrap;
}
.marquee-pill .off { color: var(--lime); font-weight: 700; }
.marquee-pill .spark { color: var(--pink); }

/* ---------- Orbs & background FX ---------- */
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; opacity: 0.55; z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -50px, 0) scale(1.15); }
}
.orb-purple { background: radial-gradient(circle, rgba(139, 47, 242, 0.8), transparent 70%); }
.orb-pink { background: radial-gradient(circle, rgba(236, 72, 153, 0.55), transparent 70%); }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(139, 47, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 47, 242, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}

.noise {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 4000;
  border-radius: 50%; transform: translate(-50%, -50%);
  display: none; opacity: 0; transition: opacity 0.2s;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 12px rgba(217, 249, 157, 0.8); }
  .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(155, 77, 245, 0.7);
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s, opacity 0.2s;
  }
  .cursor-ring.is-active {
    width: 64px; height: 64px;
    border-color: rgba(236, 72, 153, 0.9);
    background: rgba(236, 72, 153, 0.08);
  }
}

/* ---------- Page wipe transition ---------- */
.wipe {
  position: fixed; inset: -2%; z-index: 4500; pointer-events: none;
  background: var(--grad);
  transform: scaleY(0); transform-origin: bottom;
  border-radius: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height 0.35s, background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.menu-open {
  z-index: 1000;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.navbar.scrolled {
  height: 62px;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.navbar.scrolled .nav-logo img { height: 36px; }
.nav-logo span {
  font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.nav-logo span b { color: var(--purple-light); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-bn-head); font-weight: 600; font-size: 0.98rem;
  color: var(--muted); padding: 8px 16px; border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(139, 47, 242, 0.12); }
.nav-links a.active { color: var(--text); background: rgba(139, 47, 242, 0.18); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none; position: relative; z-index: 1002;
  width: 42px; height: 42px; flex: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 99px; background: var(--text);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

/* ---------- থিম টগল বাটন ---------- */
/* পিল সুইচ: ডার্ক (ডিফল্ট) = কালো ট্র্যাক + ডানে চাঁদ + তারা; লাইট = নীল ট্র্যাক + বামে সূর্য */
.theme-switch {
  position: relative; flex: none; width: 48px; height: 26px;
  border-radius: 99px; border: none; cursor: pointer; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, #1B1535 0%, #34295E 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(155, 77, 245, 0.55), 0 0 14px rgba(139, 47, 242, 0.35);
  transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-switch:hover { transform: scale(1.05); }
.theme-switch:active { transform: scale(0.97); }
.theme-switch:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }

.theme-switch .ts-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: transparent;
  box-shadow: inset -6px -2px 0 0 #fff; /* চাঁদের ক্রিসেন্ট */
  transform: translateX(22px);
  transition: transform 0.5s cubic-bezier(0.68, -0.25, 0.27, 1.25), box-shadow 0.5s ease;
}
.theme-switch .ts-dots::before, .theme-switch .ts-dots::after {
  content: ''; position: absolute; border-radius: 50%; background: #fff;
  opacity: 0; transform: translateX(8px); transition: opacity 0.4s ease, transform 0.5s ease;
}
.theme-switch .ts-dots::before { width: 6px; height: 6px; right: 7px; top: 5px; }
.theme-switch .ts-dots::after  { width: 3px; height: 3px; right: 16px; top: 14px; }

.theme-switch .ts-stars {
  position: absolute; left: 7px; top: 7px; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 6px -2px 0 #fff, 2px 7px 0 #fff, 10px 4px 0 #fff, 13px 10px 0 #fff, -1px 11px 0 #fff;
  opacity: 1; transition: opacity 0.5s ease 0.1s;
}

html[data-theme="light"] .theme-switch {
  background: linear-gradient(180deg, #5E91FA 0%, #8EB4FF 100%);
  box-shadow: inset 0 1px 4px rgba(30, 64, 175, 0.25), 0 0 0 1px rgba(30, 64, 175, 0.15);
}
html[data-theme="light"] .theme-switch .ts-knob { transform: translateX(0); box-shadow: inset 0 0 0 10px #fff; }
html[data-theme="light"] .theme-switch .ts-dots::before,
html[data-theme="light"] .theme-switch .ts-dots::after { opacity: 1; transform: translateX(0); }
html[data-theme="light"] .theme-switch .ts-stars { opacity: 0; transition-delay: 0s; }

/* Telegram-style circular theme wipe (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2147483646; }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(7, 7, 12, 0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-bn-head); font-weight: 700; font-size: 1.7rem;
  padding: 10px 24px; border-radius: 99px; color: var(--muted);
  transform: translateY(24px); opacity: 0; transition: transform 0.5s, opacity 0.5s, color 0.25s;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--text); background: rgba(139, 47, 242, 0.16); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar .btn { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: #07070C;
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 28px;
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-soft);
}
.footer-logo img { height: 52px; margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: 0.95rem; max-width: 300px; }
.footer h4 {
  font-family: var(--font-en); font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 18px;
}
.footer-links a {
  display: block; color: var(--muted); padding: 6px 0; font-size: 0.97rem;
  transition: color 0.25s, transform 0.25s;
}
.footer-links a:hover { color: var(--text); transform: translateX(6px); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--muted);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-social a:hover {
  color: var(--text); border-color: var(--purple); background: rgba(139, 47, 242, 0.15);
  transform: translateY(-4px) rotate(-6deg);
}
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; color: var(--muted-2); font-size: 0.88rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Floating buttons ---------- */
.float-btns {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  display: flex; flex-direction: column; gap: 12px;
}
.float-top {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--purple-light); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s;
}
.float-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-top:hover { background: rgba(139, 47, 242, 0.2); color: var(--text); }
.float-top svg { width: 20px; height: 20px; }

/* ---------- Support chat (Componant/support-chat.js) ---------- */
.sc-bubble {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: var(--glow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-bubble:hover { transform: scale(1.08); }
.sc-bubble:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.sc-bubble svg { width: 28px; height: 28px; grid-area: 1 / 1; }
.sc-bubble:not(.is-open) { background: transparent; box-shadow: none; }
.sc-bubble img.sc-ic-chat {
  width: 100%; height: 100%; object-fit: contain; grid-area: 1 / 1;
  filter: drop-shadow(0 6px 14px rgba(139, 47, 242, 0.45));
}
.sc-bubble .sc-ic-close { display: none; width: 22px; height: 22px; }
.sc-bubble.is-open .sc-ic-chat { display: none; }
.sc-bubble.is-open .sc-ic-close { display: block; }

.sc-teaser {
  position: fixed; right: 92px; bottom: 30px; z-index: 1210;
  display: flex; align-items: center; gap: 2px; max-width: min(320px, calc(100vw - 110px));
  padding: 4px 4px 4px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-family: var(--font-bn); animation: scTeaserIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-teaser[hidden] { display: none; }
.sc-teaser-text {
  border: 0; background: none; color: inherit; font: inherit; font-size: 0.9rem; line-height: 1.4;
  text-align: left; cursor: pointer; padding: 6px 0;
}
.sc-teaser-close {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: none; color: var(--muted); font-size: 1.1rem; line-height: 1;
}
.sc-teaser-close:hover { background: var(--surface-2); color: var(--text); }
.sc-teaser-text:focus-visible, .sc-teaser-close:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@keyframes scTeaserIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.sc-panel {
  position: fixed; right: 92px; bottom: 22px; z-index: 1250;
  width: 370px; height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: var(--font-bn);
}
.sc-panel[hidden] { display: none; }
.sc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--grad-soft);
}
.sc-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); overflow: hidden;
}
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-title { font-family: var(--font-bn-head); font-size: 1.02rem; line-height: 1.2; }
.sc-icon-btn {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); display: grid; place-items: center;
}
.sc-icon-btn:hover, .sc-icon-btn:focus-visible { background: var(--line-soft); color: var(--text); }
.sc-icon-btn svg { width: 18px; height: 18px; }

.sc-menu {
  position: absolute; top: 60px; right: 52px; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); padding: 6px; min-width: 170px;
}
.sc-menu[hidden] { display: none; }
.sc-menu-item {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  color: #F87171; font: inherit; font-size: 0.9rem; padding: 9px 12px; border-radius: 8px;
}
.sc-menu-item:hover, .sc-menu-item:focus-visible { background: rgba(248, 113, 113, 0.12); }

.sc-confirm {
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 113, 113, 0.08); font-size: 0.88rem; line-height: 1.5;
}
.sc-confirm[hidden] { display: none; }
.sc-confirm p { margin: 0 0 10px; }
.sc-confirm-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sc-btn-ghost, .sc-btn-danger {
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.sc-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.sc-btn-danger { background: #DC2626; color: #fff; border: 1px solid #DC2626; }
.sc-btn-danger:disabled { opacity: 0.6; cursor: wait; }

.sc-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 8px;
}
.sc-msg {
  max-width: 84%; padding: 9px 13px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.sc-ai { align-self: flex-start; background: var(--line-soft); border-bottom-left-radius: 5px; }
.sc-me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.sc-pending { opacity: 0.6; }
.sc-failed { outline: 1px dashed #F87171; outline-offset: 2px; }
.sc-who {
  display: block; font-family: var(--font-bn-head); font-weight: 600;
  font-size: 0.72rem; color: var(--purple-light); margin-bottom: 2px;
}
.sc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.sc-typing[hidden] { display: none; }
.sc-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: scDot 1.2s infinite ease-in-out;
}
.sc-typing span:nth-child(2) { animation-delay: 0.15s; }
.sc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.sc-status { padding: 0 16px 6px; color: #F87171; font-size: 0.8rem; }
.sc-status[hidden], .sc-status:empty { display: none; }
.sc-challenge:empty { display: none; }
.sc-challenge { padding: 0 16px 8px; }

.sc-form {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px 12px; border-top: 1px solid var(--line-soft);
}
.sc-input {
  flex: 1; min-width: 0; resize: none; max-height: 120px; overflow-y: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px 14px; font: inherit; font-size: 0.92rem; line-height: 1.4;
}
.sc-input:focus { outline: none; border-color: var(--purple-light); }
.sc-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
}
.sc-send:disabled { opacity: 0.5; cursor: wait; }
.sc-send svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .sc-typing span { animation: none; opacity: 0.7; }
  .sc-bubble { transition: none; }
  .sc-teaser { animation: none; }
}

@media (max-width: 560px) {
  .sc-panel {
    inset: 0; right: 0; bottom: 0; width: 100%; height: 100%;
    border-radius: 0; border: 0;
  }
  html.sc-open, html.sc-open body { overflow: hidden; }
  html.sc-open .float-btns { display: none; }
  .sc-input { font-size: 16px; } /* no zoom on iOS focus */
}

/* ---------- Forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-bn-head); font-weight: 600;
  font-size: 0.95rem; margin-bottom: 8px; color: #E5E7EB;
}
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2);
  border: 1.5px solid var(--line-soft); border-radius: 14px;
  padding: 14px 18px; font-size: 1rem; color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-light);
  box-shadow: 0 0 0 4px rgba(139, 47, 242, 0.15);
  background: #0F0F1C;
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

/* ---------- Coupon card ---------- */
.coupon {
  background: var(--surface);
  border: 1.5px dashed rgba(155, 77, 245, 0.35);
  border-radius: var(--radius-sm);
  padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}
.coupon:hover {
  border-color: var(--pink);
  box-shadow: 0 18px 50px rgba(139, 47, 242, 0.25);
}
.coupon::before, .coupon::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg); top: 50%; transform: translateY(-50%);
}
.coupon::before { left: -12px; }
.coupon::after { right: -12px; }
.coupon .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.09) 50%, transparent 58%);
  transform: translateX(-130%); transition: transform 0.7s;
}
.coupon:hover .shine { transform: translateX(130%); }
.coupon .off-num {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coupon .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.coupon .brand-row .name { font-family: var(--font-bn-head); font-weight: 700; font-size: 1.1rem; }
.coupon .brand-row .cat { display: block; font-size: 0.8rem; color: var(--muted); }
.coupon .off-num small { font-size: 0.4em; letter-spacing: 0.08em; margin-left: 4px; }
.coupon .deal-title { color: #E5E7EB; margin-top: 6px; font-size: 1rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 18px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(139, 47, 242, 0.45); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 20px 24px;
  font-family: var(--font-bn-head); font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.faq-q .faq-ic {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(139, 47, 242, 0.15); color: var(--purple-light);
  font-family: var(--font-en); font-size: 1.2rem; font-weight: 400;
  transition: transform 0.35s, background 0.3s, color 0.3s;
}
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.97rem; }

/* ---------- WhatsApp success note ---------- */
.wa-note {
  display: none; margin-top: 14px; padding: 13px 18px; border-radius: 14px;
  background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.35);
  color: #4ADE80; font-size: 0.93rem; text-align: center;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  text-align: center; padding: 30px 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1.5px;
  background: var(--grad); opacity: 0.8;
}
.stat .num {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 860px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps timeline ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { text-align: center; padding: 34px 22px; }
.step-card .step-num {
  font-family: var(--font-en); font-weight: 700; font-size: 3.2rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: 0.9; margin-bottom: 8px;
}
.step-card h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.step-card p { color: var(--muted); font-size: 0.95rem; }
.step-card .icon-blob { margin-inline: auto; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonial card ---------- */
.tst-card {
  width: 330px; flex: none; margin-right: 18px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 24px;
}
.tst-card:nth-child(odd) { transform: rotate(-1.2deg); }
.tst-card:nth-child(even) { transform: rotate(1.2deg); }
.tst-card .msg { color: #E5E7EB; font-size: 0.97rem; }
.tst-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tst-card .ava {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  font-family: var(--font-bn-head); font-weight: 700; color: #fff;
}
.tst-card .who b { display: block; font-size: 0.95rem; }
.tst-card .who span { font-size: 0.8rem; color: var(--muted); }
.tst-card .starz { color: var(--lime); letter-spacing: 2px; font-size: 0.85rem; }

/* ---------- Deals grid ---------- */
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .deals-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .deals-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   মোবাইল হার্ডেনিং — গ্রিড-আইটেম min-width, বাটন/সিলেক্ট overflow প্রতিরোধ
   ========================================================================== */
.card, .coupon, .stat, .step-card, .tst-card, .faq-item, .perk { min-width: 0; }
.contact-grid > *, .jobs-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.stats-row > *, .steps > *, .perk-row > *, .deals-grid > *, .dual-grid > * { min-width: 0; }
.btn { max-width: 100%; }
.hero-trust { flex-wrap: wrap; }
.field select { width: 100%; max-width: 100%; }
.flex-between { flex-wrap: wrap; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; overflow-wrap: anywhere; line-height: 1.35; }
  .container { width: 94%; }
  .navbar .container { gap: 10px; }
  .nav-logo img { height: 36px; }
  .navbar.scrolled .nav-logo img { height: 32px; }
  .card { padding: 22px 18px; }
  .coupon { padding: 20px 16px; }
  .form-card { padding: 24px 20px; }
  .float-btns { right: 14px; bottom: 14px; }
  .sc-teaser { right: 82px; bottom: 22px; }
  .mobile-menu a { font-size: 1.45rem; }
}

/* ==========================================================================
   লাইট থিম — html[data-theme="light"] (নেভবার টগল থেকে সেট হয়)
   ========================================================================== */
html[data-theme="light"] {
  --bg: #F6F4FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EFEAF8;
  --line: rgba(124, 58, 237, 0.25);
  --line-soft: rgba(23, 18, 31, 0.09);
  --text: #17121F;
  --muted: #5D5670;
  --muted-2: #8E879E;
}

html[data-theme="light"] .navbar.scrolled {
  background: rgba(246, 244, 251, 0.82);
  border-bottom-color: rgba(23, 18, 31, 0.07);
}
html[data-theme="light"] .mobile-menu { background: rgba(246, 244, 251, 0.97); }
html[data-theme="light"] .footer { background: #FFFFFF; border-top-color: rgba(23, 18, 31, 0.08); }
html[data-theme="light"] .brand-strip { background: rgba(255, 255, 255, 0.6); }

/* নতুন লোগো পার্পল-টেক্সট — ডার্ক ও লাইট দুই থিমেই একই লোগো ব্যবহার হয়,
   কোনো ভ্যারিয়েন্ট বা ব্যাকগ্রাউন্ড চিপ নেই */

html[data-theme="light"] .grid-lines {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .orb { opacity: 0.22; }
html[data-theme="light"] .noise { opacity: 0.03; }
/* Dark mode: no grain overlay */
html:not([data-theme="light"]) .noise { display: none; }

/* লাইট ব্যাকগ্রাউন্ডে লাইম টেক্সট গাঢ় সবুজে */
html[data-theme="light"] .stamp { color: #4D7C0F; border-color: #84CC16; text-shadow: none; box-shadow: 0 0 40px rgba(132, 204, 22, 0.25); }
html[data-theme="light"] .contact-card a,
html[data-theme="light"] .job-pay b { color: #4D7C0F; }
html[data-theme="light"] .badge.pink { color: #DB2777; }
html[data-theme="light"] .badge.lime { color: #4D7C0F; }
html[data-theme="light"] .marquee-pill .off { color: #4D7C0F; }

html[data-theme="light"] .tst-card .msg,
html[data-theme="light"] .coupon .deal-title { color: #3E3850; }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus { background: #FFFFFF; }
html[data-theme="light"] .store-btn { background: #FFFFFF; }
html[data-theme="light"] .cursor-dot { background: #7C3AED; box-shadow: 0 0 12px rgba(124, 58, 237, 0.6); }
html[data-theme="light"] .students-only {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139, 47, 242, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(236, 72, 153, 0.06), transparent 60%);
}

/* লাইট মোডে ছোট টেক্সটের কনট্রাস্ট বাড়ানো */
html[data-theme="light"] .float-coupon .n { color: #4B4560; }
html[data-theme="light"] .footer-bottom { color: #6B647C; }
html[data-theme="light"] .star-lime { color: #4D7C0F; }
html[data-theme="light"] .tst-card .starz { color: #65A30D; }

/* লাইট মোডে লিগ্যাল, ডিলিট ও কন্টাক্ট পেজের ডার্ক-অনলি রঙ */
html[data-theme="light"] .policy-sec h2,
html[data-theme="light"] .policy-sec ul li b,
html[data-theme="light"] .legal-table td b { color: var(--text); }
html[data-theme="light"] .policy-sec h3,
html[data-theme="light"] .policy-callout p,
html[data-theme="light"] .field label { color: #3E3850; }
html[data-theme="light"] .grace-pill,
html[data-theme="light"] .purge-list h5 { color: #DC2626; }
html[data-theme="light"] [style*="--lime"] { --lime: #4D7C0F; }
/* ইনলাইন হেক্স রঙকে ওভাররাইড করতে !important লাগে */
html[data-theme="light"] [style*="color:#FCA5A5"] { color: #DC2626 !important; }
html[data-theme="light"] [style*="color:#DDD6FE"] { color: #6D28D9 !important; }

html[data-theme="light"] .sc-panel { box-shadow: 0 24px 60px rgba(23, 18, 31, 0.18); }
html[data-theme="light"] .sc-ai { background: #EFEAF8; color: var(--text); }
html[data-theme="light"] .sc-input { background: #FFFFFF; }
html[data-theme="light"] .sc-menu { box-shadow: 0 12px 30px rgba(23, 18, 31, 0.14); }
html[data-theme="light"] .sc-menu-item,
html[data-theme="light"] .sc-status { color: #DC2626; }
html[data-theme="light"] .sc-who { color: #6D28D9; }
