/* ═══════════════════════════════════════════════════════════════
   SUVENIRKAWOW — Stylesheet
   Palette: white BG · red-purple accent · light hero
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #FAFAFB;
  --hero-light:   #FAF8FF;
  --primary:      #D42B5B;
  --primary-lt:   #F06292;
  --accent:       #7C3AED;
  --accent-hover: #6D28D9;
  --accent-lt:    #C4B5FD;
  --muted:        #9B9B9B;
  --text:         #111111;
  --text-md:      #444444;
  --text-muted:   #9B9B9B;
  --card:         #ffffff;
  --surface:      #ffffff;
  --border:       rgba(0, 0, 0, 0.12);
  --border-lt:    rgba(0, 0, 0, 0.08);
  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.16);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --transition:   0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-move: 0.15s ease-out;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-heading: 'Unbounded', system-ui, sans-serif;
  --container:    1240px;
  --gradient-brand: linear-gradient(135deg, #E8232A, #D42B5B, #7C3AED);
  --gradient-soft:  linear-gradient(135deg, rgba(212,43,91,0.06), rgba(124,58,237,0.08));
}

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* ── Skip to content link ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Form submit loading state ──────────────────────────────── */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.btn--loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ── Running border animation ───────────────────────────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderSpin {
  to { --border-angle: 360deg; }
}

.product-card, .feature-card, .mat-card,
.port-card, .testi-card, .news-card,
.cab-card {
  position: relative;
}

.product-card::after, .feature-card::after, .mat-card::after,
.port-card::after, .testi-card::after, .news-card::after,
.cab-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 30%,
    var(--primary) 50%,
    var(--accent) 60%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.product-card:hover::after, .feature-card:hover::after, .mat-card:hover::after,
.port-card:hover::after, .testi-card:hover::after, .news-card:hover::after,
.cab-card:hover::after {
  opacity: 1;
  animation: borderSpin 2.5s linear infinite;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease,
              background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              gap 0.18s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 0.06s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
  transition: transform var(--transition-move), filter var(--transition-move), box-shadow var(--transition-move);
}
.btn-nav:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-card {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
}
.btn-card:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,43,91,0.3);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ── Sections shared ────────────────────────────────────────── */
section { padding: 120px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(124,58,237,0.15);
  background: rgba(124,58,237,0.04);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 20px;
  letter-spacing: -0.02em;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Gradient text ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-laser] .gradient-text {
  background: none;
  -webkit-text-fill-color: inherit;
}
.gradient-text .laser-word {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll animations ──────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0)) translateX(0) scale(1);
}
.animate-on-scroll[data-anim="fade-left"] {
  transform: translateX(-36px);
}
.animate-on-scroll[data-anim="fade-right"] {
  transform: translateX(36px);
}
.animate-on-scroll[data-anim="scale-up"] {
  transform: scale(0.92);
}
/* ── Laser word-by-word engraving ──────────────────────────── */
[data-laser] .laser-word {
  opacity: 0;
}
[data-laser].laser-active .laser-word {
  animation: laserWordReveal 0.4s ease both;
  animation-delay: calc(var(--i, 0) * var(--laser-stagger, 0.07s) + var(--laser-base, 0s));
}

.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }

/* ── Scroll progress bar ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-lt));
  z-index: 1001;
  transition: none;
  pointer-events: none;
  will-change: width;
}

/* ══════════════════════════════════════════════ NAV ════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
/* Default state: dark text on light hero */
#nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.25s;
}
#nav .nav-logo strong { color: var(--accent); transition: color 0.25s; }
#nav .nav-links a {
  color: #444;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
#nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav .nav-links a:hover::after { transform: scaleX(1); }
#nav .nav-links a:hover { color: var(--accent); background: rgba(124,58,237,0.06); }
#nav .nav-links a.active { color: var(--accent); font-weight: 600; background: rgba(124,58,237,0.08); }
#nav .nav-links a.active::after { transform: scaleX(1); }
#nav .nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: var(--transition);
}
#nav .nav-account-btn:hover,
#nav .nav-account.open .nav-account-btn {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: var(--accent);
}
#nav .nav-bell-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #333;
}
#nav .nav-bell-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: var(--accent);
}
/* Scrolled state: glass white */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}
#nav.scrolled .nav-logo { color: #111; }
#nav.scrolled .nav-logo strong { color: var(--accent); }
#nav.scrolled .nav-logo svg { filter: none; }
#nav.scrolled .nav-links a { color: #333; }
#nav.scrolled .nav-links a:hover { color: var(--accent); background: rgba(124,58,237,0.05); }
#nav.scrolled .nav-links a.active { color: var(--accent); font-weight: 600; background: rgba(124,58,237,0.08); }
#nav.scrolled .nav-burger span { background: #333; }
#nav.scrolled .nav-bell-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #333;
}
#nav.scrolled .nav-bell-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: var(--accent);
}
#nav.scrolled .nav-account-btn:hover,
#nav.scrolled .nav-account.open .nav-account-btn {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: var(--accent);
}
#nav.scrolled .btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 12px rgba(124,58,237,0.25);
}
#nav.scrolled .btn-nav:hover {
  filter: brightness(1.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.nav-mobile.open { display: flex; }

/* Navigation links group */
.nav-mobile-links {
  display: flex;
  flex-direction: column;
}
.nav-mobile-links a {
  color: #333;
  padding: 14px 8px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.15s;
}
.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a:hover { color: var(--accent); }

/* Account card */
.nav-mobile-account {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-account-links {
  display: flex;
  flex-direction: column;
}
.nav-mobile-account-links a {
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.15s;
}
.nav-mobile-account-links a:last-child { border-bottom: none; }
.nav-mobile-account-links a:hover { color: var(--accent); }
.nav-mobile-account .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* CTA button */
.nav-mobile-cta {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.btn-ghost--accent {
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--accent);
}

/* ══════════════════════════════════════════ HERO ════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, var(--hero-light) 0%, #ffffff 40%, #F5F0FF 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.18;
}

/* Hero floating wireframe shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hshape {
  position: absolute;
  animation: hfloat linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.hshape-1 {
  width: 120px; height: 120px;
  top: 12%; left: 6%;
  animation-duration: 18s;
  animation-name: hfloat1;
}
.hshape-2 {
  width: 80px; height: 80px;
  top: 65%; left: 4%;
  animation-duration: 22s;
  animation-name: hfloat2;
}
.hshape-3 {
  width: 100px; height: 100px;
  top: 20%; right: 8%;
  animation-duration: 16s;
  animation-name: hfloat3;
}
.hshape-4 {
  width: 90px; height: 90px;
  top: 58%; right: 5%;
  animation-duration: 24s;
  animation-name: hfloat4;
}
.hshape-5 {
  width: 70px; height: 70px;
  top: 80%; left: 30%;
  animation-duration: 20s;
  animation-name: hfloat5;
}
.hshape-6 {
  width: 60px; height: 60px;
  top: 8%; right: 30%;
  animation-duration: 14s;
  animation-name: hfloat6;
}

@keyframes hfloat1 {
  0%   { transform: translateY(0px)   rotate(0deg);   opacity: 0.6; }
  25%  { transform: translateY(-18px) rotate(90deg);  opacity: 0.4; }
  50%  { transform: translateY(-8px)  rotate(180deg); opacity: 0.7; }
  75%  { transform: translateY(-24px) rotate(270deg); opacity: 0.3; }
  100% { transform: translateY(0px)   rotate(360deg); opacity: 0.6; }
}
@keyframes hfloat2 {
  0%   { transform: translateY(0px)  rotate(0deg);   opacity: 0.5; }
  33%  { transform: translateY(-20px) rotate(-60deg); opacity: 0.7; }
  66%  { transform: translateY(-10px) rotate(-120deg);opacity: 0.35;}
  100% { transform: translateY(0px)  rotate(-180deg); opacity: 0.5; }
}
@keyframes hfloat3 {
  0%   { transform: translateY(0px)   rotate(0deg)  scale(1);    opacity: 0.5; }
  50%  { transform: translateY(-22px) rotate(180deg) scale(0.92); opacity: 0.7; }
  100% { transform: translateY(0px)   rotate(360deg) scale(1);    opacity: 0.5; }
}
@keyframes hfloat4 {
  0%   { transform: translateX(0) translateY(0) rotate(0deg);   opacity: 0.4; }
  40%  { transform: translateX(-12px) translateY(-15px) rotate(144deg); opacity: 0.65; }
  80%  { transform: translateX(8px)  translateY(-20px) rotate(280deg); opacity: 0.3; }
  100% { transform: translateX(0) translateY(0) rotate(360deg); opacity: 0.4; }
}
@keyframes hfloat5 {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0.35; }
  50%  { transform: translateY(-16px) rotate(-180deg); opacity: 0.55; }
  100% { transform: translateY(0)   rotate(-360deg); opacity: 0.35; }
}
@keyframes hfloat6 {
  0%   { transform: translateY(0)   rotate(0deg);  opacity: 0.3; }
  50%  { transform: translateY(-14px) rotate(90deg); opacity: 0.5; }
  100% { transform: translateY(0)   rotate(180deg); opacity: 0.3; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: laserRevealFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge svg { color: var(--primary); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  animation: laserRevealFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}
.hero-cta .btn-ghost {
  color: var(--text);
  border-color: var(--border);
}
.hero-cta .btn-ghost:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.25);
  color: var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: laserRevealFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

.hstat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}
.hstat:first-child { padding-left: 0; }

.hstat-row {
  display: flex;
  align-items: baseline;
}

.hstat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hstat-suf {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hstat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.hstat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero right — orb */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroOrbReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-orb-wrap {
  position: relative;
  width: 700px;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, rgba(212,43,91,0.15) 50%, transparent 70%);
  filter: blur(50px);
  animation: pulse-glow 4s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: 1;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,0.2);
  top: 50%; left: 50%;
  transform-origin: center;
  transform-style: preserve-3d;
}
.orb-r1 {
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  animation: orb-spin1 10s linear infinite;
}
.orb-r2 {
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  animation: orb-spin2 16s linear infinite;
  border-color: rgba(124,58,237,0.14);
}
.orb-r3 {
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  animation: orb-spin3 24s linear infinite;
  border-color: rgba(124,58,237,0.08);
}

.orb-core {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: orb-float 6s ease-in-out infinite;
  mask-image: radial-gradient(circle at 50% 50%, black 38%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 38%, transparent 65%);
  z-index: 5;
}

.hero-helmet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 0 30px rgba(124,58,237,0.4))
    drop-shadow(0 0 70px rgba(212,43,91,0.2))
    drop-shadow(0 0 120px rgba(0,0,0,0.08));
}

/* Hero product cards — orbit carousel around helmet */
.hero-product-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  will-change: transform, opacity;
  transition: box-shadow 0.2s ease;
  pointer-events: auto;
}
.hero-product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hpc-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.15));
  border-radius: 8px;
  transition: filter 0.35s ease;
}
.hpc-placeholder-icon {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}
.hpc-pill {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.hero-product-card.hpc-hovered .hpc-img {
  filter: drop-shadow(0 8px 32px rgba(124,58,237,0.45)) drop-shadow(0 0 16px rgba(212,43,91,0.3));
}
.hero-product-card.hpc-hovered .hpc-pill {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}

/* Helmet: no hover effect — orb-core is non-interactive */
.orb-core {
  pointer-events: none;
}

/* ── Hero expanded card (desktop hover fly-out) ─────────── */
.hpc-expanded {
  display: none;
}

@media (min-width: 1025px) {
  .hpc-expanded {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    perspective: 1200px;
    transition: opacity 0.35s ease;
  }
  .hpc-expanded.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hpc-expanded-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    transform: translate(-50%, -50%) rotateY(-90deg) scale(0.7);
    transform-style: preserve-3d;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(124,58,237,0.15);
    box-shadow:
      0 32px 80px rgba(124,58,237,0.18),
      0 12px 32px rgba(0,0,0,0.08),
      0 0 0 1px rgba(124,58,237,0.06);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s ease;
  }
  .hpc-expanded.active .hpc-expanded-card {
    transform: translate(-50%, -50%) rotateY(0deg) scale(1);
  }

  .hpc-expanded-visual {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 50%, #e8e0ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .hpc-expanded-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(124,58,237,0.2));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
  }
  .hpc-expanded.active .hpc-expanded-img {
    transform: scale(1.05);
  }

  .hpc-expanded-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255,255,255,0.6) 45%,
      rgba(255,255,255,0.8) 50%,
      rgba(255,255,255,0.6) 55%,
      transparent 70%
    );
    transform: translateX(-110%);
    pointer-events: none;
  }
  .hpc-expanded.active .hpc-expanded-shine {
    animation: hpcShine 0.8s 0.4s ease-out forwards;
  }
  @keyframes hpcShine {
    to { transform: translateX(110%); }
  }

  .hpc-expanded-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hpc-expanded-body > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .hpc-expanded.active .hpc-expanded-body > * {
    opacity: 1;
    transform: translateY(0);
  }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(1) { transition-delay: 0.25s; }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(2) { transition-delay: 0.32s; }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(3) { transition-delay: 0.39s; }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(4) { transition-delay: 0.46s; }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(5) { transition-delay: 0.53s; }
  .hpc-expanded.active .hpc-expanded-body > *:nth-child(6) { transition-delay: 0.60s; }

  .hpc-expanded-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .hpc-expanded-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
  }
  .hpc-expanded-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
  }
  .hpc-expanded-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .hpc-expanded-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .hpc-expanded-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(124,58,237,0.35);
    flex-shrink: 0;
  }
  .hpc-expanded-price {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 4px;
  }
  .hpc-expanded-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    align-self: flex-start;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  animation: laserRevealFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
  transition: opacity 0.4s ease;
}
.hero-scroll-hint.hidden { opacity: 0; pointer-events: none; }
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.scroll-chevron {
  color: var(--accent);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-chevron-2 {
  margin-top: -10px;
  opacity: 0.5;
  animation-delay: 0.15s;
}

/* Hero keyframes */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroClipReveal {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(100% 0 0 0); }
  to   { opacity: 1; transform: translateY(0);    clip-path: inset(0 0 0 0); }
}
@keyframes heroOrbReveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}


/* ── Laser engraving text reveal ──────────────────────────── */
@keyframes laserWordReveal {
  0%   { opacity: 0; }
  25%  { opacity: 1; text-shadow: 0 0 20px rgba(212,43,91,0.8), 0 0 40px rgba(124,58,237,0.45), 0 0 4px rgba(255,255,255,0.6); }
  60%  { text-shadow: 0 0 8px rgba(212,43,91,0.25), 0 0 16px rgba(124,58,237,0.1); }
  100% { opacity: 1; text-shadow: none; }
}
@keyframes laserRevealFade {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  8%   { opacity: 1; }
  100% { clip-path: inset(0 0 0 0);    opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.15); opacity: 1;   }
}
@keyframes orb-spin1 {
  from { transform: rotate(0deg)   rotateX(70deg); }
  to   { transform: rotate(360deg) rotateX(70deg); }
}
@keyframes orb-spin2 {
  from { transform: rotate(0deg)   rotateX(50deg) rotateZ(20deg); }
  to   { transform: rotate(-360deg) rotateX(50deg) rotateZ(20deg); }
}
@keyframes orb-spin3 {
  from { transform: rotate(0deg)   rotateX(80deg) rotateZ(-10deg); }
  to   { transform: rotate(360deg) rotateX(80deg) rotateZ(-10deg); }
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes mc-float1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%       { transform: translateY(-10px) translateX(4px); }
}
@keyframes mc-float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%       { transform: translateY(8px) translateX(-4px); }
}
@keyframes mc-float3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(6px); opacity: 0.9; }
}

/* ══════════════════════════════════════ MARQUEE ════════════ */
.marquee-wrap {
  background: linear-gradient(135deg, var(--primary), #4a1942, var(--accent));
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.marquee-track span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4) !important;
  flex-shrink: 0;
  display: inline-block !important;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ══════════════════════════════════════ FEATURES ════════════ */
#features {
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color var(--transition-move), box-shadow var(--transition-move);
  will-change: box-shadow;
}
.feature-card:hover {
  box-shadow: 0 4px 24px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.2);
  background: #fff;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,43,91,0.1), rgba(124,58,237,0.1));
  border: 1px solid var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform var(--transition-move), background var(--transition-move), color var(--transition-move), border-color var(--transition-move);
  will-change: transform;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════ PRODUCTS ════════════ */
#products { background: var(--bg); }

.product-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition-move), box-shadow var(--transition-move);
  will-change: box-shadow;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 4px 24px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.2);
}
.product-card.hidden { display: none; }

.pc-visual {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pc-svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  transition: filter var(--transition-move);
}
.product-card:hover .pc-svg {
  filter: drop-shadow(0 8px 32px rgba(124,58,237,0.25));
}

.pc-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.2), transparent 70%);
  pointer-events: none;
}

.pc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-bestseller { background: rgba(212,43,91,0.9);  color: #fff; }
.badge-popular    { background: rgba(124,58,237,0.9);  color: #fff; }
.badge-premium    { background: rgba(217,119,6,0.9);  color: #fff; }
.badge-new        { background: rgba(6,182,212,0.9);  color: #fff; }
.badge-budget     { background: rgba(55,65,81,0.9);   color: #fff; }
.badge-promo      { background: rgba(212,43,91,0.9);  color: #fff; }

.pc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.pc-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pc-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.pc-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.pc-material, .pc-lead {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.pc-lead { margin-left: auto; }

.pc-material-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.pc-material-row svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.7;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pc-price {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════ PROCESS ════════════ */
#process {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}

.step-connector {
  position: absolute;
  top: 72px;
  right: -1px;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-lt));
  z-index: 0;
}
.process-step:last-child .step-connector { display: none; }

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(124,58,237,0.08);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,43,91,0.08), rgba(124,58,237,0.08));
  border: 1.5px solid var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  transition: transform var(--transition-move), background var(--transition-move), color var(--transition-move), border-color var(--transition-move);
  will-change: transform;
}
.process-step:hover .step-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ══════════════════════════════════════ MATERIALS ═══════════ */
#materials {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#materials .section-head h2 { color: var(--text); }
#materials .section-head p  { color: var(--text-muted); }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.mat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition-move), box-shadow var(--transition-move), background var(--transition-move);
  will-change: box-shadow;
}
.mat-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 4px 24px rgba(124,58,237,0.1);
}

.mat-swatch {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.mat-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.mat-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.mat-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mat-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.mat-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ══════════════════════════════════════ PORTFOLIO ═══════════ */
#portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.port-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition-move), box-shadow var(--transition-move);
  will-change: box-shadow;
}
.port-card:hover {
  box-shadow: 0 4px 24px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.2);
}

.port-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.port-visual svg { transition: transform var(--transition-move); }
.port-card:hover .port-visual svg { transform: scale(1.05); }

.port-body { padding: 28px; }

.port-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  display: inline-block;
}

.port-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.port-body p {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.port-stats {
  display: flex;
  gap: 20px;
}
.port-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.port-stats strong { color: var(--primary); font-weight: 700; }

/* ══════════════════════════════════════ TESTIMONIALS ════════ */
#testimonials {
  background: #0a0614;
}
#testimonials .section-tag { color: rgba(212,43,91,0.9); }
#testimonials .section-head h2 { color: #fff; }
#testimonials .section-head h2::after { background: linear-gradient(90deg, #D42B5B, #7C3AED); }
#testimonials .section-head p { color: rgba(255,255,255,0.5); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition-move), box-shadow var(--transition-move), background var(--transition-move);
  will-change: box-shadow;
}
.testi-card:hover {
  box-shadow: 0 4px 32px rgba(124,58,237,0.25);
  border-color: rgba(124,58,237,0.4);
  background: rgba(255,255,255,0.08);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.testi-card blockquote {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  quotes: '\201C' '\201D';
}
.testi-card blockquote::before { content: open-quote; color: var(--accent); font-size: 1.5rem; line-height: 0; vertical-align: -0.4em; }

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.testi-author span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════ КАТАЛОГ ════════════════ */
#catalog { background: var(--bg); }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.catalog-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}
.catalog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212,43,91,0.06), rgba(124,58,237,0.08));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.catalog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(124,58,237,0.15), 0 4px 12px rgba(212,43,91,0.08);
  border-color: rgba(124,58,237,0.22);
}
.catalog-card:hover::before { opacity: 1; }

.catalog-icon {
  color: rgba(124,58,237,0.65);
  background: rgba(124,58,237,0.07);
  border-radius: 14px;
  padding: 10px;
  transition: color 0.3s, transform 0.3s cubic-bezier(.22,1,.36,1), background 0.3s;
}
.catalog-card:hover .catalog-icon {
  color: var(--primary);
  background: rgba(124,58,237,0.12);
  transform: scale(1.12);
}

.catalog-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.catalog-special {
  align-self: stretch;
  background: linear-gradient(145deg, #1a0a2e 0%, #4a1942 40%, #7C3AED 100%);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.catalog-special:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 56px rgba(124,58,237,0.3), 0 6px 16px rgba(212,43,91,0.12);
  border-color: transparent;
  background: linear-gradient(145deg, #1a0a2e 0%, #4a1942 40%, #7C3AED 100%);
}
.catalog-special::before { display: none; }
.catalog-special-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.catalog-sparkle {
  position: absolute;
  top: 18px;
  left: 18px;
  opacity: 0.7;
  animation: sparkle-pulse 3s ease-in-out infinite;
}
.catalog-sparkle-2 {
  top: auto;
  left: auto;
  bottom: 30%;
  right: 18px;
  animation-delay: 1.5s;
}
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}

.catalog-special-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.catalog-special-sub {
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════ CATALOG PILLS & PRODUCTS ══ */
.catalog-filter-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.18s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
  line-height: 1;
}
.filter-pill svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.filter-pill:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.3);
  color: var(--accent);
  transform: translateY(-1px);
}
.filter-pill:hover svg { opacity: 1; }
.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(124,58,237,0.32);
}
.filter-pill.active svg { opacity: 1; }

/* catalog products grid on homepage inherits .products-grid */
.catalog-products-grid {
  margin-bottom: 36px;
}

/* WOW card — spans 2 columns, dark gradient */
.wow-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #0f0820 0%, #4a1942 45%, #7C3AED 100%);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid rgba(124,58,237,0.25);
  transition: box-shadow 0.35s cubic-bezier(.22,1,.36,1), transform 0.35s cubic-bezier(.22,1,.36,1), border-color 0.35s;
  will-change: transform, box-shadow;
}
.wow-card:hover {
  box-shadow: 0 20px 56px rgba(124,58,237,0.3), 0 6px 16px rgba(212,43,91,0.12);
  border-color: rgba(212,43,91,0.4);
  transform: translateY(-5px) scale(1.015);
}

.wow-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wow-sparkle {
  position: absolute;
  animation: sparkle-pulse 3s ease-in-out infinite;
}
.wow-sparkle-1 { top: 20px; left: 22px; opacity: 0.75; }
.wow-sparkle-2 { bottom: 28%; right: 20px; opacity: 0.55; animation-delay: 1.4s; }
.wow-sparkle-3 { top: 50%; left: 45%; opacity: 0.3; animation-delay: 2.1s; }

/* Radial highlight pulse */
.wow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,43,91,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.wow-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 32px;
}
.wow-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.wow-card-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #fff 30%, #f0abfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wow-card-sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-top: 2px;
}
.wow-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 7px 16px;
  width: fit-content;
  transition: background 0.2s, border-color 0.2s;
}
.wow-card:hover .wow-card-cta {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

/* "View all" link below catalog grid */
.catalog-view-all {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Responsive — catalog products grid */
@media (max-width: 1024px) {
  .catalog-products-grid { grid-template-columns: repeat(3, 1fr); }
  .wow-card { grid-column: span 2; min-height: 220px; }
}
@media (max-width: 768px) {
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .wow-card { grid-column: span 2; min-height: 200px; }
  .wow-card-title { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .catalog-products-grid { grid-template-columns: 1fr; gap: 16px; }
  .wow-card { grid-column: span 1; min-height: 180px; }
  .wow-card-title { font-size: 2rem; }
  .wow-card-body { padding: 20px 22px; }
  .catalog-filter-pills { gap: 8px; }
  .filter-pill { font-size: 0.78rem; padding: 7px 14px; }
}

/* ═══════════════════════════════ VIDEO SECTION ═════════════ */
#video { background: #f5f3ff; padding-top: 80px; }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: -16px auto 32px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212,43,91,0.15), rgba(124,58,237,0.15));
  padding: 4px;
}
.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #D42B5B, #7C3AED, #D42B5B);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.video-protect {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: #000;
}
.video-protect video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D42B5B, #7C3AED);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 40px rgba(124,58,237,0.45), 0 0 0 6px rgba(255,255,255,0.15);
  transition: transform 0.25s ease, opacity 0.3s ease, box-shadow 0.25s ease;
}
.video-play-btn svg { margin-left: 3px; }
.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(124,58,237,0.55), 0 0 0 8px rgba(255,255,255,0.2);
}
.video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════ NEWS ════════════ */
#news { background: var(--bg); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform, box-shadow;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.15), 0 4px 12px rgba(212,43,91,0.08);
  border-color: rgba(124,58,237,0.22);
}

.news-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-visual svg { transition: transform var(--transition-move); }
.news-card:hover .news-visual svg { transform: scale(1.05); }

.news-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.news-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.news-body p {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease, color 0.2s ease;
  position: relative;
}
.news-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: calc(100% - 20px);
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-link:hover, .news-card:hover .news-link { gap: 10px; color: var(--accent); }
.news-link:hover::after, .news-card:hover .news-link::after { transform: scaleX(1); }

/* ══════════════════════════════════════════ CTA ════════════ */
#cta {
  padding: 0 40px;
  background: var(--bg);
}

/* ── Promo Banner ── */
.promo-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(139,47,201,0.38) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 20%, rgba(236,72,153,0.22) 0%, transparent 65%),
    linear-gradient(135deg, #1a0533 0%, #2d1059 30%, #4a1a7a 60%, #1a0533 100%);
  box-shadow: 0 24px 80px rgba(124,58,237,0.25), 0 4px 16px rgba(0,0,0,0.4);
}

/* Ambient glows */
.promo-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.promo-glow-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(139,47,201,0.45) 0%, transparent 70%);
  top: -80px; right: 200px;
}
.promo-glow-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, transparent 70%);
  top: 10px; right: 80px;
}

/* Decorative energy rings */
.promo-rings {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  pointer-events: none;
}
.promo-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: promo-ring-pulse 3s ease-in-out infinite;
}
.promo-ring-1 {
  width: 300px; height: 300px;
  border-width: 1.5px;
  border-top-color: rgba(196,181,253,0.45);
  border-right-color: rgba(236,72,153,0.3);
  animation-delay: 0s;
}
.promo-ring-2 {
  width: 220px; height: 220px;
  border-width: 1.5px;
  border-bottom-color: rgba(196,181,253,0.35);
  border-left-color: rgba(236,72,153,0.25);
  animation-delay: 0.8s;
  animation-direction: reverse;
}
.promo-ring-3 {
  width: 148px; height: 148px;
  border-width: 1px;
  border-top-color: rgba(236,72,153,0.4);
  border-right-color: rgba(196,181,253,0.25);
  animation-delay: 1.6s;
}
@keyframes promo-ring-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) rotate(0deg); }
  50% { opacity: 1; transform: translate(-50%, -50%) rotate(180deg); }
}

/* Content side */
.promo-content {
  position: relative;
  z-index: 3;
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 52px 48px 48px 60px;
}

/* Badge */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9420b 0%, #f97316 100%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

/* Heading */
.promo-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Subtitle */
.promo-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}

/* Discount block */
.promo-discount-block { margin: 0; }
.promo-discount-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(90deg, #fb923c 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 4px;
}
.promo-pct { /* inherits gradient */ }
.promo-discount-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Action buttons */
.promo-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.promo-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(160deg, #6b21a8 0%, #7c3aed 100%);
  box-shadow: 0 4px 18px rgba(124,58,237,0.45);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.promo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.55);
  color: #fff;
}

.promo-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.promo-btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  color: #fff;
}

/* Fine print */
.promo-fine {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

/* Visual side */
.promo-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 46%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.promo-orb {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,47,201,0.35) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
}

.promo-rocket-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.promo-crystals {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: auto;
}

.promo-rocket {
  position: relative;
  z-index: 2;
  width: 130px;
  height: auto;
  margin-bottom: 80px;
  animation: promo-rocket-hover 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(139,47,201,0.6)) drop-shadow(0 0 40px rgba(236,72,153,0.25));
}

@keyframes promo-rocket-hover {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ══════════════════════════════════════ CONTACT ════════════ */
#contact { background: var(--bg); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 0; }

.ci-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ci-item:first-child { padding-top: 0; }
.ci-item:last-child  { border-bottom: none; }

.ci-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ci-item strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ci-item span   { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-md);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.form-group:focus-within label {
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-group input:valid:not(:placeholder-shown):not(:focus),
.form-group textarea:valid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(34,197,94,0.5);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #16a34a;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  animation: formSuccessReveal 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.form-success.visible { display: flex; }
@keyframes formSuccessReveal {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════ FOOTER ════════════ */
#footer {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; display: inline-flex; }
.footer-brand p {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.social-links a:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.3);
  color: var(--accent-lt);
  transform: translateY(-2px);
}

.footer-links-group h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.footer-links-group a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-links-group a:hover { color: var(--accent-lt); }
.footer-links-group a:hover::after { transform: scaleX(1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════ PROMO CONTACT FORM ════════ */
.promo-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.promo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promo-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.promo-input::placeholder { color: rgba(255,255,255,0.4); }
.promo-input:focus {
  border-color: rgba(124,58,237,0.6);
  background: rgba(255,255,255,0.12);
}

.promo-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.promo-form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
}
.promo-form-success svg { color: #4ade80; flex-shrink: 0; }

/* ══════════════════════════════════ VIDEO STAT CHIPS ════════ */
.vid-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 14px 32px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.vid-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
  padding: 0 24px;
}
.vid-stat svg { color: var(--accent); flex-shrink: 0; }
.vid-stat:first-child { padding-left: 0; }
.vid-stat:last-child  { padding-right: 0; }

.vid-stat-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════ FOOTER CONTACT ══════════ */
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-contact li svg { flex-shrink: 0; opacity: 0.5; }
.footer-contact a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover { color: rgba(255,255,255,0.85); }

/* ══════════════════════════════════ PROCESS responsive ══════ */
@media (max-width: 768px) {
  .promo-form-row { grid-template-columns: 1fr; }
  .vid-stats { flex-direction: column; border-radius: 16px; gap: 12px; padding: 20px 24px; }
  .vid-stat { padding: 0; }
  .vid-stat-divider { width: 60px; height: 1px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════ RESPONSIVE ══════════ */
@media (max-width: 1200px) {
  .catalog-items      { grid-template-columns: repeat(2, 1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .btn-nav            { display: none; }
  .nav-inner          { gap: 20px; }

  .hero-inner         { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px; text-align: center; }
  .hero-right         { order: -1; }
  .hero-stats         { justify-content: center; }
  .hero-cta           { justify-content: center; }
  .hero-sub           { margin-left: auto; margin-right: auto; }
  .hero-orb-wrap      { width: 540px; height: 540px; }
  .orb-core           { width: 290px; height: 290px; }
  .orb-r1             { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .orb-r2             { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .orb-r3             { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .catalog-items      { grid-template-columns: repeat(2, 1fr); }
  .news-grid          { grid-template-columns: repeat(2, 1fr); }

  /* Promo banner tablet */
  .promo-banner       { min-height: 360px; }
  .promo-content      { flex: 0 0 60%; padding: 44px 36px 40px 44px; }
  .promo-rings        { right: 40px; width: 280px; height: 280px; }
  .promo-ring-1       { width: 240px; height: 240px; }
  .promo-ring-2       { width: 176px; height: 176px; }
  .promo-ring-3       { width: 120px; height: 120px; }
  .products-grid      { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .nav-inner          { gap: 14px; }
  .nav-links a        { font-size: 0.82rem; padding: 6px 10px; }
  .nav-account-btn    { font-size: 0.8rem; padding: 6px 10px 6px 8px; gap: 5px; }
}

@media (max-width: 768px) {
  .nav-links           { display: none; }
  .nav-burger          { display: flex; }
  .nav-inner           { gap: 12px; }
  .nav-account         { display: none; }
  .nav-bell            { display: none; }

  section              { padding: 88px 0; }
  .section-head        { margin-bottom: 48px; }

  .hero-orb-wrap       { width: 280px; height: 280px; }
  .orb-core            { width: 200px; height: 200px; }
  .orb-r1              { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .orb-r2              { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .orb-r3              { display: none; }
  .hero-product-card   { display: none; }

  .catalog-grid        { grid-template-columns: 1fr; }
  .catalog-items       { grid-template-columns: repeat(3, 1fr); }
  .catalog-special     { min-height: 160px; }
  .catalog-special-title { font-size: 2rem; }
  .video-frame         { border-radius: 14px; }
  .news-grid           { grid-template-columns: 1fr; }
  .footer-top          { grid-template-columns: 1fr; }
  .hshape-3, .hshape-4 { display: none; }

  /* Promo banner mobile */
  #cta { padding: 0 16px; }
  .promo-banner       { flex-direction: column; min-height: auto; border-radius: 20px; }
  .promo-content      { flex: none; width: 100%; padding: 40px 28px 36px; gap: 14px; }
  .promo-visual       { position: relative; width: 100%; height: 200px; }
  .promo-rings        { display: none; }
  .promo-glow-1, .promo-glow-2 { display: none; }
  .promo-rocket       { width: 90px; margin-bottom: 20px; }
  .promo-crystals     { width: 240px; }
  .promo-actions      { flex-direction: column; align-items: flex-start; }
  .hero-stats          { flex-wrap: wrap; gap: 24px; }
  .hstat-divider       { display: none; }
  .hstat               { padding: 0; }
  .products-grid       { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-filters     { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); }
  .product-filters::-webkit-scrollbar { display: none; }
  .filter-btn          { flex-shrink: 0; }
  .pc-visual           { height: 160px; }
  .pc-body             { padding: 14px; }
}

@media (max-width: 480px) {
  .container           { padding: 0 16px; }
  .catalog-items       { grid-template-columns: repeat(2, 1fr); }
  .hero-title          { font-size: 2rem; }
  .hero-cta            { flex-direction: column; }
  .hero-badge          { font-size: 0.68rem; }
  .footer-bottom       { flex-direction: column; gap: 6px; text-align: center; }
  .products-grid       { grid-template-columns: 1fr; gap: 14px; }
  .catalog-search-form { max-width: 100%; }
  .catalog-search-btn  { padding: 10px 14px; font-size: 0.8rem; }
  .catalog-search-input { font-size: 0.85rem; }
  .pc-visual           { height: 130px; }
  .pc-body h3          { font-size: 0.85rem; }
  .pc-body p           { display: none; }
  .pc-material-row     { overflow: hidden; }
  .pc-material-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-footer           { margin-top: 8px; }
}


/* ══════════════════════════════════════════════════════════════
   NAV ACCOUNT DROPDOWN
═══════════════════════════════════════════════════════════════ */
.nav-account {
  position: relative;
  flex-shrink: 0;
}

/* Invisible bridge that fills the gap between button and menu,
   keeping :hover active while the cursor travels between them */
.nav-account::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

/* Trigger button */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  color: #111;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 13px 8px 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-account-btn:hover,
.nav-account.open .nav-account-btn {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}

.nav-account-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.65;
}
.nav-account.open .nav-account-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.nav-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(10, 8, 28, 0.97);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124,58,237,0.08);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

/* Show on hover (desktop) */
@media (hover: hover) {
  .nav-account:hover .nav-account-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

/* Show on .open class (JS click toggle) */
.nav-account.open .nav-account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* User info header */
.nav-account-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  overflow: hidden;
}
.nav-account-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-header svg { flex-shrink: 0; }

.nav-account-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px 4px;
}

/* Menu items */
.nav-account-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}
.nav-account-item svg { flex-shrink: 0; opacity: 0.65; }
.nav-account-item:hover {
  background: rgba(124,58,237,0.2);
  color: #fff;
}
.nav-account-item:hover svg { opacity: 1; }

.nav-account-item--danger { color: rgba(248, 113, 113, 0.9); }
.nav-account-item--danger:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}
.nav-account-item--danger svg { color: inherit; }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATION BELL
   ═══════════════════════════════════════════════════════════ */
.nav-bell {
  position: relative;
  flex-shrink: 0;
}
.nav-bell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.05);
  color: #111;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
}
.nav-bell-btn:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
#nav.scrolled .nav-bell-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #333;
}
#nav.scrolled .nav-bell-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: var(--accent);
}

.nav-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(212,43,91,0.4);
  animation: bellBadgePop 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes bellBadgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.nav-bell-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: rgba(20, 18, 40, 0.95);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 2px 12px rgba(124,58,237,0.08);
  z-index: 1100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nav-bell-panel-head {
  padding: 14px 16px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.02em;
}
.nav-bell-panel-body {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}

.nav-bell-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.nav-bell-item:hover {
  background: rgba(124,58,237,0.1);
  color: #fff;
}
.nav-bell-item--unseen {
  background: rgba(124,58,237,0.06);
}
.nav-bell-item--unseen .nav-bell-item-title {
  color: #fff;
}
.nav-bell-item-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(124,58,237,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.nav-bell-item-body {
  flex: 1;
  min-width: 0;
}
.nav-bell-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-bell-item-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.nav-bell-item-time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.nav-bell-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* Mobile */
.nav-mobile-user {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 4px;
}

/* Notification bell panel: prevent viewport overflow on mobile */
@media (max-width: 768px) {
  .nav-bell-panel {
    position: fixed;
    top: 72px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 88px);
  }
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════════ */
.auth-body {
  background: #111111;
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, rgba(124,58,237,0.25) 0%, rgba(0, 0, 0, 0.8) 55%, transparent 100%),
              radial-gradient(ellipse 60% 40% at 80% 90%, rgba(212,43,91,0.12) 0%, transparent 60%),
              #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 112px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative floating shapes */
.auth-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-shape {
  position: absolute;
  animation: authShapeFloat 20s ease-in-out infinite;
}
.auth-shape-1 {
  width: 300px; height: 300px;
  top: 8%; right: 6%;
  animation-duration: 22s;
}
.auth-shape-2 {
  width: 200px; height: 200px;
  bottom: 10%; left: 4%;
  animation-duration: 18s;
  animation-delay: -6s;
}
.auth-shape-3 {
  width: 140px; height: 140px;
  top: 55%; right: 18%;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes authShapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(4deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

/* Card */
.auth-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  animation: authCardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes authCardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  text-decoration: none;
  transition: var(--transition);
}
.auth-logo:hover { opacity: 0.85; }
.auth-logo strong { color: var(--primary); }

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Error block */
.auth-errors {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-error-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c53030;
  font-size: 0.85rem;
  line-height: 1.4;
}
.auth-error-item svg { flex-shrink: 0; margin-top: 1px; }

/* Form groups */
.auth-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.auth-card .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.auth-card .form-group:focus-within label {
  color: var(--primary);
}
.auth-card .form-group input[type="email"],
.auth-card .form-group input[type="password"],
.auth-card .form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-card .form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.auth-card .form-group input:valid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(34,197,94,0.4);
}
.auth-card .form-group input::placeholder { color: var(--text-muted); }

/* Password field with toggle */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  padding-right: 46px !important;
}
.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.password-toggle:hover { color: var(--primary); }

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Remember row */
.auth-remember {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-forgot-link {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.auth-forgot-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-forgot-link:hover {
  color: var(--accent);
}
.auth-forgot-link:hover::after { transform: scaleX(1); }
.remember-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--text-md);
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Full-width submit button */
.btn-full {
  width: 100%;
  justify-content: center;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer a {
  position: relative;
}
.auth-footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-footer a:hover { color: var(--accent); }
.auth-footer a:hover::after { transform: scaleX(1); }

/* ── Per-field validation ── */
.field-validation-error,
.field-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: #c53030;
  line-height: 1.35;
  animation: fadeSlideIn 0.15s ease-out;
}
.field-validation-valid { display: none; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Input states */
.auth-card .form-group input.input-invalid {
  border-color: rgba(197,48,48,0.6);
  box-shadow: 0 0 0 3px rgba(197,48,48,0.1);
}
.auth-card .form-group input.input-invalid:focus {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197,48,48,0.15);
}
.auth-card .form-group input.input-valid {
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}
.auth-card .form-group input.input-valid:focus {
  border-color: rgba(34,197,94,0.7);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

/* Password strength meter */
.pwd-strength {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.pwd-strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.pwd-strength-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.25s ease, background 0.25s ease;
}
.pwd-strength-fill[data-score="1"] { width: 25%; background: #ef4444; }
.pwd-strength-fill[data-score="2"] { width: 50%; background: #f97316; }
.pwd-strength-fill[data-score="3"] { width: 75%; background: #eab308; }
.pwd-strength-fill[data-score="4"] { width: 100%; background: #22c55e; }
.pwd-strength-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.pwd-strength-label[data-score="1"] { color: #ef4444; }
.pwd-strength-label[data-score="2"] { color: #f97316; }
.pwd-strength-label[data-score="3"] { color: #eab308; }
.pwd-strength-label[data-score="4"] { color: #22c55e; }

@media (max-width: 520px) {
  .auth-card { padding: 36px 24px; }
  .auth-title { font-size: 1.4rem; }
  .auth-shape-1 { width: 180px; height: 180px; }
  .auth-shape-2 { width: 120px; height: 120px; }
  .auth-shape-3 { display: none; }
}

/* ═══════════════════════════════════════════════════════
   CABINET — Vertical-Tab Layout
   ═══════════════════════════════════════════════════════ */

.cab-section {
  padding: 48px 0;
  margin-top: 72px;
}

/* ── Two-column layout ── */
.cab-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ── */
.cab-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cab-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border);
}
.cab-sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cab-sidebar-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-sidebar-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cab-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

/* ── Vertical tabs ── */
.cab-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
}
.cab-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cab-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.cab-tab:hover {
  background: rgba(124,58,237,0.06);
  color: var(--text);
}
.cab-tab:hover svg { opacity: 1; }
.cab-tab--active {
  background: rgba(124,58,237,0.1);
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--primary);
}
.cab-tab--active svg { opacity: 1; color: var(--primary); }

.cab-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Content area ── */
.cab-content {
  min-width: 0;
}

.cab-tab-pane {
  display: none;
}
.cab-tab-pane--active {
  display: block;
  animation: cabFadeIn 0.2s ease;
}
@keyframes cabFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Content cards ── */
.cab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cab-card:hover {
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
}

.cab-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.cab-card-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* ── Alert messages ── */
.cab-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.cab-alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}
.cab-alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  flex-direction: column;
  align-items: flex-start;
}
.cab-alert-error div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Form styles ── */
.cab-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.cab-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.cab-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cab-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.cab-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.cab-form-group:focus-within label {
  color: var(--primary);
}
.cab-input:valid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(34,197,94,0.4);
}
.cab-input--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cab-form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cab-field-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 0;
}

/* ── Orders ── */
.cab-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  gap: 12px;
}
.cab-orders-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(124,58,237,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 8px;
}
.cab-orders-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.cab-orders-empty p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
}

.cab-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cab-order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cab-order-row:last-child { border-bottom: none; }
.cab-order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cab-order-product {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.cab-order-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cab-order-meta {
  flex-shrink: 0;
}
.cab-order-notes {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  font-style: italic;
}

/* ── Status badges ── */
.cab-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cab-status-badge--info { background: rgba(59,130,246,0.12); color: #3b82f6; }
.cab-status-badge--primary { background: rgba(212,43,91,0.12); color: #D42B5B; }
.cab-status-badge--warning { background: rgba(245,158,11,0.12); color: #f59e0b; }
.cab-status-badge--accent { background: rgba(79,172,254,0.12); color: #4facfe; }
.cab-status-badge--success { background: rgba(34,197,94,0.12); color: #22c55e; }
.cab-status-badge--muted { background: rgba(148,163,184,0.12); color: #94a3b8; }

/* ── Cabinet responsive ── */
@media (max-width: 768px) {
  .cab-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cab-sidebar {
    position: static;
    padding: 16px 0 12px;
  }
  .cab-sidebar-user {
    padding: 0 16px 14px;
  }
  .cab-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cab-tabs::-webkit-scrollbar { display: none; }
  .cab-tab {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .cab-tab--active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }
  .cab-sidebar-meta { display: none; }
  .cab-form-row { grid-template-columns: 1fr; }
  .cab-card { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGES
   ═══════════════════════════════════════════════════════════════ */

.page-section {
  padding: 120px 0;
  min-height: 60vh;
  overflow-x: hidden;
}

/* ── Product card link wrapper ── */
.pc-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .pc-img,
.pc-link:hover .pc-img {
  transform: scale(1.06);
}

.pc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
  transition: var(--transition);
  position: relative;
}
.back-link:hover { gap: 10px; color: var(--accent); }
.back-link svg { transition: transform 0.2s ease; }
.back-link:hover svg { transform: translateX(-3px); }

/* ── Product detail ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery ── */
.pd-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-gallery-main {
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.pd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-gallery-main:hover .pd-img {
  transform: scale(1.05);
}

.pd-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.pd-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  background: var(--bg-alt);
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-gallery-thumb:hover {
  border-color: var(--primary);
}
.pd-gallery-thumb--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

.pd-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.pd-desc {
  font-size: 1rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: 28px;
}

.pd-html {
  font-size: 0.95rem;
  color: var(--text-md);
  line-height: 1.7;
}
.pd-html p { margin-bottom: 12px; }
.pd-html ul, .pd-html ol { padding-left: 20px; margin-bottom: 12px; }
.pd-html li { margin-bottom: 4px; }
.pd-html a { color: var(--primary); text-decoration: underline; }
.pd-html a:hover { color: var(--accent); }

.pd-desc--placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.pd-html table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.875rem; }
.pd-html th, .pd-html td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.pd-html th { background: var(--bg-alt); font-weight: 600; }
.pd-html img { max-width: 100%; height: auto; border-radius: 8px; }

.pd-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.pd-spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-md);
}
.pd-spec svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.pd-spec strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 2px; }
.pd-spec span { font-size: 0.95rem; font-weight: 500; color: var(--text); }

.pd-price-row {
  margin-bottom: 24px;
}

.pd-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-cta {
  width: 100%;
  justify-content: center;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination-btn,
.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-md);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}

.pagination-btn:hover,
.pagination-num:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}

.pagination-num.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.pagination-btn--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.pagination-info {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Catalog search form ── */
.catalog-search-form {
  max-width: 600px;
  margin: 0 auto 28px;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px 4px 18px;
  transition: var(--transition);
}

.catalog-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.catalog-search-wrap svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.catalog-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

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

.catalog-search-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.catalog-search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.catalog-search-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-md);
}

.catalog-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.catalog-clear-link:hover {
  text-decoration: underline;
}

.catalog-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
  font-size: 0.85rem;
}

.catalog-result-count {
  color: var(--text-muted);
}

.catalog-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.catalog-clear-all:hover {
  text-decoration: underline;
}

.filter-btn svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  gap: 16px;
}
.empty-state p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Product detail responsive ── */
@media (max-width: 1024px) {
  .product-detail { gap: 32px; }
  .pd-gallery-main { aspect-ratio: 5/4; }
}
@media (max-width: 768px) {
  .page-section { padding: 88px 0 60px; }
  .product-detail { grid-template-columns: 1fr; gap: 0; overflow: hidden; }
  .pd-gallery-main { aspect-ratio: 4/3; border-radius: var(--radius) var(--radius) 0 0; }
  .pd-gallery-thumbs { flex-wrap: wrap; padding: 12px 16px 0; }
  .pd-gallery-thumb { width: 52px; height: 52px; }
  .pd-desc, .pd-html { overflow-wrap: break-word; word-break: break-word; }
  .pd-html table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pd-info {
    min-width: 0;
    background: var(--card);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    border-top: none;
  }
  .pd-gallery-wrap {
    background: var(--card);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    overflow: hidden;
  }
  .pd-spec div { min-width: 0; }
  .pd-spec span { overflow-wrap: break-word; word-break: break-word; }
}

@media (max-width: 480px) {
  .page-section { padding: 72px 0 48px; }
  .product-detail { gap: 0; }
  .pd-gallery-main { aspect-ratio: 3/2; }
  .pd-gallery-thumb { width: 44px; height: 44px; }
  .pd-gallery-thumbs { padding: 10px 12px 0; }
  .pd-info { padding: 20px 16px; }
  .pd-title { font-size: 1.4rem; }
  .pd-desc { font-size: 0.9rem; margin-bottom: 20px; }
  .pd-specs { gap: 12px; margin-bottom: 20px; }
  .pd-spec span { font-size: 0.85rem; }
  .pd-price { font-size: 1.3rem; }
  .pd-cta { font-size: 0.9rem; padding: 14px 24px; }
  .back-link { margin-bottom: 16px; font-size: 0.82rem; }
}

/* ── Pagination & search responsive ── */
@media (max-width: 768px) {
  .catalog-search-form { max-width: 100%; }
  .pagination { flex-wrap: wrap; gap: 6px; margin-top: 36px; }
  .pagination-btn,
  .pagination-num { width: 36px; height: 36px; font-size: 0.8rem; }
  .pagination-ellipsis { height: 36px; }
  .pagination-info { width: 100%; text-align: center; margin-left: 0; margin-top: 4px; }
}
@media (max-width: 480px) {
  .pagination { gap: 4px; margin-top: 28px; }
  .pagination-btn,
  .pagination-num { width: 32px; height: 32px; font-size: 0.75rem; }
  .pagination-ellipsis { width: 24px; height: 32px; font-size: 0.75rem; }
}

/* ── Prose content (Privacy, legal pages) ── */
.prose-content {
  max-width: 720px;
  margin: 0 auto;
}
.prose-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
}
.prose-content h3:first-child {
  margin-top: 0;
}
.prose-content p {
  font-size: 0.95rem;
  color: var(--text-md);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── Error page ── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.error-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.error-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(124,58,237,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.error-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.error-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* ── Filter as links ── */
.product-filters a.filter-btn {
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   CHAT
   ═══════════════════════════════════════════════════════════ */

.chat-page-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.chat-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: gap 0.2s ease, color 0.2s ease;
}
.chat-back-link svg { transition: transform 0.2s ease; }
.chat-back-link:hover { color: var(--primary); gap: 10px; }
.chat-back-link:hover svg { transform: translateX(-3px); }
.chat-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* split-panel layout */
.chat-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 72vh;
  min-height: 520px;
}

/* sidebar */
.chat-sidebar {
  border-right: 1px solid rgba(124,58,237,0.08);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.3);
}
.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(124,58,237,0.08);
}
.chat-sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.chat-new-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.chat-new-btn:hover { background: var(--accent-hover); }

.chat-list {
  flex: 1;
  overflow-y: auto;
}
.chat-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  gap: 12px;
}
.chat-list-empty p { font-size: 0.87rem; line-height: 1.5; margin: 0; }

.chat-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(124,58,237,0.06);
  cursor: pointer;
  transition: background .12s;
}
.chat-item:hover { background: rgba(124,58,237,0.04); }
.chat-item--active {
  background: rgba(124,58,237,0.08) !important;
  border-left: 3px solid var(--accent);
}
.chat-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-item-subject {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item-preview {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item-date {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: .7;
}

/* unread badge */
.chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* thread area */
.chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat-thread-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 12px;
  padding: 40px;
}
.chat-thread-placeholder p {
  font-size: 0.95rem;
  margin: 0;
}
.chat-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(124,58,237,0.08);
  background: rgba(255,255,255,0.5);
}
.chat-thread-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.chat-back-mobile {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent);
  padding: 0;
}

/* messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.chat-loading {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-size: 0.9rem;
}

/* bubbles */
.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  position: relative;
  word-break: break-word;
}
.chat-bubble--own {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble--other {
  align-self: flex-start;
  background: rgba(255,255,255,0.6);
  color: var(--text);
  border: 1px solid rgba(124,58,237,0.08);
  border-bottom-left-radius: 4px;
}
.chat-bubble-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.chat-bubble--own .chat-bubble-name { color: rgba(255,255,255,0.85); }
.chat-bubble--other .chat-bubble-name { color: #1a1a2e; }
.chat-bubble-body {
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-bubble--other .chat-bubble-body { color: #1a1a2e; }
.chat-bubble-time {
  font-size: 0.7rem;
  margin-top: 4px;
  text-align: right;
}
.chat-bubble--own .chat-bubble-time { color: rgba(255,255,255,0.7); }
.chat-bubble--other .chat-bubble-time { color: #555; }

/* read receipt checkmarks */
.chat-checkmark {
  display: inline-flex;
  align-items: center;
  gap: -3px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.chat-checkmark--read {
  color: #fff;
}
.chat-check-1,
.chat-check-2 {
  display: inline-block;
  flex-shrink: 0;
}
.chat-check-2 {
  display: none;
  margin-left: -6px;
}
.chat-checkmark--read .chat-check-2 {
  display: inline-block;
}

/* role badges */
.chat-role-badge {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.5;
}
.chat-role-badge--admin { background: #ef4444; color: #fff; }
.chat-role-badge--support { background: #f59e0b; color: #fff; }

/* attachments in bubbles */
.chat-attach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chat-attach-img {
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  object-fit: cover;
}
.chat-attach-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  font-size: 0.82rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.chat-attach-file:hover { background: rgba(0,0,0,0.1); }
.chat-bubble--own .chat-attach-file { background: rgba(255,255,255,0.2); color: #fff; }
.chat-bubble--own .chat-attach-file:hover { background: rgba(255,255,255,0.3); }

/* file preview strip above input */
.chat-file-preview {
  display: flex;
  gap: 8px;
  padding: 8px 20px 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(124,58,237,0.06);
  background: rgba(255,255,255,0.5);
}
.chat-file-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.06);
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.chat-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-file-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* emoji picker */
.chat-emoji-wrap { position: relative; }
.chat-emoji-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 320px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 10px;
  display: none;
  z-index: 100;
}
.chat-emoji-panel--open {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.chat-emoji-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1;
}
.chat-emoji-btn:hover { background: rgba(124,58,237,0.08); }

/* input toolbar (attach + emoji buttons) */
.chat-input-toolbar {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.chat-toolbar-btn {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.chat-toolbar-btn:hover {
  color: var(--accent);
  background: rgba(124,58,237,0.06);
}

/* date separator (Discord-style) */
.chat-date-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: #888;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: capitalize;
  user-select: none;
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(150,150,150,0.25);
}

/* input area */
.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(124,58,237,0.06);
  background: rgba(255,255,255,0.5);
}
.chat-input-wrap textarea {
  flex: 1;
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  max-height: 120px;
}
.chat-input-wrap textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124,58,237,0.2);
  transition: opacity .15s;
}
.chat-send-btn {
  transition: opacity 0.15s, transform 0.1s ease, box-shadow 0.15s;
}
.chat-send-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.25); }
.chat-send-btn:active { transform: scale(0.93); transition-duration: 0.06s; }

/* modal */
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat-modal {
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.chat-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.chat-modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.chat-modal-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}
.chat-modal-body { padding: 20px 24px; }
.chat-modal-foot {
  padding: 14px 24px 20px;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .chat-wrap {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .chat-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .chat-wrap--thread-active .chat-sidebar { display: none; }
  .chat-wrap--thread-active .chat-thread { min-height: 60vh; }
  .chat-back-mobile { display: block; }
  .chat-bubble { max-width: 88%; }
  .chat-page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════ NOTIFICATION BANNER ═══════════ */
.notif-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(30,20,60,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  animation: notifSlideUp 0.35s ease;
}
.notif-banner-text { flex: 1; max-width: 500px; }
.notif-banner-btn {
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.notif-banner-btn:hover { opacity: 0.85; }
.notif-banner-btn--accept {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.notif-banner-btn--dismiss {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
@keyframes notifSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 600px) {
  .notif-banner { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .notif-banner-text { width: 100%; }
}

/* ═══════════ UNIFIED APP MODAL ═══════════ */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: appModalFadeIn 0.2s ease;
}
@keyframes appModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.app-modal {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(124,58,237,0.05);
  animation: appModalScaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
@keyframes appModalScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
}
.app-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
}
.app-modal-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.app-modal-close:hover { color: #1a1a2e; }
.app-modal-body {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
}
.app-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}
.app-modal-btn {
  padding: 9px 22px;
  border-radius: 10px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.app-modal-btn:hover { opacity: 0.88; }
.app-modal-btn:active { transform: scale(0.97); }
.app-modal-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.app-modal-btn--cancel {
  background: rgba(0,0,0,0.06);
  color: #555;
}
.app-modal-btn--cancel:hover { background: rgba(0,0,0,0.1); }

/* ═══════════════════════════════════════════════════════════════
   ANTON AI CHAT WIDGET
   ═══════════════════════════════════════════════════════════════ */
.anton-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* ── FAB button ── */
.anton-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
  position: relative;
}
.anton-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(124,58,237,0.45);
}
.anton-fab-icon--close { display: none; }
.anton-fab--open .anton-fab-icon--chat { display: none; }
.anton-fab--open .anton-fab-icon--close { display: block; }

.anton-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: antonPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes antonPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Panel ── */
.anton-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 420px;
  height: 680px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.anton-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ── */
.anton-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  flex-shrink: 0;
}
.anton-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.anton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}
.anton-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}
.anton-header-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.anton-header-status {
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.2;
}
.anton-header-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.anton-header-close:hover { background: rgba(255,255,255,0.2); }

/* ── Messages ── */
.anton-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  background: var(--bg-alt);
}
.anton-msg {
  display: flex;
  max-width: 88%;
}
.anton-msg--user {
  align-self: flex-end;
}
.anton-msg--bot {
  align-self: flex-start;
}
.anton-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}
.anton-msg--user .anton-msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.anton-msg--bot .anton-msg-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-lt);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Typing indicator ── */
.anton-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}
.anton-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: antonDot 1.2s ease-in-out infinite;
}
.anton-dots span:nth-child(2) { animation-delay: 0.15s; }
.anton-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes antonDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Input bar ── */
.anton-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-lt);
  background: #fff;
  flex-shrink: 0;
}
.anton-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  background: var(--bg-alt);
}
.anton-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.anton-input::placeholder { color: var(--text-muted); }
.anton-send {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.anton-send:hover { transform: scale(1.06); }

/* ── Mobile responsive ── */
@media (max-width: 480px) {
  .anton-widget { bottom: 16px; right: 16px; }
  .anton-fab { width: 52px; height: 52px; }
  .anton-panel {
    width: calc(100vw - 32px);
    height: 80vh;
    bottom: 64px;
    right: 0;
  }
}
