/* ==========================================================================
   AI Access — Design System & Core Styles
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #0c1010;
  --panel: #151b1b;
  --panel-elevated: #1b2322;
  --panel-hover: #25302d;
  --text: #f1f6f3;
  --text-secondary: #cfdbd5;
  --muted: #a9b8b1;
  --line: #303a36;
  --line-strong: #48564f;

  /* Accent & semantic */
  --mint: #aaf3c9;
  --mint-bright: #d0ffdf;
  --mint-soft: rgba(184, 245, 203, 0.12);
  --mint-border: rgba(184, 245, 203, 0.28);
  --ink: #162319;
  --warn-bg: rgba(244, 198, 106, 0.11);
  --warn-border: rgba(244, 198, 106, 0.34);
  --warn-text: #f5d896;

  /* Light catalog surface */
  --light: #e5eee8;
  --light-surface: #f4f8f5;
  --light-line: #ccdad0;
  --light-line-strong: #a6b9ae;
  --light-muted: #4d6054;

  /* Geometry & motion */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 34px -10px rgba(22, 38, 25, 0.12), 0 2px 6px rgba(22, 38, 25, 0.05);
  --shadow-modal: 0 28px 64px rgba(3, 10, 5, 0.56);

  font-family: Manrope, 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2.5px solid #69bd86;
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button,
select {
  touch-action: manipulation;
}

button svg,
a svg {
  pointer-events: none;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1320px, calc(100% - 112px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  z-index: 120;
  transition: top 0.18s var(--ease-out);
}

.skip:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 20, 17, 0.84);
  border-bottom: 1px solid rgba(48, 60, 51, 0.7);
  backdrop-filter: blur(20px) saturate(135%);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  background: rgba(14, 18, 15, 0.94);
  border-bottom-color: rgba(74, 96, 80, 0.55);
  box-shadow: 0 10px 30px rgba(4, 9, 6, 0.34);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, calc(100% - 80px));
  height: 82px;
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.375rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  width: 32px;
  height: 32px;
  flex: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 10px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(72, 92, 77, 0.45);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c5d2c7;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.desktop-nav a[aria-current="page"] {
  color: var(--mint);
  background: rgba(184, 245, 203, 0.13);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(184, 245, 203, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 248px;
  height: 46px;
  padding: 5px 8px 5px 6px;
  border: 1px solid rgba(184, 245, 203, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(35, 52, 40, 0.88) 0%, rgba(20, 29, 23, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 6px 20px rgba(4, 12, 7, 0.34);
  color: #dce8de;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.search-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-trigger-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(184, 245, 203, 0.14);
  border: 1px solid rgba(184, 245, 203, 0.28);
  color: var(--mint);
  flex: none;
  transition: background 0.2s ease, transform 0.22s var(--ease-out), color 0.2s ease;
}

.search-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.search-trigger:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(44, 68, 51, 0.95) 0%, rgba(24, 37, 28, 0.98) 100%);
  border-color: rgba(184, 245, 203, 0.56);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(184, 245, 203, 0.12),
    0 10px 24px rgba(8, 28, 15, 0.42);
}

.search-trigger:hover .search-trigger-icon {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  transform: scale(1.04);
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(184, 245, 203, 0.2);
  background: rgba(12, 18, 14, 0.82);
  color: #b8d3bf;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: #232d25;
  border-color: #36453a;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.cart-icon {
  position: relative;
}

.cart-icon span {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ed;
  color: var(--ink);
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.login-button:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(16, 20, 17, 0.98);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(48, 58, 50, 0.45);
  font-size: 1.05rem;
  font-weight: 500;
  color: #d6e0d8;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a[aria-current="page"] {
  color: var(--mint);
  font-weight: 600;
}

/* ==========================================================================
   Buttons, Eyebrows & Shared Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  vertical-align: middle;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(184, 245, 203, 0.14);
}

.btn.primary:hover {
  background: var(--mint-bright);
  box-shadow: 0 12px 26px rgba(184, 245, 203, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: #3f4e43;
  color: var(--text);
}

.btn.secondary:hover {
  background: #232e26;
  border-color: #5a7060;
}

.btn.dark {
  background: #17241a;
  color: #f2f6ef;
}

.btn.dark:hover {
  background: #213626;
}

.btn.in-cart {
  background: #215734;
  color: #f0faf3;
}

.btn.in-cart:hover {
  background: #286a3f;
}

.btn.wide {
  width: 100%;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #bfd1c2;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.75;
}

/* Unified overlay native select — 100% accessible, zero native arrow bugs */
.custom-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px 0 15px;
  border: 1px solid #3c5443;
  border-radius: 12px;
  background: #101813;
  color: #edf6ed;
  font-size: 0.96rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-select:hover {
  border-color: #5a7a64;
}

.custom-select:has(select:focus-visible) {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(184, 245, 203, 0.16);
}

.custom-select.is-light {
  border-color: #cdd9cb;
  background: #ffffff;
  color: #1f3926;
  font-size: 0.92rem;
}

.custom-select.is-light:hover {
  border-color: #9cb8a0;
}

.custom-select.is-light:has(select:focus-visible) {
  border-color: #36784b;
  box-shadow: 0 0 0 3px rgba(54, 120, 75, 0.14);
}

.custom-select-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  pointer-events: none;
}

.custom-select-chevron {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.72;
  pointer-events: none;
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}

.custom-select:hover .custom-select-chevron {
  opacity: 1;
}

.custom-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  color-scheme: dark;
}

.custom-select.is-light select {
  color-scheme: light;
}

/* ==========================================================================
   Sections, Tabs & Product Cards
   ========================================================================== */

.section {
  padding-block: clamp(60px, 6.5vw, 96px);
}

.light-section {
  background: var(--light);
  color: var(--ink);
  color-scheme: light;
}

.light-section p {
  color: var(--light-muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  max-width: 520px;
}

.small-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: currentColor;
  transition: opacity 0.2s ease, gap 0.2s var(--ease-out);
}

.small-link:hover {
  opacity: 0.78;
}

.small-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-out);
}

.small-link:hover svg {
  transform: translateX(3px);
}

.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.task-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.55);
  color: #435448;
  border: 1px solid #d2dcd0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.task-tabs button:hover:not(.active) {
  background: #ffffff;
  border-color: #a9bca9;
  color: var(--ink);
}

.task-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 35, 25, 0.16);
}

.task-tab-count {
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

.task-tabs button.active .task-tab-count {
  color: var(--mint);
  opacity: 0.95;
}

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

.product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.26s var(--ease-out), border-color 0.24s ease, box-shadow 0.26s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  background: radial-gradient(ellipse 80% 100% at 15% 0%, var(--brand-bg, #edf1e9) 0%, transparent 72%);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #a1bfa6;
  box-shadow: var(--shadow-card);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.service-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-bg, #edf1e9);
  transition: transform 0.25s var(--ease-out);
}

.product-card:hover .service-logo {
  transform: scale(1.04);
}

.service-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.heart {
  width: 44px;
  height: 44px;
  background: #f9fbf8;
  border: 1px solid #e1e8de;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7b8d80;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.heart:hover {
  border-color: #b4cbb8;
  color: #2f6041;
  background: #edf6ef;
}

.heart svg {
  width: 19px;
  height: 19px;
}

.heart[aria-pressed="true"] {
  color: #2c6441;
  background: #ddf2e2;
  border-color: #add3b7;
}

.heart[aria-pressed="true"] svg {
  fill: currentColor;
}

.card-category {
  color: #5f7063;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.product-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.product-card h3 a {
  display: inline-block;
  padding-block: 2px;
  transition: color 0.18s ease;
}

.product-card h3 a:hover {
  color: #1f5c35;
}

.product-card .card-desc {
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0 0 20px;
  min-height: 48px;
  color: #556558;
}

.card-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #485e4e;
  background: #eff4ec;
  padding: 5px 10px;
  border-radius: 7px;
}

.tag-auto {
  color: #1d5732;
  background: #dff3e4;
}

.tag-auto::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #258547;
  flex: none;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #e7ece4;
  padding-top: 18px;
}

.card-price {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #1b3222;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-price small {
  font-weight: 500;
  font-size: 0.82rem;
  color: #5b6d60;
  letter-spacing: 0;
}

.choose-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: #eaf3e7;
  color: #1f3d28;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.choose-button svg {
  width: 17px;
  height: 17px;
  transition: transform 0.22s var(--ease-out);
}

.choose-button:hover,
.product-card:hover .choose-button {
  background: var(--ink);
  color: var(--mint);
}

.choose-button:hover svg,
.product-card:hover .choose-button svg {
  transform: translateX(3px);
}

.catalog-note {
  font-size: 0.82rem;
  margin: 24px 0 0 !important;
  color: #5c6e60 !important;
  line-height: 1.65;
}

.dark-product-grid .product-card {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   How Section & Closing CTA
   ========================================================================== */

.how-section {
  background: #e3f0e1;
  border-radius: 30px;
  padding: clamp(28px, 4.2vw, 56px);
  color: #1b3121;
}

.how-head {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}

.how-head h2 {
  color: #1a3020;
  margin: 0;
  max-width: 540px;
}

.how-head p {
  color: #4f6454;
  max-width: 360px;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  padding: 0;
  list-style: none;
  margin: 42px 0 0;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-icon {
  width: 46px;
  height: 46px;
  background: #f8fcf5;
  border: 1px solid #c5ddc1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #295233;
}

.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5b7962;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.steps h3 {
  font-size: 1.25rem;
  color: #203d27;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.steps p {
  font-size: 0.92rem;
  color: #4e6553;
  margin: 0;
  line-height: 1.7;
}

.closing {
  background: linear-gradient(135deg, var(--mint), #a4ebb9);
  color: #19311f;
  padding: clamp(32px, 4.5vw, 58px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-radius: var(--radius-lg);
}

.closing h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  max-width: 680px;
  margin: 0 0 12px;
}

.closing p {
  color: #3f6348;
  margin: 0;
}

.closing .btn {
  white-space: nowrap;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 96px);
}

.faq-copy h2 {
  max-width: 420px;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

.faq-copy p {
  line-height: 1.75;
  max-width: 340px;
}

.faq-list details {
  border-bottom: 1px solid #2f3b32;
  transition: border-color 0.2s ease;
}

.faq-list details:first-child {
  border-top: 1px solid #2f3b32;
}

.faq-list details[open] {
  border-bottom-color: #435748;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 18px 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-list summary:hover {
  color: var(--mint);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #3c4d40;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  color: #a6beac;
  transition: transform 0.28s var(--ease-out), border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.faq-list summary:hover::after {
  border-color: var(--mint-border);
  color: var(--mint);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--mint-border);
  background-color: var(--mint-soft);
  color: var(--mint);
}

.faq-list details p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #b4c3b7;
  margin: 0 36px 22px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #0c100d 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .logo {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #95a799;
  line-height: 1.7;
  max-width: 260px;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-col-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d9182;
  margin-bottom: 10px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #bcc9be;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-cta-col {
  display: flex;
  justify-content: flex-end;
}

/* Signature Telegram buttons */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(64, 186, 248, 0.36);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.18) 0%, rgba(27, 137, 198, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px rgba(10, 42, 62, 0.28);
  color: #edf7fd;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, background 0.2s ease, box-shadow 0.22s ease;
}

.tg-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 204, 255, 0.68);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.28) 0%, rgba(27, 137, 198, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px rgba(24, 136, 199, 0.28);
}

.tg-btn.wide {
  width: 100%;
}

.tg-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #37b7f7 0%, #1d93d2 100%);
  color: #ffffff;
  flex: none;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.42);
}

.tg-badge svg {
  width: 18px;
  height: 18px;
  transform: translateX(-1px);
}

.tg-btn-footer {
  justify-content: flex-start;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
}

.tg-btn-copy {
  display: grid;
  text-align: left;
  line-height: 1.25;
}

.tg-btn-copy strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f3fafe;
}

.tg-btn-copy small {
  font-size: 0.77rem;
  font-weight: 500;
  color: #9ecce4;
  margin-top: 2px;
}

.tg-btn-arrow {
  width: 17px;
  height: 17px;
  color: #8fd7fa;
  margin-left: 4px;
  flex: none;
  transition: transform 0.22s var(--ease-out);
}

.tg-btn:hover .tg-btn-arrow {
  transform: translate(2px, -2px);
}

.tg-btn-solid {
  border-color: rgba(132, 218, 255, 0.42);
  background: linear-gradient(135deg, #2fb2f2 0%, #1d90ce 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px rgba(30, 148, 211, 0.34);
}

.tg-btn-solid:hover {
  border-color: rgba(173, 232, 255, 0.72);
  background: linear-gradient(135deg, #3ec0ff 0%, #239ee0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 16px 32px rgba(34, 158, 217, 0.45);
}

.tg-btn-solid .tg-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.tg-btn-solid .tg-badge svg {
  width: 15px;
  height: 15px;
}

.tg-btn-solid .tg-btn-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.tg-btn-hero {
  min-height: 52px;
  padding: 8px 18px 8px 10px;
  border-radius: 13px;
  border-color: rgba(74, 194, 252, 0.42);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(25, 134, 196, 0.11) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(14, 62, 92, 0.3);
}

.tg-btn-hero .tg-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.tg-btn-light {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #c6dce9;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fc 100%);
  box-shadow: 0 2px 8px rgba(24, 114, 162, 0.08);
  color: #164866;
  font-size: 0.88rem;
  font-weight: 700;
}

.tg-btn-light:hover {
  border-color: #6abce5;
  background: linear-gradient(180deg, #ffffff 0%, #e1f2fb 100%);
  box-shadow: 0 8px 20px rgba(30, 145, 206, 0.16);
  color: #0e3852;
}

.tg-btn-light .tg-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(34, 158, 217, 0.32);
}

.tg-btn-light .tg-badge svg {
  width: 14px;
  height: 14px;
}

.tg-btn-light .tg-btn-arrow {
  color: #2196d4;
}

.footer-word {
  text-align: center;
  font-size: clamp(82px, 15.6vw, 232px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.08;
  white-space: nowrap;
  margin: 42px 0 18px;
  background: linear-gradient(180deg, #324437 0%, #1a241d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: #93a497;
  padding-block: 0 28px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: none;
  border: 0;
  color: #c2d0c5;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.text-button svg {
  width: 16px;
  height: 16px;
}

.text-button:hover {
  color: var(--mint);
}

/* ==========================================================================
   Page Intro, Breadcrumbs & Catalog Shell
   ========================================================================== */

.page-intro {
  padding-block: clamp(32px, 4.5vw, 58px) clamp(24px, 3vw, 38px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a493;
  font-size: 0.84rem;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 2px;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--mint);
}

.page-intro h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  margin: 0 0 18px;
}

.page-intro p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.catalog-surface {
  background: var(--light);
  color: var(--ink);
  color-scheme: light;
  padding: 40px 0 72px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7d70;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #cdd9cb;
  border-radius: 12px;
  background: #ffffff;
  color: #1c3422;
  padding: 12px 44px 12px 46px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
  border-color: #36784b;
  box-shadow: 0 0 0 3px rgba(54, 120, 75, 0.14);
}

.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #687b6d;
  transition: background 0.18s ease, color 0.18s ease;
}

.search-clear:hover {
  background: #ebf2ea;
  color: var(--ink);
}

.search-clear svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Modals, Drawer & Quick Search
   ========================================================================== */

.modal {
  border: 1px solid #3c4f41;
  background: #17201a;
  color: var(--text);
  padding: 28px;
  border-radius: 24px;
  width: min(640px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
  color-scheme: dark;
  box-shadow: var(--shadow-modal);
}

.modal::backdrop {
  background: rgba(3, 10, 6, 0.72);
  backdrop-filter: blur(10px);
}

.modal.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(470px, 100%);
  margin: 0;
  padding: 28px;
  border-radius: 24px 0 0 24px;
  border-right: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.modal-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  margin: 0;
  letter-spacing: -0.025em;
}

.modal-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mint-soft);
  border: 1px solid var(--mint-border);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-cart-btn {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #3b4d40;
  border-radius: 999px;
  background: transparent;
  color: #b7c8bb;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.clear-cart-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #5a7160;
  color: var(--text);
}

.close {
  border: 1px solid #485b4c;
  background: rgba(255, 255, 255, 0.03);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d7e6d9;
  flex: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.close:hover {
  background: #27362b;
  border-color: #657f6b;
}

.close svg {
  width: 18px;
  height: 18px;
}

.empty {
  text-align: center;
  padding: 44px 22px;
  border: 1px solid #354739;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 20px;
}

.empty svg {
  margin: 0 auto 20px;
  color: #a5d5ae;
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
}

.empty h1,
.empty h2,
.empty h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.empty p {
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.75;
  font-size: 0.94rem;
}

.cart-items {
  display: grid;
  gap: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #2f4033;
  align-items: start;
}

.cart-item > img {
  width: 48px;
  height: 48px;
  padding: 9px;
  background: #f3f4ee;
  border-radius: 13px;
  object-fit: contain;
}

.cart-item h3 {
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.cart-item h3 a:hover {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.82rem;
  color: #9cb0a1;
  margin: 0;
}

.cart-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(184, 245, 203, 0.12);
  color: var(--mint);
}

.cart-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-item .remove {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9bb09f;
  width: 40px;
  height: 40px;
  transition: background 0.18s ease, color 0.18s ease;
}

.cart-item .remove:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.cart-item .remove svg {
  width: 18px;
  height: 18px;
}

.item-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 0;
  margin-top: 4px;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  font-size: 0.88rem;
  font-weight: 500;
}

.item-buy svg {
  width: 15px;
  height: 15px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px 0;
  font-size: 1rem;
  color: #c2d1c5;
}

.cart-total strong {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.modal-info {
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 16px 0 0;
  color: #9cb0a1;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Command Palette Quick Search (Ctrl+K) */
.modal.search-modal {
  width: min(660px, calc(100% - 24px));
  padding: 0;
  border-radius: 22px;
  border: 1px solid #3c5042;
  background: linear-gradient(180deg, #19241c 0%, #131a15 100%);
  box-shadow: 0 32px 72px rgba(2, 8, 4, 0.72), 0 0 0 1px rgba(184, 245, 203, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(680px, calc(100dvh - 36px));
}

.cmd-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid #2c3a30;
  background: rgba(16, 22, 18, 0.65);
}

.cmd-bar-icon {
  width: 22px;
  height: 22px;
  color: var(--mint);
  flex: none;
}

.cmd-form {
  flex: 1;
  min-width: 0;
}

.cmd-form input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  outline: none;
}

.cmd-form input[type="search"]::placeholder {
  color: #7d9283;
}

.cmd-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cmd-clear {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #a9bca9;
  flex: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.cmd-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.cmd-clear svg {
  width: 16px;
  height: 16px;
}

.cmd-esc {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #394a3e;
  background: #141c16;
  color: #9fb3a4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.cmd-esc:hover {
  background: #223026;
  border-color: #546e5b;
  color: var(--text);
}

.cmd-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-bottom: 1px solid #263229;
  background: rgba(255, 255, 255, 0.015);
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #344539;
  background: #1c2720;
  color: #c2d2c5;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cmd-chip:hover {
  background: #27372c;
  border-color: #55725d;
  color: var(--text);
}

.cmd-chip.active {
  background: var(--mint-soft);
  border-color: var(--mint-border);
  color: var(--mint);
}

.cmd-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 16px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #36473b transparent;
}

.cmd-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #849989;
}

.cmd-section-title + .search-results,
.search-results + .cmd-section-title {
  margin-top: 14px;
}

.search-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
}

.search-result {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #ebf4ec;
  border: 1px solid transparent;
  border-radius: 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease-out);
}

.search-result:hover,
.search-result:focus-visible,
.search-result.is-selected {
  background: #243529;
  border-color: rgba(184, 245, 203, 0.34);
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-bg, #edf2e9);
  flex: none;
}

.search-result-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.search-result-icon.is-quick {
  background: rgba(184, 245, 203, 0.1);
  border: 1px solid rgba(184, 245, 203, 0.18);
  color: var(--mint);
}

.search-result-icon.is-quick svg {
  width: 19px;
  height: 19px;
}

.search-result-copy {
  min-width: 0;
  flex: 1;
}

.search-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-auto-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(184, 245, 203, 0.14);
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 700;
}

.search-result small {
  display: block;
  color: #9bb1a0;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.search-result strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.search-enter-hint {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(184, 245, 203, 0.14);
  color: var(--mint);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.search-result:hover .search-enter-hint,
.search-result.is-selected .search-enter-hint {
  opacity: 1;
}

.search-result mark {
  background: rgba(184, 245, 203, 0.25);
  color: var(--mint-bright);
  padding: 0 3px;
  border-radius: 4px;
}

.cmd-empty {
  text-align: center;
  padding: 32px 16px;
  color: #9bb0a0;
}

.cmd-empty p {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 20px;
  border-top: 1px solid #28352c;
  background: rgba(12, 17, 13, 0.85);
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: #889e8d;
}

.search-hints kbd {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 5px;
  border: 1px solid #394b3e;
  background: #172019;
  color: #c7d6ca;
  font-family: inherit;
  font-size: 0.72rem;
}

.cmd-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 600;
  transition: opacity 0.18s ease;
}

.cmd-all-link:hover {
  opacity: 0.82;
}

.cmd-all-link svg {
  width: 15px;
  height: 15px;
}

/* Quiz modal */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 6px;
}

.quiz-option {
  padding: 20px;
  background: #202d25;
  color: #e2f2e5;
  border: 1px solid #3c5443;
  border-radius: 16px;
  min-height: 122px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.quiz-option:hover {
  background: #293c30;
  border-color: var(--mint-border);
  transform: translateY(-2px);
}

.quiz-option svg {
  color: var(--mint);
  margin-bottom: 14px;
}

.quiz-option strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.quiz-option small {
  display: block;
  font-size: 0.84rem;
  color: #a4bda9;
  margin-top: 6px;
  line-height: 1.45;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 12px 22px;
  border-radius: 999px;
  background: #dcfce5;
  color: #15331e;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 120;
  box-shadow: 0 12px 32px rgba(4, 12, 7, 0.36);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.24s var(--ease-out);
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   GameHub Page
   ========================================================================== */

.game-hero {
  position: relative;
  background: #1b162a;
  border: 1px solid #4b3e65;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 54px);
  min-height: 410px;
  overflow: hidden;
  margin: 0 0 42px;
  isolation: isolate;
}

.game-hero picture,
.game-hero picture > img {
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.56;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
}

.game-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  position: relative;
  max-width: 600px;
  margin: 0 0 20px;
}

.game-hero p {
  max-width: 440px;
  position: relative;
  color: #cbc0de;
  line-height: 1.75;
}

.game-hero .btn {
  position: relative;
  background: #d8ccfc;
  color: #2c2042;
  margin-top: 10px;
}

.game-hero .btn:hover {
  background: #eae2ff;
}

.game-hero .eyebrow {
  position: relative;
  color: #cbb6eb;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid #483d5b;
  border-radius: 17px;
  background: #1f1b28;
  color: #e1dbf0;
  min-height: 86px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.platform-button:hover {
  background: #2b2438;
  border-color: #776498;
  transform: translateY(-2px);
}

.platform-button img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  object-fit: contain;
  flex: none;
}

.platform-button.active {
  background: #3d2f54;
  border-color: #b79de0;
  box-shadow: 0 0 0 1px rgba(183, 157, 224, 0.35);
}

.platforms-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.platforms-more-label {
  font-size: 0.82rem;
  color: #9e96b0;
  margin-right: 4px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  border: 1px solid #3c344c;
  background: #1a1722;
  color: #d3cbe4;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.platform-chip:hover {
  background: #292336;
  border-color: #705e91;
  color: #fff;
}

.platform-chip.active {
  background: #3d2f54;
  border-color: #b79de0;
  color: #fff;
}

.platform-chip img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}

.game-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 38px;
  padding-bottom: 84px;
}

/* ==========================================================================
   Forms, Support, Account, Checkout & Legal
   ========================================================================== */

.form-card {
  background: var(--panel);
  border: 1px solid #324337;
  border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
}

.form-card h2 {
  font-size: clamp(1.55rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.form-card > p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c6ddcc;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  background: #101813;
  border: 1px solid #3c5443;
  border-radius: 12px;
  padding: 12px 15px;
  color: #edf6ed;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(184, 245, 203, 0.14);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: #8da493;
}

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

.amount-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.amount-presets button {
  min-width: 62px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3c5443;
  border-radius: 10px;
  background: #1f3024;
  color: #c4e6cd;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.amount-presets button:hover {
  background: #2a4231;
  border-color: #638b6d;
}

.amount-presets button.active {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.purchase-card {
  background: #f3f6ee;
  color: #1f3524;
  padding: 26px;
  border-radius: 24px;
  color-scheme: light;
}

.purchase-card h2 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

.purchase-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0 22px;
  align-items: baseline;
  border-top: 1px solid #d5e0d1;
  padding-top: 18px;
}

.purchase-line > span {
  font-size: 0.875rem;
  color: #5c7161;
}

.purchase-line strong {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.purchase-foot {
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 14px 0 0;
  color: #647869;
}

.purchase-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #214a2f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.small-notice {
  font-size: 0.86rem;
  line-height: 1.75;
  border: 1px solid #3b4f40;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
  border-radius: 14px;
  color: #a9bfad;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 84px;
  align-items: start;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 42px;
  padding-block: 12px 88px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.account-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 18px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #b1c6b7;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.account-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.account-nav .active {
  background: #243729;
  color: var(--mint);
  border-color: #3a5741;
  font-weight: 600;
}

.account-nav-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(184, 245, 203, 0.14);
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.account-profile {
  padding: 0 0 24px;
  border-bottom: 1px solid #2f4033;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #c2e4bc;
  color: #214429;
  display: grid;
  place-items: center;
  flex: none;
}

.account-profile h2 {
  font-size: 1.65rem;
  margin: 0 0 4px;
}

.account-profile p {
  font-size: 0.875rem;
  margin: 0;
}

.settings-list {
  display: grid;
}

.settings-row {
  padding: 20px 0;
  border-bottom: 1px solid #2f4134;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.settings-row-copy strong {
  display: block;
  margin-bottom: 2px;
}

.settings-row-copy small {
  color: #93a898;
  font-size: 0.82rem;
}

.settings-value {
  color: #b4c8b9;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.settings-toggle {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #3f5545;
  background: #1d2920;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.settings-toggle:hover {
  background: #283a2d;
  border-color: #5b7963;
}

.settings-toggle[aria-pressed="true"] {
  background: var(--mint-soft);
  border-color: var(--mint-border);
  color: var(--mint);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 54px;
  padding-bottom: 88px;
}

.checkout-layout .cart-items {
  align-content: start;
}

.checkout-summary {
  position: sticky;
  top: 108px;
  background: #1c2920;
  border: 1px solid #3f5845;
  border-radius: 24px;
  padding: 28px;
  height: fit-content;
}

.checkout-summary h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.checkout-summary p {
  font-size: 0.9rem;
  line-height: 1.75;
}

.checkout-summary .btn + .btn {
  margin-top: 10px;
}

.legal-links {
  display: grid;
  gap: 14px;
  margin: 22px 0 64px;
}

.legal-links a {
  padding: 22px 24px;
  border: 1px solid #354a3b;
  background: var(--panel);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.legal-links a:hover {
  background: var(--panel-elevated);
  border-color: #55735d;
  transform: translateY(-2px);
}

.legal-links small {
  color: #9cb0a1;
  font-size: 0.84rem;
  font-weight: 400;
}

.message-preview {
  white-space: pre-wrap;
  width: 100%;
  padding: 16px 18px;
  background: #0f1712;
  border: 1px solid #3e5846;
  border-radius: 14px;
  color: #d6e8da;
  font-size: 0.9rem;
  min-height: 175px;
  line-height: 1.75;
  resize: vertical;
}

.loading {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #a6c1ad;
  font-size: 0.95rem;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #2b3c2f;
  border-top-color: var(--mint);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.filter-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: #536858;
  border: 1px dashed #c8d5c7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.filter-empty h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.filter-empty p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.error-panel {
  padding: 64px 28px;
  min-height: 50vh;
  max-width: 680px;
  margin: auto;
}

.error-panel h1 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.copyright-note {
  font-size: 0.84rem;
  line-height: 1.75;
  color: #97aa9c;
  padding-bottom: 56px;
  max-width: 820px;
}

.how-page {
  padding: 16px 0 88px;
}

.how-page .how-section {
  margin-bottom: 32px;
}

.how-page .faq-list {
  max-width: 820px;
  margin: 56px auto 0;
}

.plan-field {
  padding: 0;
  border: 0;
  margin: 20px 0;
  min-width: 0;
}

.plan-field legend {
  font-size: 0.84rem;
  font-weight: 700;
  color: #344a3a;
  margin-bottom: 10px;
}

.plan-list {
  display: grid;
  gap: 8px;
}

.plan {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px 13px;
  background: #ffffff;
  border: 1px solid #d4dfd0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.plan:hover {
  border-color: #9db9a1;
  background: #f9fcf7;
}

.plan:has(input:checked) {
  border-color: #296b3e;
  background: #e4f3df;
  box-shadow: 0 0 0 1px #296b3e;
}

.plan input {
  accent-color: #2c6d40;
  margin: 0;
  width: 16px;
  height: 16px;
}

.plan-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.plan-title {
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #1c3122;
}

.plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  color: #54695a;
}

.plan-pill-auto {
  color: #1e5e34;
  font-weight: 600;
}

.plan strong {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #1a3121;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1180px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .header-inner {
    width: calc(100% - 48px);
    gap: 16px;
  }

  .desktop-nav {
    gap: 4px;
    margin-right: 4px;
  }

  .desktop-nav a {
    padding: 0 10px;
  }

  .search-trigger-label,
  .search-kbd {
    display: none;
  }

  .search-trigger {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    border-color: rgba(184, 245, 203, 0.24);
    background: rgba(184, 245, 203, 0.08);
    box-shadow: none;
  }

  .search-trigger-icon {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
  }

  .search-trigger:hover {
    background: #232d25;
    border-color: #36453a;
  }

  .login-button {
    padding-inline: 16px;
  }

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

  .footer-cta-col {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .faq-section {
    gap: 48px;
  }
}

@media (max-width: 950px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    height: 76px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-head {
    display: block;
  }

  .how-head p {
    max-width: 100%;
    margin-top: 16px;
  }

  .steps {
    gap: 28px;
  }

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

  .faq-copy h2 {
    max-width: none;
  }

  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-panels {
    gap: 20px;
  }

  .account-layout {
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }

  .account-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-layout {
    gap: 30px;
  }

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

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    width: calc(100% - 28px);
    height: 70px;
    gap: 8px;
  }

  .logo {
    font-size: 1.22rem;
    gap: 8px;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-actions .login-button {
    display: none;
  }

  .section-head {
    display: block;
    margin-bottom: 24px;
  }

  .section-head .small-link {
    margin-top: 12px;
  }

  .task-tabs {
    gap: 7px;
    margin-bottom: 22px;
  }

  .task-tabs button {
    font-size: 0.84rem;
    padding: 9px 14px;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card {
    padding: 20px;
    border-radius: 20px;
  }

  .product-card h3 {
    font-size: 1.38rem;
  }

  .product-card .card-desc {
    font-size: 0.9rem;
    min-height: 0;
    margin-bottom: 16px;
  }

  .card-bottom {
    flex-wrap: wrap;
    padding-top: 16px;
  }

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

  .closing {
    display: block;
  }

  .closing .btn {
    margin-top: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col a {
    min-height: 44px;
  }

  .footer-word {
    font-size: 16vw;
    margin: 26px 0 16px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    padding-bottom: 20px;
  }

  .game-hero {
    min-height: 360px;
    margin-bottom: 30px;
  }

  .game-hero picture,
  .game-hero picture > img {
    width: 100%;
    opacity: 0.28;
    mask-image: linear-gradient(0deg, #000, transparent 92%);
  }

  .game-panels {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding-bottom: 56px;
  }

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

  .account-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 0 56px;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .account-nav a {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 56px;
  }

  .checkout-summary {
    position: static;
  }

  .modal {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal.drawer {
    padding: 22px 18px;
    border-radius: 0;
  }

  .modal.search-modal {
    padding: 0;
    width: calc(100% - 20px);
  }

  .cmd-bar {
    padding: 12px 12px 12px 14px;
  }

  .cmd-chips {
    padding: 10px 14px;
  }

  .cmd-body {
    padding: 12px 12px 14px;
  }

  .cmd-footer {
    padding: 10px 14px;
  }

  .search-enter-hint,
  .search-hints {
    display: none;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-option {
    min-height: 88px;
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 14px;
    align-content: center;
  }

  .quiz-option svg {
    grid-row: 1 / 3;
    margin: 2px 0 0;
  }

  .legal-links a {
    display: block;
  }

  .legal-links small {
    display: block;
    margin-top: 6px;
  }

  .settings-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .product-grid,
  .account-layout .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .platform-button {
    padding: 14px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .platform-button img {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   Reduced Motion (System + User Preference)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html[data-motion="reduced"] {
  scroll-behavior: auto !important;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
