/* Gaming Cards — Arabic RTL storefront, admin, and installer */
:root {
  --ink: #17142a;
  --muted: #6f6b80;
  --line: #e9e6f0;
  --soft: #f7f5fa;
  --white: #ffffff;
  --night: #17102e;
  --night-2: #24154c;
  --violet: #7655ff;
  --violet-dark: #5b3ce0;
  --cyan: #29d3e2;
  --green: #15966a;
  --amber: #bf7500;
  --red: #c83e5b;
  --shadow-sm: 0 8px 24px rgba(30, 22, 55, .07);
  --shadow-md: 0 22px 60px rgba(30, 22, 55, .12);
  --radius: 18px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, input, select, textarea, button { font-family: "Tajawal", Tahoma, Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
code { direction: ltr; display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.muted { color: var(--muted); }

.topbar { background: var(--night); color: #d9d2ee; font-size: 13px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 34px; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-inner span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.site-header { position: sticky; inset-block-start: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; background: var(--violet); color: var(--white); font-weight: 800; font-size: 21px; border-radius: 12px 4px 12px 4px; box-shadow: 5px 5px 0 var(--cyan); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 5px; }
.main-nav a { color: #4e495e; padding: 10px 13px; border-radius: 9px; font-weight: 600; transition: color .18s var(--ease), background .18s var(--ease); }
.main-nav a:hover { color: var(--violet-dark); background: #f3f0ff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { font-weight: 600; padding: 8px 9px; color: #4d485b; }
.admin-link { color: var(--violet-dark); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; background: var(--night); color: var(--white); min-height: 42px; padding: 8px 14px; border-radius: 11px; font-weight: 700; }
.cart-link b { min-width: 23px; height: 23px; display: grid; place-items: center; background: var(--cyan); color: var(--night); border-radius: 50%; font-size: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 25px; }

.btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .15s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { color: var(--white); background: var(--violet); border-color: var(--violet); box-shadow: 0 9px 22px rgba(118,85,255,.22); }
.btn-primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: #bdb4d2; background: var(--soft); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn-large { min-height: 52px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn[disabled], button[disabled] { opacity: .48; cursor: not-allowed; transform: none !important; }
.text-danger { color: var(--red); background: transparent; border: 0; font-weight: 700; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 620px; display: flex; align-items: center; background: var(--night); color: var(--white); }
.hero::before { content: ""; position: absolute; width: 390px; height: 390px; inset: -150px auto auto -100px; border-radius: 50%; background: #2a1d54; z-index: -1; }
.hero::after { content: ""; position: absolute; width: 250px; height: 250px; inset: auto 6% -130px auto; border-radius: 50%; background: #103b48; z-index: -1; }
.hero-grid { position: absolute; inset: 0; opacity: .16; border: 1px solid rgba(255,255,255,.07); transform: rotate(-8deg) scale(1.1); pointer-events: none; }
.hero-grid::before, .hero-grid::after { content: ""; position: absolute; inset: 20% 0 auto; height: 1px; background: rgba(255,255,255,.24); box-shadow: 0 80px 0 rgba(255,255,255,.16), 0 160px 0 rgba(255,255,255,.12), 0 240px 0 rgba(255,255,255,.08); }
.hero-grid::after { inset: 0 auto 0 20%; width: 1px; height: auto; box-shadow: 90px 0 0 rgba(255,255,255,.15), 180px 0 0 rgba(255,255,255,.1), 270px 0 0 rgba(255,255,255,.07), 360px 0 0 rgba(255,255,255,.05); }
.hero-inner { min-height: 620px; padding-block: 76px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 80px; }
.hero-copy { position: relative; z-index: 3; }
.hero-kicker, .eyebrow { display: inline-block; color: var(--violet-dark); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.hero-kicker { color: var(--cyan); border: 1px solid rgba(41,211,226,.35); padding: 5px 11px; border-radius: 30px; }
.hero h1 { font-size: clamp(48px, 6vw, 80px); line-height: 1.04; letter-spacing: -.045em; margin: 23px 0 20px; }
.hero h1 span { color: var(--cyan); }
.hero-copy > p { max-width: 590px; color: #c9c1dc; font-size: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 17px; color: #bfb7d2; font-size: 13px; margin-top: 28px; }
.hero-trust span::first-letter { color: var(--cyan); }
.hero-visual { position: relative; min-height: 440px; perspective: 900px; }
.glow-card { position: absolute; width: 330px; aspect-ratio: 1.58; border-radius: 24px; padding: 27px; box-shadow: 0 34px 70px rgba(0,0,0,.42); }
.card-back { inset: 50px auto auto 5px; background: #34236b; color: rgba(255,255,255,.12); font-size: 60px; font-weight: 800; transform: rotate(-10deg); border: 1px solid rgba(255,255,255,.14); }
.card-front { inset: 110px 55px auto auto; background: var(--violet); transform: rotate(6deg); border: 1px solid rgba(255,255,255,.35); }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .12em; }
.card-top b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--night); }
.card-value { font-size: 48px; font-weight: 800; margin: 19px 0 10px; }
.card-code { font-family: monospace; letter-spacing: .15em; font-size: 15px; opacity: .78; }
.card-bottom { margin-top: 23px; opacity: .72; }
.hero-bubble { position: absolute; z-index: 4; display: flex; flex-direction: column; min-width: 110px; background: var(--white); color: var(--ink); padding: 12px 16px; box-shadow: var(--shadow-md); border-radius: 14px; }
.hero-bubble b { color: var(--violet-dark); font-size: 18px; }
.hero-bubble span { color: var(--muted); font-size: 11px; }
.bubble-one { inset: 32px 4px auto auto; }
.bubble-two { inset: auto auto 34px 48px; }

.section { padding-block: 82px; }
.section-soft { background: var(--soft); }
.stats-strip { padding-block: 26px; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { display: flex; flex-direction: column; padding: 6px 28px; border-inline-start: 1px solid var(--line); }
.stats-grid > div:first-child { border-inline-start: 0; }
.stats-grid b { font-size: 17px; }
.stats-grid span { color: var(--muted); font-size: 13px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-head.compact { margin-bottom: 18px; }
.section-head h2, .trust-panel h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.section-head > a { color: var(--violet-dark); font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-grid-large { grid-template-columns: repeat(3, 1fr); }
.category-card { min-height: 166px; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 19px; padding: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.category-card::after { content: ""; position: absolute; width: 65px; height: 65px; inset: -28px -28px auto auto; border-radius: 50%; background: #ebe5ff; }
.category-card:hover { transform: translateY(-5px); border-color: #c7bbed; box-shadow: var(--shadow-md); }
.category-icon { width: 62px; height: 72px; display: grid; place-items: center; color: var(--white); background: var(--violet); border-radius: 14px 5px 14px 5px; font-size: 25px; font-weight: 800; }
.tone-2 .category-icon { background: #0d858f; }
.tone-3 .category-icon { background: #b94c75; }
.tone-4 .category-icon { background: #d28418; }
.category-card h3 { margin: 0 0 6px; font-size: 20px; }
.category-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.category-card small { color: var(--violet-dark); font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-art { position: relative; display: block; aspect-ratio: 1.12; overflow: hidden; background: var(--night); }
.product-art::after { content: "DIGITAL"; position: absolute; inset: auto 15px 13px auto; color: rgba(255,255,255,.15); font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.product-card:hover .product-art img { transform: scale(1.035); }
.digital-badge, .featured-badge { position: absolute; z-index: 2; inset: 13px 13px auto auto; padding: 4px 9px; color: var(--white); background: var(--night); font-size: 11px; font-weight: 700; border-radius: 20px; }
.featured-badge { inset: 13px auto auto 13px; background: var(--cyan); color: var(--night); }
.product-card-body { padding: 20px; }
.product-card h3 { margin: 5px 0 8px; font-size: 20px; line-height: 1.35; }
.product-card h3 a:hover { color: var(--violet-dark); }
.product-card p { min-height: 48px; margin: 0 0 17px; color: var(--muted); font-size: 14px; }
.product-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.product-meta > div { display: flex; flex-direction: column; }
.product-meta small { color: var(--muted); font-size: 11px; }
.product-meta strong { color: var(--violet-dark); font-size: 18px; direction: ltr; }
.product-meta .btn { color: var(--white); background: var(--night); }

.trust-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; background: var(--night); color: var(--white); padding: 52px; border-radius: 4px 36px 4px 36px; box-shadow: var(--shadow-md); }
.trust-panel p { color: #bdb5d0; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.steps > div { display: flex; align-items: center; gap: 12px; padding: 16px; background: #211644; border: 1px solid rgba(255,255,255,.08); }
.steps b { color: var(--cyan); font-size: 20px; }

.page-hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: var(--night); color: var(--white); }
.page-hero::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: #2c1e5a; inset: -95px auto auto 10%; }
.page-hero-small { padding: 54px 0 48px; }
.page-hero h1 { margin: 8px 0 9px; font-size: clamp(34px, 5vw, 54px); line-height: 1.15; }
.page-hero p { color: #bfb7d2; margin: 0; }
.page-hero .eyebrow { color: var(--cyan); }
.back-link { display: block; color: #bfb7d2; margin-bottom: 18px; }
.account-head { display: flex; justify-content: space-between; align-items: center; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filter-panel { position: sticky; top: 100px; padding: 22px; background: var(--soft); border: 1px solid var(--line); }
.filter-panel form { display: grid; gap: 16px; }
.results-bar { min-height: 50px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.results-bar span { color: var(--muted); font-size: 13px; }

label { display: grid; gap: 7px; color: #514c60; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--white); border: 1px solid #dcd7e6; border-radius: 9px; padding: 11px 12px; outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(118,85,255,.12); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.compact { grid-template-columns: 100px 1fr; align-items: end; }
.check-label { display: flex; align-items: center; gap: 9px; min-height: 46px; }
.check-label input { width: 17px; height: 17px; accent-color: var(--violet); }

.breadcrumb { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--violet-dark); }
.product-detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 55px; align-items: start; }
.product-detail-art { position: sticky; top: 115px; overflow: hidden; aspect-ratio: 1; background: var(--night); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.product-detail-art img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-art > span { position: absolute; inset: 18px 18px auto auto; color: var(--white); background: var(--violet); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.product-detail-copy h1 { margin: 7px 0 12px; font-size: clamp(35px, 5vw, 55px); line-height: 1.15; }
.lead { color: var(--muted); font-size: 18px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0; }
.feature-chips span { padding: 7px 11px; background: #effbfa; color: #176e6c; border-radius: 7px; font-size: 13px; font-weight: 700; }
.purchase-box { display: grid; gap: 16px; padding: 25px; background: var(--soft); border: 1px solid var(--line); border-inline-start: 4px solid var(--violet); }
.product-description { padding-top: 27px; }
.product-description h2 { font-size: 22px; }
.product-description p { color: var(--muted); }

.empty-state { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; padding: 45px; background: var(--soft); border: 1px dashed #cbc3d9; }
.empty-state > div:first-child { width: 62px; height: 62px; display: grid; place-items: center; background: var(--night); color: var(--cyan); font-size: 28px; border-radius: 17px 5px 17px 5px; }
.empty-state h2 { margin: 18px 0 4px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

.cart-layout, .checkout-layout, .order-detail-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.cart-items { display: grid; gap: 13px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr 80px auto auto; gap: 17px; align-items: center; padding: 16px; border: 1px solid var(--line); background: var(--white); }
.cart-item img { width: 90px; height: 78px; object-fit: cover; background: var(--night); }
.cart-item h3, .cart-item p { margin: 0; }
.cart-item p, .cart-item small { color: var(--muted); }
.qty-field input { padding: 8px; }
.order-summary { padding: 24px; background: var(--soft); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.order-summary.sticky { position: sticky; top: 105px; }
.order-summary h2 { margin-top: 0; }
.order-summary > div, .checkout-line { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.order-summary > p { color: var(--muted); font-size: 12px; }
.order-summary .btn { margin-top: 9px; }
.summary-total { margin-top: 6px; align-items: end; }
.summary-total strong { color: var(--violet-dark); font-size: 23px; direction: ltr; }
.checkout-form { display: grid; gap: 18px; }
.form-card, .detail-card { padding: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card-head { display: flex; align-items: start; gap: 13px; margin-bottom: 20px; }
.form-card-head > b { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--white); background: var(--violet); border-radius: 10px 3px 10px 3px; }
.form-card-head h2, .form-card-head p { margin: 0; }
.form-card-head p { color: var(--muted); font-size: 13px; }
.payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-option { display: flex; align-items: flex-start; gap: 11px; padding: 17px; border: 1px solid #dcd7e6; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--violet); background: #f4f1ff; }
.payment-option.disabled { opacity: .5; cursor: not-allowed; }
.payment-option input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--violet); }
.payment-option span { display: flex; flex-direction: column; }
.payment-option small { color: var(--muted); font-weight: 400; }
.manual-payment { display: none; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.manual-payment.is-visible { display: grid; gap: 14px; }
.transfer-card { display: grid; gap: 3px; padding: 20px; color: var(--white); background: var(--night); border-inline-start: 5px solid var(--cyan); }
.transfer-card span { color: #bbb4cf; }
.transfer-card strong { font-size: 20px; }
.transfer-card code { font-size: 20px; color: var(--cyan); margin: 7px 0; }
.transfer-card p { margin: 0; color: #cbc4dd; font-size: 13px; }
.checkout-line > span { display: flex; flex-direction: column; }
.checkout-line small { color: var(--muted); }

.auth-section { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: grid; place-items: center; padding: 70px; color: var(--white); background: var(--night); }
.auth-visual::after { content: "G"; position: absolute; inset: auto -30px -150px auto; color: #24194b; font-size: 520px; font-weight: 800; line-height: .75; }
.auth-visual > div { position: relative; z-index: 2; max-width: 500px; }
.auth-visual h1 { font-size: clamp(44px, 6vw, 74px); line-height: 1.05; margin: 20px 0; }
.auth-visual p { color: #c8c1d9; font-size: 18px; }
.auth-panel { display: grid; place-items: center; padding: 50px 24px; background: var(--soft); }
.auth-card { width: min(460px, 100%); padding: 34px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 30px 0 3px; font-size: 30px; }
.auth-card > p { color: var(--muted); margin-top: 0; }
.auth-card form { display: grid; gap: 14px; margin-top: 22px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); }
.auth-switch a { color: var(--violet-dark); font-weight: 700; }

.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.profile-card { position: sticky; top: 105px; padding: 27px; text-align: center; background: var(--soft); border: 1px solid var(--line); }
.profile-card .avatar { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 13px; color: var(--white); background: var(--violet); border-radius: 20px 6px 20px 6px; font-size: 34px; font-weight: 800; }
.profile-card h2, .profile-card p { margin: 0; }
.profile-card p { color: var(--muted); margin-bottom: 13px; }
.profile-card .btn { margin-top: 18px; }
.orders-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1.2fr auto auto auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--white); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.order-row:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); }
.order-row > div { display: flex; flex-direction: column; }
.order-row small { color: var(--muted); }
.order-row > span:last-child { color: var(--violet-dark); font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #ece9f2; color: #5c566b; }
.status-completed, .status-paid { background: #e1f7ee; color: #116d4f; }
.status-processing { background: #e4f4fa; color: #166d82; }
.status-payment_review { background: #fff1d7; color: #915d00; }
.status-pending_payment { background: #eeeaf7; color: #625a72; }
.status-cancelled, .status-refunded { background: #fde5ea; color: #a33149; }
.detail-card { margin-bottom: 17px; }
.detail-card h2 { margin-top: 0; }
.detail-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.detail-card-head h2, .detail-card-head p { margin: 0; }
.detail-card-head p { color: var(--muted); }
.timeline { position: relative; display: grid; gap: 2px; margin-top: 22px; }
.timeline > div { display: grid; grid-template-columns: 18px 1fr; gap: 14px; min-height: 78px; }
.timeline > div > span { width: 12px; height: 12px; margin-top: 6px; background: var(--violet); border: 3px solid #e7e0ff; border-radius: 50%; box-sizing: content-box; }
.timeline > div:not(:last-child) > span::after { content: ""; display: block; width: 2px; height: 57px; margin: 14px 0 0 5px; background: #dcd5e8; }
.timeline p, .timeline small { margin: 0; color: var(--muted); }
.order-item-line { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-item-line > div { display: flex; flex-direction: column; }
.order-item-line small { color: var(--muted); }
.delivery-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 12px 0 0; padding: 12px; background: #f7f5fb; border-inline-start: 3px solid var(--violet); }
.delivery-data > div { min-width: 0; }
.delivery-data dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-data dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq-list details { padding: 18px 20px; border: 1px solid var(--line); background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { color: var(--muted); margin-bottom: 0; }

.alerts { display: grid; gap: 9px; padding-top: 14px; }
.alert { padding: 13px 16px; border: 1px solid; font-weight: 600; }
.alert-success { color: #126947; background: #e8f8f1; border-color: #a8dfca; }
.alert-warning { color: #845500; background: #fff6df; border-color: #f0d08f; }
.alert-danger { color: #9a2d43; background: #fdebf0; border-color: #edb5c1; }

.site-footer { background: #100b20; color: var(--white); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: 9px; }
.footer-grid h3 { margin: 0 0 7px; }
.footer-grid a:not(.brand) { color: #b9b1cb; }
.footer-grid a:not(.brand):hover { color: var(--cyan); }
.footer-grid p { color: #948da6; }
.footer-brand small { color: #948da6; }
.payment-chip { display: inline-flex; padding: 5px 9px; border: 1px solid #4c4561; color: #c8c1d8; border-radius: 5px; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 43px; padding: 20px 0; color: #8f879e; border-top: 1px solid #2c263a; font-size: 13px; }

/* Admin */
.admin-body { background: #f3f1f7; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-sidebar { position: sticky; inset-block-start: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; color: var(--white); background: var(--night); z-index: 55; }
.admin-brand { padding: 0 7px 24px; border-bottom: 1px solid #332a49; }
.admin-brand small { color: #a89fb9; }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 25px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 9px 13px; color: #bfb7ce; border-inline-start: 3px solid transparent; font-weight: 600; }
.admin-sidebar nav a span { width: 25px; text-align: center; color: #7e7392; font-size: 18px; }
.admin-sidebar nav a:hover { background: #20163d; color: var(--white); }
.admin-sidebar nav a.active { color: var(--white); background: #26184c; border-inline-start-color: var(--cyan); }
.admin-sidebar nav a.active span { color: var(--cyan); }
.sidebar-footer { margin-top: auto; display: grid; gap: 6px; padding: 15px 10px 0; border-top: 1px solid #332a49; }
.sidebar-footer a { color: var(--cyan); font-weight: 700; }
.sidebar-footer span { color: #8f859f; font-size: 12px; }
.admin-main { min-width: 0; }
.admin-top { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 13px 30px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-top > button { display: none; border: 0; background: transparent; font-size: 24px; }
.admin-top h1, .admin-top p { margin: 0; }
.admin-top h1 { font-size: 22px; }
.admin-top p { color: var(--muted); font-size: 12px; }
.admin-top > form { margin: 0; }
.admin-logout { border: 0; background: transparent; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.admin-content { padding: 27px; }
.admin-content .alerts { padding-top: 0; margin-bottom: 15px; }
.admin-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.admin-welcome h2, .admin-welcome p { margin: 0; }
.admin-welcome h2 { font-size: 31px; }
.admin-welcome p { color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.admin-stats > div { display: flex; flex-direction: column; min-height: 128px; padding: 19px; background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--violet); box-shadow: var(--shadow-sm); }
.admin-stats > div:nth-child(2) { border-block-start-color: var(--amber); }
.admin-stats > div:nth-child(3) { border-block-start-color: var(--cyan); }
.admin-stats > div:nth-child(4) { border-block-start-color: var(--green); }
.admin-stats span, .admin-stats small { color: var(--muted); }
.admin-stats b { font-size: 27px; margin: 6px 0; }
.admin-card { padding: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.admin-card h2 { margin-top: 0; }
.admin-card-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.admin-card-head h2, .admin-card-head p { margin: 0; }
.admin-card-head p { color: var(--muted); font-size: 13px; }
.admin-card-head > a:not(.btn) { color: var(--violet-dark); font-weight: 700; }
.admin-two-col { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.form-panel form { display: grid; gap: 14px; }
.form-panel.wide { max-width: 1060px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); background: #faf9fc; font-size: 12px; font-weight: 800; white-space: nowrap; }
td { font-size: 14px; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.table-action, .table-actions a, .table-actions button { color: var(--violet-dark); background: transparent; border: 0; font-weight: 700; font-size: 13px; white-space: nowrap; }
.table-actions { display: flex; gap: 10px; align-items: center; }
.table-actions form { margin: 0; }
.empty-cell { padding: 40px; text-align: center; color: var(--muted); }
.product-cell { min-width: 205px; display: flex; align-items: center; gap: 10px; }
.product-cell img { width: 49px; height: 43px; object-fit: cover; background: var(--night); }
.product-cell > div { display: flex; flex-direction: column; }
.admin-search { display: grid; grid-template-columns: minmax(180px, 360px) minmax(140px, 220px) auto; gap: 9px; margin-bottom: 16px; }
.variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.variant-card { display: grid; gap: 11px; padding: 17px; background: #faf9fc; border: 1px solid var(--line); }
.variant-new { border-style: dashed; border-color: #bfb5d2; }
.variant-new h3 { margin: 0; color: var(--violet-dark); }
.variant-actions { display: flex; gap: 8px; }
.admin-order-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.admin-order-head h2, .admin-order-head p { margin: 0; }
.admin-order-head > div > a { color: var(--violet-dark); font-weight: 700; font-size: 13px; }
.admin-order-head p { color: var(--muted); }
.admin-order-grid { display: grid; grid-template-columns: 1fr 350px; gap: 18px; align-items: start; }
@media (max-width: 650px) { .delivery-data { grid-template-columns: 1fr; } }
.admin-total { display: flex; justify-content: space-between; padding-top: 17px; font-size: 19px; }
.info-list { display: grid; gap: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-list span { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.check-list { display: grid; }
.check-list > div, .requirements > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-list > div > div { display: flex; flex-direction: column; }
.check-list small { color: var(--muted); }
.check-list strong { font-size: 12px; }
.check-dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; }
.check-dot.ok { background: var(--green); box-shadow: 0 0 0 4px #e2f5ed; }
.check-dot.warn { background: var(--amber); box-shadow: 0 0 0 4px #fff0d4; }

/* Installer */
.installer-body { min-height: 100vh; background: #f3f1f7; }
.installer-shell { width: min(850px, calc(100% - 30px)); margin: 0 auto; padding: 40px 0 70px; }
.installer-shell > header { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; }
.installer-shell > header h1, .installer-shell > header p { margin: 0; }
.installer-shell > header p { color: var(--muted); }
.installer-card { padding: 27px; margin-bottom: 17px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.installer-card h2 { margin-top: 0; }
.installer-form { display: grid; gap: 0; }
.requirements { display: grid; }
.requirements > div strong { font-size: 12px; }
.installer-success { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; }
.success-icon { width: 75px; height: 75px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 50%; font-size: 34px; }
.installer-success h2 { margin: 19px 0 5px; }
.installer-success p { max-width: 560px; color: var(--muted); }
.installer-actions { display: flex; gap: 10px; margin-top: 12px; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 30px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .variant-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar-inner span:nth-child(2) { display: none; }
  .nav-wrap { grid-template-columns: auto auto 1fr; gap: 15px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 78px 18px auto; flex-direction: column; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .main-nav.is-open { display: flex; }
  .nav-actions { justify-content: end; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 370px; width: min(500px, 100%); margin-inline: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-panel { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .product-detail-grid, .cart-layout, .checkout-layout, .order-detail-grid, .account-grid, .admin-order-grid { grid-template-columns: 1fr; }
  .product-detail-art, .profile-card, .order-summary.sticky { position: static; }
  .auth-section { grid-template-columns: 1fr; }
  .auth-visual { min-height: 390px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; transform: translateX(-110%); transition: transform .22s var(--ease); box-shadow: var(--shadow-md); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-top > button { display: block; }
  .admin-two-col { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .topbar-inner { gap: 12px; justify-content: space-between; }
  .topbar-inner span:nth-child(3) { display: none; }
  .nav-wrap { min-height: 69px; grid-template-columns: auto auto 1fr; }
  .brand small { display: none; }
  .brand-mark { width: 37px; height: 37px; }
  .icon-link { display: none; }
  .cart-link { padding: 7px 10px; min-height: 39px; }
  .main-nav { inset-block-start: 69px; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 60px 40px; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 300px; transform: scale(.88); transform-origin: top center; margin-bottom: -35px; }
  .glow-card { width: 285px; }
  .card-front { inset-inline-end: 12px; }
  .section { padding-block: 55px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats-grid > div { padding: 5px 12px; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head h2 { font-size: 30px; }
  .category-grid, .category-grid-large, .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 145px; }
  .trust-panel { padding: 30px 22px; border-radius: 3px 24px 3px 24px; }
  .steps { grid-template-columns: 1fr; }
  .page-hero { padding: 55px 0 47px; }
  .page-hero-small { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 35px; }
  .form-row, .form-row.three, .form-row.compact, .payment-options { grid-template-columns: 1fr; }
  .product-detail-copy h1 { font-size: 36px; }
  .purchase-box, .form-card, .detail-card { padding: 19px; }
  .cart-item { grid-template-columns: 65px 1fr auto; gap: 10px; }
  .cart-item img { width: 65px; height: 62px; }
  .cart-item .qty-field { grid-column: 2; }
  .cart-item > strong { grid-column: 3; grid-row: 1; }
  .cart-item .text-danger { grid-column: 3; grid-row: 2; }
  .auth-visual { min-height: 320px; padding: 45px 24px; }
  .auth-visual h1 { font-size: 43px; }
  .auth-card { padding: 25px 19px; }
  .account-head { align-items: start; flex-direction: column; gap: 15px; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row > strong { grid-column: 1; }
  .order-row > span:last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .admin-top { padding: 12px 15px; }
  .admin-top p { display: none; }
  .admin-content { padding: 15px; }
  .admin-welcome { align-items: start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-card, .installer-card { padding: 18px; }
  .admin-card-head { align-items: start; flex-direction: column; }
  .admin-search { grid-template-columns: 1fr; }
  .variant-grid { grid-template-columns: 1fr; }
  .admin-order-head { align-items: start; flex-direction: column; }
  .installer-shell { padding-top: 24px; }
  .installer-actions { flex-direction: column; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
