/* dXb7 storefront — one professional system for light and dark. Loaded last. */
html:not([data-theme="dark"]){
  --bg:#f4f4f5;
  --surface:#ffffff;
  --soft:#ececee;
  --text:#161616;
  --muted:#5e5e5e;
  --border:#e5e5e5;
  --accent:#e4570c;
  --accent-2:#128a4e;
}
html[data-theme="dark"]{
  --bg:#0e0e0e;
  --surface:#171717;
  --soft:#242424;
  --text:#f5f5f5;
  --muted:#b0b0b0;
  --border:#2e2e2e;
  --accent:#ff7a2e;
  --accent-2:#3dd68c;
}
body.store-body,body.admin-body{
  background:var(--bg)!important;
  color:var(--text)!important;
}
.site-header,.category-rail,.admin-top{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-bottom:1px solid var(--border)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.header-row{min-height:64px}
.brand-lockup,.brand-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  height:auto!important;
  box-shadow:none!important;
}
.brand-img,.brand-lockup .brand-img,.brand-chip .brand-img{
  height:38px!important;
  width:auto!important;
  max-width:180px!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
  box-shadow:none!important;
}
.header-search,.header-search input,.catalog-search input{
  background:var(--soft)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
  box-shadow:none!important;
}
.main-nav a,.category-rail a,.header-action{color:var(--text)!important}
.category-rail a{color:var(--muted)!important}
.hero,.market-hero,.hero.market-hero{
  background:transparent!important;
  border-bottom:1px solid var(--border)!important;
}
.hero h1,.hero-copy h1,.section-head h2{color:var(--text)!important;font-weight:640;letter-spacing:-.04em}
.lead,.hero-proof,.section-head p{color:var(--muted)!important}
.hero-market-card{
  background:#0a0a0a!important;
  color:#fff!important;
  border:0!important;
  border-radius:18px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.18)!important;
  backdrop-filter:none!important;
}
.hero-market-card{
  background:#0a0a0a!important;
  color:#fff!important;
  border:0!important;
  border-radius:22px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.18)!important;
  backdrop-filter:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  overflow:hidden!important;
  position:relative!important;
}
.hero-card-logo{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  margin:0 0 8px!important;
  padding:8px 12px 0!important;
  background:transparent!important;
}
.hero-card-logo img{
  position:static!important;
  display:block!important;
  width:auto!important;
  height:108px!important;
  max-width:100%!important;
  max-height:108px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
  filter:none!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.hero-mini-row{
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
}
.hero-mini-row,.hero-mini-row strong{color:#f5f5f5!important}
.hero-mini-row small{color:#bdbdbd!important}
.section{background:transparent!important}
.section.soft{background:color-mix(in srgb,var(--soft) 70%,transparent)!important}
.marketplace-card,.product-card,.category-card,.benefit,.trust-card,.step-grid li,.faq details,.panel,.auth-card,.summary-card,.article-card,.order-card,.telegram-link-card,.status-card{
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  border-radius:16px!important;
  box-shadow:0 8px 22px rgba(0,0,0,.04)!important;
  backdrop-filter:none!important;
}
.marketplace-card .product-media,.product-media,.product-visual{
  background:var(--soft)!important;
}
.marketplace-card .product-media img,.product-visual img{object-fit:contain!important;background:var(--soft)}
.marketplace-card .product-copy,
.marketplace-card .product-copy h3,
.marketplace-card .product-copy h3 a,
.category-card strong{
  background:transparent!important;
  color:var(--text)!important;
}
.marketplace-card .product-copy p,.category-card span,.benefit p{color:var(--muted)!important}
.marketplace-card .market-price strong,
.marketplace-card .market-price [data-money-local]{color:var(--text)!important}
.product-badge{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important}
.button{border-radius:999px!important;box-shadow:none!important}
.button.primary{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
.button.secondary{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important}
.cta-panel,.site-footer{
  background:#0c0c0c!important;
  color:#f5f5f5!important;
  border:0!important;
}
.site-footer a,.site-footer p,.footer-grid a,.footer-grid p,.legal-row{color:#c8c8c8!important}
.mobile-drawer-panel{
  width:min(100vw - 36px,400px)!important;
  max-width:400px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.mobile-drawer-head,.mobile-search,.mobile-main-links,.mobile-categories,.mobile-settings{width:100%!important;min-width:0!important;max-width:100%!important}
.mobile-search{display:flex!important;align-items:center!important;gap:8px!important}
.mobile-search input{flex:1 1 auto!important;min-width:0!important;width:auto!important;background:var(--soft)!important;color:var(--text)!important;border:1px solid var(--border)!important}
.mobile-search .button{position:static!important;flex:0 0 auto!important;width:auto!important;max-width:46%!important;margin:0!important}
.mobile-main-links a,.mobile-categories>a,.mobile-service-group summary,.mobile-service-group summary>span,.mobile-service-group>div>a{
  color:var(--text)!important;
  opacity:1!important;
  visibility:visible!important;
}
.mobile-categories strong,.mobile-service-group summary small{color:var(--muted)!important}
.mobile-close{background:var(--soft)!important;color:var(--text)!important;border-color:var(--border)!important}
.mobile-bottom-nav{background:#fff!important;border-top:1px solid var(--border)!important;color:var(--text)!important}
.mobile-bottom-nav .gem,
.mobile-bottom-nav .gem-orange,
.mobile-bottom-nav .gem-silver,
.mobile-bottom-nav .gem-green{
  background:linear-gradient(180deg,#ffffff 0%,#ffd0ad 46%,#e4570c 100%)!important;
  color:#9a3412!important;
  border:0!important;
  box-shadow:none!important;
}
.admin-side{background:#111!important;color:#f5f5f5!important}
.admin-side nav a{color:#d0d0d0!important}
.admin-content,.admin-body{background:var(--bg)!important;color:var(--text)!important}
.plan-option{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
.plan-option:has(input:checked){border-color:var(--accent)!important}
@media(max-width:820px){
  .hero-grid,.market-hero .hero-grid{grid-template-columns:1fr!important}
  .brand-img,.brand-lockup .brand-img{height:36px!important;max-width:168px!important;filter:none!important}
  .hero-card-logo img{height:96px!important;max-height:96px!important}
}
@media(max-width:560px){
  .account-grid,.checkout-grid{grid-template-columns:1fr!important}
  body{overflow-x:hidden}
  .product-grid,.market-product-grid{grid-template-columns:1fr 1fr!important}
}
.site-header .brand,.site-header .brand-lockup{
  overflow:visible!important;
  background:transparent!important;
  height:auto!important;
  max-height:none!important;
  padding:0!important;
  line-height:0!important;
}
.site-header .brand-img{
  height:52px!important;
  width:auto!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:none!important;
  box-shadow:none!important;
  image-rendering:auto!important;
}
@media(max-width:820px){
  .site-header .brand-img{height:46px!important;max-width:none!important}
}
.header-actions select,
.currency-select select,
.select-label select,
.theme-toggle{
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
}
.theme-toggle span,
.theme-toggle [data-theme-icon],
.theme-toggle [data-theme-label]{color:inherit!important}
html[data-theme="dark"] .header-actions select,
html[data-theme="dark"] .currency-select select,
html[data-theme="dark"] .select-label select,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .mobile-settings select{
  background:#1a1a1a!important;
  color:#f4f4f4!important;
  border-color:#3a3a3a!important;
  color-scheme:dark;
}
html[data-theme="dark"] select option{background:#1a1a1a;color:#f4f4f4}
.mobile-bottom-nav{
  background:var(--surface)!important;
  color:var(--text)!important;
}
.mobile-bottom-nav a,
.mobile-bottom-nav small{color:var(--muted)!important}
.mobile-bottom-nav .gem,
.mobile-bottom-nav .gem-orange,
.mobile-bottom-nav .gem-silver,
.mobile-bottom-nav .gem-green{
  width:40px!important;
  height:40px!important;
  border-radius:14px!important;
  font-size:1.2rem!important;
  background:linear-gradient(180deg,#fff8f4 0%,#ffd8bf 68%,#f0b48a 100%)!important;
  color:#c45c28!important;
  border:0!important;
  box-shadow:none!important;
}
