/* valorant-play — design preview v2 (localhost only) */

:root,
html[data-theme='dark'] {
  --v2-red: #ff4655;
  --v2-red-glow: rgba(255, 70, 85, 0.55);
  --v2-cyan: #5ee7df;
  --v2-dark: #0a0e14;
  --v2-dark-2: #0f1923;
  --v2-surface: #0a0e14;
  --v2-card: rgba(255, 255, 255, 0.04);
  --v2-card-solid: #141c26;
  --v2-border: rgba(255, 255, 255, 0.1);
  --v2-text: #f4f5f7;
  --v2-muted: #9aa3ad;
  --v2-header-bg: #0a0e14;
  --v2-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --v2-mesh-1: rgba(255, 70, 85, 0.12);
  --v2-mesh-2: rgba(94, 231, 223, 0.06);
  --v2-font: 'Manrope', system-ui, -apple-system, sans-serif;
  --v2-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v2-max: 1240px;
  --v2-footer-bg: #0f1923;
  --v2-input-bg: rgba(0, 0, 0, 0.32);
}

html[data-theme='light'] {
  background-color: #f2f9fc;
  --v2-red: #e63e4d;
  --v2-red-glow: rgba(230, 62, 77, 0.35);
  --v2-cyan: #0d9b8f;
  --v2-dark: #f4f6f8;
  --v2-dark-2: #ffffff;
  --v2-surface: #f2f9fc;
  --v2-card: rgba(255, 255, 255, 0.92);
  --v2-card-solid: #ffffff;
  --v2-border: rgba(15, 25, 35, 0.1);
  --v2-text: #0f1923;
  --v2-muted: #5c6773;
  --v2-header-bg: #ffffff;
  --v2-shadow: 0 16px 48px rgba(15, 25, 35, 0.08);
  --v2-mesh-1: rgba(255, 70, 85, 0.08);
  --v2-mesh-2: rgba(13, 155, 143, 0.06);
  --v2-footer-bg: #0f1923;
  --v2-input-bg: #f0f2f5;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: var(--v2-surface);
}

body.v2 {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--v2-font);
  background-color: var(--v2-surface);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, var(--v2-mesh-1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 40%, var(--v2-mesh-2), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, var(--v2-mesh-1), transparent 45%);
  color: var(--v2-text);
  line-height: 1.5;
  overflow-x: hidden;
}

html[data-theme='light'] body.v2 {
  background-color: #f2f9fc;
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(255, 70, 85, 0.14), transparent 50%),
    radial-gradient(ellipse 100% 70% at 95% 5%, rgba(13, 155, 143, 0.12), transparent 48%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(155, 123, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #f9f4ff 0%, #f2f9fc 42%, #fff8f6 100%);
}

.v2-container {
  width: min(100% - 32px, var(--v2-max));
  margin: 0 auto;
}

/* Preview badge */
.v2-preview-badge {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--v2-red), #ff8a65);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 24px var(--v2-red-glow);
  animation: v2-badge-pulse 3s ease-in-out infinite;
}

@keyframes v2-badge-pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--v2-red-glow); }
  50% { box-shadow: 0 4px 36px var(--v2-red-glow), 0 0 60px rgba(94, 231, 223, 0.2); }
}

.v2-grain {
  display: none;
}

.hidden {
  display: none !important;
}

.v2-theme-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--v2-border);
  background: var(--v2-card);
  color: var(--v2-text);
  cursor: pointer;
  transition: transform 0.25s var(--v2-ease), border-color 0.25s, box-shadow 0.25s;
}

.v2-theme-toggle:hover {
  transform: scale(1.05);
  border-color: rgba(255, 70, 85, 0.45);
  box-shadow: 0 0 20px var(--v2-red-glow);
}

.v2-theme-toggle__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.v2-progress,
.progress-bar {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
}

/* Header */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--v2-header-bg);
  border-top: none;
  border-bottom: 1px solid var(--v2-border);
  margin: 0;
  box-shadow: none;
}

.v2-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.v2-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v2-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  background: var(--v2-card);
  color: var(--v2-text);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.v2-menu-btn__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.v2-menu-btn:hover {
  border-color: rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.08);
}

.v2-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--v2-ease), visibility 0.3s;
  pointer-events: none;
}

.v2-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.v2-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11001;
  width: min(300px, 92vw);
  height: 100%;
  height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background: var(--v2-card-solid);
  border-left: 1px solid var(--v2-border);
  box-shadow: -16px 0 56px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.35s var(--v2-ease), visibility 0.35s;
  display: flex;
  flex-direction: column;
}

.v2-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

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

.v2-drawer__title {
  font-family: var(--v2-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v2-drawer__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--v2-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme='light'] .v2-drawer__close {
  background: rgba(15, 25, 35, 0.06);
}

.v2-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-drawer__nav a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: var(--v2-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  color: var(--v2-muted);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.v2-drawer__nav a:hover,
.v2-drawer__nav a.is-active {
  color: var(--v2-text);
  background: rgba(255, 70, 85, 0.1);
  border-color: rgba(255, 70, 85, 0.25);
}

.v2-drawer__nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-red), #ff6b4a);
  border-color: transparent;
}

.v2-drawer__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--v2-border);
}

.v2-drawer__theme-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v2-muted);
}

.v2-theme-toggle--drawer {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 12px 16px;
  gap: 10px;
  justify-content: flex-start;
}

.v2-theme-toggle__text {
  font-family: var(--v2-font);
  font-size: 14px;
  font-weight: 600;
}

body.v2-drawer-open {
  overflow: hidden;
}

.v2-header__logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.v2-header__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-header__nav a {
  padding: 10px 16px;
  font-family: var(--v2-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--v2-muted);
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.v2-header__nav a:hover {
  color: var(--v2-text);
  background: rgba(255, 70, 85, 0.06);
  text-decoration: none;
}

.v2-header__nav a:focus-visible {
  outline: 2px solid var(--v2-red);
  outline-offset: 2px;
}

.v2-header__nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-red), #ff6b4a);
  border-color: transparent;
  box-shadow: 0 4px 18px var(--v2-red-glow);
  text-decoration: none;
}

/* Hero */
.v2-hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v2-hero__mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(255, 70, 85, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 50% at 80% 20%, rgba(94, 231, 223, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 70, 85, 0.15), transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #0f1923 100%);
  animation: v2-mesh-shift 14s ease-in-out infinite alternate;
}

@keyframes v2-mesh-shift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

.v2-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.v2-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.v2-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: v2-glow-float 10s ease-in-out infinite;
  pointer-events: none;
}

.v2-hero__glow--1 {
  width: 180px;
  height: 180px;
  top: 20%;
  left: 10%;
  background: rgba(255, 70, 85, 0.35);
}

.v2-hero__glow--2 {
  width: 140px;
  height: 140px;
  top: 30%;
  right: 14%;
  background: rgba(94, 231, 223, 0.28);
  animation-delay: -3s;
}

.v2-hero__glow--3 {
  width: 120px;
  height: 120px;
  bottom: 25%;
  right: 28%;
  background: rgba(255, 138, 101, 0.25);
  animation-delay: -5s;
}

@keyframes v2-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -14px) scale(1.06); }
}

.v2-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 20px 80px;
  max-width: 820px;
}

.v2-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.v2-emoji-pop {
  display: inline-block;
  animation: v2-emoji-pop 2.5s ease-in-out infinite;
}

@keyframes v2-emoji-pop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(-8deg); }
  60% { transform: scale(1.15) rotate(8deg); }
}

.v2-hero__domain {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--v2-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.v2-hero__title {
  margin: 0 0 20px;
  font-family: var(--v2-display);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f4f5f7;
}

.v2-gradient-text {
  background: linear-gradient(135deg, var(--v2-red) 0%, #ff8a65 40%, var(--v2-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v2-shimmer 4s linear infinite;
  background-size: 200% auto;
}

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

.v2-hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(244, 245, 247, 0.78);
  max-width: 520px;
  margin-inline: auto;
}

.v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--v2-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--v2-ease), box-shadow 0.3s;
}

.v2-btn--primary {
  background: linear-gradient(135deg, var(--v2-red), #ff6b4a);
  color: #fff;
  box-shadow: 0 8px 32px var(--v2-red-glow);
}

.v2-btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--v2-red-glow);
}

.v2-btn--ghost {
  background: transparent;
  color: var(--v2-text);
  border: 1px solid var(--v2-border);
}

.v2-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.v2-btn--sm {
  padding: 10px 18px;
  font-size: 12px;
}

.v2-hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--v2-border);
  border-radius: 14px;
}

.v2-hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--v2-red);
  border-radius: 2px;
  animation: v2-scroll-dot 2s ease-in-out infinite;
}

@keyframes v2-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Marquee */
.v2-marquee {
  overflow: hidden;
  border-block: 1px solid var(--v2-border);
  background: rgba(255, 70, 85, 0.06);
  padding: 14px 0;
}

.v2-marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: v2-marquee 28s linear infinite;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.v2-marquee__track span,
.v2-marquee__item {
  flex-shrink: 0;
}

.v2-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-text);
}

.v2-marquee__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-red);
  box-shadow: 0 0 10px var(--v2-red-glow);
}

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

/* Warranty */
.v2-warranty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.08), rgba(94, 231, 223, 0.06));
  transition: background 0.3s;
}

.v2-warranty:hover {
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.14), rgba(94, 231, 223, 0.1));
}

.v2-warranty__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4655'%3E%3Cpath d='M12 2 4 5v6c0 5.25 3.4 10.15 8 11.35C16.6 21.15 20 16.25 20 11V5l-8-3z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.v2-warranty p {
  margin: 0;
  font-size: 13px;
  color: var(--v2-muted);
}

.v2-warranty strong {
  color: var(--v2-red);
}

/* Search panel */
.v2-search {
  padding: 32px 0;
}

.v2-search__glass {
  padding: 24px;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--v2-shadow);
}

.v2-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.v2-search__prices {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.v2-search__prices .v2-input-num {
  flex: 1;
  min-width: 0;
}

.v2-search__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa3ad'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
}

html[data-theme='light'] .v2-search__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c6773'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.v2-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--v2-input-bg);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  min-height: 48px;
}

.v2-search__field--grow {
  flex: 1;
  min-width: 200px;
}

.v2-search__field input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--v2-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.v2-search__field input::placeholder {
  color: var(--v2-muted);
}

.v2-input-num {
  min-height: 48px;
  padding: 0 14px;
  background: var(--v2-input-bg);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  color: var(--v2-text);
  font-family: inherit;
  font-size: 14px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.v2-input-num::-webkit-outer-spin-button,
.v2-input-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.v2-num-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.v2-input-num--stepped {
  width: 100%;
  padding-right: 42px;
}

.v2-num-field__steppers {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  width: 30px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-num-field__step {
  flex: 1;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  transition: background-color 0.2s var(--v2-ease);
}

.v2-num-field__step:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.v2-num-field__step--up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
}

.v2-num-field__step--down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .v2-num-field__steppers {
  background: rgba(15, 25, 35, 0.06);
  border-color: rgba(15, 25, 35, 0.1);
}

html[data-theme='light'] .v2-num-field__step--up,
html[data-theme='light'] .v2-num-field__step--down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
}

html[data-theme='light'] .v2-num-field__step--down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.v2-select {
  min-height: 48px;
  min-width: 168px;
  padding: 0 48px 0 16px;
  background-color: var(--v2-input-bg);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  color: var(--v2-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 48px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ad' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

.v2-select::-ms-expand {
  display: none;
}

html[data-theme='light'] .v2-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.v2-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom region dropdown (тёмная тема) */
.v2-dropdown {
  position: relative;
  min-width: 168px;
}

.v2-dropdown__trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 16px;
  display: flex;
  align-items: center;
  text-align: left;
  background: var(--v2-input-bg);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  color: var(--v2-text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--v2-ease), box-shadow 0.2s var(--v2-ease);
}

.v2-dropdown__trigger:hover,
.v2-dropdown.is-open .v2-dropdown__trigger {
  border-color: rgba(255, 70, 85, 0.35);
}

.v2-dropdown__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-dropdown__chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s var(--v2-ease);
}

.v2-dropdown.is-open .v2-dropdown__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.v2-dropdown__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: #121a24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.v2-dropdown__menu[hidden] {
  display: none;
}

.v2-dropdown__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(244, 245, 247, 0.92);
  cursor: pointer;
  transition: background 0.15s var(--v2-ease), color 0.15s var(--v2-ease);
}

.v2-dropdown__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.v2-dropdown__option.is-selected {
  background: rgba(255, 70, 85, 0.22);
  color: #fff;
}

html[data-theme='light'] .v2-dropdown__menu {
  background: #fff;
  border-color: rgba(15, 25, 35, 0.12);
  box-shadow: 0 12px 40px rgba(15, 25, 35, 0.12);
}

html[data-theme='light'] .v2-dropdown__option {
  color: var(--v2-text);
}

html[data-theme='light'] .v2-dropdown__option.is-selected {
  background: rgba(230, 62, 77, 0.12);
  color: var(--v2-text);
}

html[data-theme='light'] .v2-dropdown__chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.v2-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--v2-muted);
  cursor: pointer;
  user-select: none;
}

.v2-check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: #141c26;
  cursor: pointer;
  transition: background 0.2s var(--v2-ease), border-color 0.2s var(--v2-ease), box-shadow 0.2s;
}

.v2-check input[type='checkbox']:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: #1a2430;
}

.v2-check input[type='checkbox']:checked {
  border-color: rgba(255, 70, 85, 0.55);
  background-color: var(--v2-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.2);
}

.v2-check input[type='checkbox']:focus-visible {
  outline: 2px solid var(--v2-red);
  outline-offset: 2px;
}

html[data-theme='light'] .v2-check input[type='checkbox'] {
  background: #fff;
  border-color: rgba(15, 25, 35, 0.18);
}

html[data-theme='light'] .v2-check input[type='checkbox']:hover {
  border-color: rgba(15, 25, 35, 0.28);
  background: #f8fafc;
}

html[data-theme='light'] .v2-check input[type='checkbox']:checked {
  background-color: var(--v2-red);
  border-color: var(--v2-red);
}

.v2-search__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.v2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-chip {
  padding: 10px 18px;
  font-family: var(--v2-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v2-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--v2-ease);
}

.v2-chip:hover,
.v2-chip.is-active {
  color: var(--v2-text);
  border-color: var(--v2-red);
  background: rgba(255, 70, 85, 0.12);
  box-shadow: none;
}

html[data-theme='light'] .v2-chip.is-active {
  color: #fff;
  background: var(--v2-red);
  border-color: var(--v2-red);
}

.v2-results-count {
  font-size: 13px;
  color: var(--v2-muted);
}

/* Catalog */
.v2-catalog {
  padding: 16px 0 64px;
}

/* Секции каталога всегда видны (после фильтра IO не переинициализируется) */
.v2-catalog-section {
  opacity: 1;
  transform: none;
}

.v2-catalog-section.v2-reveal {
  opacity: 1;
  transform: none;
}

.v2-section-title {
  margin: 48px 0 28px;
  font-family: var(--v2-display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v2-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  opacity: 1;
  transform: translateY(0);
  animation: v2-card-enter 0.45s var(--v2-ease) both;
  transition: box-shadow 0.35s, border-color 0.35s, transform 0.35s var(--v2-ease);
}

@keyframes v2-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v2-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255, 70, 85, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 3;
}

.v2-card:hover {
  border-color: rgba(255, 70, 85, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 70, 85, 0.08);
  transform: translateY(-6px);
}

.v2-card:hover::before {
  opacity: 1;
}

.v2-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.v2-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(165deg, #0c1118 0%, #151f2b 100%);
}

html[data-theme='light'] .v2-card__img-wrap {
  background: linear-gradient(165deg, #e8ecf1 0%, #f4f6f8 100%);
}

.v2-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s var(--v2-ease);
}

.v2-card:hover .v2-card__img {
  transform: scale(1.03);
}

.v2-card__mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--v2-red), #ff6b4a);
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--v2-red-glow);
}

.v2-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  background: var(--v2-card-solid);
  min-height: 132px;
}

.v2-card__title {
  flex: 1;
  margin: 0 0 10px;
  font-family: var(--v2-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--v2-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.v2-card__tag {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(94, 231, 223, 0.12);
  color: var(--v2-cyan);
  border-radius: 6px;
}

.v2-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--v2-border);
}

.v2-card__price {
  font-family: var(--v2-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--v2-red);
}

.v2-card__price-old {
  font-family: var(--v2-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--v2-muted);
  text-decoration: line-through;
}

.v2-card__currency {
  font-family: var(--v2-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v2-muted);
}

/* Stats */
.v2-stats {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, transparent, rgba(255, 70, 85, 0.04));
}

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

.v2-stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--v2-ease);
}

.v2-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 231, 223, 0.3);
}

.v2-stat__emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  animation: v2-float 5s ease-in-out infinite;
}

.v2-stat__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

.v2-stat__num {
  font-family: var(--v2-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--v2-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v2-stat__label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v2-muted);
}

/* Footer */
.v2-footer {
  margin-top: auto;
  padding: 28px 0 32px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

html[data-theme='light'] .v2-footer {
  border-top-color: rgba(15, 25, 35, 0.12);
  color: var(--v2-muted);
}

html[data-theme='light'] .v2-footer .footer__links a,
html[data-theme='light'] .v2-footer a {
  color: #3d4f5f;
}

html[data-theme='light'] .v2-footer .footer__links a:hover,
html[data-theme='light'] .v2-footer a:hover {
  color: var(--v2-red);
}

html[data-theme='light'] .v2-footer .footer__sep {
  color: rgba(15, 25, 35, 0.28);
  opacity: 1;
}

.v2-footer .footer {
  background: transparent;
  padding: 0;
}

.v2-footer .footer__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.v2-footer .footer__links a:hover {
  color: var(--v2-cyan);
  text-decoration: none;
}

.v2-footer .footer__sep {
  color: rgba(255, 255, 255, 0.25);
}

.v2-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.v2-footer a:hover {
  color: var(--v2-cyan);
  text-decoration: none;
}

/* Empty / loading */
.v2-loading,
.v2-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--v2-muted);
}

.v2-empty__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Reveal */
.v2-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--v2-ease), transform 0.7s var(--v2-ease);
}

.v2-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  padding: 14px 20px;
  background: rgba(15, 25, 35, 0.95);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: v2-toast-in 0.4s var(--v2-ease);
}

@keyframes v2-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
  .v2-header__nav {
    display: none;
  }

  .v2-menu-btn {
    display: flex;
  }

  .v2-drawer {
    width: min(100%, 320px);
  }

  .v2-search {
    padding: 20px 0;
  }

  .v2-search__glass {
    padding: 16px;
    border-radius: 16px;
  }

  .v2-search__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .v2-search__cell--search,
  .v2-search__cell--region,
  .v2-search__cell--mail {
    grid-column: 1 / -1;
  }

  .v2-search__field--grow {
    min-width: 0;
  }

  .v2-select,
  .v2-dropdown {
    width: 100%;
  }

  .v2-search__cell--prices {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .v2-search__cell--reset {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    justify-self: stretch;
  }

  .v2-search__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }

  .v2-chips {
    width: 100%;
  }

  .v2-chip {
    flex: 1 1 auto;
    text-align: center;
    min-width: calc(50% - 4px);
  }

  .v2-results-count {
    text-align: center;
    width: 100%;
  }

  .v2-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .v2-stats__grid {
    grid-template-columns: 1fr;
  }

  .v2-hero__glow {
    opacity: 0.3;
  }
}

/* Hero & pill always readable (dark block on any theme) */
.v2-hero__pill,
.v2-hero__domain {
  color: rgba(244, 245, 247, 0.9);
}

html[data-theme='light'] .v2-search__glass {
  background: #fff;
  border-color: rgba(15, 25, 35, 0.08);
  box-shadow: 0 8px 32px rgba(15, 25, 35, 0.06);
}

html[data-theme='light'] .v2-search__field:focus-within,
html[data-theme='light'] .v2-select:focus,
html[data-theme='light'] .v2-input-num:focus {
  border-color: rgba(230, 62, 77, 0.45);
  box-shadow: 0 0 0 3px rgba(230, 62, 77, 0.1);
}

html[data-theme='light'] .v2-marquee {
  background: rgba(255, 70, 85, 0.04);
}

html[data-theme='light'] .v2-warranty {
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.05), rgba(13, 155, 143, 0.04));
}

html[data-theme='light'] #reset-filters-btn {
  color: var(--v2-muted);
  border-color: var(--v2-border);
}

@media (max-width: 480px) {
  .v2-products-grid {
    grid-template-columns: 1fr;
  }
}

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