/* ============================================================
   ARAY Design System -- main.css
   Premium Dark SaaS Theme for AI Business Marketplace
   Yerevan, Armenia
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES -- Design Tokens
   ============================================================ */
:root {
  /* ---- Background layers ---- */
  --bg-main: #06080d;
  --bg-surface: #0d1117;
  --bg-card: #161b22;
  --bg-elevated: #1c2333;

  /* ---- Borders ---- */
  --border: #2a3142;
  --border-accent: rgba(0, 212, 200, 0.2);
  --border-light: rgba(255, 255, 255, 0.06);

  /* ---- Text ---- */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  /* ---- Accent (Teal) ---- */
  --accent: #00d4c8;
  --accent-hover: #00ebe0;
  --accent-glow: rgba(0, 212, 200, 0.12);
  --accent-subtle: rgba(0, 212, 200, 0.06);

  /* ---- Semantic colours ---- */
  --rose: #f43f5e;
  --gold: #f59e0b;
  --green: #10b981;
  --purple: #a78bfa;
  --blue: #3b82f6;

  /* ---- Typography stacks ---- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Border radii ---- */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 200, 0.1);

  /* ---- Glassmorphism ---- */
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px) saturate(1.4);

  /* ---- Easings ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Aliases (short-hand tokens) ---- */
  --bg: #06080d;
  --bg2: #0d1117;
  --bg3: #161b22;
  --surface: #1c2333;
  --text: #e6edf3;
  --text2: #8b949e;

  /* ---- Dashboard abbreviated tokens ---- */
  --bd: #2a3142;
  --t1: #e6edf3;
  --t2: #8b949e;
  --t3: #64748b;
  --t4: #484f58;
  --a: #00d4c8;
  --aS: rgba(0, 212, 200, 0.06);
  --bgH: #1c2333;
  --bg4: #1c2333;
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
  --fd: 'Outfit', sans-serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
  --rS: 8px;
  --ac: #00d4c8;
}


/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  /* ---- Background layers ---- */
  --bg-main: #f5f7fa;
  --bg-surface: #edf0f5;
  --bg-card: #ffffff;
  --bg-elevated: #f0f2f5;

  /* ---- Borders ---- */
  --border: #d0d5dd;
  --border-accent: rgba(0, 168, 158, 0.25);
  --border-light: rgba(0, 0, 0, 0.06);

  /* ---- Text ---- */
  --text-primary: #1a1d23;
  --text-secondary: #57606a;
  --text-muted: #8b949e;

  /* ---- Accent (Teal) — slightly darker for light bg ---- */
  --accent: #00a89e;
  --accent-hover: #00918a;
  --accent-glow: rgba(0, 168, 158, 0.10);
  --accent-subtle: rgba(0, 168, 158, 0.05);

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 40px rgba(0, 168, 158, 0.06);

  /* ---- Glassmorphism ---- */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: blur(20px) saturate(1.4);

  /* ---- Aliases ---- */
  --bg: #f5f7fa;
  --bg2: #edf0f5;
  --bg3: #ffffff;
  --surface: #f0f2f5;
  --text: #1a1d23;
  --text2: #57606a;

  /* ---- Dashboard abbreviated tokens ---- */
  --bd: #d0d5dd;
  --t1: #1a1d23;
  --t2: #57606a;
  --t3: #6b7280;
  --t4: #8b949e;
  --a: #00a89e;
  --aS: rgba(0, 168, 158, 0.06);
  --bgH: #e8ebf0;
  --bg4: #e8ebf0;
  --ac: #00a89e;

  color-scheme: light;
}

/* ---- Light theme transition ---- */
html {
  transition: background-color 0.3s ease;
}
html[data-theme] body,
html[data-theme] .nav,
html[data-theme] .mob-menu,
html[data-theme] .footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---- Light theme element overrides ---- */
[data-theme="light"] body {
  background: var(--bg-main);
  color: var(--text-secondary);
}

/* Nav */
[data-theme="light"] .nav {
  background: rgba(245, 247, 250, 0.75);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245, 247, 250, 0.95);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border);
}
[data-theme="light"] .lang-switcher {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
}
[data-theme="light"] .lang-btn {
  color: var(--text-secondary);
}
[data-theme="light"] .lang-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}
[data-theme="light"] .lang-btn.active {
  background: rgba(0, 180, 170, 0.14);
  color: #008f87;
  box-shadow: 0 0 0 1px rgba(0, 180, 170, 0.3);
}
[data-theme="light"] .cart-link:hover,
[data-theme="light"] .fav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav-user {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
}
[data-theme="light"] .nav-user:hover {
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .mob-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile menu */
[data-theme="light"] .mob-menu {
  background: rgba(245, 247, 250, 0.97);
}
[data-theme="light"] .mob-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Ghost button */
[data-theme="light"] .btn-g {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-secondary);
  border-color: var(--border);
}
[data-theme="light"] .btn-g:hover {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Hero section */
[data-theme="light"] .hero-map-overlay {
  background: radial-gradient(ellipse at center,
    rgba(245, 247, 250, 0.88) 0%,
    rgba(245, 247, 250, 0.6) 45%,
    rgba(245, 247, 250, 0.4) 100%);
}
[data-theme="light"] .hero-glow--teal {
  background: radial-gradient(circle, rgba(0, 168, 158, 0.07) 0%, transparent 70%);
}
[data-theme="light"] .hero-glow--blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}
[data-theme="light"] .hero-glow--accent {
  background: radial-gradient(circle, rgba(0, 168, 158, 0.04) 0%, transparent 70%);
}
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #1a1d23 0%, #374151 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-sub {
  color: rgba(75, 85, 99, 0.85);
}
[data-theme="light"] .hero-stats {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 40px rgba(0, 168, 158, 0.04);
}
[data-theme="light"] .hero-stat {
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .hero-stat:hover {
  background: rgba(0, 168, 158, 0.04);
}
[data-theme="light"] .hero-stat-num {
  color: #1a1d23;
}
[data-theme="light"] .hero-stat-label {
  color: rgba(75, 85, 99, 0.7);
}

/* Hero map tooltip */
[data-theme="light"] .hero-map-tooltip {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: var(--border) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 32px rgba(0, 168, 158, 0.06) !important;
  color: #1a1d23 !important;
}
[data-theme="light"] .hero-map-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.96) !important;
}
[data-theme="light"] .hero-map-tooltip .hmt-name {
  color: #1a1d23;
}
[data-theme="light"] .hero-map-tooltip .hmt-meta {
  color: #57606a;
}
[data-theme="light"] .hero-map-tooltip .hmt-addr {
  color: #8b949e;
}

/* Marquee */
[data-theme="light"] .marquee-section {
  border-color: var(--border);
  background: var(--bg-main);
}

/* Sections */
[data-theme="light"] .section-dark {
  background: var(--bg-surface);
}

/* Pipe steps */
[data-theme="light"] .pipe-step:hover {
  border-color: rgba(0, 0, 0, 0.1);
  background: var(--bg-elevated);
}
[data-theme="light"] .pipe-step::before {
  background: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.02), transparent 70%);
}

/* Bento cards */
[data-theme="light"] .bento-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--glass-border);
}
[data-theme="light"] .bento-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* Pricing */
[data-theme="light"] .pricing-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .pricing-popular {
  background: linear-gradient(180deg, rgba(0, 168, 158, 0.04), var(--bg-card) 30%);
}

/* FAQ */
[data-theme="light"] .faq-item:hover {
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .faq-item.active .faq-icon {
  color: #fff;
}

/* CTA */
[data-theme="light"] .cta-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

/* Footer */
[data-theme="light"] .footer {
  background: var(--bg-main);
}
[data-theme="light"] .footer-bottom {
  border-top-color: var(--border);
}

/* Auth */
[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .auth-footer {
  border-top-color: var(--border);
}
[data-theme="light"] .auth-demo {
  border-top-color: var(--border);
}

/* Forms */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border);
}
[data-theme="light"] .form-group input:hover,
[data-theme="light"] .form-group select:hover,
[data-theme="light"] .form-group textarea:hover {
  border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #fff;
  border-color: var(--accent);
}
[data-theme="light"] .demo-btn {
  background: rgba(255, 255, 255, 0.6);
}

/* Notification dropdown */
[data-theme="light"] .notif-dropdown {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .notif-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .notif-item.unread {
  background: rgba(0, 168, 158, 0.05);
}

/* Marketplace cards */
[data-theme="light"] .mp-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .mp-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mp-card-head {
  background: linear-gradient(135deg, rgba(0, 168, 158, 0.04), rgba(59, 130, 246, 0.03));
}

/* Cart */
[data-theme="light"] .cart-item {
  border-bottom-color: var(--border);
}
[data-theme="light"] .cart-item:hover {
  background: rgba(0, 0, 0, 0.01);
}
[data-theme="light"] .cart-item-remove:hover {
  background: rgba(244, 63, 94, 0.08);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-main);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c0c6cc;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #a0a8b0;
}

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(0, 168, 158, 0.2);
  color: #1a1d23;
}

/* Side pill */
[data-theme="light"] .side-pill-hint {
  background: #fff;
  border-color: var(--accent);
  color: var(--text-primary);
}
[data-theme="light"] .side-pill-label {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

/* Toast */
[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Scroll-to-top */
[data-theme="light"] .scroll-top-btn {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .scroll-top-btn:hover {
  color: #fff;
}

/* Grid bg */
[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Legal pages */
[data-theme="light"] .legal-content h2 {
  border-bottom-color: var(--border);
}

/* Checkout */
[data-theme="light"] .checkout-item {
  border-bottom-color: var(--border);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
}

/* Selection highlight */
::selection {
  background: rgba(0, 212, 200, 0.25);
  color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons reset */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Images */
img {
  display: block;
  max-width: 100%;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* Form elements inherit font */
input,
textarea,
select {
  font-family: inherit;
}


/* ============================================================
   3. KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes chatPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes chatDotBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes chatScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 200, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 200, 0.25);
  }
}


/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}


/* ============================================================
   5. REVEAL (scroll-triggered entrance)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

.reveal.visible,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   6. GRADIENT TEXT
   ============================================================ */
.grad-text {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #00a8ff 40%,
    var(--purple) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* ============================================================
   7. GRID BACKGROUND
   ============================================================ */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}


/* ============================================================
   8. BUTTONS
   ============================================================ */

/* -- Shared base for primary (.btn-a) and ghost (.btn-g) -- */
.btn-a,
.btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn-a:focus-visible,
.btn-g:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* -- Primary button (.btn-a) -- */
.btn-a {
  background: var(--accent);
  color: var(--bg-main);
  transition: box-shadow 0.25s ease;
}

.btn-a:hover {
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.5), 0 0 40px rgba(0, 212, 200, 0.2);
}

.btn-a:active {
  box-shadow: 0 0 8px rgba(0, 212, 200, 0.3);
}

/* -- Ghost button (.btn-g) -- */
.btn-g {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.btn-g:hover {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.06);
}

.btn-g:active {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* -- Size modifiers -- */
.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* -- Button icon transitions -- */
.btn-a svg,
.btn-g svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-a:hover svg,
.btn-g:hover svg {
  transform: translateX(3px);
}


/* ============================================================
   9. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(6, 8, 13, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 49, 66, 0.4);
  transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(6, 8, 13, 0.92);
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(42, 49, 66, 0.6);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* -- Logo -- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-icon {
  font-size: 26px;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* -- Desktop links -- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* AI Navigator highlight link */
.nav-link-explore {
  color: var(--accent) !important;
  font-weight: 600;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px !important;
  font-size: 12px;
}
.nav-link-explore:hover {
  background: var(--accent-glow);
  color: var(--accent-hover) !important;
}
.nav-link-explore::after { display: none !important; }

.mob-link-explore {
  color: var(--accent) !important;
  font-weight: 600;
}

/* -- Actions area (cart, user) -- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-actions .btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.nav-actions .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language switcher (button group) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bd);
  border-radius: 10px;
}
.lang-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 5px 8px;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--t2);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--t1);
}
.lang-btn.active {
  background: rgba(0,212,200,0.18);
  color: #00e6d8;
  box-shadow: 0 0 0 1px rgba(0,212,200,0.3);
}

.cart-link {
  position: relative;
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: box-shadow 0.25s ease;
}

.cart-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

/* Notification bell */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: var(--accent, #00d4c8);
  color: var(--bg, #06080d);
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-pill, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.4);
}
@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(340px, calc(100vw - 32px));
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg2, #0d1117);
  border: 1px solid var(--border, #2a3142);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  padding: 8px 0;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #2a3142);
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e6edf3);
}
.notif-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.notif-dropdown-header button {
  background: none;
  border: none;
  color: var(--accent, #00d4c8);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
#notif-clear-all {
  color: #f43f5e;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { background: rgba(0, 212, 200, 0.06); }
.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.notif-item-icon.order { background: rgba(59, 130, 246, 0.15); }
.notif-item-icon.booking { background: rgba(16, 185, 129, 0.15); }
.notif-item-icon.review { background: rgba(244, 63, 94, 0.15); }
.notif-item-icon.payment { background: rgba(245, 158, 11, 0.15); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e6edf3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-msg {
  font-size: 12px;
  color: var(--text2, #8b949e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-time {
  font-size: 10px;
  color: var(--text2, #8b949e);
  margin-top: 2px;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text2, #8b949e);
  font-size: 13px;
}

.fav-link {
  position: relative;
  font-size: 18px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.fav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fav-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: var(--accent, #00d4c8);
  color: #06080d;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.4);
}

/* -- Authenticated user chip -- */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease;
}

.nav-user:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-user-name {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.logout-btn {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.logout-btn:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

/* Override .btn-a styles for logout button in nav */
.nav-actions .logout-btn.btn-a {
  background: #1a1d23;
  color: #e6edf3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.nav-actions .logout-btn.btn-a:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .nav-actions .logout-btn.btn-a {
  background: #1a1d23;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .nav-actions .logout-btn.btn-a:hover {
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
}

/* -- Mobile toggle hamburger -- */
.mob-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.mob-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mob-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.mob-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mob-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mob-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -- Mobile slide-down menu -- */
.mob-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(6, 8, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}

.mob-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mob-link {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.mob-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding-left: 24px;
}


/* ============================================================
   10. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* ---- Hero Map (Leaflet background) ---- */
#hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(6,8,13,0.82) 0%, rgba(6,8,13,0.5) 45%, rgba(6,8,13,0.35) 100%);
  pointer-events: none;
}

/* Decorative glow orbs — static, no animation for perf */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-glow--teal {
  width: 600px; height: 600px;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,212,200,0.10) 0%, transparent 70%);
}
.hero-glow--blue {
  width: 500px; height: 500px;
  bottom: -5%; right: -5%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
}
.hero-glow--accent {
  width: 300px; height: 300px;
  top: 30%; left: 10%;
  background: radial-gradient(circle, rgba(0,212,200,0.05) 0%, transparent 70%);
}

/* Hero map markers */
.hero-marker-wrap {
  background: none !important;
  border: none !important;
}
.hero-marker {
  width: 16px;
  height: 16px;
  background: var(--accent, #00d4c8);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(0, 212, 200, 0.8),
    0 0 30px rgba(0, 212, 200, 0.4),
    0 0 60px rgba(0, 212, 200, 0.15);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
}
.hero-marker::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(0, 212, 200, 0.3);
  border-radius: 50%;
  /* animation removed for perf */
}
.hero-marker:hover {
  transform: scale(2);
  box-shadow:
    0 0 24px rgba(0, 212, 200, 1),
    0 0 60px rgba(0, 212, 200, 0.5),
    0 0 100px rgba(0, 212, 200, 0.2);
}
@keyframes heroMarkerPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

/* Hero map tooltip */
.hero-map-tooltip {
  background: rgba(10, 14, 20, 0.95) !important;
  border: 1px solid rgba(0, 212, 200, 0.2) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.7),
    0 0 32px rgba(0, 212, 200, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
  color: #e6edf3 !important;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  max-width: 250px;
  pointer-events: none;
}
.hero-map-tooltip::before {
  border-top-color: rgba(10, 14, 20, 0.95) !important;
}
.hero-map-tooltip .hmt-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}
.hero-map-tooltip .hmt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 4px;
}
.hero-map-tooltip .hmt-rating {
  color: #f59e0b;
  font-weight: 600;
}
.hero-map-tooltip .hmt-addr {
  font-size: 11px;
  color: #6b7580;
}

/* Hide all Leaflet controls on hero map */
#hero-map .leaflet-control-container { display: none !important; }
#hero-map .leaflet-bottom,
#hero-map .leaflet-top { display: none !important; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  pointer-events: none;
}
.hero-content a,
.hero-content button,
.hero-content input,
.hero-content .hero-stats {
  pointer-events: auto;
}

/* -- Hero badge pill -- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 14px;
  background: rgba(0, 212, 200, 0.06);
  border: 1px solid rgba(0, 212, 200, 0.18);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  animation: fadeUp 0.6s var(--ease-out) both;
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.06);
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-badge-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* -- Hero headline -- */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 900;
  line-height: 1.04;
  max-width: 860px;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease-out) 0.08s both;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 40%, var(--accent, #00d4c8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(180, 190, 205, 0.85);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 52px;
  animation: fadeUp 0.7s var(--ease-out) 0.16s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s var(--ease-out) 0.24s both;
}

/* -- Hero stats row -- */
.hero-stats {
  display: flex;
  gap: 1px;
  background: rgba(0, 212, 200, 0.08);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 80px;
  animation: fadeUp 0.7s var(--ease-out) 0.4s both;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 200, 0.04);
}

.hero-stat {
  padding: 28px 48px;
  background: rgba(13, 17, 23, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}

.hero-stat:hover {
  background: rgba(0, 212, 200, 0.06);
  box-shadow: 0 12px 32px rgba(0, 212, 200, 0.15);
}
.hero-stat:hover .hero-stat-num {
  color: var(--accent, #00d4c8);
  text-shadow: 0 0 20px rgba(0, 212, 200, 0.4);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  transition: color 0.3s, text-shadow 0.3s;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(180, 190, 205, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.counter {
  display: inline-block;
  font-family: var(--font-mono);
}

/* ============================================================
   11. SECTIONS
   ============================================================ */
.section {
  padding: 100px 24px;
  position: relative;
}

.section-dark {
  background: var(--bg-surface);
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 60px;
}


/* ============================================================
   12. MARQUEE
   ============================================================ */
.marquee-section {
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-main);
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-main), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-main), transparent);
}

.marquee-track {
  display: flex;
  gap: 36px;
  align-items: center;
  animation: marqueeScroll 50s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: var(--text-secondary);
}

.marquee-dot {
  color: var(--accent);
  font-size: 8px;
  opacity: 0.5;
  flex-shrink: 0;
}


/* ============================================================
   13. PIPELINE (How-it-works steps)
   ============================================================ */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pipe-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
}

/* Light-glow overlay on hover */
.pipe-step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.02), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Colour accent bar at top */
.pipe-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pipe-step:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.pipe-step:hover::before {
  opacity: 1;
}

.pipe-step:hover::after {
  opacity: 1;
}

/* Per-step accent colours */
.pipe-step:nth-child(1)::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.pipe-step:nth-child(2)::after {
  background: linear-gradient(90deg, var(--blue), transparent);
}

.pipe-step:nth-child(3)::after {
  background: linear-gradient(90deg, var(--purple), transparent);
}

.pipe-step:nth-child(4)::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.pipe-step:nth-child(5)::after {
  background: linear-gradient(90deg, var(--green), transparent);
}

/* Step number badge */
.pipe-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.pipe-step:nth-child(1) .pipe-num {
  background: rgba(0, 212, 200, 0.1);
  color: var(--accent);
  border: 1.5px solid rgba(0, 212, 200, 0.25);
}

.pipe-step:nth-child(2) .pipe-num {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
}

.pipe-step:nth-child(3) .pipe-num {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  border: 1.5px solid rgba(167, 139, 250, 0.25);
}

.pipe-step:nth-child(4) .pipe-num {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
}

.pipe-step:nth-child(5) .pipe-num {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
}

.pipe-step:hover .pipe-num {
  transform: scale(1.1);
}

.pipe-icon {
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1;
}

.pipe-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.pipe-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   14. BENTO GRID (Feature cards)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Top-edge gradient line on hover */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(0, 212, 200, 0.2) 50%, transparent 90%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Subtle radial glow on hover */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 30% 0%, rgba(0, 212, 200, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bento-card:hover::before,
.bento-card:hover::after {
  opacity: 1;
}

.bento-lg {
  grid-column: span 2;
}

.bento-icon {
  font-size: 28px;
  margin-bottom: 22px;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
}

.bento-card:hover .bento-icon {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.15);
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ============================================================
   15. PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.02), transparent 60%);
  pointer-events: none;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Popular / featured tier */
.pricing-popular {
  border-color: var(--border-accent);
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 20px 60px rgba(0, 212, 200, 0.08);
  background: linear-gradient(180deg, rgba(0, 212, 200, 0.03), var(--bg-card) 30%);
  position: relative;
  z-index: 1;
}

/* Gradient border ring on popular card */
.pricing-popular::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 212, 200, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-popular:hover {
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 20px 60px rgba(0, 212, 200, 0.12);
}

.pricing-badge {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  font-weight: 700;
}


/* ============================================================
   16. FAQ (Accordion)
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-item.active {
  border-color: var(--border-accent);
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 4px 24px rgba(0, 212, 200, 0.06);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.3s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-out);
  line-height: 1;
}

.faq-item.active .faq-icon {
  background: var(--accent);
  color: var(--bg-main);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(0, 212, 200, 0.3);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-item.active .faq-a {
  max-height: 400px;
}

.faq-a p {
  padding: 0 24px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.85;
}


/* ============================================================
   17. CTA (Call-to-Action card)
   ============================================================ */
.cta-section {
  /* wrapper -- no extra styles needed */
}

.cta-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* Gradient border ring */
.cta-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(0, 212, 200, 0.15),
    transparent 40%,
    transparent 60%,
    rgba(59, 130, 246, 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  position: relative;
}

/* Accent glow line on top edge */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 200, 0.15), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 3px 0;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-powered {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.15);
  color: #0088cc;
  transition: all 0.3s ease;
}

.footer-tg:hover {
  background: #0088cc;
  color: #fff;
  transform: scale(1.1);
}


/* ============================================================
   19. AUTH PAGES (Login / Register)
   ============================================================ */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}

/* Background glow */
.auth-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 200, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Glass card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Gradient border ring */
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 212, 200, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo {
  font-size: 44px;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.auth-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 49, 66, 0.5);
}

.auth-footer p {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Demo accounts section */
.auth-demo {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  text-align: center;
}

.auth-demo p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.demo-accounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-btn {
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.demo-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-subtle);
  box-shadow: 0 4px 12px rgba(0, 212, 200, 0.1);
}


/* Social login */
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 20px;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(42, 49, 66, 0.5);
}

.auth-social-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.auth-social-btns {
  display: flex;
  gap: 10px;
}

.auth-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.auth-social-btn:hover {
  border-color: rgba(0, 212, 200, 0.2);
  color: var(--text-primary);
  background: rgba(0, 212, 200, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-social-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   20. FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group label svg {
  flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  line-height: 1.5;
}

/* Override Chrome autofill yellow background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 8, 13, 0.9) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  border-color: var(--border);
  caret-color: var(--text-primary);
}
[data-theme="light"] .form-group input:-webkit-autofill,
[data-theme="light"] .form-group input:-webkit-autofill:hover,
[data-theme="light"] .form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(0, 212, 200, 0.1),
    0 0 20px rgba(0, 212, 200, 0.05);
  background: rgba(6, 8, 13, 0.8);
}

/* Custom select arrow */
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b949e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* Error states */
.field-error {
  display: block;
  font-size: 12px;
  color: var(--rose);
  margin-top: 6px;
  min-height: 0;
  transition: all 0.25s ease;
  font-weight: 500;
}

.form-error {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--rose);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.5;
}

/* Password toggle */
.pass-wrap {
  position: relative !important;
  display: block !important;
  width: 100%;
}

.pass-wrap input {
  width: 100%;
  padding-right: 48px !important;
}

.pass-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px;
  height: 24px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.pass-toggle:hover {
  opacity: 1;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   21. PAGE TITLE
   ============================================================ */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 36px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}


/* ============================================================
   22. LEGAL (Terms, Privacy, etc.)
   ============================================================ */
.legal-section {
  padding-top: 140px;
}

.legal-content {
  max-width: 100%;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 49, 66, 0.3);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
}

.legal-content a {
  color: var(--accent);
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.legal-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-style: italic;
}


/* ============================================================
   23. SIDE PILL (Chat + Telegram launcher)
   ============================================================ */
.side-pill {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* The clickable side tab */
.side-pill-line {
  width: 10px;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--accent, #00d4c8), #0088cc);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: -3px 0 18px rgba(0, 212, 200, 0.3);
  /* animation removed for perf */
}

.side-pill-line:hover {
  width: 14px;
  box-shadow: -4px 0 28px rgba(0, 212, 200, 0.5);
}

@keyframes sidePillGlow {
  0%, 100% { box-shadow: -3px 0 18px rgba(0, 212, 200, 0.3); }
  50% { box-shadow: -5px 0 28px rgba(0, 212, 200, 0.55); }
}

.side-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

/* Tooltip hint on first visit */
.side-pill-hint {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg2, #0d1117);
  border: 1px solid var(--accent, #00d4c8);
  color: var(--text, #e6edf3);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: sidePillHint 6s ease-in-out 2s 3;
  box-shadow: 0 4px 20px rgba(0, 212, 200, 0.2);
}

.side-pill-hint::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--accent, #00d4c8);
}

@keyframes sidePillHint {
  0%, 100% { opacity: 0; transform: translateY(-50%) translateX(8px); }
  10%, 80% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Menu - hidden by default */
.side-pill-menu {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.7) translateX(10px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.side-pill.open .side-pill-menu {
  transform: translateY(-50%) scale(1) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-pill.open .side-pill-line {
  opacity: 0.2;
  animation: none;
}

.side-pill.open .side-pill-hint {
  display: none;
}

/* Menu buttons */
.side-pill-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.side-pill-btn:hover {
  transform: scale(1.12);
}

.side-pill-chat {
  background: linear-gradient(135deg, var(--accent, #00d4c8), #009e95);
  color: #fff;
}

.side-pill-chat:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 200, 0.5);
}

.side-pill-tg {
  background: linear-gradient(135deg, #0088cc, #00aaee);
  color: #fff;
}

.side-pill-tg:hover {
  box-shadow: 0 6px 28px rgba(0, 136, 204, 0.5);
}

/* Labels next to buttons */
.side-pill-label {
  position: absolute;
  right: 56px;
  background: var(--bg2, #0d1117);
  border: 1px solid var(--border, #2a3142);
  color: var(--text, #e6edf3);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.side-pill-btn:hover .side-pill-label {
  opacity: 1;
  transform: translateX(0);
}

/* Hide old classes if any remain */
.tg-float, .chat-float, .chat-float-pulse {
  display: none !important;
}


/* ============================================================
   24. TOAST (Notifications)
   ============================================================ */
#toast-container,
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

#toast-container .toast,
.toast-container .toast,
.toast {
  padding: 14px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 200, 0.1);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.4s var(--ease-out) forwards;
}


/* ============================================================
   25. MARKETPLACE CARDS
   ============================================================ */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.mp-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  text-decoration: none;
  position: relative;
}

/* Gradient border on hover */
.mp-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 212, 200, 0.15), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mp-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 212, 200, 0.05);
}

.mp-card:hover::after {
  opacity: 1;
}

/* Card header / icon area */
.mp-card-head {
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 200, 0.04),
    rgba(59, 130, 246, 0.03)
  );
}

.mp-card-icon {
  font-size: 40px;
  transition: transform 0.4s var(--ease-spring);
}

.mp-card:hover .mp-card-icon {
  transform: scale(1.15);
}

/* Badges */
.mp-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-badge-top {
  background: linear-gradient(135deg, var(--gold), #f5c842);
  color: var(--bg-main);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.mp-badge-new {
  background: linear-gradient(135deg, var(--green), #34d399);
  color: var(--bg-main);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mp-badge-ai {
  background: linear-gradient(135deg, var(--purple), #c4b5fd);
  color: #fff;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
}

/* Card body */
.mp-card-body {
  padding: 22px 24px 26px;
}

.mp-card-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.mp-card:hover .mp-card-name {
  color: var(--accent);
}

.mp-card-addr {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mp-card-rating {
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-mono);
}

.mp-card-reviews {
  font-size: 12px;
  color: var(--text-muted);
}

.mp-card-hours {
  font-weight: 500;
  font-size: 12px;
}

.mp-card-hours.open {
  color: var(--green);
}

.mp-card-hours.closed {
  color: var(--rose);
}

/* Tags / chips */
.mp-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.mp-tag {
  padding: 4px 12px;
  background: rgba(0, 212, 200, 0.06);
  border: 1px solid rgba(0, 212, 200, 0.12);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  transition: all 0.2s ease;
}

.mp-tag:hover {
  background: rgba(0, 212, 200, 0.1);
  border-color: rgba(0, 212, 200, 0.2);
}


/* ============================================================
   26. MARKETPLACE HERO
   ============================================================ */
.mp-hero {
  padding: 140px 24px 64px;
  text-align: center;
  position: relative;
}

.mp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 200, 0.05), transparent 70%);
  pointer-events: none;
}

.mp-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.mp-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}


/* ============================================================
   27. MARKETPLACE TOOLBAR (Search, Sort, Categories)
   ============================================================ */
.mp-section {
  padding: 0 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.mp-toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  align-items: stretch;
}

.mp-search-wrap {
  flex: 1;
  position: relative;
}

.mp-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
}

.mp-search {
  width: 100%;
  padding: 13px 16px 13px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.mp-search:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.mp-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.08);
}

.mp-search::placeholder {
  color: var(--text-muted);
}

/* Sort dropdown */
.mp-sort {
  padding: 13px 44px 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b949e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.mp-sort:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.mp-sort:focus {
  border-color: var(--accent);
}

/* Category filter buttons */
.mp-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.mp-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  white-space: nowrap;
}

.mp-cat-btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.mp-cat-btn.active {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 200, 0.08);
}

.mp-cat-icon {
  font-size: 15px;
  line-height: 1;
}

.mp-cat-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.5;
  font-family: var(--font-mono);
}

.mp-results-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 500;
}


/* ============================================================
   28. MARKETPLACE EMPTY STATE + PAGINATION
   ============================================================ */
.mp-empty {
  text-align: center;
  padding: 80px 24px;
}

.mp-empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.mp-empty h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mp-empty p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Pagination */
.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 16px 0;
}

.mp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.mp-page-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.mp-page-btn.active {
  background: var(--accent);
  color: var(--bg-main);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 212, 200, 0.25);
}

.mp-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mp-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 42px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 2px;
}


/* ============================================================
   29. SKELETON LOADING
   ============================================================ */
.mp-card--skeleton {
  pointer-events: none;
}

.mp-card--skeleton .mp-card-head,
.mp-skeleton-block {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-elevated) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  min-height: 140px;
}

.mp-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-elevated) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
  margin-bottom: 10px;
}

.mp-skeleton-line--title {
  width: 70%;
  height: 18px;
}

.mp-skeleton-line--addr {
  width: 90%;
}

.mp-skeleton-line--meta {
  width: 50%;
}


/* ============================================================
   30. CART PAGE
   ============================================================ */
.cart-section {
  padding-top: 140px;
  padding-bottom: 80px;
}

.cart-content {
  min-height: 200px;
}

.cart-container,
.cart-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Business group card */
.cart-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.cart-group:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.cart-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.cart-group-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-group-subtotal {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.cart-group-items {
  padding: 8px 0;
}

/* Individual cart item row */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(42, 49, 66, 0.4);
  transition: background 0.2s ease;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.01);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  display: block;
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Quantity controls */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.cart-qty-btn:hover {
  background: var(--accent);
  color: var(--bg-main);
  border-color: var(--accent);
  transform: scale(1.05);
}

.cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-subtotal {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose);
  transform: scale(1.05);
}

/* Cart footer / total */
.cart-footer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 22px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-total-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.cart-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cart-clear-btn {
  padding: 11px 22px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-clear-btn:hover {
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.06);
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 30px;
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg-main);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease-out), color 0.3s var(--ease-out);
  border: none;
  cursor: pointer;
}

.cart-checkout-btn:hover {
  box-shadow: 0 8px 28px rgba(0, 212, 200, 0.3);
  color: var(--bg-main);
}

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty-icon {
  font-size: 68px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.cart-empty-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cart-empty-text {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
}

.cart-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg-main);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.cart-empty-link:hover {
  box-shadow: 0 8px 28px rgba(0, 212, 200, 0.3);
  color: var(--bg-main);
}

/* ============================================================
   31. CHECKOUT
   ============================================================ */
.checkout-section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.checkout-form {
  max-width: 600px;
}

.checkout-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.checkout-group {
  margin-bottom: 20px;
}

.checkout-group-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.checkout-items {
  list-style: none;
  padding: 0;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px dashed rgba(42, 49, 66, 0.4);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.checkout-success {
  text-align: center;
  padding: 80px 24px;
}

.checkout-success-icon {
  font-size: 72px;
  color: var(--green);
  margin-bottom: 20px;
  display: block;
}

.checkout-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 20px;
}


/* ============================================================
   32. STARS (Rating display)
   ============================================================ */
.star {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.star.filled {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}


/* ============================================================
   33. REVIEW CARD
   ============================================================ */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.review-meta {
  flex: 1;
}

.review-author {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-stars {
  font-size: 14px;
  margin-bottom: 6px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.reviews-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* -- Owner response to review -- */
.review-owner-response {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(0, 212, 200, 0.04);
  border-left: 3px solid var(--accent, #00d4c8);
  border-radius: 0 8px 8px 0;
}
.review-owner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #00d4c8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.review-owner-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary, #8b949e);
  margin: 0;
}
.review-owner-date {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted, #484f58);
}


/* ============================================================
   34. MP-CARD-REVIEWS
   ============================================================ */
/* Reviews on marketplace cards -- styles defined in section 25 */


/* ============================================================
   35. CHAT WIDGET
   ============================================================ */

/* -- Old float buttons hidden (replaced by side-pill) -- */

/* -- Chat window (glassmorphism) -- */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 901;
  width: 400px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  display: none;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(42, 49, 66, 0.6);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 212, 200, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  opacity: 0;
}

.chat-window.active,
.chat-window.open {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* -- Chat header -- */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 200, 0.08),
    rgba(0, 212, 200, 0.02)
  );
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-icon {
  font-size: 30px;
  line-height: 1;
}

.chat-header-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.chat-header-sub {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.chat-header-sub::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.chat-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* -- Messages area -- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* -- Message bubbles -- */
.chat-msg {
  max-width: 85%;
  padding: 13px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
  animation: chatScaleIn 0.3s var(--ease-out);
  word-break: break-word;
}

.chat-msg-user {
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg-main);
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 16px rgba(0, 212, 200, 0.2);
}

.chat-msg-bot {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--border);
}

.chat-msg-bot strong {
  color: var(--text-primary);
}

.chat-msg-bot a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-msg-bot a:hover {
  color: var(--accent-hover);
}

/* -- Typing indicator -- */
.chat-typing {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.chat-typing .dot {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: chatDotBounce 1.4s infinite;
}

.chat-typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* -- Quick-reply buttons -- */
.chat-quick-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 20px 6px;
}

.chat-quick-btn {
  padding: 8px 16px;
  background: rgba(0, 212, 200, 0.08);
  border: 1px solid rgba(0, 212, 200, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: rgba(0, 212, 200, 0.16);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 212, 200, 0.15);
}

/* -- Suggestion chips (after bot reply) -- */
.chat-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}
.chat-suggestion-chip {
  padding: 6px 14px;
  background: rgba(0, 212, 200, 0.06);
  border: 1px solid rgba(0, 212, 200, 0.18);
  border-radius: 100px;
  color: var(--accent, #00d4c8);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.chat-suggestion-chip:hover {
  background: rgba(0, 212, 200, 0.14);
  border-color: var(--accent, #00d4c8);
}

/* -- Input bar -- */
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  background: rgba(0, 0, 0, 0.12);
}

.chat-input {
  flex: 1;
  padding: 11px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 200, 0.1);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #009e95);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: box-shadow 0.3s var(--ease-out);
  flex-shrink: 0;
  color: var(--bg-main);
  font-size: 17px;
}

.chat-send:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 200, 0.35);
}

.chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}


/* ============================================================
   36. UTILITY CLASSES
   ============================================================ */
.btn {
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--accent);
  color: var(--bg-main);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.5), 0 0 40px rgba(0, 212, 200, 0.2);
  color: var(--bg-main);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.btn-secondary:hover {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12), 0 0 40px rgba(255, 255, 255, 0.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--t1, #e6edf3);
  border: 1px solid var(--bd, #2a3142);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--ac, #00d4c8);
  color: var(--ac, #00d4c8);
}
[data-theme="light"] .btn-outline {
  color: var(--t1);
  border-color: var(--bd);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--ac);
  color: var(--ac);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--t2, #8b949e);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--t1, #e6edf3);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  color: var(--t1);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
}


/* ============================================================
   37. FAVORITES
   ============================================================ */
.favorites-section {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 60vh;
}


/* ============================================================
   38. RESPONSIVE
   ============================================================ */

/* ---- Tablet landscape (1024px) ---- */
@media (max-width: 1024px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .bento-lg {
    grid-column: span 2;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: span 1;
  }

  .mp-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ---- Tablet portrait (768px) ---- */
@media (max-width: 768px) {
  .nav {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mob-toggle {
    display: flex;
  }

  .mob-menu {
    top: 64px;
  }

  /* Ensure min touch targets on mobile */
  .btn-sm {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .hero {
    padding: 120px 20px 80px;
    min-height: auto;
  }

  .hero-stats {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    margin-top: 56px;
  }

  .hero-stat {
    flex: 1;
    min-width: 130px;
    padding: 22px 24px;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 52px);
  }

  .section {
    padding: 80px 20px;
  }

  .section-head {
    margin-bottom: 56px;
  }

  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-lg {
    grid-column: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .cta-card {
    padding: 48px 28px;
    border-radius: var(--radius-lg);
  }

  .auth-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
  }

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

  .mp-toolbar {
    flex-direction: column;
  }

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

  .mp-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .mp-cats::-webkit-scrollbar {
    display: none;
  }

  /* ── Side pill → bottom-right FAB on mobile ── */
  .side-pill {
    top: auto;
    bottom: 24px;
    right: 14px;
    transform: none;
  }
  .side-pill-line {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    flex-direction: row;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), -2px 0 12px rgba(0, 212, 200, 0.15);
  }
  .side-pill-line:hover {
    width: 48px;
  }
  .side-pill-hint { display: none !important; }
  .side-pill-menu {
    right: 0;
    top: auto;
    bottom: 60px;
    transform: translateY(10px) scale(0.7);
    transform-origin: bottom right;
  }
  .side-pill.open .side-pill-menu {
    transform: translateY(0) scale(1);
  }
  .side-pill-btn {
    width: 44px;
    height: 44px;
  }
  .side-pill-label { display: none !important; }

  /* ── Chat window full-screen on mobile ── */
  .chat-window {
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    transform-origin: bottom right;
    z-index: 9999;
  }
}

/* ---- Mobile (480px) ---- */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero {
    padding: 110px 16px 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 6px;
  }

  .hero-stat {
    min-width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn-a,
  .hero-btns .btn-g {
    width: 100%;
    justify-content: center;
  }

  .hero-sub {
    margin-bottom: 36px;
  }

  .section {
    padding: 64px 16px;
  }

  .section-head {
    margin-bottom: 40px;
  }

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

  .pipe-step {
    padding: 24px 18px 22px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-btns {
    flex-direction: column;
  }

  .cta-btns .btn-a,
  .cta-btns .btn-g {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .demo-accounts {
    flex-direction: column;
  }

  .auth-card {
    padding: 32px 20px;
  }

  .mp-hero {
    padding: 120px 16px 48px;
  }

  .mp-section {
    padding: 0 16px 64px;
  }

  .cart-section {
    padding-top: 120px;
  }

  .cart-group-header {
    padding: 14px 16px;
  }

  .cart-item {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .cart-footer {
    padding: 20px;
  }

  .cart-actions {
    flex-direction: column;
  }

  .cart-clear-btn,
  .cart-checkout-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }

  .container-sm {
    padding: 0 16px;
  }

  .side-pill {
    bottom: 16px;
    right: 10px;
  }
  .side-pill-line {
    width: 42px;
    height: 42px;
  }
  .side-pill-btn {
    width: 38px;
    height: 38px;
  }
  .side-pill-btn svg {
    width: 18px;
    height: 18px;
  }
}


/* ============================================================
   PREMIUM MICRO-INTERACTIONS & ANIMATIONS
   ============================================================ */

/* ---- Staggered card reveal ---- */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.mp-grid .mp-card { animation: cardReveal 0.5s var(--ease-out) both; }
.mp-grid .mp-card:nth-child(1)  { animation-delay: 0.02s; }
.mp-grid .mp-card:nth-child(2)  { animation-delay: 0.06s; }
.mp-grid .mp-card:nth-child(3)  { animation-delay: 0.10s; }
.mp-grid .mp-card:nth-child(4)  { animation-delay: 0.14s; }
.mp-grid .mp-card:nth-child(5)  { animation-delay: 0.18s; }
.mp-grid .mp-card:nth-child(6)  { animation-delay: 0.22s; }
.mp-grid .mp-card:nth-child(7)  { animation-delay: 0.26s; }
.mp-grid .mp-card:nth-child(8)  { animation-delay: 0.30s; }
.mp-grid .mp-card:nth-child(9)  { animation-delay: 0.34s; }
.mp-grid .mp-card:nth-child(10) { animation-delay: 0.38s; }
.mp-grid .mp-card:nth-child(11) { animation-delay: 0.42s; }
.mp-grid .mp-card:nth-child(12) { animation-delay: 0.46s; }

/* ---- Button press feedback ---- */
@keyframes btnPress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn:active,
.mp-cat-btn:active,
.settings-btn:active,
.cta-btn:active {
  animation: btnPress 0.15s var(--ease-spring);
}

/* ---- Glowing focus rings ---- */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.12), 0 0 20px rgba(0, 212, 200, 0.06) !important;
  outline: none;
}

/* ---- Toast slide-in ---- */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    filter: blur(4px);
  }
}

.toast {
  animation: toastSlideIn 0.4s var(--ease-spring) both;
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s var(--ease-smooth) both;
}

/* ---- Magnetic hover glow for cards ---- */
.mp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 212, 200, 0.04) 0%,
    transparent 60%
  );
}

.mp-card:hover::after {
  opacity: 1;
}

/* ---- Smooth page transitions ---- */
@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main,
.mp-section,
.biz-page,
.settings-section,
.cart-section {
  animation: pageSlideIn 0.4s var(--ease-out) both;
}

/* ---- Pulsing badge attention ---- */
@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 200, 0.4);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(0, 212, 200, 0.15);
  }
}

.mp-badge-top {
  /* animation removed for perf */
}

/* ---- Favorite button heart bounce ---- */
@keyframes heartBounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(0.95); }
  75%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.mp-fav-btn.active svg {
  animation: heartBounce 0.5s var(--ease-spring);
  fill: var(--rose);
  stroke: var(--rose);
}

.mp-fav-btn:hover {
  background: rgba(244, 63, 94, 0.3) !important;
  transform: scale(1.1);
  transition: all 0.2s var(--ease-spring);
}

/* ---- Rating stars shimmer ---- */
@keyframes starGlint {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.4); }
}

.mp-card-rating svg {
  /* animation removed for perf */
}

/* ---- Hero title gradient text animation ---- */
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.grad-text,
.hero-title span,
.mp-hero-title span {
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--accent), #00ebe0);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* animation removed for perf */
}

/* ---- Smooth section reveals on scroll ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navbar glass effect enhancement ---- */
.nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ---- Link underline animation ---- */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* ---- Tooltip styling ---- */
[title] {
  position: relative;
}

/* ---- Category button hover morph ---- */
.mp-cat-btn {
  transition: all 0.25s var(--ease-spring);
}

.mp-cat-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mp-cat-btn.active {
  box-shadow: 0 4px 20px rgba(0, 212, 200, 0.15);
}

/* ---- Scrollbar micro-interaction ---- */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 200, 0.3);
}

/* ---- Reduce motion for accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   UI/UX IMPROVEMENTS
   ========================================================== */

/* ---- 1. Universal focus-visible states ---- */
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.mp-cat-btn:focus-visible,
.nav-link:focus-visible,
.lang-switch:focus-visible {
  outline: 2px solid var(--accent, #00d4c8);
  outline-offset: 2px;
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent, #00d4c8);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---- 2. Scroll-to-top button ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card, #161b22);
  border: 1px solid var(--border, #2a3142);
  color: var(--accent, #00d4c8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: background 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), color 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), border-color 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent, #00d4c8);
  color: #06080d;
  border-color: var(--accent, #00d4c8);
  box-shadow: 0 8px 24px rgba(0, 212, 200, 0.3);
}

.scroll-top-btn:active {
  transform: scale(0.92);
}

/* ---- 3. Skeleton loaders ---- */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card, #161b22) 25%,
    var(--bg-elevated, #1c2332) 50%,
    var(--bg-card, #161b22) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: var(--radius-card, 16px);
  border: 1px solid var(--border, #2a3142);
  overflow: hidden;
  background: var(--bg-card, #161b22);
}

.skeleton-card .skeleton-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(90deg,
    #161b22 25%, #1c2332 50%, #161b22 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-body {
  padding: 16px;
}

.skeleton-card .skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    #161b22 25%, #1c2332 50%, #161b22 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-line:nth-child(1) { width: 70%; animation-delay: 0s; }
.skeleton-card .skeleton-line:nth-child(2) { width: 90%; animation-delay: 0.1s; }
.skeleton-card .skeleton-line:nth-child(3) { width: 50%; animation-delay: 0.2s; }

/* ---- 4. Improved mobile tap targets ---- */
@media (max-width: 768px) {
  .footer-links a {
    padding: 6px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .scroll-top-btn {
    bottom: 82px;
    right: 14px;
  }
}

/* ---- 5. Toast ARIA improvements ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* ---- 6. Page loading transition ---- */
.page-transition {
  animation: pageIn 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 7. Improved tag hover ---- */
.mp-tag:hover {
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.15);
}

/* ---- 8. Better category scroll on mobile ---- */
@media (max-width: 768px) {
  .mp-cats {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mp-cats::-webkit-scrollbar {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   Geolocation Discovery Banner
   ═══════════════════════════════════════════════ */
#geo-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
  pointer-events: none;
}
#geo-banner.geo-banner--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.geo-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2, #0d1117);
  border: 1px solid var(--accent, #00d4c8);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 212, 200, .15), 0 0 0 1px rgba(0,212,200,.1);
  backdrop-filter: blur(12px);
  max-width: 440px;
}
.geo-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.geo-banner-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.geo-banner-text strong {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary, #e6edf3);
}
.geo-banner-text span {
  font-size: .75rem;
  color: var(--text-secondary, #8b949e);
}
.geo-banner-allow {
  padding: 7px 16px;
  background: var(--accent, #00d4c8);
  color: #06080d;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.geo-banner-allow:hover {
  background: #00e8db;
}
.geo-banner-dismiss {
  background: none;
  border: none;
  color: var(--text-muted, #484f58);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.geo-banner-dismiss:hover {
  color: var(--text-primary, #e6edf3);
}
@media (max-width: 480px) {
  #geo-banner { bottom: 80px; left: 12px; right: 12px; transform: translateX(0) translateY(100px); }
  #geo-banner.geo-banner--show { transform: translateX(0) translateY(0); }
  .geo-banner-inner { max-width: none; }
}

/* ─── PWA Install Hint ─── */
.pwa-install-hint{position:fixed;right:6px;top:calc(50% + 50px);z-index:899;opacity:0;transform:translateX(10px);pointer-events:none;transition:opacity .4s .5s,transform .4s .5s;}
.pwa-install-hint.pwa-hint--show{opacity:1;transform:translateX(0);pointer-events:auto;}
.pwa-hint-bubble{display:flex;align-items:center;gap:8px;background:var(--bg2,#0d1117);border:1px solid var(--accent,#00d4c8);padding:8px 14px;border-radius:10px;cursor:pointer;box-shadow:0 4px 20px rgba(0,212,200,.15);font-family:var(--font-body,'Plus Jakarta Sans',sans-serif);transition:box-shadow .2s,transform .2s;animation:pwaHintPulse 3s infinite;}
.pwa-hint-bubble:hover{box-shadow:0 6px 28px rgba(0,212,200,.35);transform:scale(1.03);}
@keyframes pwaHintPulse{0%,100%{box-shadow:0 4px 20px rgba(0,212,200,.15);}50%{box-shadow:0 4px 28px rgba(0,212,200,.3);}}
.pwa-hint-icon{width:28px;height:28px;border-radius:7px;flex-shrink:0;background:linear-gradient(135deg,var(--accent,#00d4c8),#009e95);display:grid;place-items:center;}
.pwa-hint-icon svg{width:16px;height:16px;color:#fff;}
.pwa-hint-text{font-size:.75rem;color:var(--text-primary,#e6edf3);font-weight:500;white-space:nowrap;}
.pwa-hint-sub{font-size:.65rem;color:var(--text-secondary,#8b949e);margin-top:1px;}
.pwa-hint-x{background:none;border:none;color:var(--text-muted,#484f58);cursor:pointer;padding:2px;border-radius:4px;display:flex;margin-left:2px;transition:color .15s;}
.pwa-hint-x:hover{color:var(--text-primary,#e6edf3);}
@media(max-width:480px){.pwa-install-hint{right:4px;top:calc(50% + 42px);}.pwa-hint-bubble{padding:6px 10px;gap:6px;}.pwa-hint-icon{width:24px;height:24px;}.pwa-hint-text{font-size:.7rem;}}
[data-theme="light"] .pwa-hint-bubble{background:#fff;border-color:rgba(0,180,170,.4);box-shadow:0 4px 20px rgba(0,0,0,.06);}
[data-theme="light"] .pwa-hint-text{color:#1e293b;}
[data-theme="light"] .pwa-hint-x{color:#94a3b8;}

/* ─── Claim CTA Section ──────────────────────────────── */
.claim-cta-section{padding:32px 0;}
.claim-cta-card{display:flex;align-items:center;gap:20px;padding:24px 28px;background:linear-gradient(135deg,rgba(0,212,200,0.06),rgba(0,180,216,0.04));border:1px solid rgba(0,212,200,0.2);border-radius:16px;}
.claim-cta-icon{font-size:36px;flex-shrink:0;}
.claim-cta-text{flex:1;}
.claim-cta-text h3{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--t1,#e6edf3);}
.claim-cta-text p{margin:0;font-size:13px;color:var(--t3,#8b949e);line-height:1.5;}
.claim-cta-text strong{color:var(--ac,#00d4c8);}
.claim-cta-btn{flex-shrink:0;white-space:nowrap;}
@media(max-width:640px){
  .claim-cta-card{flex-direction:column;text-align:center;gap:16px;}
  .claim-cta-btn{width:100%;}
}

/* ─── Claim Modal ────────────────────────────────────── */
.claim-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.75);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px);}
.claim-modal{background:#1c2333;border:1px solid rgba(0,212,200,0.2);border-radius:16px;padding:32px;max-width:440px;width:100%;position:relative;max-height:90vh;overflow-y:auto;box-shadow:0 24px 80px rgba(0,0,0,0.6),0 0 0 1px rgba(0,212,200,0.1),0 0 40px rgba(0,212,200,0.05);animation:claimModalIn 0.3s ease-out both;}
@keyframes claimModalIn{from{opacity:0;transform:scale(0.95) translateY(10px);}to{opacity:1;transform:scale(1) translateY(0);}}
.claim-modal-close{position:absolute;top:12px;right:16px;background:none;border:none;color:var(--t3,#8b949e);font-size:28px;cursor:pointer;padding:4px;line-height:1;}
.claim-modal-close:hover{color:var(--t1,#e6edf3);}
.claim-step h3{margin:0 0 8px;font-size:18px;font-weight:700;color:var(--t1,#e6edf3);}
.claim-subtitle{margin:0 0 20px;font-size:13px;color:var(--t3,#8b949e);line-height:1.5;}
.claim-step .form-group{margin-bottom:16px;}
.claim-step .form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--t2,#c9d1d9);}
.claim-step .form-group input{width:100%;padding:10px 14px;background:rgba(22,27,34,0.8);border:1px solid var(--bd,#2a3142);border-radius:8px;color:var(--t1,#e6edf3);font-size:14px;transition:border-color .2s;}
.claim-step .form-group input:focus{border-color:var(--ac,#00d4c8);outline:none;}
[data-theme="light"] .claim-modal{background:#fff;border-color:#d0d5dd;box-shadow:0 24px 80px rgba(0,0,0,0.15);}
[data-theme="light"] .claim-cta-card{background:linear-gradient(135deg,rgba(0,212,200,0.04),rgba(0,180,216,0.02));border-color:rgba(0,180,170,0.3);}
[data-theme="light"] .claim-step .form-group input{background:#f8fafc;border-color:#d0d5dd;color:#1a1d23;}