/* ========================================================================== 
   KomoShop — storefront theme
   ========================================================================== */
:root {
  --bg: #000000;
  --bg-soft: #050507;
  --panel: #0b0b0e;
  --panel-2: #111114;
  --panel-3: #17171b;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --text: #ffffff;
  --muted: #bcbcc8;
  --muted-2: #8f8f9d;
  --brand: #7c5cff;
  --brand-2: #a78bfa;
  --pink: #ff4ecd;
  --cyan: #4cc9ff;
  --green: #37e6a2;
  --yellow: #ffcc66;
  --red: #ff5c7a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(124, 92, 255, 0.35);
  --font: 'Anuphan', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.storefront-body { min-height: 100vh; display: flex; flex-direction: column; }
.storefront-body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
pre, code { font-family: var(--mono); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 900px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.ic { flex: none; vertical-align: -3px; }
.ic.flip { transform: rotate(180deg); }
.grad {
  background: linear-gradient(100deg, var(--brand-2), var(--pink) 70%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* background decor */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .35; }
.orb-a { width: 620px; height: 620px; background: #4c1d95; top: -220px; left: -180px; }
.orb-b { width: 520px; height: 520px; background: #831843; bottom: -220px; right: -160px; opacity: .28; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ========================================================================== 
   buttons, forms, badges
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #9b5cff 55%, var(--pink));
  background-size: 160% 160%; color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(124, 92, 255, .5); background-position: 100% 50%; }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.2); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-2); background: rgba(124,92,255,.12); }
.btn-discord { background: linear-gradient(135deg, #5865f2, #7c5cff); color: #fff; box-shadow: 0 10px 30px rgba(88,101,242,.3); }
.btn-discord:hover { box-shadow: 0 14px 36px rgba(88,101,242,.45); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); cursor: pointer; transition: .18s; position: relative; flex: none;
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); color: #fff; }
.icon-btn.danger:hover { border-color: rgba(255,92,122,.5); color: var(--red); background: rgba(255,92,122,.1); }
.link-btn { background: none; border: 0; color: var(--brand-2); cursor: pointer; font-size: .85rem; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); font-weight: 600; font-size: .9rem; }
.link-arrow:hover { color: #fff; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff;
  font-weight: 700; font-family: var(--mono); font-size: .9rem;
}
.avatar-lg { width: 58px; height: 58px; font-size: 1.4rem; }

.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-hot { background: rgba(255,78,205,.16); color: #ff86dd; border: 1px solid rgba(255,78,205,.3); }
.badge-off { background: rgba(55,230,162,.14); color: var(--green); border: 1px solid rgba(55,230,162,.3); }
.badge-ok { background: rgba(55,230,162,.14); color: var(--green); border: 1px solid rgba(55,230,162,.3); }
.badge-warn { background: rgba(255,204,102,.14); color: var(--yellow); border: 1px solid rgba(255,204,102,.3); }

.kicker { display: inline-block; color: var(--brand-2); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.25);
  color: #c9bcff; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500;
}
.pulse, .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(55,230,162,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(55,230,162,0); } 100% { box-shadow: 0 0 0 0 rgba(55,230,162,0); } }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.field > span { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .sort-form select {
  width: 100%; background: rgba(255,255,255,.035); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 13px; color: var(--text); outline: none; transition: .18s;
}
.field textarea { resize: vertical; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: rgba(124,92,255,.06); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); }
.check a { color: var(--brand-2); }
.check-row { display: flex; flex-direction: column; gap: 10px; }

.flash-wrap { margin-top: 20px; }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  font-size: .9rem; border: 1px solid; animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }
.flash-ok { background: rgba(55,230,162,.09); border-color: rgba(55,230,162,.3); color: #8ff5cd; }
.flash-err { background: rgba(255,92,122,.09); border-color: rgba(255,92,122,.3); color: #ff9db1; }

/* ========================================================================== 
   header
   ========================================================================== */
.announcement { background: linear-gradient(90deg, #6d28d9, #9d174d 60%, #6d28d9); color: #fff; font-size: .82rem; }
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 0; text-align: center; }
.announcement .dot-live { background: #fff; }

.site-header {
  position: sticky; top: 8px; z-index: 50;
  width: min(1240px, calc(100% - 16px)); margin: 8px auto 14px;
  background: rgba(9,9,15,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.site-header > .container { width: 100%; margin: 0; padding: 0 20px; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--pink));
  box-shadow: 0 8px 24px rgba(124,92,255,.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--mono); font-size: 1.02rem; letter-spacing: .07em; }
.brand-text small { color: var(--muted); font-size: .67rem; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 8px 8px; border-radius: 9px; font-size: .91rem; color: var(--muted); font-weight: 500; transition: .16s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.is-active { color: #fff; background: rgba(124,92,255,.14); }
.header-search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px;
  color: var(--muted); max-width: 170px; width: 100%; transition: .2s;
}
.header-search:focus-within { border-color: var(--brand); background: rgba(124,92,255,.06); }
.header-search input { border: 0; background: none; outline: none; width: 100%; padding: 10px 0; font-size: .86rem; }
.header-search input::placeholder { color: var(--muted-2); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.cart-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--bg);
}
.auth-links { display: flex; gap: 8px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 12px; transition: .16s; }
.user-chip:hover { background: rgba(255,255,255,.05); }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta small { color: var(--muted-2); font-size: .66rem; }
.user-meta strong { font-size: .84rem; }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 225px;
  background: #111119; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
  padding: 7px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 60;
}
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none;
  border-radius: 9px; color: var(--muted); font-size: .87rem; cursor: pointer; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(255,255,255,.06); color: #fff; }
.user-dropdown form { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }
.mobile-search {
  display: none; align-items: center; gap: 8px; margin: 2px 0 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  border-radius: 11px; padding: 0 12px; color: var(--muted);
}
.mobile-search input { border: 0; background: none; outline: none; width: 100%; padding: 10px 0; font-size: .88rem; }
.mobile-search input::placeholder { color: var(--muted-2); }

/* ========================================================================== 
   hero
   ========================================================================== */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 60px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; margin: 18px 0 18px; letter-spacing: -0.03em; }
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 530px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.hero-stats { display: flex; gap: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: .8rem; }

.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.art-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.45), rgba(255,78,205,.18) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .85; } }
.code-card {
  position: relative; width: min(430px, 100%); border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #151522, #0c0c15);
  border: 1px solid rgba(167,139,250,.28);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(124,92,255,.1), inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .4s;
}
.hero-art:hover .code-card { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.code-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.code-top .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.code-top em { margin-left: auto; font-style: normal; font-family: var(--mono); color: var(--muted-2); font-size: .7rem; }
.code-card pre { margin: 0; padding: 22px 20px; font-size: .8rem; line-height: 1.85; color: #c8cbe0; overflow-x: auto; }
.c-muted { color: #5c6078; } .c-blue { color: #7dd3fc; } .c-green { color: #6ee7b7; }
.cursor { color: var(--pink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-foot { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.code-foot span { display: inline-flex; align-items: center; gap: 6px; }
.code-foot .live { color: var(--green); font-family: var(--mono); font-weight: 700; letter-spacing: .08em; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 13px;
  background: rgba(17,17,26,.92); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); animation: float 5s ease-in-out infinite;
}
.float-badge .ic { color: var(--brand-2); }
.float-badge div { display: flex; flex-direction: column; line-height: 1.25; }
.float-badge strong { font-size: .8rem; }
.float-badge small { color: var(--muted); font-size: .68rem; }
.badge-1 { top: 26px; left: 0; }
.badge-2 { bottom: 30px; right: -6px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 22px 26px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .ic { color: var(--brand-2); }
.trust-item div { display: flex; flex-direction: column; line-height: 1.3; }
.trust-item strong { font-size: .9rem; }
.trust-item span { color: var(--muted); font-size: .76rem; }

/* ========================================================================== 
   sections & cards
   ========================================================================== */
.section { padding: 78px 0; }
.section-tight { padding: 44px 0 70px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-grid-lg { grid-template-columns: repeat(2, 1fr); }
.cat-card {
  display: flex; align-items: center; gap: 15px; padding: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; position: relative; overflow: hidden;
}
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(124,92,255,.1)); opacity: 0; transition: .2s; }
.cat-card:hover { border-color: rgba(124,92,255,.45); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.cat-card:hover::after { opacity: 1; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 1.55rem;
  background: rgba(124,92,255,.13); border: 1px solid rgba(124,92,255,.22);
}
.cat-info { display: flex; flex-direction: column; line-height: 1.32; min-width: 0; position: relative; z-index: 1; }
.cat-info strong { font-size: .96rem; }
.cat-info span { color: var(--muted); font-size: .78rem; }
.cat-info p { color: var(--muted-2); font-size: .78rem; margin: 4px 0 0; }
.cat-arrow { margin-left: auto; color: var(--muted-2); transition: .2s; position: relative; z-index: 1; }
.cat-card:hover .cat-arrow { color: var(--brand-2); transform: translateX(3px); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(124,92,255,.4); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(124,92,255,.15); }
.p-cover {
  position: relative; height: 172px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #262052, #12121e 70%);
}
.p-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .3; mask-image: linear-gradient(#000, transparent);
}
.p-cover::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; filter: blur(45px); background: rgba(124,92,255,.4); bottom: -100px; right: -60px; }
.cover-0 { background: linear-gradient(150deg, #2b1b5e, #11101c 70%); }
.cover-1 { background: linear-gradient(150deg, #4a1447, #14101c 70%); }
.cover-2 { background: linear-gradient(150deg, #0f3b4c, #0c1119 70%); }
.cover-3 { background: linear-gradient(150deg, #3f2c12, #131019 70%); }
.cover-4 { background: linear-gradient(150deg, #173a2b, #0d1317 70%); }
.cover-5 { background: linear-gradient(150deg, #2c2350, #101018 70%); }
.p-cover.has-img::before, .p-cover.has-img::after { display: none; }
.p-cover img.p-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .p-cover img.p-photo { transform: scale(1.05); }
.p-icon { position: relative; z-index: 1; font-size: 3.4rem; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); transition: .3s; }
.product-card:hover .p-icon { transform: scale(1.08) rotate(-3deg); }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.p-stock {
  position: absolute; bottom: 11px; right: 11px; z-index: 2; font-size: .68rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(8px);
  background: rgba(7,7,13,.6); border: 1px solid var(--line-strong);
}
.p-stock.in { color: var(--green); }
.p-stock.out { color: var(--red); }
.p-body { padding: 16px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.p-cat { color: var(--brand-2); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.p-body h3 { font-size: .96rem; margin: 6px 0 5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.p-excerpt { color: var(--muted); font-size: .8rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.p-price { display: flex; align-items: baseline; gap: 7px; }
.p-price strong { font-family: var(--mono); font-size: 1.18rem; }
.p-price s { color: var(--muted-2); font-size: .78rem; }
.p-buy {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.25); color: var(--brand-2); transition: .2s;
}
.product-card:hover .p-buy { background: var(--brand); color: #fff; border-color: var(--brand); }

.promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 44px 48px; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #241257, #4a1150 55%, #121020);
  border: 1px solid rgba(167,139,250,.25);
}
.promo-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .25; mask-image: linear-gradient(90deg, transparent, #000); }
.promo-copy { position: relative; z-index: 1; max-width: 560px; }
.promo-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.promo-copy p { color: #cfc6ee; margin-bottom: 22px; }
.promo-art { position: relative; z-index: 1; text-align: center; flex: none; }
.promo-art span { font-family: var(--mono); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-art small { display: block; letter-spacing: .3em; font-size: .68rem; color: #c4b5fd; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  display: flex; gap: 15px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: .2s;
}
.news-card:hover { border-color: rgba(124,92,255,.4); transform: translateY(-3px); }
.news-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255,78,205,.1); border: 1px solid rgba(255,78,205,.18); }
.news-date { color: var(--muted-2); font-size: .72rem; }
.news-card h3 { font-size: .92rem; margin: 5px 0 5px; }
.news-card p { color: var(--muted); font-size: .8rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .link-arrow { font-size: .8rem; }

.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 38px 42px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 20% 0%, rgba(124,92,255,.18), transparent 60%), var(--panel);
}
.cta-card h2 { margin-bottom: 6px; }
.cta-card p { color: var(--muted); margin: 0; }

/* ========================================================================== 
   page head, listing, filters
   ========================================================================== */
.page-head { padding: 52px 0 34px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 20% 0%, rgba(124,92,255,.11), transparent 65%); }
.page-head h1 { margin: 12px 0 6px; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted-2); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb span { color: var(--text); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: var(--muted); font-size: .82rem; transition: .16s; cursor: pointer;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.5); color: #fff; }
.sort-form select { padding: 8px 12px; border-radius: 10px; background: var(--panel); font-size: .84rem; }
.search-note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

.pagination { display: flex; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.page {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .85rem; transition: .16s;
}
.page:hover { border-color: var(--line-strong); color: #fff; }
.page.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-dots { color: var(--muted-2); padding: 0 4px; }
.page-info { margin-left: auto; color: var(--muted-2); font-size: .8rem; }

.empty-state { text-align: center; padding: 70px 20px; max-width: 480px; margin: 0 auto; }
.empty-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state p { color: var(--muted); }
.empty-state .btn { margin-top: 8px; }

/* ========================================================================== 
   product detail
   ========================================================================== */
.product-detail { display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; margin-top: 26px; align-items: start; }
.pd-visual {
  position: relative; border-radius: 24px; min-height: 390px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line-strong); background: linear-gradient(150deg, #2b1b5e, #11101c 70%);
  box-shadow: var(--shadow);
}
.pd-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 20px 20px; opacity: .35; }
.pd-visual.has-img::before { display: none; }
.pd-visual img.pd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-icon { position: relative; z-index: 1; font-size: 7rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,.55)); }
.pd-glow { position: absolute; bottom: -120px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(124,92,255,.4); filter: blur(70px); }
.pd-badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.pd-info h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 10px 0 10px; }
.pd-excerpt { color: var(--muted); }
.pd-meta { display: flex; align-items: center; gap: 8px; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin: 16px 0 22px; flex-wrap: wrap; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: .8rem; }
.stock-pill { margin-left: auto; font-size: .76rem; padding: 4px 11px; border-radius: 999px; border: 1px solid; }
.stock-pill.in { color: var(--green); border-color: rgba(55,230,162,.3); background: rgba(55,230,162,.09); }
.stock-pill.out { color: var(--red); border-color: rgba(255,92,122,.3); background: rgba(255,92,122,.09); }
.pd-price-box { padding: 18px 20px; border-radius: 14px; background: rgba(124,92,255,.07); border: 1px solid rgba(124,92,255,.2); margin-bottom: 22px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; }
.pd-price strong { font-family: var(--mono); font-size: 2.1rem; line-height: 1.1; }
.pd-price s { color: var(--muted-2); font-size: 1rem; }
.pd-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.03); }
.qty-control button { width: 40px; height: 46px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.qty-control button:hover { background: rgba(255,255,255,.06); color: #fff; }
.qty-control input { width: 48px; height: 46px; border: 0; background: none; text-align: center; outline: none; font-family: var(--mono); appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-assure > div { display: flex; gap: 9px; align-items: flex-start; }
.pd-assure .ic { color: var(--brand-2); margin-top: 2px; }
.pd-assure span { display: flex; flex-direction: column; line-height: 1.3; }
.pd-assure strong { font-size: .8rem; }
.pd-assure small { color: var(--muted-2); font-size: .7rem; }
.pd-features h3 { font-size: .95rem; }
.pd-features ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
.pd-features li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .86rem; }
.pd-features .ic { color: var(--green); margin-top: 3px; }

.product-content { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 52px; align-items: start; }
.content-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.content-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.content-card > h2:first-child { margin-top: 0; }
.prose { color: #c3c7d8; font-size: .93rem; line-height: 1.85; }
.prose br { content: ''; display: block; margin-bottom: .55em; }
.content-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.side-card h3 .ic { color: var(--brand-2); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .84rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border: 0; padding-bottom: 0; }
.side-list span { color: var(--muted); }
.side-list strong { text-align: right; font-weight: 500; }
.side-help p { color: var(--muted); font-size: .84rem; }
.related-section { margin-top: 56px; }

/* ========================================================================== 
   cart & checkout
   ========================================================================== */
.cart-layout, .checkout-layout, .topup-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
}
.ci-cover { width: 74px; height: 74px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; position: relative; }
.ci-cover img.ci-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-cover.sm { width: 52px; height: 52px; font-size: 1.25rem; }
.ci-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ci-info .p-cat { font-size: .66rem; }
.ci-name { font-weight: 600; font-size: .92rem; margin: 2px 0 2px; }
.ci-name:hover { color: var(--brand-2); }
.ci-qty { flex: none; }
.qty-form { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.qty-control.qty-sm button { width: 30px; height: 34px; }
.qty-control.qty-sm input { width: 38px; height: 34px; font-size: .85rem; }
.ci-price { font-family: var(--mono); font-weight: 600; min-width: 90px; text-align: right; }
.ic-remove { width: 36px; height: 36px; }
.cart-summary { position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 11px; }
.cart-summary h2 { font-size: 1.05rem; margin-bottom: 6px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--muted); padding: 4px 0; }
.sum-row strong { color: var(--text); font-family: var(--mono); font-weight: 500; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: .95rem; }
.sum-row.total strong { font-size: 1.3rem; color: #fff; }
.sum-row .free { color: var(--green); }
.cart-summary .btn { margin-top: 4px; }
.balance-row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(55,230,162,.07); border: 1px solid rgba(55,230,162,.2); font-size: .84rem; }
.balance-row strong { font-family: var(--mono); }
.balance-row.warn { background: rgba(255,204,102,.07); border-color: rgba(255,204,102,.25); }

.checkout-main { display: flex; flex-direction: column; gap: 16px; }
.checkout-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-item > div:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.checkout-item b { font-family: var(--mono); }
.pay-option { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid rgba(124,92,255,.45); border-radius: 12px; background: rgba(124,92,255,.07); }
.pay-logo { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,92,255,.15); color: var(--brand-2); }
.pay-info { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.pay-info small { color: var(--muted); font-size: .78rem; }

/* ========================================================================== 
   auth
   ========================================================================== */
.auth-page { padding: 60px 0 80px; }
.auth-grid { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: center; }
.auth-side { position: relative; padding: 20px 0; }
.auth-side h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 14px; }
.auth-side p { color: var(--muted); max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; max-width: 380px; }
.auth-points li { display: flex; gap: 12px; align-items: center; }
.auth-points .ic { color: var(--brand-2); }
.auth-points span { display: flex; flex-direction: column; line-height: 1.3; }
.auth-points strong { font-size: .9rem; }
.auth-points small { color: var(--muted); font-size: .78rem; }
.auth-side-glow { position: absolute; width: 320px; height: 320px; background: rgba(124,92,255,.25); filter: blur(90px); top: -40px; left: -60px; z-index: -1; }
.auth-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .86rem; color: var(--muted); }
.auth-foot a { color: var(--brand-2); font-weight: 600; }
.auth-body .site-footer { margin-top: 40px; }

/* ========================================================================== 
   account
   ========================================================================== */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.account-id { display: flex; align-items: center; gap: 16px; }
.account-id h1 { font-size: 1.7rem; margin: 0; }
.account-id p { margin: 0; color: var(--muted); font-size: .86rem; }
.account-balance { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border: 1px solid rgba(55,230,162,.25); background: rgba(55,230,162,.06); border-radius: 14px; flex-wrap: wrap; }
.account-balance small { color: var(--muted); font-size: .74rem; display: block; }
.account-balance strong { font-family: var(--mono); font-size: 1.35rem; color: var(--green); }
.account-grid { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 96px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: .88rem; }
.account-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.account-nav a.is-active { background: rgba(124,92,255,.14); color: #fff; }
.account-main { display: flex; flex-direction: column; gap: 16px; }
.stat-grid { display: grid; gap: 14px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-icon { color: var(--brand-2); }
.stat-card small { color: var(--muted); font-size: .75rem; }
.stat-card strong { font-family: var(--mono); font-size: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 1.05rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; color: var(--muted-2); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.status { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .73rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status-delivered, .status-approved, .status-paid { color: var(--green); background: rgba(55,230,162,.1); border-color: rgba(55,230,162,.28); }
.status-pending { color: var(--yellow); background: rgba(255,204,102,.1); border-color: rgba(255,204,102,.28); }
.status-cancelled, .status-rejected { color: var(--red); background: rgba(255,92,122,.1); border-color: rgba(255,92,122,.28); }
.status-refunded { color: var(--cyan); background: rgba(76,201,255,.1); border-color: rgba(76,201,255,.28); }
.empty-inline { color: var(--muted); font-size: .88rem; padding: 14px 0; }
.empty-inline a { color: var(--brand-2); }

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.order-head h1 { font-size: 1.6rem; margin: 10px 0 2px; }
.order-head p { color: var(--muted); margin: 0; font-size: .85rem; }
.order-head .status { font-size: .85rem; padding: 6px 14px; }
.order-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.order-items { display: flex; flex-direction: column; gap: 16px; }
.key-box { position: relative; background: #0b0b12; border: 1px dashed rgba(124,92,255,.35); border-radius: 12px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; }
.key-box pre { margin: 0; flex: 1; white-space: pre-wrap; word-break: break-all; font-size: .84rem; color: #d9d5ff; }
.key-box .btn { flex: none; }
.delivery-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; background: rgba(55,230,162,.09); border: 1px solid rgba(55,230,162,.3); margin-bottom: 20px; color: var(--green); }
.delivery-banner div { display: flex; flex-direction: column; line-height: 1.35; }
.delivery-banner strong { color: #b9fbe0; font-size: .95rem; }
.delivery-banner span { color: #7ddcb8; font-size: .82rem; }

/* ========================================================================== 
   topup
====================================================================== */
.topup-layout { grid-template-columns: 1fr 380px; }
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, rgba(124,92,255,.16), rgba(255,78,205,.08)); border: 1px solid rgba(124,92,255,.25); border-radius: 14px; padding: 18px 20px; margin-bottom: 26px; }
.balance-hero span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.balance-hero strong { font-family: var(--mono); font-size: 1.7rem; }
.content-card > h2 { margin-top: 26px; }
.content-card > h2:first-child { margin-top: 0; }
.amount-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.amount-chip { padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; font-family: var(--mono); transition: .16s; }
.amount-chip:hover, .amount-chip.is-active { border-color: var(--brand); background: rgba(124,92,255,.16); color: #fff; }
.pay-box { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 12px; align-items: center; }
.qr-area { background: #fff; border-radius: 12px; padding: 10px; display: grid; place-items: center; min-height: 170px; }
.qr-area img { width: 100%; border-radius: 6px; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #555; font-size: .75rem; text-align: center; }
.pay-detail { display: flex; flex-direction: column; gap: 10px; }
.pay-line { display: flex; align-items: center; gap: 10px; font-size: .86rem; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.pay-line span { color: var(--muted); min-width: 100px; }
.pay-line strong { font-family: var(--mono); }
.pay-line .link-btn { margin-left: auto; }
.topup-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border: 0; padding-bottom: 0; }
.mini-row div { display: flex; flex-direction: column; line-height: 1.3; }
.mini-row strong { font-family: var(--mono); font-size: .88rem; }
.mini-row small { color: var(--muted-2); font-size: .72rem; }

/* ========================================================================== 
   news & static
====================================================================== */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.news-row:hover { border-color: rgba(124,92,255,.4); transform: translateX(3px); }
.news-row .news-icon { width: 54px; height: 54px; font-size: 1.5rem; }
.news-row-body { flex: 1; min-width: 0; }
.news-row-body h2 { font-size: 1.05rem; margin: 4px 0 4px; }
.news-row-body p { color: var(--muted); font-size: .85rem; margin: 0; }
.article { max-width: 100%; }
.article-icon { font-size: 2.2rem; margin-bottom: 16px; }
.article .prose { font-size: .96rem; }
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-row { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.status-row:last-child { border: 0; }
.status-row .status { margin-left: auto; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex: none; }

/* ========================================================================== 
   footer
====================================================================== */
.site-footer {
  width: min(1240px, calc(100% - 16px));
  margin: 40px auto 16px;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), #07070b;
  padding-top: 48px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.site-footer > .container { width: auto; margin: 0 24px; }
.fixed-footer {
  position: fixed; left: 50%; bottom: 10px; transform: translate(-50%, 10px); z-index: 45;
  width: min(1240px, calc(100% - 16px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(9,9,15,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); color: var(--muted-2); font-size: .72rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.fixed-footer.is-visible { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.ff-brand { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.fixed-footer nav { display: flex; align-items: center; gap: 2px; }
.fixed-footer a { color: var(--muted); padding: 4px 8px; border-radius: 7px; }
.fixed-footer nav a { display: flex; align-items: center; gap: 5px; }
.fixed-footer a:hover { color: #fff; background: rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .85rem; max-width: 320px; margin: 16px 0; }
.discord-link { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #b9b3ff; padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(124,92,255,.25); background: rgba(124,92,255,.08); }
.discord-link:hover { background: rgba(124,92,255,.16); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: .86rem; }
.footer-col a:hover { color: var(--brand-2); }
.footer-col .muted { margin: 0; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badges span { font-size: .72rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .78rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-2); }

/* ========================================================================== 
   responsive
====================================================================== */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: 0; }
  .mobile-nav {
    display: none; flex-direction: column; gap: 3px; padding: 10px 16px 16px;
    border-top: 1px solid var(--line); background: #0a0a12;
    border-radius: 0 0 17px 17px;
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 11px 12px; border-radius: 9px; color: var(--muted); font-size: .94rem; }
  .mobile-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
}
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 0; }
  .header-inner { gap: 16px; }
  .header-search { max-width: 180px; }
  .user-meta { display: none; }
  .product-detail { gap: 30px; }
  .content-side { display: none; }
  .product-content { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .auth-links { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 330px; margin-bottom: 10px; }
  .hero-stats { gap: 26px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { padding: 0; }
  .product-detail { grid-template-columns: 1fr; }
  .pd-visual { min-height: 300px; }
  .cart-layout, .checkout-layout, .topup-layout { grid-template-columns: 1fr; }
  .cart-summary, .topup-side { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; overflow-x: auto; }
  .account-nav a { white-space: nowrap; }
  .order-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .site-header > .container { padding: 0 8px; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-search { display: flex; }
  .site-footer { width: calc(100% - 16px); margin: 32px auto 12px; border-radius: 20px; padding-top: 32px; }
  .site-footer > .container { margin: 0 16px; }
  .fixed-footer { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 16px); padding: 6px 10px; font-size: .68rem; gap: 8px; }
  .fixed-footer nav { gap: 0; }
  .fixed-footer a { padding: 4px 6px; }
  .fixed-footer .ff-brand span { display: none; }
  .auth-links { display: none; }
  .section { padding: 54px 0; }
  .section-tight { padding: 30px 0 50px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-cover { height: 138px; }
  .p-body { padding: 13px; }
  .p-body h3 { font-size: .87rem; }
  .p-excerpt { display: none; }
  .p-price strong { font-size: 1.02rem; }
  .p-buy { width: 30px; height: 30px; }
  .cat-grid, .cat-grid-lg { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.15rem; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-cta .btn { flex: 1; }
  .hero-art { min-height: 290px; }
  .code-card pre { font-size: .7rem; padding: 16px; }
  .float-badge { padding: 8px 11px; }
  .badge-1 { left: -4px; top: 6px; }
  .badge-2 { right: -4px; bottom: 8px; }
  .trust-item { padding: 16px 14px; }
  .trust-item span { font-size: .7rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .promo-banner { flex-direction: column; padding: 30px 24px; text-align: center; }
  .cta-card { flex-direction: column; text-align: center; padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .ci-cover { width: 56px; height: 56px; font-size: 1.4rem; }
  .ci-info { flex: 1 1 calc(100% - 70px); }
  .ci-qty { order: 3; margin-left: auto; }
  .ci-price { order: 4; }
  .cart-item form:last-child { order: 5; }
  .qty-control button { height: 42px; width: 36px; }
  .qty-control input { height: 42px; }
  .pd-buy .btn { flex: 1 1 100%; }
  .pd-assure { grid-template-columns: 1fr; gap: 12px; }
  .stat-grid-3 { grid-template-columns: 1fr; }
  .account-balance { width: 100%; justify-content: space-between; }
  .pay-box { grid-template-columns: 1fr; }
  .qr-area { max-width: 220px; margin: 0 auto; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .key-box { flex-direction: column; }
  .key-box .btn { align-self: flex-start; }
  .page-info { display: none; }
  .news-row { padding: 16px; gap: 12px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   payment / cytech
   ========================================================================== */
.mono { font-family: var(--mono); }
.dot-red { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); flex: none; }
.pending-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 20px;
  border-radius: 14px; background: rgba(255,204,102,.08); border: 1px solid rgba(255,204,102,.3); color: var(--yellow);
}
.pending-banner > div { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.pending-banner strong { color: #ffe6ae; font-size: .95rem; }
.pending-banner span { color: #e3c98f; font-size: .82rem; }
.key-box.locked { border-style: dashed; border-color: var(--line); background: rgba(255,255,255,.02); }
.key-box.locked pre { color: var(--muted); }
.auto-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.auto-benefits > div {
  display: inline-flex; align-items: center; gap: 6px; font-size: .77rem; color: #9ef2cd;
  background: rgba(55,230,162,.08); border: 1px solid rgba(55,230,162,.2); border-radius: 999px; padding: 5px 11px;
}
.manual-fallback { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.manual-fallback > summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 500; }
.manual-fallback > summary:hover { color: var(--brand-2); }
.manual-fallback[open] > summary { margin-bottom: 18px; color: var(--text); }
.manual-fallback .form { margin-top: 8px; }
.webhook-url { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.webhook-url .key-box { padding: 9px 11px; }
.webhook-url .key-box pre { font-size: .72rem; }
.webhook-url .key-box .btn { padding: 4px 8px; }

/* payment page */
.pay-body-page { background: #07070d; }
.pay-page { padding: 44px 0 64px; min-height: calc(100vh - 100px); display: flex; align-items: center; }
.pay-wrap { max-width: 850px; }
.pay-card {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 24px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.pay-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.pay-body { display: grid; grid-template-columns: 260px 1fr; gap: 34px; padding: 30px; align-items: center; }
.pay-qr-area { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-qr-frame { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 12px; display: grid; place-items: center; position: relative; }
.pay-qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qr-fallback { display: none; flex-direction: column; align-items: center; gap: 8px; color: #555; font-size: .78rem; text-align: center; }
.pay-qr-frame .qr-fallback.show { display: flex; }
.pay-qr-frame img + .qr-fallback { position: absolute; inset: 12px; background: #fff; }
.qr-hint { font-size: .72rem; color: var(--muted-2); }
.pay-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 8px; }
.pay-desc { color: var(--muted); font-size: .88rem; }
.pay-lines { margin: 18px 0 4px; }
.pay-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.pay-lines > div:last-child { border: 0; }
.pay-lines span { color: var(--muted); }
.pay-lines strong { text-align: right; font-weight: 500; }
.pay-lines .pay-total { color: var(--green); font-family: var(--mono); font-size: 1.05rem; }
.pay-lines .free { color: var(--green); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.pay-app-form { display: contents; }
.pay-app-note { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 12px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.pay-live {
  display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.pay-info form { margin-top: 12px; }
.pay-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.pay-steps > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; border-left: 1px solid var(--line); }
.pay-steps > div:first-child { border-left: 0; }
.pay-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(124,92,255,.16); color: var(--brand-2); font-family: var(--mono); font-size: .68rem; margin-bottom: 5px; }
.pay-steps strong { font-size: .82rem; }
.pay-steps small { color: var(--muted-2); font-size: .72rem; }
.pay-result { text-align: center; padding: 50px 30px 46px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(55,230,162,.12); color: var(--green); border: 1px solid rgba(55,230,162,.3); margin-bottom: 8px; box-shadow: 0 0 40px rgba(55,230,162,.2); }
.pay-result h1 { margin: 0; font-size: 1.9rem; }
.pay-result p { color: var(--muted); max-width: 460px; margin: 0; }
.pay-result.failed .pay-result-icon { background: rgba(255,92,122,.1); color: var(--red); border-color: rgba(255,92,122,.3); box-shadow: 0 0 40px rgba(255,92,122,.15); }
.pay-result.review .pay-result-icon { background: rgba(255,204,102,.1); color: var(--yellow); border-color: rgba(255,204,102,.3); box-shadow: 0 0 40px rgba(255,204,102,.12); }
.pay-amount { font-family: var(--mono); font-size: 2.1rem; margin-top: 6px; }
.muted-amount { color: var(--muted-2); }
.pay-meta { color: var(--muted-2); font-size: .76rem; }
.pay-result .btn { margin-top: 12px; min-width: 230px; }
.pay-result .btn + .btn { margin-top: 4px; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: .72rem; margin-top: 16px; }

@media (max-width: 760px) {
  .pay-page { padding: 24px 0 40px; }
  .pay-card-head { padding: 14px 18px; }
  .pay-body { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .pay-qr-area { max-width: 250px; margin: 0 auto; width: 100%; }
  .pay-steps { grid-template-columns: 1fr; }
  .pay-steps > div { border-left: 0; border-top: 1px solid var(--line); padding: 13px 20px; }
  .pay-steps > div:first-child { border-top: 0; }
  .pay-result { padding: 36px 20px; }
  .pay-actions .btn { flex: 1 1 100%; }
}

/* channels / vouchers */
.channel-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: .16s;
}
.channel-option:hover { border-color: var(--line-strong); }
.channel-option:has(input:checked), .channel-option.is-selected { border-color: var(--brand); background: rgba(124,92,255,.12); }
.channel-option input { accent-color: var(--brand); flex: none; }
.channel-option .ch-icon { color: var(--brand-2); display: flex; }
.channel-option > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.channel-option strong { font-size: .86rem; }
.channel-option small { color: var(--muted-2); font-size: .71rem; }
.voucher-box {
  margin-top: 24px; padding: 18px; border-radius: 14px;
  border: 1px dashed rgba(255,78,205,.35); background: rgba(255,78,205,.05);
}
.voucher-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.voucher-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,78,205,.12); border: 1px solid rgba(255,78,205,.25); flex: none; }
.voucher-head h3 { margin: 0; font-size: .95rem; }
.voucher-head p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.voucher-box .form { gap: 12px; }
.pay-memo {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px;
  border-radius: 10px; background: rgba(76,201,255,.07); border: 1px solid rgba(76,201,255,.25);
  color: #a5e4ff; font-size: .78rem; line-height: 1.5;
}
.pay-memo strong { font-family: var(--mono); }
@media (max-width: 540px) {
  .channel-picker { grid-template-columns: 1fr; }
}

/* topup channel chooser */
.topup-page-head { padding-bottom: 26px; }
.topup-shell { padding: 24px; }
.topup-step-head { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 16px; }
.step-pill { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff; font-family: var(--mono); font-size: .78rem; box-shadow: 0 6px 18px rgba(124,92,255,.3); }
.topup-step-head h2 { font-size: 1.14rem; margin: 0; }
.topup-step-head p { color: var(--muted); font-size: .81rem; margin: 2px 0 0; }
.channel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 22px; }
.channel-card {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 15px 14px;
  border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.03);
  cursor: pointer; text-align: left; overflow: hidden; transition: .18s; color: var(--text); min-height: 82px;
}
.channel-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--ch-soft), transparent 70%); opacity: .55; pointer-events: none; }
.channel-card:hover { transform: translateY(-2px); border-color: var(--ch); }
.channel-card.is-active { border-color: var(--ch); box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 0 0 1px var(--ch); }
.channel-card.is-active::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--ch); opacity: .9; }
.channel-card.is-disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.5); }
.channel-card.is-disabled:hover { transform: none; border-color: var(--line); }
.cc-pp { --ch: #4cc9ff; --ch-soft: rgba(76,201,255,.18); }
.cc-tm { --ch: #ff9a3d; --ch-soft: rgba(255,154,61,.18); }
.cc-ag { --ch: #ff6b9d; --ch-soft: rgba(255,107,157,.18); }
.cc-icon { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ch-soft); color: var(--ch); border: 1px solid color-mix(in srgb, var(--ch) 35%, transparent); }
.cc-icon .emoji { font-size: 1.3rem; }
.cc-body { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cc-body strong { font-size: .93rem; }
.cc-body small { color: var(--muted); font-size: .7rem; margin-top: 1px; }
.cc-tag { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: .6rem; font-weight: 600; color: var(--ch); background: var(--ch-soft); border: 1px solid color-mix(in srgb, var(--ch) 30%, transparent); border-radius: 999px; padding: 2px 7px; }
.cc-check { position: absolute; right: 9px; bottom: 9px; z-index: 2; width: 19px; height: 19px; border-radius: 50%; display: none; place-items: center; background: var(--ch); color: #08080e; }
.channel-card.is-active .cc-check { display: grid; }

.topup-panels { border-top: 1px solid var(--line); padding-top: 22px; }
.topup-panel { display: none; }
.topup-panel.is-active { display: block; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.panel-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.25); color: var(--brand-2); font-family: var(--mono); font-size: .76rem; }
.panel-head h3 { font-size: 1.02rem; margin: 0; }
.panel-head p { color: var(--muted); font-size: .79rem; margin: 2px 0 0; }
.panel-badge { margin-left: auto; flex: none; font-size: .65rem; color: var(--brand-2); border: 1px solid rgba(124,92,255,.3); background: rgba(124,92,255,.1); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.topup-form .amount-grid { margin: 0 0 14px; }
.amount-row { display: flex; align-items: flex-end; gap: 13px; margin-bottom: 14px; }
.amount-row .field { flex: 1; }
.amount-summary { flex: none; min-width: 150px; padding: 9px 14px; border-radius: 11px; background: rgba(55,230,162,.07); border: 1px solid rgba(55,230,162,.22); display: flex; flex-direction: column; line-height: 1.3; }
.amount-summary span { color: var(--muted); font-size: .67rem; }
.amount-summary strong { color: var(--green); font-family: var(--mono); font-size: 1.08rem; }
.panel-note { color: var(--muted-2); font-size: .74rem; margin: 12px 0 0; }
.manual-pay-info { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.manual-pay-info > div { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 2px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.manual-pay-info span { color: var(--muted-2); font-size: .67rem; }
.manual-pay-info strong { font-family: var(--mono); font-size: .85rem; }
.panel-voucher { margin-top: 0; }
.voucher-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.voucher-steps > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.voucher-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,78,205,.14); color: #ff86dd; font-family: var(--mono); font-size: .62rem; }
.voucher-steps strong { font-size: .77rem; }
.voucher-steps small { color: var(--muted-2); font-size: .68rem; }
.topup-panel .manual-fallback { margin-top: 20px; }
.topup-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: .71rem; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 920px) {
  .channel-cards { grid-template-columns: 1fr; }
  .channel-card { min-height: 0; padding: 13px 15px; }
  .amount-row { flex-direction: column; align-items: stretch; }
  .amount-summary { flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .voucher-steps { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .channel-cards { grid-template-columns: 1fr; }
}

.channel-hint {
  display: flex; align-items: flex-start; gap: 7px; margin: -8px 0 20px;
  color: var(--muted-2); font-size: .73rem; line-height: 1.5;
}
.channel-hint .ic { margin-top: 2px; flex: none; }

/* real brand assets */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand-logo { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none; background: #08080f; border: 1px solid rgba(124,92,255,.35); box-shadow: 0 6px 20px rgba(76,201,255,.18); display: block; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo.lg { width: 68px; height: 68px; border-radius: 17px; }
.brand-logo.lg img { object-fit: contain; background: #06060d; }
.footer-brand .brand-logo.lg { margin-bottom: 2px; }
.admin-brand .brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.pay-card-head .brand-logo { width: 42px; height: 42px; border-radius: 12px; }

/* homepage banner */
.hero-banner-section { padding: 30px 0 10px; }
.hero-banner { position: relative; display: block; border-radius: 24px; overflow: hidden; border: 1px solid rgba(124,92,255,.32); box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(76,201,255,.08); transition: transform .25s, box-shadow .25s; background: #07070d; }
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-banner::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 60px rgba(8,12,30,.18); pointer-events: none; }
.hero-banner-shine { position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%); transform: translateX(-30%); pointer-events: none; transition: transform .8s; }
.hero-banner:hover { transform: translateY(-3px); box-shadow: 0 34px 80px rgba(0,0,0,.6), 0 0 50px rgba(76,201,255,.14); }
.hero-banner:hover .hero-banner-shine { transform: translateX(30%); }
.hero-under { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.hero-under .hero-stats { border-top: 0; padding-top: 0; }
.hero-under-actions { display: flex; gap: 9px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-banner-section { padding-top: 16px; }
  .hero-banner { border-radius: 16px; }
  .hero-under { gap: 14px; }
  .hero-under .hero-stats { gap: 18px; width: 100%; }
  .hero-under-actions { width: 100%; }
  .hero-under-actions .btn { flex: 1; }
}

/* SVG icon media */
.svg-icon { display: inline-block; object-fit: contain; vertical-align: middle; }
.cat-icon.has-svg, .news-icon.has-svg, .cc-icon.has-svg, .voucher-icon.has-svg, .cat-icon-sm.has-svg { background: transparent; border-color: transparent; box-shadow: none; }
.cat-svg { width: 52px; height: 52px; }
.news-svg { width: 46px; height: 46px; }
.news-icon.has-svg { width: 54px; height: 54px; display: grid; place-items: center; }
.article-svg { width: 56px; height: 56px; }
.p-icon.svg-icon { width: 88px; height: 88px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.5)); }
.pd-icon-svg { width: 158px; height: 158px; filter: drop-shadow(0 22px 42px rgba(0,0,0,.55)); }
.ci-svg { width: 38px; height: 38px; }
.ci-cover.sm .ci-svg { width: 30px; height: 30px; }
.thumb-svg { width: 34px; height: 34px; }
.admin-cat-svg { width: 30px; height: 30px; }
.admin-news-svg { width: 26px; height: 26px; }
.channel-svg { width: 44px; height: 44px; display: block; }
.voucher-icon img { width: 30px; height: 30px; display: block; }
.empty-icon .ic { width: 48px; height: 48px; }
.footer-brand .brand-text strong { font-size: 1.05rem; }

@media (max-width: 640px) {
  .p-icon.svg-icon { width: 60px; height: 60px; }
  .pd-icon-svg { width: 112px; height: 112px; }
  .article-svg { width: 46px; height: 46px; }
  .p-badges { top: 9px; left: 9px; gap: 4px; }
  .p-badges .badge { font-size: .65rem; padding: 2px 7px; }
}

/* high-contrast solid pass */
.bg-decor .orb { display: none; }
body { background: #000; }
.site-header { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
.mobile-nav { background: #000; }
.site-footer { background: #07070b; }
.fixed-footer { background: #07070b; backdrop-filter: none; -webkit-backdrop-filter: none; }
.trust-strip { background: #000; }
.page-head { background: #000; border-bottom-color: var(--line); }

.brand-logo { background: #000; border-color: rgba(255,255,255,.18); }
.brand-logo.lg img { background: #000; }

.product-card, .content-card, .side-card, .cart-summary, .cat-card, .news-card,
.auth-card, .stat-card, .account-nav, .channel-card, .pay-card, .admin-card,
.admin-stat, .topup-side .content-card {
  background: var(--panel);
  background-image: none;
}
.product-card, .cat-card, .news-card, .content-card, .side-card, .cart-summary,
.auth-card, .stat-card, .account-nav, .channel-card, .pay-card, .admin-card {
  border-color: var(--line);
}

.header-search, .icon-btn, .btn-ghost, .qty-control, .sort-form select,
.field input, .field select, .field textarea, .pay-option, .channel-option,
.code-card, .user-dropdown {
  background: var(--panel-2);
  background-image: none;
}
.header-search, .icon-btn, .btn-ghost, .field input, .field select, .field textarea {
  border-color: var(--line);
}

.p-stock { background: #000; border-color: var(--line-strong); }
.badge-hot { background: #3a0c2e; color: #ff9fe3; border-color: #ff4ecd; }
.badge-off, .badge-ok { background: #08291e; color: #8dffd2; border-color: #37e6a2; }
.badge-warn { background: #2c2108; color: #ffe0a0; border-color: #ffcc66; }
.p-buy { background: #1c1230; border-color: #7c5cff; color: #c3b5ff; }
.product-card:hover .p-buy { background: var(--brand); color: #fff; }

.cat-card::after { display: none; }
.cat-card:hover, .news-card:hover, .channel-card:hover { background: #121218; }
.channel-card::before { opacity: .35; }
.channel-card.is-active { background: #121218; }
.pay-option { border-color: var(--line-strong); }
.pay-option.is-selected { border-color: var(--brand); background: #141020; }

.table tbody tr:hover { background: #101014; }
.admin-stat { background: var(--panel); }

/* crisp form autofill */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel-2) inset;
  box-shadow: 0 0 0 1000px var(--panel-2) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}
.auth-card-mobile-head { display: none; }
.auth-side-glow { display: none; }

@media (max-width: 920px) {
  .auth-page { padding: 26px 0 50px; }
  .auth-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-side { display: none; }
  .auth-card { padding: 24px; }
  .auth-card-mobile-head { display: block; margin-bottom: 22px; }
  .auth-card-mobile-head h1 { font-size: 1.85rem; margin: 8px 0 7px; }
  .auth-card-mobile-head p { color: var(--muted); font-size: .88rem; margin: 0; }
}

/* legal pages */
.legal { color: #d2d2dc; }
.legal-updated { color: var(--muted-2); font-size: .78rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.legal h2 { font-size: 1.08rem; margin: 26px 0 8px; color: #fff; }
.legal h2:first-of-type { margin-top: 18px; }
.legal p { color: #c9c9d4; font-size: .92rem; line-height: 1.85; margin-bottom: 10px; }
.legal ul { margin: 8px 0 14px; padding-left: 20px; }
.legal li { color: #c9c9d4; font-size: .9rem; line-height: 1.8; margin-bottom: 6px; }
.legal strong { color: #fff; font-weight: 600; }
.legal a, .link-inline { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-links { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 640px) {
  .legal-links .btn { flex: 1; }
}

/* ---------- passkey ---------- */
.passkey-login[hidden] { display: none; }
.passkey-login { margin-top: 18px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.passkey-msg:empty { display: none; }
.passkey-msg { margin: 10px 0 0; text-align: center; }
.passkey-msg.is-error { color: #ff9db1; }
.passkey-msg.is-ok { color: #8ff5cd; }
.passkey-support {
  display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 18px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025);
  color: var(--muted); font-size: .8rem; line-height: 1.5;
}
.passkey-support.is-ok { border-color: rgba(55,230,162,.3); background: rgba(55,230,162,.07); color: #9ef2cd; }
.passkey-support.is-warn { border-color: rgba(255,204,102,.3); background: rgba(255,204,102,.07); color: #ffe0a0; }
.passkey-support.is-err { border-color: rgba(255,92,122,.3); background: rgba(255,92,122,.07); color: #ffb3c2; }
.passkey-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; margin-top: 6px; }
.passkey-support.is-ok .passkey-dot { background: var(--green); box-shadow: 0 0 10px rgba(55,230,162,.6); }
.passkey-support.is-warn .passkey-dot { background: var(--yellow); }
.passkey-support.is-err .passkey-dot { background: var(--red); }
.passkey-alt { margin: 2px 0 0; text-align: center; }
.passkey-alt a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
#two-factor { scroll-margin-top: 100px; }
.passkey-list li { align-items: center; gap: 12px; flex-wrap: wrap; }
.passkey-del { display: flex; gap: 8px; align-items: center; }
.passkey-del input { width: 130px; padding: 6px 10px; font-size: .82rem; background: var(--bg, transparent); border: 1px solid var(--line); border-radius: 8px; color: inherit; }

/* domain pages */
.domain-hero { padding: 52px 0 30px; background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(76,201,255,.10), transparent 65%); border-bottom: 1px solid var(--line); }
.domain-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 10px 0 10px; }
.domain-hero > .container > p { color: var(--muted); max-width: 620px; }
.domain-search { display: flex; align-items: center; gap: 9px; max-width: 720px; margin-top: 22px; padding: 6px 7px 6px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.domain-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.domain-search .ic { color: var(--muted-2); flex: none; }
.domain-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 10px 0; font-size: 1rem; color: #fff; }
.domain-search input::placeholder { color: var(--muted-2); }
.domain-search .btn { flex: none; }
.domain-search-note { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: .73rem; margin-top: 12px; }
.domain-setup { display: flex; gap: 11px; align-items: flex-start; max-width: 720px; margin-top: 18px; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255,204,102,.28); background: rgba(255,204,102,.07); color: #ffe0a0; font-size: .84rem; }
.domain-setup > div { display: flex; flex-direction: column; gap: 3px; }
.domain-setup span { color: #cbb781; font-size: .77rem; }
.domain-setup .link-arrow { color: #ffe0a0; margin-top: 3px; }
.domain-error { margin-top: 16px; max-width: 720px; }
.domain-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.domain-empty-icon { width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: rgba(76,201,255,.1); border: 1px solid rgba(76,201,255,.25); color: var(--cyan); }
.domain-empty h2 { color: #fff; margin: 0 0 6px; }
.domain-empty p { margin: 0 0 16px; }
.tld-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.tld-chips span { font-family: var(--mono); font-size: .8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.domain-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.domain-results-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.domain-results { display: flex; flex-direction: column; gap: 10px; }
.domain-card { display: flex; align-items: center; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.domain-card.is-available { border-color: rgba(55,230,162,.35); }
.domain-card-main { flex: 1; min-width: 0; }
.domain-name { font-family: var(--mono); font-size: 1.12rem; font-weight: 600; word-break: break-all; }
.domain-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.domain-card-price { text-align: right; min-width: 130px; }
.domain-card-price strong { display: block; font-family: var(--mono); font-size: 1.2rem; color: var(--green); }
.domain-card-price small { color: var(--muted-2); font-size: .7rem; }
.domain-card-action { flex: none; }

.domain-checkout-grid, .domain-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.domain-form { display: flex; flex-direction: column; gap: 16px; }
.domain-form .content-card { margin: 0; }
.domain-summary { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.domain-summary .content-card { display: flex; flex-direction: column; gap: 8px; }
.domain-summary-name { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.domain-summary-tld { color: var(--muted); font-size: .8rem; }
.domain-summary-price { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: #fff; margin-top: 6px; }
.domain-periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.domain-periods .chip { font-size: .74rem; padding: 5px 10px; }
.req { color: var(--pink); }
.domain-warning { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 10px; background: rgba(255,204,102,.07); border: 1px solid rgba(255,204,102,.28); color: #ffe0a0; font-size: .82rem; }
.domain-attr-file { padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .8rem; }
.domain-terms { align-items: flex-start; }
.domain-check { font-size: .84rem; }
@media (max-width: 920px) {
  .domain-checkout-grid, .domain-detail-grid { grid-template-columns: 1fr; }
  .domain-summary { position: static; }
  .domain-card { flex-wrap: wrap; gap: 10px; }
  .domain-card-main { flex: 1 1 100%; }
  .domain-card-price { text-align: left; }
  .domain-card-action { margin-left: auto; }
}
@media (max-width: 640px) {
  .domain-search { flex-wrap: wrap; padding: 10px; }
  .domain-search input { flex: 1 1 100%; padding: 8px 4px; }
  .domain-search .btn { width: 100%; }
  .domain-results-head { flex-direction: column; align-items: flex-start; }
}
