:root {
  color-scheme: light;
  --basic-bg: #f5f5f3;
  --basic-surface: #ffffff;
  --basic-surface-2: #eeeeeb;
  --basic-text: #171817;
  --basic-muted: #676963;
  --basic-line: #d9dad5;
  --basic-line-strong: #bfc1ba;
  --basic-accent: #20221f;
  --basic-accent-text: #ffffff;
  --basic-shadow: 0 24px 70px rgba(20, 22, 20, .09);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --basic-bg: #101110;
  --basic-surface: #181a18;
  --basic-surface-2: #20221f;
  --basic-text: #f0f0ec;
  --basic-muted: #a1a39d;
  --basic-line: #30322f;
  --basic-line-strong: #494c47;
  --basic-accent: #eeeeea;
  --basic-accent-text: #151615;
  --basic-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
body { background: var(--basic-bg); color: var(--basic-text); }
.announcement { min-height: 34px; border-bottom: 1px solid var(--basic-line); background: var(--basic-surface-2); color: var(--basic-muted); letter-spacing: 0; }
.announcement .pulse { width: 5px; height: 5px; background: var(--basic-text); box-shadow: none; }
.site-header { top: 34px; border-color: var(--basic-line); background: color-mix(in srgb, var(--basic-bg) 92%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--basic-line) 70%, transparent); }
.nav { min-height: 76px; }
.brand-logo { background: #080908; border: 1px solid #30322f; }
.brand-name strong { color: var(--basic-text); }
.brand-name span, .nav-links, .hero-copy > p, .section-head > p, .page-hero p, .product-body > p, .product-category, footer p, footer a, .auth-brand small { color: var(--basic-muted); }
.nav-links a { position: relative; color: var(--basic-muted); }
.nav-links a::after { background: var(--basic-text); }
.nav-links a:hover, .nav-links a.active, footer a:hover { color: var(--basic-text); }
.icon-button, .menu-button, .close-button { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); box-shadow: none; }
.icon-button:hover, .menu-button:hover { border-color: var(--basic-line-strong); background: var(--basic-surface-2); }
.mobile-menu { border-color: var(--basic-line); background: var(--basic-surface); }
.hero { min-height: 650px; padding: 76px 0 84px; background: var(--basic-bg); }
.hero::before { background-image: linear-gradient(color-mix(in srgb, var(--basic-text) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--basic-text) 4%, transparent) 1px, transparent 1px); background-size: 52px 52px; opacity: .7; mask-image: linear-gradient(to bottom, #000 15%, transparent 92%); }
.hero::after { display: none; }
.hero-grid { gap: clamp(42px, 7vw, 92px); }
.eyebrow { color: var(--basic-muted); letter-spacing: .12em; }
.eyebrow i { background: var(--basic-text); box-shadow: none; }
.hero h1 { max-width: 760px; color: var(--basic-text); font-size: clamp(3.25rem, 6vw, 6rem); letter-spacing: -.055em; line-height: .95; }
.hero h1 em { color: var(--basic-muted); -webkit-text-stroke: 0; font-style: normal; }
.hero-copy > p { max-width: 680px; font-size: 1.08rem; line-height: 1.9; }
.button { border-radius: 10px; }
.button.light, .add-button, .category-tabs button.active, .auth-tabs button.active, .mini-button.primary { 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); }
.button:hover, .mini-button:hover { transform: translateY(-1px); }
.social-proof { border-color: var(--basic-line); }
.social-proof div + div { border-color: var(--basic-line); }
.social-proof strong { color: var(--basic-text); }
.social-proof span { color: var(--basic-muted); }
.visual-frame { border: 1px solid var(--basic-line); border-radius: 24px; background: var(--basic-surface); box-shadow: var(--basic-shadow); }
.visual-frame::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid var(--basic-line); border-radius: 16px; }
.visual-top, .visual-console { border-color: var(--basic-line); }
.visual-top, .visual-console p, .visual-center > span { color: var(--basic-muted); }
.visual-top i { background: var(--basic-text); box-shadow: none; }
.visual-center img { background: #080908; border-radius: 18px; }
.visual-console p span { color: var(--basic-text); }
.visual-note { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-muted); box-shadow: 0 12px 30px rgba(20, 22, 20, .06); }
.home-products { padding: 92px 0; border-top: 1px solid var(--basic-line); background: var(--basic-surface); }
.home-product-grid .product-card:nth-child(n+4) { display: none; }
.section-index { color: var(--basic-muted); }
.section-head h2, .page-hero h1 { color: var(--basic-text); }
.text-link { color: var(--basic-text); font-weight: 800; }
.product-card { overflow: hidden; border-color: var(--basic-line); border-radius: 18px; background: var(--basic-surface); box-shadow: none; }
.product-card:hover { border-color: var(--basic-line-strong); box-shadow: var(--basic-shadow); transform: translateY(-5px); }
.product-art { border-radius: 12px; background: var(--basic-surface-2); }
.product-art::before { color: color-mix(in srgb, var(--basic-text) 5%, transparent); }
.product-art::after { border-color: var(--basic-line); }
.product-title-row h3, .price strong { color: var(--basic-text); }
.price del, .price small { color: var(--basic-muted); }
.home-statement { padding: 40px 0 100px; background: var(--basic-surface); }
.statement-card { min-height: 390px; padding: clamp(34px, 6vw, 72px); border: 1px solid #30322f; border-radius: 26px; background: #151715; color: #f5f5f1; box-shadow: 0 28px 70px rgba(0,0,0,.15); }
.statement-card::before { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 40px 40px; }
.statement-card h2 { max-width: 780px; font-size: clamp(2.7rem, 5vw, 5rem); }
.statement-card p { position: relative; max-width: 620px; margin: 20px 0 0; color: #aaada7; font-size: 1rem; line-height: 1.8; }
.statement-card a { color: #f5f5f1; }
.page-hero, .catalog, .about-page, .faq-page, .terms-strip { border-color: var(--basic-line); background: var(--basic-bg); }
.catalog { background: var(--basic-surface); }
.category-tabs, .search-box, .faq-list details, .about-grid article, .dash-main, .dash-side, .order-card, .stat { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); }
.category-tabs button { color: var(--basic-muted); }
.search-box input, .auth-form input, .field input, .field textarea, .field select { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); }
.modal, .drawer { border-color: var(--basic-line); background: var(--basic-surface); color: var(--basic-text); box-shadow: var(--basic-shadow); }
.auth-tabs { border-color: var(--basic-line); background: var(--basic-surface-2); }
.auth-tabs button { color: var(--basic-muted); }
.discord-login-button { border: 1px solid #4f5bd5; background: #5865f2; box-shadow: none; }
.discord-login-button:hover { background: #4f5bd5; }
.checkout-modal { background: #f5f5f3 !important; color: #181917 !important; }
.checkout-modal .checkout-head { border-color: #d9dad5; }
.checkout-modal .field, .checkout-modal p, .checkout-modal small { color: #676963; }
.checkout-modal input, .checkout-modal textarea { border-color: #d9dad5; background: #fff; color: #181917; }
.checkout-modal .checkout-summary, .checkout-modal .payment-option, .checkout-modal .bank-transfer-panel, .checkout-modal .payment-fee { border-color: #d9dad5; background: #fff; color: #181917; }
.checkout-modal .payment-option { min-height: 96px; box-shadow: none; }
.checkout-modal .payment-option:hover { border-color: #aaada7; transform: translateY(-1px); }
.checkout-modal .payment-option.active { border-color: #20221f; background: #edeee9; box-shadow: 0 0 0 1px #20221f; }
.checkout-modal .payment-option.active .payment-radio { border-color: #20221f; }
.checkout-modal .payment-option.active .payment-copy strong { color: #181917; }
.checkout-submit { background: #20221f; color: #fff; }
.coupon-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon-control button { min-width: 86px; border: 1px solid #20221f; border-radius: 10px; background: #fff; color: #20221f; cursor: pointer; font-weight: 800; }
.coupon-result { min-height: 22px; margin-top: 6px; color: #166534; font-size: .8rem; }
.payment-logo .pay-brand.wallet img { width: 48px; height: 48px; object-fit: contain; }
.wallet-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--basic-line); border-radius: 18px; background: var(--basic-surface); }
.wallet-card-icon { width: 64px; height: 64px; padding: 13px; border-radius: 16px; background: var(--basic-surface-2); }
.wallet-card small, .wallet-row small { color: var(--basic-muted); }
.wallet-balance { display: block; margin-top: 4px; font-size: 2rem; }
.wallet-actions { display: flex; gap: 8px; }
.wallet-history { margin-bottom: 18px; }
.wallet-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--basic-line); }
.wallet-row:last-child { border-bottom: 0; }
.wallet-row .credit { color: #16803d; }
.wallet-row .debit { color: #bd3030; }
.wallet-topup-form { display: grid; gap: 13px; }
footer { padding: 0; border-top: 1px solid var(--basic-line); background: var(--basic-surface); }
.footer-grid { min-height: 230px; align-items: start; padding-block: 54px; }
.footer-grid > div { padding: 0; border: 0; background: transparent; }
.footer-grid b, .footer-brand strong { color: var(--basic-text); }
.footer-brand p { max-width: 330px; }
.discord-social { display: flex !important; align-items: center; gap: 9px; width: fit-content; }
.discord-social img { border-radius: 7px; }
.copyright { color: var(--basic-muted); }
.theme-toggle svg { width: 19px; }
@media (max-width: 680px) {
  .hero { min-height: auto; padding: 55px 0 65px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.6rem); }
  .hero-visual { min-height: 350px; }
  .home-products { padding: 64px 0; }
  .home-statement { padding-bottom: 64px; }
  .statement-card { min-height: 340px; }
  .wallet-card { grid-template-columns: auto 1fr; }
  .wallet-actions { grid-column: 1 / -1; }
  .wallet-actions .mini-button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 40px; }
}
