/* ===== KAIROX - Main Styles ===== */
@import url('cart-premium.css');
@import url('kairox-ultimate.css');
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent-cyan: #00f0ff;
  --accent-purple: #a855f7;
  --accent-pink: #ff006e;
  --accent-green: #00ff88;
  --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-glow: linear-gradient(135deg, rgba(0,240,255,0.3), rgba(168,85,247,0.3));
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 240, 255, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --font: 'Vazirmatn', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-glow: rgba(0,240,255,0.08);
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(0, 0, 0, 0.04);
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #9999aa;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 32px rgba(0, 120, 140, 0.12);
}

[data-theme="light"] .noise-overlay { opacity: 0.04; }
[data-theme="light"] .navbar { background: rgba(245, 245, 250, 0.92); }
[data-theme="light"] .navbar.scrolled { background: rgba(245, 245, 250, 0.96); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
[data-theme="light"] #heroCanvas { opacity: 0.25; }
[data-theme="light"] .hero-gradient {
  background: radial-gradient(ellipse at 30% 50%, var(--hero-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.06) 0%, transparent 60%);
}
[data-theme="light"] .hero { background: var(--bg-primary); }
[data-theme="light"] .glass,
[data-theme="light"] .nav-tools-panel,
[data-theme="light"] .changelog-dropdown { background: rgba(255,255,255,0.96); }
[data-theme="light"] .code-window { background: #eef0f8; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .code-header { background: #e4e6f0; }
[data-theme="light"] .section-tag { background: rgba(0,0,0,0.04); }
[data-theme="light"] .footer { background: var(--bg-secondary); }
[data-theme="light"] .chat-panel { background: rgba(255,255,255,0.98); }
[data-theme="light"] .cursor-glow { opacity: 0.35; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

[dir="ltr"] body { font-family: 'Inter', sans-serif; }

body.search-open { overflow: hidden; }

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

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

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

.cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,0.12) 0%, rgba(168,85,247,0.06) 40%, transparent 70%);
  pointer-events: none; z-index: 9997; transform: translate(-50%, -50%);
  transition: opacity 0.3s; opacity: 0;
  mix-blend-mode: screen;
}
body:hover .cursor-glow { opacity: 1; }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  width: 80px; height: 80px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  animation: pulse-glow 1.5s ease infinite;
}
.preloader-bar {
  width: 200px; height: 3px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin: 0 auto 12px;
}
.preloader-progress {
  height: 100%; width: 0; background: var(--gradient-main);
  animation: load-bar 1.5s ease forwards;
}
.preloader-text {
  font-size: 0.75rem; letter-spacing: 6px; color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--gradient-main); color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(0,240,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,240,255,0.4); }
.btn:active { transform: scale(0.97); }
.btn-outline {
  border: 1px solid var(--border-hover); color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent-cyan); background: rgba(0,240,255,0.05); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--accent-cyan); }
.btn-danger { background: #ff3366; color: white; }
.glow-btn::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: var(--gradient-main); z-index: -1; opacity: 0;
  filter: blur(12px); transition: opacity var(--transition);
}
.glow-btn:hover::after { opacity: 0.5; }

/* Glass */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
[data-theme="light"] .navbar.scrolled { background: rgba(245,245,250,0.9); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem;
}
.logo-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-main); border-radius: 10px; color: #0a0a0f; font-weight: 900;
}
.logo-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent-cyan); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

.lang-switcher {
  display: flex; background: var(--bg-glass); border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
}
.lang-btn {
  padding: 6px 10px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition);
}
.lang-btn.active { background: var(--gradient-main); color: #0a0a0f; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent-cyan); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.cart-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  transition: all var(--transition);
}
.cart-btn:hover { border-color: var(--accent-cyan); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-pink); color: white;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-primary);
  transition: all var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-height);
}
#heroCanvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, var(--hero-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.08) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 40px;
  align-items: center;
  padding: 48px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  min-width: 0;
  text-align: start;
}

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 16px;
}
.gradient-text {
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-nickname {
  display: block; font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-muted); font-weight: 400; margin-top: 8px;
  font-family: 'Inter', monospace;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--accent-cyan); font-weight: 500; margin-bottom: 12px;
}
.hero-desc { color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { text-align: center; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Card */
.hero-windows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.hero-card.code-card {
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
}

.hero-card.chat-window {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-card {
  position: relative;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(168,85,247,0.2));
  overflow: visible;
}

.hero-card .code-window {
  max-width: 100%;
}
.hero-card-glow {
  position: absolute; inset: -8px;
  background: var(--gradient-glow); filter: blur(30px); opacity: 0.35;
  border-radius: var(--radius-lg); z-index: -1;
  pointer-events: none;
}
.code-window {
  background: var(--bg-secondary); border-radius: var(--radius-lg); overflow: hidden;
  isolation: isolate;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-filename { margin-inline-start: auto; font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }
.code-body {
  padding: 24px; font-family: 'Courier New', monospace; font-size: 0.85rem;
  line-height: 1.8; overflow-x: auto;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.hero-card .code-body {
  padding: 16px;
  font-size: 0.78rem;
  max-height: 200px;
  overflow: auto;
}
.chat-demo-body {
  padding: 16px 18px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-secondary);
  min-height: 0;
  max-height: 120px;
  overflow-y: auto;
  background: var(--bg-secondary);
}

.hero-chat-cta-body {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
}

.hero-chat-cta-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.hero-chat-cta-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.hero-chat-cta { cursor: pointer; }
.hero-chat-cta:hover .hero-card-glow { opacity: 1; }

.code-body .kw { color: var(--accent-purple); }
.code-body .cls { color: var(--accent-cyan); }
.code-body .fn { color: var(--accent-green); }
.code-body .str { color: var(--accent-pink); }

.floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.float-badge {
  position: absolute;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.badge-1 { top: 8px; right: 8px; left: auto; animation-delay: 0s; }
.badge-2 { bottom: 8px; left: 8px; right: auto; animation-delay: 1s; }
.badge-3 { top: 8px; left: 8px; right: auto; animation-delay: 2s; }

.scroll-indicator {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  opacity: 0.6;
}
@media (max-width: 768px) {
  .scroll-indicator { display: none; }
}
.mouse {
  width: 24px; height: 40px; border: 2px solid var(--text-muted);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
  width: 3px; height: 8px; background: var(--accent-cyan);
  border-radius: 3px; animation: scroll-wheel 2s ease infinite;
}

/* Marquee */
.marquee-section {
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--bg-secondary);
}
.marquee { overflow: hidden; }
.marquee-content {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 1rem; font-weight: 600; color: var(--text-muted);
}
.marquee-content span:nth-child(odd) { color: var(--accent-cyan); }

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  background: rgba(0,240,255,0.1); color: var(--accent-cyan);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px;
}
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
  position: relative; padding: 36px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); overflow: hidden; cursor: pointer;
}
.service-card:hover {
  border-color: var(--border-hover); transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.service-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover .service-glow { opacity: 1; }
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; }
.service-arrow {
  position: absolute; bottom: 24px; right: 24px;
  font-size: 1.2rem; color: var(--accent-cyan);
  opacity: 0; transform: translateX(-10px); transition: all var(--transition);
}
[dir="ltr"] .service-arrow { right: auto; left: 24px; transform: translateX(10px); }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* Portfolio */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px;
}
.portfolio-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.portfolio-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.portfolio-img {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.portfolio-img .product-img-real,
.portfolio-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.portfolio-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.portfolio-img.has-cover .portfolio-img-bg { opacity: 0.35; }
.portfolio-img.img-fallback .product-cover,
.portfolio-img.img-fallback .portfolio-cover { display: none; }
.portfolio-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(168,85,247,0.1));
}
.portfolio-body { padding: 24px; }
.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.portfolio-tag {
  padding: 4px 10px; border-radius: 50px; font-size: 0.75rem;
  background: rgba(0,240,255,0.1); color: var(--accent-cyan);
}
.portfolio-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.portfolio-actions { display: flex; gap: 12px; }
.portfolio-case {
  padding: 16px 24px; border-top: 1px solid var(--border);
  background: rgba(0,240,255,0.02);
}
.case-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; }
.case-label { color: var(--text-muted); }
.case-value { color: var(--accent-green); font-weight: 600; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.feature-card {
  text-align: center; padding: 40px 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.feature-icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: rgba(0,240,255,0.08); font-size: 1.8rem;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Shop */
.shop-filters {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-main); color: #0a0a0f; border-color: transparent;
}

/* Shop filter panel */
.shop-filter-panel {
  position: relative;
  margin-bottom: 40px;
  padding: 24px 28px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.04), rgba(168, 85, 247, 0.06));
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.shop-filter-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(168, 85, 247, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.shop-filter-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}
.shop-filter-panel-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-size: 1.1rem;
}
.shop-filter-panel .shop-filters {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.shop-advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 20px;
  align-items: end;
}
.shop-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.shop-filter-field--toggle {
  justify-content: flex-end;
  padding-bottom: 4px;
}
.shop-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.shop-filter-control { position: relative; }
.shop-filter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.shop-filter-input:hover {
  border-color: rgba(0, 240, 255, 0.35);
}
.shop-filter-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}
.shop-filter-control select.shop-filter-input {
  padding-inline-start: 14px;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f0ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  cursor: pointer;
}
[dir="ltr"] .shop-filter-control select.shop-filter-input {
  background-position: right 14px center;
}
.shop-filter-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.25s;
}
.shop-filter-toggle:hover { border-color: rgba(0, 240, 255, 0.35); }
.shop-filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.shop-filter-toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.shop-filter-toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.25s, background 0.25s;
}
[dir="ltr"] .shop-filter-toggle-ui::after { right: auto; left: 3px; }
.shop-filter-checkbox:checked + .shop-filter-toggle-ui {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
}
.shop-filter-checkbox:checked + .shop-filter-toggle-ui::after {
  background: var(--accent-cyan);
  transform: translateX(-20px);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
[dir="ltr"] .shop-filter-checkbox:checked + .shop-filter-toggle-ui::after {
  transform: translateX(20px);
}
.shop-filter-checkbox:focus-visible + .shop-filter-toggle-ui {
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2);
}

@media (max-width: 640px) {
  .shop-filter-panel { padding: 18px 16px 20px; }
  .shop-advanced-filters { grid-template-columns: 1fr; }
}

.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.product-image {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(168,85,247,0.05));
}
.product-image .product-cover-img,
.product-image .product-img-real {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.product-cover-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-image .product-cover,
.product-image.img-fallback .product-cover { position: relative; z-index: 0; width: 100%; height: 100%; }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 600;
  background: rgba(0,255,136,0.15); color: var(--accent-green);
}
[dir="ltr"] .product-badge { right: auto; left: 12px; }
.product-body { padding: 24px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.product-tag {
  padding: 3px 8px; border-radius: 4px; font-size: 0.7rem;
  background: rgba(168,85,247,0.1); color: var(--accent-purple);
  font-family: monospace;
}
.product-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-body p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 0.85rem;
}
.product-rating { color: #ffd700; }
.product-sales { color: var(--text-muted); }
.product-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.product-price {
  font-size: 1.3rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.product-footer { flex-wrap: wrap; }

/* Blog */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px;
}
.blog-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.blog-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(255,0,110,0.1));
}
.blog-body { padding: 24px; }
.blog-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.blog-link {
  color: var(--accent-cyan); font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.blog-link:hover { letter-spacing: 1px; }

/* Contact */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-link:hover { border-color: var(--border-hover); transform: translateX(-4px); }
[dir="ltr"] .contact-link:hover { transform: translateX(4px); }

.contact-form {
  padding: 36px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}

/* Forms */
.form-group {
  position: relative; margin-bottom: 24px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  transition: all var(--transition); outline: none;
}
.form-group label {
  position: absolute; top: 14px; right: 16px;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition); pointer-events: none;
}
[dir="ltr"] .form-group label { right: auto; left: 16px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,240,255,0.1);
}
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
  top: -10px; right: 12px; font-size: 0.75rem;
  background: var(--bg-card); padding: 0 6px; color: var(--accent-cyan);
}
[dir="ltr"] .form-group input:focus + label,
[dir="ltr"] .form-group input:not(:placeholder-shown) + label,
[dir="ltr"] .form-group textarea:focus + label,
[dir="ltr"] .form-group textarea:not(:placeholder-shown) + label {
  right: auto; left: 12px;
}

/* Footer */
.footer {
  padding: 60px 0 30px; border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; }
.footer-links h4, .footer-newsletter h4 { margin-bottom: 16px; font-size: 0.95rem; }
.footer-links-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}
.footer-links-col { display: flex; flex-direction: column; gap: 2px; }
.footer-links a {
  display: block; color: var(--text-secondary); font-size: 0.9rem;
  padding: 4px 0; transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); outline: none;
}
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted);
}

/* Search modal (global — used on all pages with search.js) */
.search-overlay {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.active {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.search-modal {
  position: fixed; top: 12%; left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: min(560px, calc(100vw - 32px)); z-index: 2501;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}
.search-modal.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.search-modal-inner {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,240,255,0.08);
}

.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.search-icon { font-size: 1.2rem; opacity: 0.6; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1.05rem; font-family: inherit;
}
.search-kbd {
  padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; flex-shrink: 0;
  background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-muted);
}

.search-results { max-height: min(360px, 50vh); overflow-y: auto; padding: 8px; }
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: background 0.2s; text-decoration: none; color: inherit;
}
.search-result-item:hover { background: rgba(0,240,255,0.06); }
.search-result-icon { font-size: 1.6rem; width: 40px; text-align: center; flex-shrink: 0; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-body strong { display: block; font-size: 0.95rem; }
.search-result-body span { font-size: 0.8rem; color: var(--text-muted); }
.search-result-type {
  font-size: 0.7rem; padding: 3px 8px; border-radius: 50px; flex-shrink: 0;
  background: rgba(168,85,247,0.15); color: var(--accent-purple);
}
.search-empty { padding: 40px; text-align: center; color: var(--text-muted); }

.search-hints {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.search-hint-tag {
  padding: 3px 10px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: 6px;
  white-space: nowrap;
}
.search-hints-kbd {
  margin-inline-start: auto;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-search-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); transition: all var(--transition);
  font-size: 1rem;
}
.nav-search-btn:hover { border-color: var(--accent-cyan); background: rgba(0,240,255,0.05); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  width: 90%; max-width: 440px; padding: 36px; border-radius: var(--radius-lg);
  transform: scale(0.9) translateY(20px); transition: all var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-muted);
  transition: all var(--transition);
}
[dir="ltr"] .modal-close { left: auto; right: 16px; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-glass); }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  text-align: center; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); transition: all var(--transition);
}
.auth-tab.active { background: var(--gradient-main); color: #0a0a0f; border-color: transparent; }
.auth-form.hidden { display: none; }

/* Cart */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,0.55); opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
}
.cart-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
body.cart-open { overflow: hidden; }
.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: min(400px, 92vw); max-width: 100%;
  z-index: 1501;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
[dir="ltr"] .cart-sidebar {
  right: 0; left: auto;
  border-left: 1px solid var(--border);
  border-right: none;
  transform: translateX(100%);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 { font-size: 1.05rem; }
.cart-items {
  overflow-y: auto;
  padding: 12px 24px;
}
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-icon { font-size: 2rem; flex-shrink: 0; }
.cart-item-info {
  flex: 1; min-width: 0;
}
.cart-item-info h4 {
  font-size: 0.92rem; line-height: 1.45;
  margin-bottom: 4px; word-break: break-word;
}
.cart-item-info span { color: var(--text-muted); font-size: 0.82rem; display: block; }
.cart-item-remove {
  flex-shrink: 0;
  color: var(--accent-pink);
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.cart-item-remove:hover { background: rgba(255, 100, 150, 0.12); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total { margin-bottom: 14px; font-size: 1.05rem; }
.cart-total strong { color: var(--accent-cyan); }
.cart-empty {
  text-align: center; color: var(--text-muted);
  padding: 48px 16px; line-height: 1.7;
}

/* Chat Widget */
.chat-widget {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 1600 !important;
  pointer-events: none;
}
.chat-widget > * { pointer-events: auto; }
[dir="ltr"] .chat-widget { left: auto !important; right: 24px !important; }
.chat-panel {
  position: absolute; bottom: 70px; left: 0;
  width: 360px; max-width: calc(100vw - 48px);
  border-radius: var(--radius); overflow: hidden;
  transform: scale(0.8) translateY(20px); opacity: 0; visibility: hidden;
  transition: all var(--transition); transform-origin: bottom left;
  pointer-events: none;
}
[dir="ltr"] .chat-panel { left: auto; right: 0; transform-origin: bottom right; }
.chat-panel.active { transform: scale(1) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-main); color: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
  transition: all var(--transition); position: relative;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-toggle svg { width: 24px; height: 24px; }
.chat-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulse-ring 2s ease infinite;
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; background: rgba(0,240,255,0.05);
  border-bottom: 1px solid var(--border);
}
.chat-header h4 { flex: 1; font-size: 0.95rem; }

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.chat-status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.chat-status-dot.offline {
  background: #ff4655;
  box-shadow: 0 0 8px rgba(255, 70, 85, 0.5);
}
.chat-messages {
  height: 300px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.5;
}
.chat-msg.bot {
  background: rgba(0,240,255,0.08); align-self: flex-start;
  border-bottom-right-radius: 4px;
}
[dir="ltr"] .chat-msg.bot { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
.chat-msg.user {
  background: var(--gradient-main); color: #0a0a0f;
  align-self: flex-end; border-bottom-left-radius: 4px;
}
[dir="ltr"] .chat-msg.user { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); outline: none; font-size: 0.85rem;
}
.chat-input button {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--gradient-main); color: #0a0a0f; font-weight: 600; font-size: 0.85rem;
}
.chat-msg.error {
  background: rgba(255, 70, 85, 0.12);
  border: 1px solid rgba(255, 70, 85, 0.35);
  color: #ff8a98;
}
.chat-msg.typing {
  display: flex; gap: 5px; align-items: center; padding: 12px 16px;
}
.chat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-cyan);
  animation: chat-dot-bounce 1.2s ease infinite;
}
.chat-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-main); color: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info h4 { font-size: 0.95rem; margin: 0; }
.chat-voice-status {
  display: block; font-size: 0.7rem; color: var(--text-muted);
  margin-top: 2px; transition: color 0.2s;
}
.chat-voice-status.listening { color: var(--accent-cyan); }
.chat-voice-status.speaking { color: var(--accent-green); }
.chat-voice-status.wake { color: var(--accent-purple); }
.chat-voice-status.thinking { color: var(--accent-pink); }
.chat-toolbar {
  display: flex; gap: 8px; padding: 8px 12px 0;
  border-top: 1px solid var(--border);
}
.chat-tool-btn {
  flex: 1; padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(0,240,255,0.06); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.78rem; cursor: pointer;
  transition: all var(--transition);
}
.chat-tool-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.chat-tool-btn.active {
  background: rgba(168,85,247,0.15); border-color: var(--accent-purple);
  color: var(--accent-purple); box-shadow: 0 0 12px rgba(168,85,247,0.25);
}
#chatMicBtn.listening {
  background: rgba(255,0,110,0.15); border-color: var(--accent-pink);
  color: var(--accent-pink); animation: pulse-ring 1.2s ease infinite;
}
.chat-tool-btn.hidden { display: none; }

/* Toast */
.toast-container {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 0.9rem;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
}
.toast.success { border-color: var(--accent-green); }
.toast.error { border-color: var(--accent-pink); }

/* Panel Pages Shared */
.panel-layout {
  display: flex; min-height: 100vh; padding-top: var(--nav-height);
}
.panel-sidebar {
  width: 260px; background: var(--bg-secondary);
  border-left: 1px solid var(--border); padding: 24px 0;
  position: fixed; top: var(--nav-height); bottom: 0;
  overflow-y: auto;
}
[dir="ltr"] .panel-sidebar { border-left: none; border-right: 1px solid var(--border); left: 0; right: auto; }
.panel-sidebar { right: 0; }
.panel-sidebar h3 {
  padding: 0 24px 20px; font-size: 1.1rem;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.panel-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: var(--text-secondary);
  font-size: 0.9rem; transition: all var(--transition);
}
.panel-nav a:hover, .panel-nav a.active {
  color: var(--accent-cyan); background: rgba(0,240,255,0.05);
}
.panel-nav a.active { border-right: 3px solid var(--accent-cyan); }
[dir="ltr"] .panel-nav a.active { border-right: none; border-left: 3px solid var(--accent-cyan); }
.panel-main {
  flex: 1; margin-right: 260px; padding: 32px;
}
[dir="ltr"] .panel-main { margin-right: 0; margin-left: 260px; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.panel-header h1 { font-size: 1.8rem; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-card h4 { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.stat-card .value {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th, .data-table td {
  padding: 14px 20px; text-align: right; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
[dir="ltr"] .data-table th, [dir="ltr"] .data-table td { text-align: left; }
.data-table th {
  background: rgba(0,240,255,0.05); color: var(--text-muted);
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.data-table tr:hover td { background: rgba(0,240,255,0.02); }

.panel-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 24px;
}
.panel-card h3 { margin-bottom: 16px; font-size: 1.1rem; }

.license-key {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border);
  font-family: monospace; font-size: 0.85rem;
}
.license-key code { flex: 1; color: var(--accent-cyan); word-break: break-all; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(0,255,136,0.15); color: var(--accent-green); }
.badge-warning { background: rgba(254,188,46,0.15); color: #febc2e; }
.badge-danger { background: rgba(255,51,102,0.15); color: #ff3366; }
.badge-info { background: rgba(0,240,255,0.15); color: var(--accent-cyan); }

/* Performance modes */
#heroCanvas.hero-canvas-off { display: none; }

.hero:has(#heroCanvas.hero-canvas-off) {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 240, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08), transparent 50%);
}

[data-perf="lite"] .section-orb,
[data-perf="lite"] .ku-scroll-ring,
[data-perf="lite"] .ku-cursor-trail,
[data-perf="lite"] .cursor-glow,
[data-perf="balanced"] .section-orb {
  display: none !important;
}

[data-perf="lite"] .product-card-3d,
[data-perf="lite"] .tilt-card {
  transform: none !important;
}

/* Product Page */
.product-detail { padding-top: calc(var(--nav-height) + 40px); }
.product-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 60px;
}
.product-demo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/10;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-demo .product-cover-img,
.product-demo .product-cover,
.product-demo .product-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wishlist-btn.active {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(255, 0, 110, 0.1);
}
.product-detail .tab-nav {
  position: relative;
  z-index: 5;
}
.product-detail .tab-content {
  position: relative;
  z-index: 4;
}
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
}
.compare-table th, .compare-table td {
  padding: 12px 16px; border: 1px solid var(--border); text-align: center; font-size: 0.9rem;
}
.compare-table th { background: rgba(0,240,255,0.05); }
.compare-table .highlight { background: rgba(0,240,255,0.08); }

.tab-nav { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 12px 20px; color: var(--text-muted); font-weight: 500;
  border-bottom: 2px solid transparent; transition: all var(--transition);
}
.tab-btn.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.review-item {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-main); display: flex; align-items: center; justify-content: center;
  color: #0a0a0f; font-weight: 700; font-size: 0.85rem;
}

.chart-bar-wrap { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 20px 0; }
.chart-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  background: var(--gradient-main); opacity: 0.7;
  transition: all var(--transition); position: relative; min-height: 20px;
}
.chart-bar:hover { opacity: 1; }
.chart-bar span {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
}

.hidden { display: none !important; }
.auth-tabs.hidden { display: none; }

/* Activity Ticker */
.activity-bar {
  padding: 12px 0;
  background: rgba(0,240,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.activity-ticker {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text-secondary);
}
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}
#activityText { transition: opacity 0.3s ease; }

/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.testimonial-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.testimonial-stars { color: #ffd700; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  margin-bottom: 12px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; text-align: right; font-weight: 600; font-size: 0.95rem;
  color: var(--text-primary); background: none; border: none; cursor: pointer;
  font-family: inherit; transition: color var(--transition);
}
[dir="ltr"] .faq-question { text-align: left; }
.faq-question:hover { color: var(--accent-cyan); }
.faq-icon {
  font-size: 1.4rem; color: var(--accent-cyan); transition: transform var(--transition);
  flex-shrink: 0; margin-inline-start: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px; color: var(--text-secondary);
  font-size: 0.9rem; line-height: 1.7;
}

/* Blog Article */
.blog-article { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 80px; max-width: 760px; }
.blog-article-header { margin-bottom: 40px; }
.blog-article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px;
}
.blog-article-header h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; }
.blog-article-lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.blog-article-body {
  color: var(--text-secondary); line-height: 1.9; font-size: 0.98rem;
}
.blog-article-body h2 {
  color: var(--text-primary); font-size: 1.3rem; margin: 32px 0 12px;
}
.blog-article-body pre {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; overflow-x: auto;
  margin: 20px 0; direction: ltr; text-align: left;
}
.blog-article-body code {
  font-family: 'Consolas', monospace; font-size: 0.85rem; color: var(--accent-cyan);
}
.blog-article-body ul { padding-right: 24px; margin: 12px 0; }
[dir="ltr"] .blog-article-body ul { padding-right: 0; padding-left: 24px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.blog-tag {
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem;
  background: rgba(168,85,247,0.1); color: var(--accent-purple);
}
.blog-related {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.blog-related h3 { margin-bottom: 20px; }

/* Legal / Error Pages */
.legal-page, .error-page {
  padding-top: calc(var(--nav-height) + 60px); padding-bottom: 80px; max-width: 720px;
}
.legal-page h1, .error-page h1 { font-size: 2rem; margin-bottom: 12px; }
.legal-page h2 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--accent-cyan); }
.legal-page p, .legal-page li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-page ul { padding-right: 24px; }
[dir="ltr"] .legal-page ul { padding-right: 0; padding-left: 24px; }
.error-page { text-align: center; }
.error-code {
  font-size: 6rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 16px;
}

/* Checkout Coupon */
.coupon-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.coupon-row input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-family: inherit;
}
.discount-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; color: var(--accent-green); font-size: 0.9rem;
}
.changelog-entry {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-start;
}
.changelog-version {
  font-family: monospace; color: var(--accent-cyan);
  font-weight: 700; min-width: 70px;
}
.changelog-date { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }

/* Responsive */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-windows { max-width: 100%; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .panel-sidebar { transform: translateX(100%); transition: transform var(--transition); z-index: 100; }
  [dir="ltr"] .panel-sidebar { transform: translateX(-100%); }
  .panel-sidebar.open { transform: translateX(0); }
  .panel-main { margin-right: 0; margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); right: 0; left: 0;
    background: var(--bg-secondary); flex-direction: column;
    padding: 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .nav-dash { display: none; }
}
