@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: #eff6ff;
  background: #07111f;
  font-synthesis: none;
  --bg: #07111f;
  --bg-soft: #0b182b;
  --panel: #0f2037;
  --panel-2: #132844;
  --stroke: #203b5e;
  --muted: #8ca3bd;
  --muted-2: #67819e;
  --text: #f1f7ff;
  --cyan: #54e5d3;
  --cyan-dark: #0a4e51;
  --violet: #a08dff;
  --pink: #f58ad8;
  --amber: #ffc76e;
  --red: #ff8091;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
html, body, button, input, select, textarea { font-weight: 400; }
body { font-size: 14px; line-height: 1.7; }
h1, h2, h3, p { overflow-wrap: anywhere; }
button, a, input, select, textarea { min-width: 0; }
button { line-height: 1.45; }
strong, b, h1, h2, h3 { font-weight: 700; }
body { margin: 0; min-width: 320px; min-height: 100vh; direction: rtl; background: radial-gradient(circle at 12% 0%, #14345b 0, transparent 27%), var(--bg); }
/* A small composited layer keeps the ambient light behind the page content. */
body { isolation: isolate; }
body::before {
  content: '';
  position: fixed;
  inset: auto 0 0;
  height: min(24vh, 220px);
  z-index: -1;
  pointer-events: none;
  /* Stretch the SVG to the CSS tile: preserving its aspect ratio leaves side gutters and breaks repeat-x. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='320' viewBox='0 -50 900 320' preserveAspectRatio='none' fill='none'%3E%3Cpath id='w' d='M-450 135 Q-225 15 0 135 T450 135 T900 135 T1350 135'/%3E%3Cg stroke='%23068ed9'%3E%3Cuse href='%23w' stroke-width='22' opacity='.04'/%3E%3Cuse href='%23w' stroke-width='9' opacity='.1'/%3E%3Cuse href='%23w' stroke-width='2' opacity='.8'/%3E%3Cuse href='%23w' transform='translate(0 14)' opacity='.45'/%3E%3Cuse href='%23w' transform='translate(0 27)' opacity='.25'/%3E%3Cuse href='%23w' transform='translate(0 -12)' opacity='.3'/%3E%3C/g%3E%3Cg stroke='%2354e4ff'%3E%3Cuse href='%23w' transform='translate(55 9)' stroke-width='1.5' opacity='.65'/%3E%3Cuse href='%23w' transform='translate(-40 22)' opacity='.35'/%3E%3Cuse href='%23w' stroke-width='3' stroke-linecap='round' opacity='.35'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 100%, rgba(0, 103, 200, .16), transparent 72%);
  background-size: 900px 100%, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 0, center bottom;
  opacity: .7;
  animation: smartshop-ambient-flow 32s linear infinite;
}
@keyframes smartshop-ambient-flow {
  to { background-position: 900px 0, center bottom; }
}
@media (max-width: 600px) {
  body::before { height: 140px; animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: none; }
}
/* Sparse ambient particles, strictly behind content and never interactive. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 24%, #6bcfff 0, transparent 2px),
    radial-gradient(circle at 22% 76%, #309aff 0, transparent 2px),
    radial-gradient(circle at 37% 42%, #8bdfff 0, transparent 1.5px),
    radial-gradient(circle at 53% 88%, #3aaaff 0, transparent 2px),
    radial-gradient(circle at 69% 18%, #57bfff 0, transparent 1.5px),
    radial-gradient(circle at 82% 63%, #8bdfff 0, transparent 2px),
    radial-gradient(circle at 94% 36%, #309aff 0, transparent 1.5px),
    radial-gradient(circle at 14% 53%, #6bcfff 0, transparent 2px),
    radial-gradient(circle at 28% 15%, #57bfff 0, transparent 1.5px),
    radial-gradient(circle at 43% 67%, #8bdfff 0, transparent 2px),
    radial-gradient(circle at 58% 31%, #309aff 0, transparent 1.5px),
    radial-gradient(circle at 73% 82%, #6bcfff 0, transparent 2px),
    radial-gradient(circle at 88% 10%, #57bfff 0, transparent 1.5px),
    radial-gradient(circle at 6% 91%, #3aaaff 0, transparent 2px);
  opacity: .3;
  transform: translateY(12px) scale(.96);
  animation: smartshop-particles-drift 22s ease-in-out infinite alternate;
}
@keyframes smartshop-particles-drift {
  to { opacity: .55; transform: translateY(-18px) scale(.98); }
}
@media (max-width: 600px) {
  body::after { background-size: 200% 100%; animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; transform: none; opacity: .25; }
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; gap: 26px; padding: 0 clamp(16px, 4vw, 68px); border-bottom: 1px solid rgba(79, 127, 175, .19); background: rgba(7, 17, 31, .84); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #061f24; font-size: 22px; font-weight: 900; background: linear-gradient(135deg, var(--cyan), #5e8bff 80%); box-shadow: 0 8px 26px rgba(84, 229, 211, .2); }
.brand .brand-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(0, 153, 255, .22)); }
.brand strong .brand-shop { color: #19bcff; }
@media (max-width: 600px) { .brand .brand-mark { width: 40px; height: 40px; flex-basis: 40px; } }
.brand strong { display: block; font-size: 16px; letter-spacing: -.4px; }
.brand small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.brand small em { color: var(--cyan); font-style: normal; margin-right: 5px; }
.main-nav { display: flex; align-items: center; gap: 5px; margin-right: auto; }
.main-nav button { padding: 9px 13px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; transition: .2s; }
.main-nav button:hover, .main-nav button.active { color: var(--text); background: #16304e; }
.header-actions { display: flex; align-items: center; gap: 9px; }.usd-header-ticker { display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid #2d5f6b; border-radius: 9px; color: #bffaf0; background: #102f3a; font-size: 11px; white-space: nowrap; }
.header-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--stroke); border-radius: 9px; color: #d8e8fa; background: #10243d; font-size: 12px; }
.header-btn:hover { border-color: #4a6f98; background: #173250; }
.cart-count { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; color: #062122; background: var(--cyan); font-size: 10px; font-weight: 800; }
.mobile-menu { display: none; }

.content-wrap { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 80px; }
.hero { position: relative; min-height: 340px; display: flex; align-items: stretch; overflow: hidden; border: 1px solid #284a72; border-radius: 24px; background: #0c1c34; box-shadow: var(--shadow); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/storefront-hero.png') 37% 53% / cover no-repeat; transform: scale(1.02); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 19, 37, .18), rgba(8, 19, 37, .88) 65%, rgba(8, 17, 31, .98)); }
.hero-copy { width: min(650px, 70%); display: flex; flex-direction: column; justify-content: center; padding: 42px clamp(24px, 5vw, 70px) 42px 26px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 13px; padding: 7px 11px; border: 1px solid rgba(84, 229, 211, .36); border-radius: 99px; color: #bafff6; background: rgba(17, 83, 91, .34); font-size: 12px; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(84, 229, 211, .14); }
.hero h1 { max-width: 570px; margin: 0; color: #fff; font-size: clamp(29px, 4vw, 49px); line-height: 1.25; letter-spacing: -1.8px; }
.hero h1 span { color: var(--cyan); }
.hero p { max-width: 520px; margin: 15px 0 25px; color: #bdd0e5; font-size: 16px; line-height: 1.9; }
.hero .hero-lead { margin: 8px 0 20px; color: #d5e5f3; font-size: clamp(17px, 2vw, 21px); }
.hero-welcome { max-width: 590px; margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(84, 229, 211, .24); border-radius: 16px; background: linear-gradient(135deg, rgba(16, 75, 70, .48), rgba(13, 29, 49, .74)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.hero-welcome h2 { margin: 0 0 8px; color: #c5fff0; font-size: 18px; }
.hero-welcome p { max-width: none; margin: 0 0 10px; color: #d1dfec; font-size: 14px; line-height: 1.9; }
.hero-welcome strong { color: #72e6c1; font-size: 13px; }
.hero .hero-actions { margin-top: 4px; }
.service-strip { position: relative; padding-top: 42px; }
.service-strip-heading { position: absolute; top: 0; right: 0; color: #eaf6ff; font-size: 18px; font-weight: 800; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 28px 20px 34px; color: #a9bdd3; text-align: center; font-size: 13px; }
.site-footer > a { display: inline-flex; align-items: center; justify-content: center; min-height: 70px; padding: 6px; border: 1px solid rgba(142,181,220,.24); border-radius: 12px; background: rgba(255,255,255,.96); transition: transform .2s ease, box-shadow .2s ease; }
.site-footer > a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.order-tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; margin-block: 12px; border: 1px solid #234e72; border-radius: 10px; color: #b9d6ed; font-size: 12px; }
.order-tracking code { color: #75d6ff; user-select: all; overflow-wrap: anywhere; }
.order-tracking button { margin-inline-start: auto; padding: 5px 12px; border-radius: 8px; border: 1px solid #356285; background: #102b42; color: #e2f4ff; cursor: pointer; }
.site-footer > a img { display: block; width: 70px; height: auto; }
.site-footer:has(.footer-intro) { display: block; margin: 36px auto 24px; width: calc(100% - 32px); max-width: 1180px; padding: 28px; border: 1px solid #193450; border-top: 3px solid #278df0; border-radius: 20px; background: rgba(7, 17, 31, .94); text-align: start; }
.footer-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.footer-intro strong { color: #edf5ff; font-size: clamp(24px, 4vw, 34px); }
.footer-intro p { margin: 8px 0 0; }
.footer-intro img { flex: 0 0 64px; }
.footer-contact-link { display: flex !important; align-items: center; gap: 8px; max-width: 100%; }
.footer-platform { display: inline-flex; flex: 0 0 22px; width: 22px; height: 22px; align-items: center; justify-content: center; }
.footer-platform .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-platform svg { width: 20px; height: 20px; }
.footer-platform.telegram { color: #35afe9; }
.footer-platform.bale { color: #28bf91; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 24px 0; border-block: 1px solid #23354b; }
.footer-columns h2 { margin: 0 0 14px; font-size: 17px; color: #e4edfa; }
.footer-columns a { display: block; width: fit-content; margin: 10px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-columns a:hover, .footer-bottom a:hover { color: #72caff; }
.site-footer > .footer-trust-seal { margin-top: 20px; }
@media (max-width: 600px) { .site-footer:has(.footer-intro) { padding: 20px; } .footer-columns { gap: 16px; } }
.hero-actions { display: flex; align-items: center; gap: 11px; }
.primary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; color: #062122; background: var(--cyan); font-size: 13px; font-weight: 800; box-shadow: 0 8px 26px rgba(84, 229, 211, .19); transition: .2s; }
.primary-btn:hover { background: #83f3e7; transform: translateY(-1px); }
.ghost-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid #416485; border-radius: 10px; color: #d4e7fb; background: rgba(12, 33, 58, .54); font-size: 13px; }
.ghost-btn:hover { background: #173758; }
.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.hero-stat strong, .hero-stat small { display: block; }
.hero-stat strong { color: #fff; font-size: 20px; }
.hero-stat small { margin-top: 3px; color: #9db6d0; font-size: 11px; }
.hero-stat + .hero-stat { padding-right: 22px; border-right: 1px solid rgba(142, 181, 220, .3); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 38px 0 17px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.section-head .view-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid #2d6870; border-radius: 9px; color: #bffaf0; background: linear-gradient(135deg, #123b47, #102f3a); font-size: 12px; font-weight: 700; transition: .2s; }
.section-head .view-link:hover { border-color: var(--cyan); color: #efffff; background: linear-gradient(135deg, #174e59, #123b47); transform: translateY(-1px); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-box { flex: 1; max-width: 380px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--muted-2); background: #0b1b30; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #69839f; }
.category-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--stroke); border-radius: 10px; color: #a8bed6; background: #0e2139; font-size: 12px; transition: .2s; }
.category-chip:hover, .category-chip.active { color: #eaffff; border-color: #398c8d; background: linear-gradient(135deg, #123b47, #193452); }
.category-chip b { font-size: 17px; line-height: 1; }
.sort-select { padding: 9px 11px; border: 1px solid var(--stroke); border-radius: 9px; color: #b6cbe0; background: #0d2037; font-size: 12px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #223e60; border-radius: 16px; background: linear-gradient(150deg, #101f34, #080f1d); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
/* Inset edge light only: no layout changes or interception of card controls. */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(51, 153, 255, .3), inset 0 0 14px rgba(24, 111, 255, .1);
  opacity: 0;
  transition: opacity .45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { border-color: #3675b5; transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .3), 0 0 20px rgba(22, 112, 255, .12); }
  .product-card:hover::after { opacity: .65; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card:hover::after { animation: smartshop-card-edge 4s ease-in-out infinite alternate; }
}
@keyframes smartshop-card-edge {
  from { opacity: .35; }
  to { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card::after { transition: none; }
  .product-card:hover { transform: none; }
}
.product-image { position: relative; height: 174px; overflow: hidden; background: #0e2139; }
.product-image > img:not(.product-logo) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-image::before { content: none; }
.product-card:nth-child(4n+2) .product-image::before { filter: hue-rotate(42deg) saturate(1.3); transform: scale(1.18); }
.product-card:nth-child(4n+3) .product-image::before { filter: hue-rotate(97deg) saturate(1.35); transform: scale(1.12); }
.product-card:nth-child(4n+4) .product-image::before { filter: hue-rotate(148deg) saturate(1.3); transform: scale(1.2); }
.product-card:hover .product-image::before { opacity: .47; transform: scale(1.08); }
.image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 49, .05), rgba(8, 18, 32, .92)); }
.product-card .product-image-label { display: none; }
.product-image-label { position: absolute; inset: 50% 12px auto; transform: translateY(-50%); z-index: 2; color: #fff; text-align: center; font-size: clamp(18px, 2vw, 27px); font-weight: 900; line-height: 1.2; letter-spacing: .2px; text-shadow: 0 3px 12px #000, 0 0 3px #000; }
.product-icon { position: absolute; right: 16px; bottom: 14px; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(171, 205, 255, .32); border-radius: 15px; color: #eefaff; background: rgba(17, 39, 67, .74); font-size: 28px; box-shadow: 0 10px 22px rgba(3, 9, 20, .32); backdrop-filter: blur(8px); }
.product-logo { position: absolute; right: 16px; bottom: 14px; width: 58px; height: 58px; object-fit: contain; padding: 3px; background: #fff; border: 3px solid rgba(255,255,255,.8); border-radius: 17px; box-shadow: 0 10px 22px rgba(3, 9, 20, .4); }
.renew-product{margin-top:10px;width:fit-content}.access-window{display:block;margin:10px 0;padding:8px 10px;border:1px solid #2d6870;border-radius:8px;color:#bffaf0;background:#102f3a}
.product-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 99px; color: #062122; background: var(--cyan); font-size: 10px; font-weight: 800; }
.product-badge.discount { color: #fff5fb; background: #a34585; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 16px; }
.product-category { color: var(--cyan); font-size: 11px; }
.product-title { margin: 7px 0 5px; color: #f3f8ff; font-size: 15px; line-height: 1.6; }
.product-desc { min-height: 40px; margin: 0; color: #91a8bf; font-size: 12px; line-height: 1.7; }
.product-meta { display: flex; align-items: center; gap: 7px; margin: 14px 0; color: #8ea7c0; font-size: 11px; }
.product-meta span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 6px; background: #132c49; }
.product-meta .stock { color: #8eefe4; background: #123b40; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.price strong, .price del { display: block; }
.price strong { color: #fff; font-size: 18px; }
.price strong small { color: var(--muted); font-size: 10px; font-weight: 500; }
.price del { margin-bottom: 4px; color: #7189a2; font-size: 10px; }
.product-buy { padding: 9px 11px; border-radius: 8px; color: #062122; background: var(--cyan); font-size: 11px; font-weight: 800; }
.product-buy:hover { background: #8cf5e8; }
/* Background-only sheen: no overlay, DOM changes, or pointer interception. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.product-buy, .cart-add-button.primary-btn, #checkout-form .primary-btn, #cart-checkout-form .primary-btn):not(:disabled):hover {
    background-image: linear-gradient(110deg, transparent 43%, rgba(24, 123, 255, .12) 48%, rgba(112, 206, 255, .3) 50%, rgba(24, 123, 255, .12) 52%, transparent 57%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    background-position: 0% 0%;
    animation: smartshop-button-sheen 1.1s ease-in-out;
  }
}
@keyframes smartshop-button-sheen {
  from { background-position: 100% 0%; }
  to { background-position: 0% 0%; }
}
.empty-state { grid-column: 1/-1; padding: 46px; border: 1px dashed #345677; border-radius: 14px; color: var(--muted); text-align: center; background: #0c1d32; }
.usd-rate-banner { margin: 12px 0; padding: 10px 14px; border: 1px solid #2d5f6b; border-radius: 10px; color: #bffaf0; background: #102f3a; font-size: 12px; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 36px; }
.service-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #1d3a5a; border-radius: 13px; background: #0d2038; }
.service-card > b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #a8fff7; background: #123e43; font-size: 20px; }
.service-card:nth-child(2) > b { color: #c7bdff; background: #342d60; }
.service-card:nth-child(3) > b { color: #ffd992; background: #5a4223; }
.service-card strong, .service-card small { display: block; }
.service-card strong { font-size: 13px; }
.service-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* Filters and modal actions re-render this wrapper: keep it visually stable. */
.page-view { animation: none; }
.orders-view { max-width: 980px; margin: 20px auto; }
.orders-view h1 { margin: 0; font-size: 28px; }
.orders-view > p { color: var(--muted); }
.order-list { display: grid; gap: 12px; margin-top: 25px; }
.order-card { padding: 19px; border: 1px solid var(--stroke); border-radius: 14px; background: linear-gradient(145deg, #112640, #0c1a2e); }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-top strong { font-size: 15px; }
.order-top small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; font-size: 11px; }
.status.pending { color: #ffd999; background: #503c20; }
.status.approved { color: #a5f7e9; background: #123e42; }
.status.delivered { color: #b9c3ff; background: #322c64; }
.order-info { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #1e3855; color: #9db3c9; font-size: 12px; }
.order-info b { color: #eef7ff; font-weight: 700; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.code-activation-guide { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff14; font-size: 13px; line-height: 1.9; }
.code-activation-guide p { margin: 0 0 6px; color: #aebbd0; }
.code-activation-guide a { display: inline-block; color: #9ff5ea; font-weight: 600; text-decoration: none; }
.code-activation-guide a:hover { text-decoration: underline; }
.code-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #433c79; border-radius: 8px; color: #ddd9ff; background: #29264d; font-size: 11px; }
.code-pill button { color: #9ff5ea; background: transparent; font-size: 11px; }
.orders-empty { padding: 50px; border: 1px dashed #315374; border-radius: 14px; color: var(--muted); text-align: center; }
.account-link-note { margin-top: 17px; padding: 13px 15px; border-right: 3px solid var(--cyan); border-radius: 8px; color: #b8cfdf; background: #102a3b; font-size: 12px; line-height: 1.8; }
.wallet-tabs { display: flex; gap: 8px; margin: 18px 0; padding: 5px; border: 1px solid #294765; border-radius: 12px; background: #09182a; }
.wallet-tabs button { flex: 1; padding: 11px; border-radius: 9px; color: #9eb7cb; background: transparent; }
.wallet-tabs button.active { color: #062122; background: var(--cyan); font-weight: 800; }

.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(1, 7, 17, .76); backdrop-filter: blur(7px); }
.modal { width: min(510px, 100%); max-height: min(780px, 94vh); overflow: auto; border: 1px solid #2b4b70; border-radius: 18px; background: #0d1d32; box-shadow: 0 24px 90px rgba(0,0,0,.5); }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid #203b59; }
.modal-head small { color: var(--cyan); font-size: 10px; letter-spacing: 1px; }
.modal-head h2 { margin: 6px 0 0; font-size: 20px; }
.close-btn { width: 32px; height: 32px; border-radius: 8px; color: #9bb1c8; background: #142a46; font-size: 21px; line-height: 1; }
.close-btn:hover { color: #fff; background: #213f62; }
.modal-body { padding: 22px 23px; }
.auth-tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 4px; border-radius: 9px; background: #0a182a; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; }
.auth-tabs button.active { color: #efffff; background: #1b4153; }
.auth-method-picker { margin: 0 0 18px; }
.auth-method-picker > b { display: block; margin-bottom: 9px; color: #b9cde0; font-size: 12px; }
.auth-method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.auth-method-card { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 9px 10px; border: 1px solid #294765; border-radius: 11px; color: #a9bfd2; background: linear-gradient(145deg, #10243b, #0b1a2d); transition: .18s; }
.auth-method-card span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #8dece0; background: #153d49; font-size: 15px; }
.auth-method-card:hover, .auth-method-card.active { border-color: var(--cyan); color: #f2ffff; background: linear-gradient(145deg, #17414e, #102d40); box-shadow: 0 7px 20px rgba(84, 229, 211, .12); }
.auth-method-card.active span { color: #082127; background: var(--cyan); }
.phone-login-mode{display:flex;gap:8px;margin:10px 0}.phone-login-mode .secondary{flex:1;border:1px solid #294765;border-radius:9px;color:#b9d1df;background:#10243b;padding:9px;font-size:11px}.phone-login-mode .secondary.active,.phone-login-mode .secondary:hover{border-color:var(--cyan);color:#eaffff;background:#17414e}.sms-feedback{min-height:18px;margin:6px 0;font-size:11px}.sms-feedback.success{color:#8df1d8}
.register-auth-modal .phone-login-mode{display:none!important}
.phone-only-auth-modal .auth-method-picker{display:none!important}
.captcha-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 13px;border:1px solid #2d6870;border-radius:10px;background:#102f3a}.captcha-field>b{grid-column:1/-1;color:#d8fffa;font-size:18px;font-weight:900;letter-spacing:.5px;line-height:1.7}.captcha-field input[name="captcha_answer"]{min-width:0;min-height:46px;padding:10px 12px;font-size:17px;font-weight:700}.captcha-refresh-button{min-height:46px;padding:9px 14px;border:1px solid #2d8990!important;border-radius:10px;color:#d9ffff!important;background:linear-gradient(135deg,#0c626c,#11404f)!important;font-size:12px;font-weight:800;white-space:nowrap}.captcha-refresh-button:hover{border-color:#74f3e4!important;color:#fff!important;background:linear-gradient(135deg,#12818a,#15576a)!important}.captcha-refresh-button:disabled{opacity:.65;cursor:wait}@media(max-width:560px){.captcha-field{grid-template-columns:1fr}.captcha-refresh-button{width:100%}}
.forgot-password-card { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 11px 13px; border: 1px solid #31506f; border-radius: 12px; color: #c7d8e7; background: linear-gradient(135deg, #10253e, #0b1a2d); text-align: right; }
.forgot-password-card:hover { border-color: var(--cyan); background: linear-gradient(135deg, #16384a, #0e2638); }
.forgot-password-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #082122; background: var(--cyan); font-size: 18px; }
.forgot-password-card b, .forgot-password-card small { display: block; }
.forgot-password-card small { margin-top: 3px; color: #8da9bf; font-size: 10px; }
.auth-flow-heading { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px; border: 1px solid #286075; border-radius: 12px; color: #c6f9f1; background: linear-gradient(135deg, #102f42, #0c2034); }
.auth-flow-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #062122; background: var(--cyan); font-size: 17px; }
.auth-flow-heading b, .auth-flow-heading small { display: block; }
.auth-flow-heading small { margin-top: 3px; color: #93b8c8; font-size: 10px; }
.auth-back-button { margin-bottom: 14px; padding: 7px 10px; border: 1px solid #31506f; border-radius: 8px; color: #a9c5d7; background: #0b1d31; }
.auth-back-button:hover { border-color: var(--cyan); color: #efffff; }
.modal-body #auth-form { display: flex; flex-direction: column; }
.modal-body #auth-form .registration-telegram-step { order: 20; }
.modal-body #auth-form .form-foot { order: 10; }
.field { display: block; margin-bottom: 15px; color: #a7bbd0; font-size: 12px; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #2b4968; border-radius: 8px; outline: 0; color: #edf7ff; background: #0a182a; font-size: 13px; }
.field input::placeholder { color: #607c98; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.form-error { margin: 0 0 13px; color: #ffb2bc; font-size: 12px; }
.email-code-row { align-items: end; gap: 10px; }
.email-send-button { appearance: none; min-width: 132px; border: 1px solid #2d8990 !important; border-radius: 12px; color: #d9ffff !important; background: linear-gradient(135deg, #0c626c, #11404f) !important; box-shadow: 0 6px 18px rgba(22, 188, 190, .18); font-weight: 700; }
.email-send-button span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border: 1px solid rgba(210,255,255,.7); border-radius: 50%; }
.email-send-button:hover { border-color: #74f3e4; background: linear-gradient(135deg, #12818a, #15576a); }
.email-send-button:disabled { opacity: .65; cursor: wait; }
.email-success-message { order: 30; width: 100%; margin: -4px 0 8px; padding: 9px 12px; border-right: 3px solid #37d69a; border-radius: 8px; color: #baffdf; background: #103d35; font-size: 12px; }
.bank-card-grid { display: grid; gap: 12px; margin-top: 16px; }
.private-bank-card { display: grid; gap: 7px; padding: 16px; border: 1px solid #2b4968; border-radius: 16px; background: linear-gradient(145deg,#142f4e,#0b1d32); }
.private-bank-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(84,229,211,.18); }
.private-bank-card em { width: max-content; padding: 4px 8px; border-radius: 20px; color: #062122; background: var(--cyan); font-size: 10px; font-style: normal; }
.private-bank-card code { direction: ltr; color: #c8fff5; letter-spacing: 2px; }
.private-bank-card div { display: flex; gap: 7px; flex-wrap: wrap; }
.private-bank-card button { padding: 7px 10px; border-radius: 8px; color: #dffffb; background: #14525a; }
.bank-card-empty { display: grid; gap: 10px; padding: 28px; border: 1px dashed #315374; border-radius: 16px; color: var(--muted); text-align: center; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; }
.form-foot small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-foot .primary-btn { flex: 0 0 auto; }
.product-detail { display: grid; grid-template-columns: 195px 1fr; gap: 20px; }
.detail-image { min-height: 190px; border-radius: 13px; background: url('/assets/storefront-hero.png') 36% center / cover; }
.detail-gallery { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.gallery-thumb { flex: 0 0 42px; width: 42px; height: 42px; padding: 2px; border: 1px solid #2b4968; border-radius: 7px; background: #0a182a; }
.gallery-thumb.active { border-color: var(--cyan); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.detail-copy h3 { margin: 0 0 5px; font-size: 21px; }
.detail-copy > p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.detail-price { margin-bottom: 18px; color: var(--cyan); font-size: 22px; font-weight: 800; }
.detail-price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #233f5f; border-radius: 9px; background: #10243d; }
.qty-control { display: inline-flex; align-items: center; gap: 11px; }
.qty-control button { width: 28px; height: 28px; border-radius: 7px; color: #b9f9f0; background: #19484c; }
.qty-control span { min-width: 20px; text-align: center; font-size: 14px; }
.cart-add-button { width: 100%; margin-bottom: 12px; }
.telegram-callout { margin: 18px 0; padding: 12px 14px; border: 1px solid #34526f; border-radius: 9px; color: #bbd4e7; background: #102941; font-size: 12px; line-height: 1.8; }
.telegram-callout b { color: #a9fff3; }
.payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 2px; }
.payment-option { display: block; padding: 10px; border: 1px solid #2a4968; border-radius: 9px; color: #aec4d8; background: #0b1b2f; font-size: 12px; }
.payment-option:has(input:checked) { border-color: var(--cyan); color: #efffff; background: #123940; }
.payment-option input { margin-left: 6px; accent-color: var(--cyan); }

.drawer-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(1, 7, 17, .6); }
.drawer-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 46; width: min(430px, 100%); overflow-y: auto; border-right: 1px solid #2b486a; background: #0b1b2e; box-shadow: 16px 0 50px rgba(0,0,0,.36); animation: drawer-in .22s ease; }
@keyframes drawer-in { from { transform: translateX(-20px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px; border-bottom: 1px solid #203b59; }
.drawer-head small { color: var(--cyan); font-size: 10px; }
.drawer-head h2 { margin: 5px 0 0; font-size: 20px; }
.drawer-body { padding: 21px; }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #244565; border-radius: 12px; background: #102843; }
.account-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #c7c0ff; background: #443a83; font-weight: 800; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { font-size: 14px; }
.account-summary small { margin-top: 3px; color: var(--muted); direction: ltr; text-align: right; }
.account-actions { display: flex; gap: 8px; margin-top: 13px; }
.account-actions button { flex: 1; padding: 9px; border-radius: 8px; color: #bdd2e7; background: #152f4c; font-size: 12px; }
.account-actions button:hover { background: #1b3e62; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-wide { grid-column: 1 / -1; }
.profile-verify-list { display: grid; gap: 9px; margin-top: 16px; }
.profile-verify-row, .verify-code-row, .inline-field { display: flex; align-items: center; gap: 9px; }
.profile-verify-row { justify-content: space-between; padding: 11px 12px; border: 1px solid #244565; border-radius: 10px; background: #102843; }
.profile-verify-row > div { min-width: 0; flex: 1; }
.profile-verify-row b, .profile-verify-row small { display: block; }
.profile-verify-row small { margin-top: 4px; color: var(--muted); direction: ltr; text-align: right; overflow-wrap: anywhere; }
.profile-verify-row button, .verify-code-row button, .inline-field button { padding: 8px 11px; border-radius: 8px; color: #dffffb; background: #14525a; font-size: 11px; }
.verify-code-row { padding: 8px 12px 0; }
.verify-code-row input, .inline-field input { flex: 1; min-width: 0; }
.telegram-bind { margin-top: 16px; padding: 13px; border: 1px solid #3d3974; border-radius: 11px; background: #211f45; }
.telegram-bind > b, .telegram-bind > small { display: block; }
.telegram-bind > small { margin: 6px 0 11px; color: #bdb9db; line-height: 1.8; }
.telegram-bind .locked-value small, .link-code-card small { display: block; margin-top: 6px; color: #bdb9db; line-height: 1.8; }
.link-code-card { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; padding: 10px; border: 1px dashed #8179d9; border-radius: 9px; background: #171532; }
.link-code-card code { direction: ltr; letter-spacing: 2px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.link-code-card button { margin-inline-start: auto; }
.telegram-link-button { padding: 8px 11px; border-radius: 8px; color: #e8fffd; background: #229b91; font-size: 11px; text-decoration: none; }
.telegram-link-button:hover { background: #2bbdb0; }
.locked-value { direction: ltr; padding: 9px 11px; border-radius: 8px; color: #dffefa; background: #123d46; font-family: monospace; }
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } .profile-wide { grid-column: auto; } }
.drawer-section-title { display: flex; justify-content: space-between; margin: 25px 0 12px; color: #dceafb; font-size: 14px; }
.drawer-section-title span { color: var(--muted); font-size: 11px; }
.mini-order { padding: 12px; border: 1px solid #213e5e; border-radius: 10px; background: #10233c; }
.mini-order + .mini-order { margin-top: 8px; }
.mini-order > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-order strong { font-size: 12px; }
.mini-order small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.cart-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #203b59; }
.cart-item > b { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #24365f; font-size: 20px; }
.cart-item strong, .cart-item small { display: block; }
.cart-item strong { font-size: 12px; }
.cart-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.cart-item > span { margin-right: auto; color: #dffefa; font-size: 11px; }
.cart-qty-control { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.cart-qty-control button { width: 24px; height: 24px; border-radius: 6px; color: #b9f9f0; background: #19484c; }
.cart-qty-control b { min-width: 18px; text-align: center; font-size: 11px; }
.cart-actions { display: flex; gap: 8px; margin-top: 14px; }
.cart-actions > * { flex: 1; }
.checkout-items { display: grid; gap: 8px; margin-bottom: 14px; }
.checkout-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #203b59; border-radius: 9px; background: #10243d; }
.checkout-item span { color: var(--muted); font-size: 11px; }
.checkout-item b { margin-right: auto; color: #dffefa; font-size: 11px; }
.drawer-total { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 13px; color: var(--muted); font-size: 12px; }
.drawer-total strong { color: #fff; font-size: 19px; }
.drawer-empty { padding: 35px 10px; color: var(--muted); text-align: center; font-size: 13px; }

.toast { position: fixed; right: 25px; bottom: 24px; z-index: 80; max-width: min(390px, calc(100% - 32px)); padding: 12px 15px; border: 1px solid #367b79; border-radius: 9px; color: #dcfffa; background: #103a3e; box-shadow: 0 12px 35px rgba(0,0,0,.35); font-size: 12px; animation: toast-in .2s ease; }
.toast.error { border-color: #884255; color: #ffd6dc; background: #452532; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loading { padding: 55px; color: var(--muted); text-align: center; }

/* Readable RTL typography without truncation or fixed text heights. */
.site-header { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 12px; gap: 12px 20px; }
.main-nav { flex-wrap: wrap; }
.main-nav button, .header-btn { font-size: 13px; text-align: center; }
.header-actions { flex-wrap: wrap; min-width: 0; }
.usd-header-ticker { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.5; letter-spacing: normal; }
.hero-kicker { max-width: 100%; line-height: 1.7; }
.hero-kicker i { flex-shrink: 0; }
.hero-welcome h2 { line-height: 1.65; }
.hero-welcome strong { display: block; line-height: 1.8; }
.section-head { flex-wrap: wrap; }
.section-head > div { min-width: 0; }
.section-head h2, .orders-view h1 { line-height: 1.6; letter-spacing: normal; }
.section-head p { font-size: 14px; line-height: 1.8; max-width: 65ch; }
.primary-btn, .ghost-btn, .product-buy, .category-chip { max-width: 100%; font-size: 14px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.category-chip { white-space: normal; max-width: min(100%, 320px); }
.search-box, .search-box input { min-width: 0; }
.search-box input, .sort-select { font-size: 14px; }
.product-body { gap: 4px; }
.product-category { font-size: 12px; }
.product-title { font-size: 17px; font-weight: 700; line-height: 1.75; }
.product-desc { font-size: 14px; line-height: 1.9; }
.product-meta { flex-wrap: wrap; font-size: 12px; }
.product-meta span { max-width: 100%; overflow-wrap: anywhere; }
.price-row { flex-wrap: wrap; align-items: center; gap: 12px; }
.price { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.price strong { font-size: 20px; line-height: 1.6; }
.price strong small, .price del { font-size: 12px; }
.service-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-strip-heading { line-height: 1.7; }
.service-card { min-width: 0; align-items: flex-start; }
.service-card > b { flex-shrink: 0; }
.service-card > div { min-width: 0; overflow-wrap: anywhere; }
.service-card strong { font-size: 15px; }
.service-card small { font-size: 13px; line-height: 1.8; }
.orders-view > p, .detail-copy > p { font-size: 14px; line-height: 1.9; max-width: 65ch; }
.order-top > div, .modal-head > div, .drawer-head > div, .detail-copy { min-width: 0; }
.order-top, .drawer-section-title, .mini-order > div, .drawer-total { flex-wrap: wrap; gap: 10px; }
.order-top strong, .mini-order strong, .cart-item strong { font-size: 14px; overflow-wrap: anywhere; }
.status, .order-info, .code-pill, .account-link-note, .telegram-callout, .field, .form-error, .form-foot small { font-size: 13px; line-height: 1.8; }
.code-pill { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
.code-pill b, .locked-value, .private-bank-card code { min-width: 0; overflow-wrap: anywhere; }
.modal-head h2, .drawer-head h2, .detail-copy h3 { line-height: 1.6; font-size: clamp(20px, 2vw, 24px); }
.close-btn { flex-shrink: 0; }
.product-detail { grid-template-columns: 195px minmax(0, 1fr); }
.field input, .field select, .field textarea { font-size: 16px; line-height: 1.6; min-width: 0; }
.auth-method-card { font-size: 14px; line-height: 1.6; }
.auth-method-card span, .forgot-password-logo, .auth-flow-heading > span, .account-avatar { flex-shrink: 0; }
.auth-method-card b, .forgot-password-card > div, .auth-flow-heading > div, .account-summary > div { min-width: 0; overflow-wrap: anywhere; }
.auth-flow-heading small, .forgot-password-card small, .sms-feedback { font-size: 12px; line-height: 1.8; }
.account-actions, .cart-actions, .profile-verify-row, .verify-code-row, .inline-field, .wallet-tabs { flex-wrap: wrap; }
.account-actions button { flex: 1 1 120px; font-size: 13px; line-height: 1.7; }
.cart-item, .checkout-item { flex-wrap: wrap; }
.cart-item > div:not(.cart-qty-control) { flex: 1 1 130px; min-width: 0; }
.cart-item > span, .checkout-item b { max-width: 100%; overflow-wrap: anywhere; }
.checkout-item > strong { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.cart-item small, .cart-item > span, .checkout-item span, .checkout-item b { font-size: 12px; }
.cart-actions > * { flex: 1 1 130px; }
.drawer-section-title > b { max-width: 100%; overflow-wrap: anywhere; }
.support-bot span, .ticket-reply input { min-width: 0; overflow-wrap: anywhere; }
.ticket-reply { flex-wrap: wrap; }
.ticket-reply input { flex: 1 1 140px; }
.ticket-card .ticket-reply > button.secondary {
  appearance: none;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #397bd0;
  border-radius: 10px;
  color: #e7f2ff;
  background: linear-gradient(135deg, #174b88, #102c50);
  box-shadow: inset 0 1px 0 #ffffff12;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ticket-card .ticket-reply > button.secondary:hover {
  border-color: #69b4ff;
  box-shadow: 0 0 12px #2587e82e;
}
.ticket-card .ticket-reply > button.secondary:focus-visible {
  outline: 2px solid #8dceff;
  outline-offset: 3px;
}
.ticket-card .ticket-reply > button.secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .ticket-card .ticket-reply > button.secondary { transition: none; }
}
.wallet-card input, .wallet-card select, .new-ticket input, .new-ticket textarea, .ticket-reply input { min-width: 0; max-width: 100%; font-size: 16px; }
.receipt-upload input { min-width: 0; max-width: 100%; }
.empty-state, .orders-empty { padding: clamp(20px, 4vw, 46px); line-height: 1.9; }
.toast, .site-footer { overflow-wrap: anywhere; line-height: 1.8; }

@media (max-width: 820px) {
  .site-header { gap: 10px 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .header-actions { flex: 0 1 auto; justify-content: flex-end; }
  .usd-header-ticker { flex: 1 1 auto; }
  .hero { min-height: 410px; }
  .hero-copy { padding: 42px 24px 28px; }
  .hero h1 { font-size: clamp(29px, 5vw, 38px); }
  .hero .hero-lead { font-size: clamp(16px, 2.5vw, 19px); }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip { padding-top: 0; }
  .service-strip-heading { position: static; grid-column: 1 / -1; }
  .product-detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 530px) {
  .site-header { min-height: 60px; padding: 9px 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand strong { font-size: 15px; }
  .header-actions { flex: 1 1 100%; gap: 6px; justify-content: flex-start; }
  .header-btn { padding: 7px 8px; font-size: 13px; }
  .header-btn span { display: inline; }
  .brand small { display: block; }
  .mobile-menu { flex-shrink: 0; }
  .content-wrap { width: calc(100% - 18px); padding-top: 12px; }
  .hero { min-height: 430px; }
  .hero-copy { padding: 38px 18px 22px; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.55; }
  .hero .hero-lead { margin: 8px 0 17px; font-size: 16px; line-height: 1.9; }
  .hero-welcome { margin-top: 18px; padding: 15px; }
  .hero-welcome h2 { font-size: 17px; }
  .hero-welcome p { font-size: 13px; }
  .hero-actions .primary-btn { width: 100%; }
  .section-head { gap: 10px; }
  .section-head h2 { font-size: clamp(19px, 6vw, 22px); }
  .section-head .view-link { width: 100%; font-size: 13px; }
  .category-row { gap: 6px; }
  .category-chip { padding: 9px 10px; font-size: 13px; }
  .product-image { height: 175px; }
  .product-body { padding: 14px; }
  .product-title { font-size: 16px; line-height: 1.75; }
  .product-desc { font-size: 13px; }
  .price-row { align-items: stretch; flex-direction: column; }
  .product-buy { width: 100%; }
  .modal-head, .modal-body, .drawer-head, .drawer-body { padding-inline: 16px; }
  .modal-head { gap: 10px; }
  .modal-body { padding-block: 18px; }
  .form-foot .primary-btn, .cart-actions > *, .wallet-tabs button { width: 100%; }
  .wallet-tabs { flex-direction: column; }
  .profile-verify-row, .verify-code-row, .inline-field { align-items: stretch; flex-direction: column; }
  .profile-verify-row button, .verify-code-row button, .inline-field button { width: 100%; }
  .site-footer { padding-inline: 14px; gap: 12px; }
}

@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-wrap { width: min(100% - 30px, 1000px); }
}
@media (max-width: 820px) {
  .site-header { height: 66px; padding: 0 14px; gap: 12px; }
  .brand small, .main-nav { display: none; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 8px; color: #c2d7ee; background: #102943; font-size: 17px; }
  .header-actions { margin-right: auto; }
  .header-btn { padding: 8px 10px; }
  .header-btn span { display: none; }
  .content-wrap { width: calc(100% - 24px); padding-top: 16px; }
  .hero { min-height: 410px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 17, 31, .18), rgba(7, 17, 31, .95) 75%); }
  .hero-copy { width: 100%; align-self: flex-end; padding: 45px 24px 28px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .sort-select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: 1fr; }
}
@media (max-width: 530px) {
  .content-wrap { width: calc(100% - 18px); }
  .hero { border-radius: 17px; }
  .hero-copy { padding: 39px 18px 21px; }
  .hero h1 { font-size: 27px; letter-spacing: -1px; }
  .hero p { margin: 11px 0 18px; line-height: 1.8; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .primary-btn, .hero-actions .ghost-btn { flex: 1; }
  .hero-stats { gap: 14px; margin-top: 24px; }
  .hero-stat strong { font-size: 17px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-top: 28px; }
  .section-head h2 { font-size: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 185px; }
  .product-title { font-size: 16px; }
  .product-desc { min-height: 0; }
  .modal-body { padding: 18px; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { min-height: 145px; }
  .payment-options { grid-template-columns: 1fr; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .form-foot .primary-btn { width: 100%; }
  .order-top { align-items: flex-start; flex-direction: column; }
}

/* Keep wallet, ticket and receipt surfaces aligned with the dark storefront. */
.support-bot,.new-ticket,.ticket-reply,.wallet-card,.ticket-card,.receipt-upload{color:var(--text);background:var(--panel);border-color:var(--stroke)}
.ticket-message{color:var(--text);background:var(--panel-2)}
.ticket-message.admin{background:#123e42}
 .receipt-upload textarea{color:var(--text);background:var(--bg-soft);border-color:var(--stroke)}.receipt-submit{margin-top:4px}.receipt-upload small{line-height:1.8}.receipt-upload input[type=file]{color:var(--muted);padding:8px;border:1px dashed var(--stroke);border-radius:8px}
 .support-bots{display:grid;gap:10px;margin:22px 0}.support-bot{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--stroke);border-radius:16px;color:inherit;text-decoration:none;background:var(--panel)}.support-bot span{display:grid;gap:4px}.support-bot small,.receipt-upload small{color:var(--muted)}.new-ticket,.ticket-reply,.wallet-card{display:grid;gap:10px;margin:20px 0;padding:18px;border:1px solid var(--stroke);border-radius:18px;background:var(--panel)}.new-ticket textarea{min-height:100px}.ticket-list{display:grid;gap:14px}.ticket-card{padding:16px;border:1px solid var(--stroke);border-radius:18px;background:var(--panel)}.ticket-messages{display:grid;gap:8px;margin:14px 0}.ticket-message{padding:10px 12px;border-radius:12px}.ticket-message p{margin:5px 0 0;white-space:pre-wrap}.ticket-reply{display:flex;margin:0;padding:0;border:0;background:transparent}.ticket-reply input{flex:1}.receipt-upload{display:grid;gap:6px;margin:12px 0;padding:12px;border-radius:12px;background:var(--panel-2)}.wallet-card .drawer-section-title{display:flex;justify-content:space-between;align-items:center}.wallet-card form{display:grid;gap:8px}.wallet-card input,.wallet-card select,.new-ticket input,.new-ticket textarea,.ticket-reply input{padding:12px;border:1px solid var(--stroke);border-radius:10px;color:var(--text);background:var(--bg-soft);font:inherit}.orders-section-title{margin:24px 0 10px;font-size:18px}.expired-order{opacity:.78}.expired-access{color:var(--red)}.access-window{display:block;color:var(--cyan);margin:2px 0 10px}
.wallet-account-card{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:12px 0;padding:14px 16px;border:1px solid #2d6870;border-radius:12px;color:#dffefa;background:linear-gradient(135deg,#123b47,#102f3a);text-align:right;box-shadow:0 8px 22px rgba(3,9,20,.2);transition:.2s}.wallet-account-card span{color:#bffaf0;font-size:12px;font-weight:700}.wallet-account-card strong{color:#fff;font-size:18px}.wallet-account-card small{color:#9dc7c7;font-size:10px}.wallet-account-card:hover{border-color:var(--cyan);background:linear-gradient(135deg,#174e59,#123b47);transform:translateY(-1px)}
