/* =========================================================
   Hex Developer — "Hive Ops" design system
   แนวคิด: รังผึ้งเรืองแสงแบบเกม/อีสปอร์ต — หกเหลี่ยมเป็นลายเซ็นแบรนด์, มุมตัด (chamfer) แบบ HUD เกม
   พื้นดำอมม่วง + "น้ำผึ้งหลอมเหลว" (ไล่สีเหลือง→ส้ม) สำหรับปุ่มหลัก/ราคา, มินต์ใช้เฉพาะสถานะ "ผ่าน/ผูกแล้ว"
   หัวเรื่อง: Kanit ตัวเอียงหนา, เนื้อหา: Anuphan, mono เฉพาะ License Key / IP
   ========================================================= */

:root {
  --ink: #0D0E15;
  --ink-2: #11121B;
  --surface: #171923;
  --surface-2: #1F2130;
  --surface-3: #282B3D;
  --line: #262938;
  --line-strong: #363A51;

  --text: #F1F0F6;
  --muted: #9A9CB4;
  --faint: #686B85;

  --honey: #FFB627;
  --honey-press: #FFA10A;
  --flame: #FF6B1A;
  --molten: linear-gradient(100deg, #FFC53D 0%, #FF9A1F 55%, #FF6B1A 100%);
  --honey-soft: rgba(255, 182, 39, .12);
  --honey-glow: rgba(255, 160, 30, .45);
  --on-honey: #1A0F00;

  --mint: #3BE6A4;
  --mint-soft: rgba(59, 230, 164, .12);
  --coral: #FF5C6C;
  --coral-soft: rgba(255, 92, 108, .12);
  --amber: #FFA24C;
  --amber-soft: rgba(255, 162, 76, .13);
  --discord: #5865F2;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --cut: 14px;
  --cut-sm: 9px;
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --chamfer-sm: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));

  --font-display: 'Kanit', 'Anuphan', sans-serif;
  --font-ui: 'Anuphan', 'Kanit', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --accent: var(--honey);
  --gold: var(--honey);
  --warn: var(--amber);
  --danger: var(--coral);
  --danger-soft: var(--coral-soft);
  --success: var(--mint);
  --border: var(--line);
  --text-dim: var(--muted);
  --text-faint: var(--faint);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 500px at 85% -120px, rgba(255, 140, 20, .10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97' fill='none' stroke='%23FFFFFF' stroke-opacity='.025'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--honey); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--honey); color: var(--on-honey); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; font-style: italic; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; font-weight: 700; font-style: italic; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-main { padding-top: 36px; padding-bottom: 88px; min-height: 62vh; }
.admin-main { padding-top: 28px; padding-bottom: 72px; }

.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; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--honey); color: var(--on-honey); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.small-text { font-size: .875rem; color: var(--muted); }
.text-strong { color: var(--text); }
.gold-text { color: var(--honey); }
.warn-text { color: var(--amber) !important; }
.stack-top { margin-top: 18px; }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 21, .78);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 160, 30, .55) 50%, transparent); opacity: .6; pointer-events: none; }
.site-header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255, 150, 30, .55)); }
.brand-mark path:first-child { fill: var(--honey); }
.brand-mark-h { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.25rem; letter-spacing: .01em; text-transform: uppercase; }
.brand-tag { font-size: .78rem; font-weight: 600; color: var(--on-honey); background: var(--molten); padding: 2px 10px; clip-path: var(--chamfer-sm); }

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav > a { position: relative; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 10px 14px; }
.site-nav > a:hover { color: var(--text); text-decoration: none; }
.site-nav > a[aria-current="page"] { color: var(--text); }
.site-nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--molten); box-shadow: 0 0 12px var(--honey-glow); }
.site-nav > a.nav-admin { color: var(--honey); }

.account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.account-name { font-weight: 500; font-size: .92rem; }
.account-logout { color: var(--muted); font-size: .9rem; }
.account-logout:hover { color: var(--text); }

.wallet-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: .9rem; clip-path: var(--chamfer-sm); }
.wallet-pill:hover { border-color: var(--honey); text-decoration: none; }
.wallet-pill-label { color: var(--muted); font-size: .8rem; }
.wallet-pill-amount { font-family: var(--font-display); font-weight: 700; font-style: italic; color: var(--honey); font-variant-numeric: tabular-nums; }
.wallet-pill-add { width: 24px; height: 26px; display: grid; place-items: center; background: var(--molten); color: var(--on-honey); font-weight: 700; clip-path: var(--hex); }

.avatar { width: 40px; height: 40px; object-fit: cover; clip-path: var(--hex); background: var(--surface-2); flex-shrink: 0; }
.avatar-lg { width: 76px; height: 76px; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; clip-path: var(--chamfer-sm); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--text); border-radius: 2px; content: ""; transition: transform .2s var(--ease); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header-inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 4px; }
  .site-nav > a[aria-current="page"]::after { left: 4px; right: auto; width: 40px; }
  .account { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
}

/* ---------- admin header strip ---------- */
.is-admin .site-header-inner { justify-content: space-between; }
.admin-tabstrip { border-top: 1px solid var(--line); }
.admin-tabstrip-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-tabstrip-inner::-webkit-scrollbar { display: none; }
.admin-tabstrip-inner a { position: relative; color: var(--muted); padding: 12px 14px; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.admin-tabstrip-inner a:hover { color: var(--text); text-decoration: none; }
.admin-tabstrip-inner a.active { color: var(--text); }
.admin-tabstrip-inner a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--molten); box-shadow: 0 0 12px var(--honey-glow); }

/* ---------- buttons (มุมตัดแบบ HUD เกม) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; font-style: italic; line-height: 1.2; letter-spacing: .01em;
  color: var(--on-honey); background: var(--honey);
  border: 0; border-radius: 0;
  clip-path: var(--chamfer-sm);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: filter .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: var(--on-honey); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { clip-path: none; outline-offset: 2px; }
.btn:disabled, .btn[disabled] { background: var(--surface-3); color: var(--faint); cursor: not-allowed; transform: none; filter: none; }
.btn-hot { background: var(--molten); box-shadow: 0 10px 30px -10px var(--honey-glow); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 1.08rem; clip-path: var(--chamfer); }
.btn-block { width: 100%; }
.btn-ghost, .btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover, .btn-outline:hover { background: var(--honey-soft); color: var(--honey); box-shadow: inset 0 0 0 1px var(--honey); filter: none; }
.btn-discord { background: var(--discord); color: #fff; font-style: normal; font-family: var(--font-ui); font-weight: 600; }
.btn-discord:hover { color: #fff; }
.btn-green { background: var(--mint); color: #04261A; }
.btn-green:hover { color: #04261A; }
.btn-red { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 1px rgba(255, 92, 108, .5); }
.btn-red:hover { background: var(--coral-soft); color: var(--coral); filter: none; }

/* ---------- flash ---------- */
.flash { padding: 14px 18px; margin-bottom: 20px; border-left: 3px solid; font-size: .95rem; clip-path: var(--chamfer-sm); }
.flash a { color: inherit; text-decoration: underline; }
.flash-success { background: var(--mint-soft); border-color: var(--mint); color: #A6F5D4; }
.flash-error { background: var(--coral-soft); border-color: var(--coral); color: #FFB7BE; }

/* ---------- hero (เต็มความกว้างจอ + รังผึ้งเคลื่อนไหว) ---------- */
.hero {
  position: relative;
  margin: -36px calc(50% - 50vw) 0;
  padding: 0 calc(50vw - 50%);
  min-height: min(760px, calc(100vh - 70px));
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 480px at 75% 50%, rgba(255, 120, 20, .16), transparent 70%),
    radial-gradient(600px 400px at 10% 100%, rgba(255, 182, 39, .06), transparent 70%);
}
.hive { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.hero-inner { width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 88px; }

.hero-title { display: flex; flex-direction: column; font-size: clamp(2.4rem, 1rem + 4.2vw, 4.6rem); font-weight: 800; font-style: italic; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 26px; text-transform: none; }
.hero-title > span { display: block; animation: rise .7s var(--ease) both; }
@media (min-width: 901px) { .hero-title > span { white-space: nowrap; } }
.hero-title > span:nth-child(2) { animation-delay: .08s; }
.hero-title > span:nth-child(3) { animation-delay: .16s; }
.hero-title-hot { background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 28px rgba(255, 120, 20, .35)); padding-right: .1em; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) skewY(2deg); } to { opacity: 1; transform: none; } }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 44ch; margin-bottom: 34px; animation: rise .7s var(--ease) .24s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise .7s var(--ease) .32s both; }

.hero-visual { display: grid; place-items: center; perspective: 900px; }
.license-demo {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  background: linear-gradient(160deg, rgba(31, 33, 48, .95), rgba(18, 19, 28, .95));
  clip-path: var(--chamfer);
  transition: transform .25s var(--ease);
  transform-style: preserve-3d;
  animation: rise .8s var(--ease) .2s both;
}
.license-demo::before { content: ""; position: absolute; inset: 0; padding: 1px; clip-path: var(--chamfer); background: linear-gradient(140deg, var(--honey), rgba(255, 107, 26, .2) 40%, var(--line-strong) 70%, var(--honey)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.license-demo-glow { position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(255, 160, 30, .18), transparent 45%); pointer-events: none; }
.license-demo-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.license-demo-hex { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 0 10px var(--honey-glow)); }
.license-demo-hex path { fill: var(--honey-soft); stroke: var(--honey); stroke-width: 1.5; }
.license-demo-title { font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; }
.license-demo-sub { font-size: .82rem; color: var(--faint); }
.license-demo-rows { position: relative; margin: 0; display: grid; gap: 10px; }
.license-demo-rows > div { background: rgba(13, 14, 21, .8); border: 1px solid var(--line); padding: 10px 14px; clip-path: var(--chamfer-sm); }
.license-demo-rows dt { font-size: .78rem; color: var(--faint); }
.license-demo-rows dd { margin: 2px 0 0; font-size: .92rem; color: var(--text); word-break: break-all; }
.license-demo-status { position: relative; margin-top: 14px; }

.status-check { position: relative; display: block; height: 46px; font-size: .95rem; font-weight: 600; }
.status-check > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; clip-path: var(--chamfer-sm); }
.status-pending { background: var(--surface-2); color: var(--muted); animation: status-out .35s var(--ease) 1.8s forwards; }
.status-pending::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--honey); border-radius: 50%; animation: spin .8s linear infinite; }
.status-done { background: var(--mint-soft); color: var(--mint); opacity: 0; animation: status-in .4s var(--ease) 1.95s forwards; box-shadow: inset 0 0 0 1px rgba(59, 230, 164, .3); }
.status-done::before { content: ""; width: 16px; height: 18px; flex-shrink: 0; clip-path: var(--hex); background: var(--mint); box-shadow: 0 0 12px var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes status-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes status-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .status-pending { display: none !important; }
  .status-done { opacity: 1; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
}

/* ---------- marquee ---------- */
.marquee { margin: 0 calc(50% - 50vw); overflow: hidden; background: var(--molten); color: var(--on-honey); transform: skewY(-1.2deg); margin-top: 22px; box-shadow: 0 20px 50px -20px var(--honey-glow); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 18px; padding: 12px 18px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.1rem; white-space: nowrap; }
.marquee-item::after { content: ""; width: 12px; height: 14px; clip-path: var(--hex); background: var(--on-honey); margin-left: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { margin-top: 80px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; position: relative; padding-left: 22px; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 14px; margin-top: -7px; clip-path: var(--hex); background: var(--molten); box-shadow: 0 0 14px var(--honey-glow); }
.link-more { font-weight: 600; font-size: .95rem; white-space: nowrap; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { margin-bottom: 6px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.page-sub { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- product grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: var(--text); clip-path: var(--chamfer); }
a.card { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
a.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255, 182, 39, .0), rgba(255, 140, 20, .10)); opacity: 0; transition: opacity .25s var(--ease); }
a.card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(255, 182, 39, .6); }
a.card:hover::after { opacity: 1; }
.img-frame { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.img-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(23, 25, 35, .95)); pointer-events: none; }
a.card:hover .img-frame img { transform: scale(1.06); }
.ribbon, .video-badge { position: absolute; z-index: 1; top: 12px; font-size: .78rem; font-weight: 700; padding: 3px 12px; line-height: 1.6; clip-path: var(--chamfer-sm); }
.ribbon { left: 12px; background: var(--molten); color: var(--on-honey); font-family: var(--font-display); font-style: italic; }
.video-badge { right: 12px; background: rgba(13, 14, 21, .85); color: var(--text); }
.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 4px 20px 20px; margin-top: -26px; }
.card-body h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; }
.card-body p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-cta { font-size: .85rem; font-weight: 600; color: var(--muted); transition: color .2s var(--ease), transform .2s var(--ease); }
a.card:hover .card-cta { color: var(--honey); transform: translateX(3px); }
.card-body .price { margin-top: auto; }
.card-foot .price { margin: 0; }
.price { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.4rem; color: var(--honey); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 150, 30, .3); }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); padding: 28px 26px 26px; clip-path: var(--chamfer); overflow: hidden; }
.steps li::after { content: counter(step); position: absolute; right: 14px; top: -18px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 7rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 182, 39, .22); pointer-events: none; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 50px; margin-bottom: 18px; clip-path: var(--hex); background: var(--molten); color: var(--on-honey); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.2rem; }
.steps h3 { margin-bottom: 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- team / discord ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.team-card { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); padding: 20px; clip-path: var(--chamfer); }
.team-card-name { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.2rem; }
.team-card-role { color: var(--muted); font-size: .9rem; }
.team-card-discord { color: var(--faint); font-size: .82rem; margin-top: 2px; }

.discord-cta { position: relative; margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; clip-path: var(--chamfer); background: radial-gradient(500px 200px at 100% 0, rgba(88, 101, 242, .35), transparent 70%), linear-gradient(120deg, #1A1C3A, #14152A); border: 1px solid rgba(88, 101, 242, .45); }
.discord-cta h2 { margin-bottom: 6px; font-size: 2rem; }
.discord-cta p { margin: 0; color: #B5B8D8; max-width: 52ch; }

/* ---------- products listing ---------- */
.search-box { display: flex; align-items: center; gap: 10px; width: min(100%, 380px); padding: 0 16px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--faint); clip-path: var(--chamfer-sm); }
.search-box:focus-within { border-color: var(--honey); color: var(--honey); }
.search-box input { border: 0 !important; background: transparent !important; padding: 13px 0 !important; box-shadow: none !important; clip-path: none !important; }
.search-box input:focus { outline: none; }
.query-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.query-readout { color: var(--muted); font-size: .95rem; }
.query-readout strong { color: var(--honey); font-family: var(--font-display); font-style: italic; }
.link-clear { margin-left: 10px; font-size: .9rem; }
.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.sort-control select { width: auto; min-height: 40px; padding: 8px 36px 8px 12px; }

/* ---------- product detail ---------- */
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.product-top-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.product-gallery-box { aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; clip-path: var(--chamfer); }
.product-gallery-box img, .product-gallery-box iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gthumb { position: relative; flex: 0 0 100px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; overflow: hidden; background: var(--surface); cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; clip-path: var(--chamfer-sm); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb:hover { opacity: 1; }
.gthumb.active { opacity: 1; border-color: var(--honey); }
.gthumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; background: rgba(13, 14, 21, .45); }

.product-buybox { position: sticky; top: 94px; padding: 28px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); clip-path: var(--chamfer); }
.product-buybox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--molten); }
.product-buybox h1 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 8px; }
.product-short { color: var(--muted); margin-bottom: 18px; }
.purchase-price { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1.05; margin-bottom: 22px; font-variant-numeric: tabular-nums; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(255, 120, 20, .3)); display: inline-block; padding-right: .1em; }
.spec-list { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.spec-list li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; }
.spec-list li::before { content: ""; grid-row: span 2; width: 12px; height: 14px; margin-top: 6px; clip-path: var(--hex); background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.spec-list strong { font-size: .95rem; }
.spec-list span { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.purchase-panel-note { margin: 20px 0 0; font-size: .85rem; color: var(--faint); }

.product-description { margin-top: 56px; max-width: 780px; }
.prose { color: #D2D2DE; font-size: 1rem; line-height: 1.85; }
.related-section { margin-top: 80px; }
@media (max-width: 900px) {
  .product-top-grid { grid-template-columns: 1fr; }
  .product-buybox { position: static; }
}

.lightbox { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(8, 8, 12, .94); align-items: center; justify-content: center; padding: 32px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; clip-path: var(--hex); }
.lightbox-close:hover { background: var(--honey); color: var(--on-honey); }

/* ---------- forms ---------- */
.form-box { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 30px; max-width: 520px; margin: 0 auto 24px; clip-path: var(--chamfer); }
.receipt-card { max-width: 500px; margin-top: 16px; }
.receipt-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--molten); }
.form-title { font-size: 2rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .9rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=search], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: 0;
  clip-path: var(--chamfer-sm);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--honey); background-color: #14131A; }
input:disabled { opacity: .5; cursor: not-allowed; }
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23FFB627' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input[type=file] { width: 100%; font: inherit; font-size: .9rem; color: var(--muted); padding: 10px; background: var(--ink); border: 1px dashed var(--line-strong); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 7px 14px; border: 0; background: var(--surface-3); color: var(--text); cursor: pointer; clip-path: var(--chamfer-sm); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--honey); vertical-align: -3px; margin-right: 6px; }

.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--ink); border: 1px solid var(--line); margin-bottom: 18px; clip-path: var(--chamfer-sm); }
.pay-tab { min-height: 42px; border: 0; background: transparent; color: var(--muted); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: .98rem; cursor: pointer; clip-path: var(--chamfer-sm); }
.pay-tab:hover { color: var(--text); }
.pay-tab.active { background: var(--molten); color: var(--on-honey); }
.pay-panel { margin-bottom: 4px; }
.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 18px; background: var(--ink); border: 1px solid var(--line); clip-path: var(--chamfer-sm); }
.pay-summary-label { color: var(--muted); font-size: .9rem; }
.pay-summary-amount { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.8rem; color: var(--honey); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 150, 30, .35); }
.qr-box { text-align: center; padding: 20px; background: var(--ink); border: 1px solid var(--line); clip-path: var(--chamfer-sm); }
.qr-box img { max-width: 220px; margin: 0 auto 14px; background: #fff; padding: 8px; }
.qr-meta { margin: 4px 0; }

.verify-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface-2); color: var(--muted); font-size: .85rem; line-height: 1.4; clip-path: var(--chamfer-sm); }
.verify-chip-block { display: flex; padding: 14px 16px; }
.chip-dot { width: 10px; height: 11px; flex-shrink: 0; clip-path: var(--hex); background: var(--faint); }
.chip-dot.pulsing { background: var(--mint); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.verify-chip:has(.chip-dot.pulsing) { color: var(--mint); background: var(--mint-soft); }

/* ---------- account / license pages ---------- */
.console-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 26px; background: radial-gradient(500px 200px at 100% 0, rgba(255, 140, 20, .12), transparent 70%), var(--surface); border: 1px solid var(--line); clip-path: var(--chamfer); }
.console-id { display: flex; align-items: center; gap: 16px; }
.console-id .avatar { width: 66px; height: 66px; }
.console-thumb { width: 60px; height: 60px; object-fit: cover; clip-path: var(--chamfer-sm); }
.console-id-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.6rem; margin: 0; line-height: 1.2; }
.console-id-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.console-wallet { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.console-wallet-label { color: var(--muted); font-size: .85rem; }
.console-wallet-amount { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2rem; color: var(--honey); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 150, 30, .35); }

.license-certificate { position: relative; padding: 26px; margin-bottom: 24px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid rgba(255, 182, 39, .35); clip-path: var(--chamfer); }
.cert-title { font-size: 1.35rem; margin-bottom: 16px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-grid .form-group { margin: 0; }
.key-row { display: flex; gap: 8px; align-items: stretch; }
.license-key { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .9rem; color: var(--text); padding: 12px 14px; background: var(--ink); border: 1px solid var(--line); word-break: break-all; clip-path: var(--chamfer-sm); }
.copy-btn { flex-shrink: 0; min-width: 92px; padding: 0 14px; border: 0; background: var(--surface-3); color: var(--text); font-family: var(--font-display); font-style: italic; font-size: .92rem; font-weight: 700; cursor: pointer; clip-path: var(--chamfer-sm); }
.copy-btn:hover { background: var(--honey); color: var(--on-honey); }
.copy-btn.copied { background: var(--mint); color: #04261A; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { margin: 0; max-width: none; }
.panel-title { font-size: 1.3rem; }
@media (max-width: 760px) { .cert-grid, .action-row { grid-template-columns: 1fr; } }

.tab-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 500; font-size: .95rem; white-space: nowrap; cursor: pointer; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); }
.tab-btn.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--molten); box-shadow: 0 0 12px var(--honey-glow); }
.tab-count { min-width: 22px; padding: 0 7px; background: var(--surface-2); color: var(--muted); font-size: .78rem; line-height: 1.7; text-align: center; clip-path: var(--chamfer-sm); }
.tab-btn.active .tab-count { background: var(--honey); color: var(--on-honey); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise .35s var(--ease); }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.mini-stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); clip-path: var(--chamfer-sm); }
.mini-stat-label { color: var(--muted); font-size: .85rem; }
.mini-stat-value { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .mini-stats { grid-template-columns: 1fr 1fr; } }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--honey), var(--line-strong)); }
.timeline-item { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 17px; width: 13px; height: 15px; clip-path: var(--hex); background: var(--mint); }
.timeline-dot.dim { background: var(--faint); }
.timeline-dot.warn { background: var(--amber); }
.timeline-dot.danger { background: var(--coral); }
.timeline-text { font-size: .95rem; }
.timeline-time { color: var(--faint); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.badge-card-list { display: grid; gap: 12px; }
.badge-card { position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 18px; padding: 14px 16px 14px 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); clip-path: var(--chamfer); transition: border-color .2s var(--ease), transform .2s var(--ease); }
a.badge-card:hover { border-color: rgba(255, 182, 39, .6); text-decoration: none; transform: translateX(3px); }
.badge-card > img { width: 96px; height: 60px; object-fit: cover; background: var(--surface-2); clip-path: var(--chamfer-sm); }
.badge-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 4px; }
.meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meta-price { color: var(--honey); font-family: var(--font-display); font-style: italic; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .badge-card, .badge-card[style] { grid-template-columns: 64px 1fr !important; }
  .badge-card > img { width: 64px; height: 48px; }
  .badge-card > :last-child:not(img):not(:nth-child(2)) { grid-column: 1 / -1; }
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-size: .8rem; font-weight: 600; line-height: 1.7; white-space: nowrap; clip-path: var(--chamfer-sm); }
.badge-paid { background: var(--mint-soft); color: var(--mint); }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-rejected { background: var(--coral-soft); color: var(--coral); }

.log-feed { background: var(--surface); border: 1px solid var(--line); overflow: hidden; clip-path: var(--chamfer); }
.log-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: rgba(255, 255, 255, .015); }
.log-row.st-paid, .log-row.st-approved, .log-row.st-ok { border-left-color: var(--mint); }
.log-row.st-pending, .log-row.st-awaiting_verify { border-left-color: var(--amber); }
.log-row.st-rejected { border-left-color: var(--coral); }
.log-row-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.log-row-title { font-weight: 600; }
.log-row-detail { color: var(--muted); font-size: .9rem; }
.log-row-time { color: var(--faint); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .log-row { flex-direction: column; align-items: flex-start; gap: 6px; } }

.empty-state { padding: 52px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; display: block; overflow-x: auto; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .82rem; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- terms ---------- */
.terms-page { max-width: 780px; }
.terms-page h2 { font-size: 1.35rem; margin-top: 40px; }
.terms-page p, .terms-page li { color: #D2D2DE; line-height: 1.85; }
.terms-page ul { padding-left: 22px; }
.terms-page li { margin-bottom: 8px; }
.terms-highlight { padding: 18px 20px; background: var(--coral-soft); border-left: 3px solid var(--coral); clip-path: var(--chamfer-sm); }
.terms-highlight p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 30px; background: linear-gradient(#0B0C12, #08080D); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 160, 30, .6) 50%, transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-top: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--honey); }
.footer-bottom { margin-top: 40px; color: var(--faint); font-size: .85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- admin ---------- */
.is-admin h2 { font-size: 1.5rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.quick-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: .92rem; clip-path: var(--chamfer-sm); }
.quick-action:hover { border-color: var(--honey); color: var(--honey); text-decoration: none; }
.qa-badge { min-width: 22px; padding: 0 7px; background: var(--molten); color: var(--on-honey); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.7; clip-path: var(--chamfer-sm); }

.ledger-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.ledger-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); clip-path: var(--chamfer); }
.ledger-stat:first-child { background: radial-gradient(260px 120px at 100% 0, rgba(255, 140, 20, .18), transparent 70%), var(--surface); border-color: rgba(255, 182, 39, .4); }
.ledger-stat .label { color: var(--muted); font-size: .85rem; }
.ledger-stat .value { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ledger-summary { grid-template-columns: repeat(2, 1fr); } }

.bento-grid { display: grid; gap: 12px; margin-bottom: 40px; }
.bento-card, .stat-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); clip-path: var(--chamfer); }
.stat-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; margin-bottom: 14px; }
.sparkline { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.sparkline-bar { flex: 1; background: var(--surface-3); min-height: 6px; clip-path: polygon(0 6px, 6px 0, 100% 0, 100% 100%, 0 100%); }
.sparkline-bar.today { background: var(--molten); box-shadow: 0 0 20px var(--honey-glow); }

.gallery-manage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-manage-item { position: relative; width: 120px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); clip-path: var(--chamfer-sm); }
.gallery-manage-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-manage-item .gallery-delete-btn { position: absolute; top: 6px; right: 6px; }
.gallery-delete-btn { width: 28px; height: 30px; border: 0; background: rgba(13, 14, 21, .85); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; clip-path: var(--hex); }
.gallery-delete-btn:hover { background: var(--coral); color: #fff; }

.is-admin .card { margin-bottom: 16px; }
.is-admin .card-body { margin-top: 0; padding: 20px; }
.is-admin .card-body p { margin: 0 0 6px; }
.is-admin .form-box { margin-left: 0; }
.code-box { font-family: var(--font-mono); font-size: .85rem; white-space: pre-wrap; padding: 14px; background: var(--ink); border: 1px solid var(--line); }

/* ---------- mobile refinements ---------- */
@media (max-width: 900px) {
  .is-admin .site-header-inner { flex-wrap: nowrap; }
  .is-admin .account { margin: 0; padding: 0; border: 0; gap: 10px; }
  .is-admin .account .avatar { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .license-demo { padding: 18px; }
  .license-demo-rows dd { font-size: .8rem; }
  .is-admin .brand-name { display: none; }
  .console-header, .license-certificate, .form-box, .product-buybox { padding: 20px; }
  .steps li::after { font-size: 5rem; }
}
