:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --basic-bg: #101112;
  --basic-surface: #17191a;
  --basic-surface-2: #1d1f20;
  --basic-text: #f2f1ed;
  --basic-muted: #a09f99;
  --basic-line: #2b2d2e;
  --basic-line-strong: #46494a;
  --basic-accent: #f0efe9;
  --basic-accent-text: #151617;
  --basic-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  --bg: var(--basic-bg);
  --panel: var(--basic-surface);
  --panel2: var(--basic-surface-2);
  --text: var(--basic-text);
  --muted: var(--basic-muted);
  --line: var(--basic-line);
  --line2: var(--basic-line-strong);
  --accent: var(--basic-text);
  --accent2: var(--basic-muted);
  --dark: var(--basic-bg);
}

html[data-theme="light"] {
  color-scheme: light;
  --basic-bg: #f2f1ed;
  --basic-surface: #faf9f6;
  --basic-surface-2: #e9e8e3;
  --basic-text: #1a1b1b;
  --basic-muted: #696a67;
  --basic-line: #d5d4ce;
  --basic-line-strong: #b8b7b0;
  --basic-accent: #1a1b1b;
  --basic-accent-text: #f7f6f1;
  --basic-shadow: 0 18px 48px rgba(25, 26, 25, .08);
  --bg: var(--basic-bg);
  --panel: var(--basic-surface);
  --panel2: var(--basic-surface-2);
  --text: var(--basic-text);
  --muted: var(--basic-muted);
  --line: var(--basic-line);
  --line2: var(--basic-line-strong);
  --accent: var(--basic-text);
  --accent2: var(--basic-muted);
  --dark: var(--basic-bg);
}

html { scroll-behavior: auto; background: var(--basic-bg); }
body { background: var(--basic-bg); color: var(--basic-text); text-rendering: optimizeLegibility; }
::selection { background: var(--basic-text); color: var(--basic-bg); }

.announcement {
  height: 31px;
  min-height: 31px;
  background: var(--basic-text);
  color: var(--basic-bg);
  font-size: .71rem;
}
.announcement .pulse { background: var(--basic-bg); }
.site-header {
  top: 31px;
  height: 72px;
  border-color: var(--basic-line);
  background: color-mix(in srgb, var(--basic-bg) 96%, transparent);
  backdrop-filter: none;
}
.nav { min-height: 72px; }
.brand-logo { filter: grayscale(1); }
.nav-links { gap: 8px; }
.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--basic-muted);
}
.nav-links a::after { display: none; }
.nav-links a:hover,
.nav-links a.active { background: var(--basic-surface-2); color: var(--basic-text); }
.icon-button,
.menu-button,
.close-button {
  border-color: var(--basic-line);
  background: var(--basic-surface);
  color: var(--basic-text);
}
.cart-count { border-color: var(--basic-bg); background: var(--basic-text); color: var(--basic-bg); }

.hero {
  min-height: 640px;
  padding: 82px 0 72px;
  background: var(--basic-bg);
}
.hero::before {
  opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--basic-text) 3.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--basic-text) 3.5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr); gap: clamp(42px, 7vw, 100px); }
.hero h1 {
  max-width: 720px;
  margin: 20px 0 22px;
  font-size: clamp(3rem, 5.7vw, 5.55rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.hero h1 em { color: var(--basic-muted); }
.hero-copy > p { max-width: 720px; color: var(--basic-muted); font-size: 1.04rem; }
.hero-actions { margin-top: 26px; }
.button { border-radius: 9px; transition: border-color .12s, background .12s, color .12s; }
.button:hover,
.mini-button:hover { transform: none; }
.button.light,
.add-button,
.mini-button.primary,
.category-tabs button.active,
.auth-tabs button.active {
  border-color: var(--basic-accent);
  background: var(--basic-accent);
  color: var(--basic-accent-text);
}
.button.ghost,
.mini-button { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); }
.social-proof { max-width: 680px; margin-top: 36px; border-color: var(--basic-line); background: var(--basic-line); }
.social-proof div { background: var(--basic-surface); }

.hero-visual { min-height: 470px; }
.visual-frame {
  width: min(410px, 94%);
  border-radius: 14px;
  border-color: var(--basic-line-strong);
  background: var(--basic-surface);
  box-shadow: var(--basic-shadow);
  animation: none;
}
.visual-frame::before { border-color: var(--basic-line); border-radius: 9px; }
.visual-center { padding-block: 50px 42px; }
.visual-center img { filter: grayscale(1); }
.visual-note { border-color: var(--basic-line); background: var(--basic-surface-2); color: var(--basic-muted); box-shadow: none; }

.home-products,
.catalog { border-color: var(--basic-line); background: var(--basic-surface); }
.home-products { padding: 82px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.product-grid { gap: 18px; }
.product-card {
  padding: 10px 10px 20px;
  border-color: var(--basic-line);
  border-radius: 14px;
  background: var(--basic-bg);
  box-shadow: none;
  transition: border-color .12s;
  content-visibility: auto;
  contain-intrinsic-size: 430px;
}
.product-card:hover { border-color: var(--basic-line-strong); box-shadow: none; transform: none; }
.product-art { aspect-ratio: 1.36; border-radius: 9px; background: var(--basic-surface-2); }
.product-art::after { display: none; }
.product-art img { object-fit: cover; }
.product-badge { border-color: rgba(255,255,255,.22); border-radius: 6px; background: rgba(15,16,16,.78); color: #fff; backdrop-filter: none; }
.product-body { padding: 17px 5px 0; }
.product-body > p { min-height: 48px; color: var(--basic-muted); }
.add-button { border-radius: 8px; transition: background .12s; }
.add-button:hover { transform: none; opacity: .82; }
.price del,
.price small,
.product-category { color: var(--basic-muted); }

.home-statement { padding: 22px 0 90px; background: var(--basic-surface); }
.statement-card {
  min-height: 340px;
  border-color: var(--basic-line-strong);
  border-radius: 16px;
  background: var(--basic-text);
  color: var(--basic-bg);
  box-shadow: none;
}
.statement-card::before { opacity: .35; }
.statement-card p { color: color-mix(in srgb, var(--basic-bg) 62%, transparent); }
.statement-card a { color: var(--basic-bg); }

.page-hero,
.about-page,
.faq-page,
.terms-strip { border-color: var(--basic-line); background: var(--basic-bg); }
.page-hero { min-height: 340px; }
.category-tabs,
.search-box,
.about-grid article,
.faq-list details { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); }
.category-tabs button { color: var(--basic-muted); }
.search-box input { color: var(--basic-text); }

.modal,
.drawer {
  border-color: var(--basic-line);
  background: var(--basic-surface);
  color: var(--basic-text);
  box-shadow: var(--basic-shadow);
}
.overlay { background: rgba(0,0,0,.68); backdrop-filter: none; }
.modal { border-radius: 14px; transition: opacity .12s, transform .12s; }
.drawer { transition: transform .18s ease-out; }
.auth-tabs { border-color: var(--basic-line); background: var(--basic-bg); }
.auth-form input,
.field input,
.field textarea,
.field select { border-color: var(--basic-line); background: var(--basic-bg); color: var(--basic-text); }
.discord-login-button,
.mini-button.discord {
  border-color: var(--basic-line-strong);
  background: var(--basic-text);
  color: var(--basic-bg);
  box-shadow: none;
}
.discord-login-button:hover { background: var(--basic-muted); transform: none; }
.auth-divider { color: var(--basic-muted); }
.auth-divider::before,
.auth-divider::after { background: var(--basic-line); }
.discord-link-card {
  border-color: var(--basic-line);
  background: var(--basic-bg);
  background-image: none;
}
.discord-mark { background: var(--basic-text); color: var(--basic-bg); }
.discord-link-card small,
.discord-link-card code { color: var(--basic-muted); }
.discord-link-card strong { color: var(--basic-text); }

.stat small,
.visitor-table td > small,
.account-table td > small,
.security-event-list article small,
.admin-modal-note { color: var(--basic-muted); }
.visitor-table code,
.security-event-list article span,
.security-event-list article b { color: var(--basic-text); }
.security-event-list article { border-color: var(--basic-line); background: var(--basic-bg); }

/* Product details: neutral in both themes */
.product-modal:has(.product-detail-layout) {
  border-color: var(--basic-line);
  border-radius: 14px;
  background: var(--basic-surface);
}
.product-gallery { border-color: var(--basic-line); background: var(--basic-bg); }
.product-main-image,
.product-thumb,
.product-facts > div,
.product-description details,
.config-option {
  border-color: var(--basic-line);
  background: var(--basic-surface-2);
}
.product-thumb:hover,
.product-thumb.active,
.config-option:has(input:checked) {
  border-color: var(--basic-text);
  background: var(--basic-surface-2);
  box-shadow: 0 0 0 1px var(--basic-text);
  transform: none;
}
.product-detail-heading > span,
.product-facts span,
.product-description > p,
.config-option small,
.server-color,
.cart-item small { color: var(--basic-muted); }
.product-detail-heading h2,
.product-facts b,
.product-description h3,
.product-configurator h3,
.product-description summary,
.config-option b { color: var(--basic-text); }
.config-option > strong { color: var(--basic-text); }
.config-option input { accent-color: var(--basic-text); }
.product-description details .feature-list li { color: var(--basic-muted); }
.product-description details .feature-list li::before { color: var(--basic-text); }
.preview-link { border-color: var(--basic-line); background: var(--basic-surface-2); color: var(--basic-text); }
.server-color input[type="color"],
.server-color input[type="text"] { border-color: var(--basic-line); background: var(--basic-bg); color: var(--basic-text); }

/* Checkout intentionally stays light and neutral for clarity. */
.checkout-modal { background: #f4f3ef !important; color: #1b1c1c !important; }
.checkout-head { border-color: #d7d6d0; background: #faf9f6; }
.checkout-head h2,
.checkout-section-title h3,
.payment-option strong,
.checkout-modal .summary-row b,
.checkout-modal .bank-panel-head strong,
.checkout-modal .payment-fee b { color: #1b1c1c; }
.checkout-head small,
.checkout-section-title p,
.payment-option small,
.checkout-modal .payment-fee span,
.checkout-safe,
.checkout-modal .field,
.checkout-modal .summary-row { color: #6e6f6b; }
.checkout-payment { border-color: #d7d6d0; background: #f7f6f2; }
.checkout-details { background: #eeede8; }
.payment-option,
.checkout-summary,
.checkout-modal .bank-transfer-panel,
.checkout-modal .payment-fee,
.checkout-modal .payment-instructions { border-color: #d7d6d0; background: #fff; color: #1b1c1c; box-shadow: none; }
.payment-option:hover { border-color: #aaa9a3; box-shadow: none; transform: none; }
.payment-option.active { border-color: #1b1c1c; background: #ecebe6; box-shadow: 0 0 0 1px #1b1c1c; }
.payment-option.active .payment-radio { border-color: #1b1c1c; }
.payment-option.active .payment-copy strong { color: #1b1c1c; }
.checkout-modal .bank-detail { border-color: #deddd8; background: #f8f7f4; }
.checkout-modal .copy-value,
.coupon-control button { border-color: #c9c8c2; background: #fff; color: #1b1c1c; }
.checkout-modal .field input,
.checkout-modal .field textarea { border-color: #cecdc7; background: #fff; color: #1b1c1c; }
.checkout-modal .field input:focus,
.checkout-modal .field textarea:focus { border-color: #555653; box-shadow: 0 0 0 3px rgba(30,31,30,.08); }
.checkout-section-title > span,
.checkout-submit,
.checkout-modal .success-icon { background: #1b1c1c; color: #fff; }
.checkout-submit:hover { background: #333432; transform: none; }

.reveal { opacity: 1; transform: none; transition: none; }
.skeleton .product-art,
.skeleton-line { animation: none; background: var(--basic-surface-2); }
footer { border-color: var(--basic-line); background: var(--basic-bg); }
.footer-grid { min-height: 215px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
}

@media (max-width: 680px) {
  .site-header { height: 66px; }
  .nav { min-height: 66px; }
  .hero { padding: 54px 0 62px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.15rem); }
  .hero-copy > p { font-size: .96rem; }
  .social-proof { grid-template-columns: 1fr; }
  .social-proof div + div { border-top: 1px solid var(--basic-line); }
  .hero-visual { min-height: 340px; }
  .visual-frame { padding: 19px; }
  .visual-center { padding-block: 38px 32px; }
  .visual-center img { width: 120px; height: 120px; }
  .note-one { left: 0; }
  .note-two { right: 0; }
  .home-products { padding: 58px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
