/* ============================================================
   SOUL MC — style.css (desktop / base)
   All mobile + tablet rules live in responsive.css
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg: #050507;
  --bg2: #0D0A12;
  --bg3: #14101c;
  --purple: #8B5CF6;
  --purple-bright: #A855F7;
  --purple-dim: #5b3fb8;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --border: #262033;
  --radius: 10px;
  --radius-sm: 6px;
  --font-head: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --maxw: 1200px;
  --header-h: 72px;
  --shadow-glow: 0 0 24px rgba(139, 92, 246, 0.25);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-bright); text-decoration: none; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
main { flex: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--purple); color: #fff; }

/* visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- MINECRAFT-STYLE BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
  /* Minecraft bevel: light top, dark bottom */
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.45);
  user-select: none;
}
.btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-primary {
  background: linear-gradient(180deg, #a06ff9 0%, var(--purple) 45%, #6d3de0 100%);
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.45),
    var(--shadow-glow);
  color: #fff;
}
.btn-accent {
  background: linear-gradient(180deg, #c084fc 0%, var(--purple-bright) 45%, #7e22ce 100%);
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-accent:hover { filter: brightness(1.12); color: #fff; box-shadow: var(--shadow-glow), inset 0 3px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.35); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  box-shadow: none;
  text-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; text-decoration: underline;
  padding: 8px; min-height: 44px;
}
.link-btn:hover { color: #f87171; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 28px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  letter-spacing: 0.08em; color: #fff;
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
}
.desktop-nav {
  display: flex; gap: 4px; margin-left: 0;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.desktop-nav a {
  color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: #fff; background: rgba(139, 92, 246, 0.14);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); cursor: pointer; transition: 0.15s;
}
.icon-btn:hover { color: #fff; border-color: var(--border); background: rgba(139,92,246,.1); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--purple-bright); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  border-radius: 999px; border: 2px solid var(--bg);
}
/* account dropdown */
.account-wrap { position: relative; }
.account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  min-width: 200px; padding: 6px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 92, 246, 0.12);
}
.account-menu a {
  display: block; padding: 12px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 14.5px;
}
.account-menu a:hover { color: #fff; background: rgba(139, 92, 246, 0.14); }

/* manual UPI panel at checkout */
.upi-panel {
  margin: 4px 0 12px; padding: 16px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px dashed rgba(139, 92, 246, 0.45); border-radius: 12px;
}
.upi-panel[hidden] { display: none; }
.upi-row { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.upi-id-row { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.upi-id-row code {
  font-size: 17px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--purple-bright);
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 8px;
}
.upi-note { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.upi-panel .field { margin-bottom: 0; }
.upi-qr-row { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.upi-qr {
  width: 160px; height: 160px; flex-shrink: 0;
  border-radius: 14px; border: 1px solid var(--border);
  background: #fff; padding: 6px;
}
.upi-qr-info .upi-row { margin-bottom: 8px; }
.upi-qr-info .upi-note { margin-bottom: 0; }

/* ---------- TRACK ORDER ---------- */
.track-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.track-form { display: flex; gap: 10px; margin-top: 14px; }
.track-form input {
  flex: 1; min-height: 52px; padding: 0 16px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; font-size: 16px;
  font-family: ui-monospace, monospace; letter-spacing: 0.04em;
}
.track-form input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.track-head h2 { font-size: 22px; margin: 0 0 4px; font-family: ui-monospace, monospace; letter-spacing: 0.02em; }
.track-total { font-size: 22px; font-weight: 700; color: var(--purple-bright); white-space: nowrap; }
.track-timeline {
  list-style: none; margin: 18px 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.track-timeline li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 0 12px 2px; color: var(--muted);
}
.track-timeline li::before {
  content: ""; position: absolute; left: 17px; top: 44px; bottom: -6px; width: 2px;
  background: var(--border);
}
.track-timeline li:last-child::before { display: none; }
.t-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 2px solid var(--border);
  font-weight: 700; font-size: 14px; color: var(--muted); z-index: 1;
}
.track-timeline li.done .t-dot { background: var(--purple); border-color: var(--purple); color: #fff; }
.track-timeline li.done { color: #fff; }
.track-timeline li.current .t-dot {
  border-color: var(--purple-bright); color: var(--purple-bright);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
}
.track-timeline li.current .t-label { color: #fff; font-weight: 700; }
.t-label { font-size: 15.5px; font-weight: 600; }
.t-sub { display: block; font-size: 13px; color: var(--purple-bright); font-weight: 500; }
.track-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.track-note a { color: var(--purple-bright); }
.my-orders { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.my-order-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; text-align: left; cursor: pointer;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 10px; color: #fff;
}
.my-order-btn:hover { border-color: var(--purple); }
.my-order-btn small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* payment proof upload + display */
.file-input {
  width: 100%; padding: 12px;
  background: rgba(0, 0, 0, 0.4); border: 1px dashed var(--border);
  border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer;
}
.file-input::file-selector-button {
  background: var(--purple); color: #fff; border: none; border-radius: 8px;
  padding: 10px 16px; margin-right: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.opt { color: var(--muted); font-style: normal; font-size: 12.5px; }
.proof-preview {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  padding: 10px; background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border); border-radius: 10px;
}
.proof-preview[hidden] { display: none; }
.proof-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.proof-block { margin-top: 16px; }
.proof-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.proof-img {
  max-width: 240px; width: 100%; border-radius: 12px;
  border: 1px solid var(--border); display: block;
}

/* ---------- AUTH ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 3, 8, 0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.auth-overlay[hidden] { display: none; }
.auth-box {
  position: relative; width: min(420px, 100%);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.auth-box h2 { margin: 0 0 14px; font-size: 22px; }
.auth-close { position: absolute; top: 12px; right: 12px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 700; cursor: pointer;
}
.auth-tabs button.active {
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff; border-color: transparent;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-alt { text-align: center; margin: 2px 0 0; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--purple2); font-weight: 600; font-size: 14px;
}
.link-btn:hover { text-decoration: underline; }
.auth-note { text-align: center; color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.auth-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.auth-msg.err { color: #ff8f8f; }
.auth-msg.ok { color: #7ee2a8; }
.auth-standalone { max-width: 440px; margin: 0 auto; }
.auth-standalone h2 { margin-top: 0; }
.btn-block { width: 100%; }
.avatar-initial {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff; font-weight: 800; font-size: 15px;
}
.menu-email {
  padding: 10px 14px; margin: 0; color: var(--muted); font-size: 13px;
  border-bottom: 1px solid var(--border); word-break: break-all;
}

/* ---------- NOTICE BOX (sign-in prompt etc.) ---------- */
.notice-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px;
  padding: 34px 30px; max-width: 560px; margin: 0 auto; text-align: center;
}
.notice-box h2 { margin-top: 0; }
.notice-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- ADMIN ORDERS ---------- */
.order-card { padding: 14px 16px; }
.order-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.order-head strong { font-size: 16px; }
.order-head small { display: block; color: var(--muted); font-size: 12px; }
.order-head select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-weight: 600; cursor: pointer;
}
.order-body p { margin: 6px 0; }
.order-body .proof-img { margin-top: 8px; }

/* ---------- ADMIN EDITOR ---------- */
.admin-lock { max-width: 440px; margin: 0 auto; text-align: center; }
.admin-lock .track-form { justify-content: center; }
#admin-app { display: flex; flex-direction: column; gap: 0; max-width: 860px; margin: 0 auto; }
#admin-app[hidden] { display: none; }
.admin-prod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.admin-prod-head h2 { margin: 0; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.admin-card summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; list-style: none;
}
.admin-card summary::-webkit-details-marker { display: none; }
.admin-card summary img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #000; }
.admin-sum-name { flex: 1; font-weight: 700; font-size: 15.5px; }
.admin-sum-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.admin-sum-x {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--muted); font-size: 15px;
}
.admin-sum-x:hover { color: #ff7b7b; background: rgba(255, 80, 80, 0.1); }
.admin-fields { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.admin-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-bar {
  position: sticky; bottom: 76px; z-index: 50;
  display: flex; gap: 12px; justify-content: flex-end; align-items: center;
  margin-top: 22px; padding: 14px 16px;
  background: rgba(13, 10, 18, 0.96); border: 1px solid var(--border); border-radius: 14px;
  backdrop-filter: blur(10px);
}
.small { font-size: 13px; }
.small code { background: rgba(0,0,0,.4); padding: 2px 6px; border-radius: 6px; }
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; width: 48px; height: 48px; background: transparent; border: none; cursor: pointer;
}
.hamburger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: 0.2s; }

/* ---------- MOBILE MENU + TAB BAR (hidden on desktop) ---------- */
.mobile-menu-overlay, .tab-bar { display: none; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg3); color: #fff; border: 1px solid var(--purple);
  padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-glow); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 200; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
  background: #000;
}
.hero-art {
  position: absolute; inset: 0;
  background: url("/public/images/hero/herobrine.png") center 30% / cover no-repeat, #050507;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(139, 92, 246, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(5,5,7,0.55) 0%, rgba(5,5,7,0.35) 45%, rgba(5,5,7,0.95) 100%);
}
.hero-art.img-fallback {
  background: #050507;
  background-image:
    repeating-conic-gradient(rgba(139,92,246,0.08) 0% 25%, transparent 0% 50%);
  background-size: 64px 64px;
}
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero-content {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px;
  width: 100%; text-align: center;
}
.hero-kicker {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.2em;
  color: var(--purple-bright); margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}
.hero h1 {
  font-size: 84px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.55), 3px 3px 0 #1a0f2e;
}
.hero .hero-sub {
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  letter-spacing: 0.28em; color: #e9d5ff; margin-bottom: 18px;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}
.hero .hero-text { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: 36px; letter-spacing: 0.04em; margin-bottom: 10px;
  text-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------- PRODUCT GRID + CARDS ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: var(--shadow-glow), 0 14px 30px rgba(0, 0, 0, 0.5);
}
.card-media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: var(--bg3); overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .card-media img { transform: scale(1.05); }
.card-media.img-fallback, .img-fallback {
  background-color: var(--bg3);
  background-image:
    repeating-conic-gradient(rgba(139,92,246,0.12) 0% 25%, transparent 0% 50%);
  background-size: 48px 48px;
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.08em;
  padding: 7px 10px; border-radius: 4px; color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.badge-popular { background: var(--purple-bright); text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.badge-limited { background: #f59e0b; text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.badge-lg { font-size: 11px; padding: 9px 14px; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 20px; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--purple-bright); }
.card-desc { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 10px; }
.price-now { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price-lg { font-size: 32px; }
.card-actions { display: flex; gap: 10px; margin-top: 4px; }
.card-actions .btn { flex: 1; }

/* ---------- SERVER SECTION ---------- */
.server-panel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.server-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%);
}
.server-panel h2 { font-size: 34px; margin-bottom: 8px; position: relative; }
.platform-chips { display: flex; gap: 10px; justify-content: center; margin: 14px 0 26px; position: relative; }
.chip {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.06em;
  background: rgba(139, 92, 246, 0.14); border: 1px solid var(--purple);
  color: #d8b4fe; padding: 10px 16px; border-radius: 6px;
}
.ip-row {
  display: inline-flex; align-items: center; gap: 0; position: relative;
  border: 2px solid var(--purple); border-radius: 10px; overflow: hidden;
  background: #000; box-shadow: var(--shadow-glow); margin-bottom: 24px;
}
.ip-row code {
  font-family: ui-monospace, monospace; font-size: 20px; font-weight: 700;
  padding: 16px 26px; color: #fff; letter-spacing: 0.04em;
}
.ip-row button {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  padding: 16px 26px; text-transform: uppercase; transition: background 0.15s;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.3);
}
.ip-row button:hover { background: var(--purple-bright); }
.ip-row button.copied { background: #16a34a; }
/* smaller secondary row for the Bedrock port */
.ip-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 26px;
}
.ip-stack .ip-row { margin-bottom: 0; }
.port-row { border-width: 1px; box-shadow: none; }
.port-label {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple2);
  padding-left: 18px; align-self: center; white-space: nowrap;
}
.port-row code { font-size: 17px; padding: 13px 18px; }
.port-row button { font-size: 14px; padding: 13px 22px; }
.server-stats {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px; position: relative;
}
.stat-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 28px; min-width: 180px;
}
.stat-box .stat-val { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.stat-box .stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.status-dot.online { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.status-dot.offline { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-dot.unknown { background: #a1a1aa; }

/* ---------- WHY CARDS ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--shadow-glow); }
.why-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: rgba(139, 92, 246, 0.14); border: 1px solid var(--purple);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--purple-bright);
}
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA BANNERS ---------- */
.cta-banner {
  background: var(--bg3); border: 1px solid var(--purple-dim);
  border-radius: 14px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
}
.cta-banner h2 { font-size: 34px; margin-bottom: 12px; position: relative; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; position: relative; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #08060c; border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .tagline { color: var(--muted); margin: 10px 0 4px; font-size: 15px; }
.footer-ip { font-family: ui-monospace, monospace; color: var(--purple-bright); font-size: 14px; }
.footer-col h4 {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 18px; text-transform: uppercase;
}
.footer-col a { display: block; color: var(--muted); padding: 6px 0; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px; text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: 13.5px; }

/* ---------- STORE CONTROLS ---------- */
.store-controls {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 28px;
}
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search-box input {
  width: 100%; padding: 14px 16px 14px 44px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  color: #fff; font-size: 15px; font-family: var(--font-body);
}
.search-box input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sort-select {
  padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; font-size: 15px; font-family: var(--font-body);
  cursor: pointer; min-height: 48px;
}
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-tab {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  padding: 12px 22px; border-radius: 8px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--border); color: var(--muted);
  transition: 0.15s; min-height: 48px;
}
.cat-tab:hover { color: #fff; border-color: var(--purple); }
.cat-tab.active {
  background: var(--purple); border-color: var(--purple); color: #fff;
  box-shadow: var(--shadow-glow), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.3);
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.store-count { color: var(--muted); font-size: 14px; margin-left: auto; align-self: center; }
.empty-state, .notice-box {
  text-align: center; padding: 72px 24px; background: var(--bg2);
  border: 1px dashed var(--border); border-radius: 14px;
}
.empty-state h2, .notice-box h2 { font-size: 26px; margin-bottom: 10px; }
.empty-state p, .notice-box p { color: var(--muted); margin-bottom: 24px; }
.empty-art { margin-bottom: 18px; color: var(--purple); }

/* ---------- CATEGORY HERO STRIP ---------- */
.cat-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%);
}
.cat-hero h1 { font-size: 48px; letter-spacing: 0.05em; margin-bottom: 8px; position: relative; text-shadow: 0 0 28px rgba(139,92,246,.4); }
.cat-hero p { color: var(--muted); position: relative; }

/* ---------- PRODUCT DETAIL ---------- */
.breadcrumb { color: var(--muted); font-size: 14px; margin: 32px 0 24px; }
.breadcrumb a { color: var(--purple-bright); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.product-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg2);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 40px; margin-bottom: 6px; }
.category-chip {
  display: inline-block; font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.1em;
  color: var(--purple-bright); border: 1px solid var(--purple); border-radius: 4px;
  padding: 7px 10px; margin-bottom: 16px; text-transform: uppercase;
}
.product-price { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-chip {
  font-family: var(--font-pixel); font-size: 9px; background: #16a34a; color: #fff;
  padding: 7px 10px; border-radius: 4px;
}
.product-desc { color: var(--muted); margin-bottom: 20px; font-size: 16.5px; }
.feature-list { list-style: none; margin-bottom: 28px; display: grid; gap: 10px; }
.feature-list li { padding-left: 30px; position: relative; font-size: 15.5px; }
.feature-list li::before {
  content: "◆"; position: absolute; left: 0; color: var(--purple-bright);
}
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 20px; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px;
}
.qty-stepper button {
  width: 44px; height: 44px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--bg3); color: #fff; font-size: 20px; font-weight: 700;
}
.qty-stepper button:hover { background: var(--purple); }
.qty-stepper span { min-width: 40px; text-align: center; font-weight: 700; font-size: 17px; }
.qty-sm button { width: 40px; height: 40px; }
.delivery-note { color: var(--muted); font-size: 14px; background: rgba(139,92,246,.08); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.related h2 { font-size: 28px; margin-bottom: 24px; }
.mobile-buy-bar { display: none; }

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { list-style: none; display: grid; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
}
.cart-thumb {
  width: 110px; height: 110px; border-radius: 8px; overflow: hidden;
  background: var(--bg3); display: block;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-family: var(--font-head); font-size: 18px; color: #fff; font-weight: 700; }
.cart-unit { display: block; color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.cart-row { display: flex; align-items: center; gap: 14px; }
.cart-line-total { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.cart-summary, .panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 28px;
}
.cart-summary h2, .panel h2 { font-size: 22px; margin-bottom: 18px; }
.cart-summary .btn-block { margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.summary-row.total { font-size: 20px; color: #fff; font-weight: 700; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; }
.summary-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- CHECKOUT ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-form-col { display: grid; gap: 24px; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field > legend {
  display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--text);
}
.field em { color: var(--purple-bright); font-style: normal; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input:not([type]) {
  width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font-size: 16px; font-family: var(--font-body);
}
.field input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
fieldset.field { border: none; }
.radio-row { display: flex; gap: 12px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 600;
  transition: 0.15s; min-height: 48px;
}
.radio-pill:has(input:checked) { border-color: var(--purple); background: rgba(139,92,246,.12); box-shadow: 0 0 10px rgba(139,92,246,.2); }
.pay-option {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; cursor: pointer;
  transition: 0.15s;
}
.pay-option:has(input:checked) { border-color: var(--purple); background: rgba(139,92,246,.08); }
.pay-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); }
.pay-label small { display: block; color: var(--muted); font-weight: 400; }
.demo-note {
  margin-top: 12px; font-size: 13.5px; color: #d8b4fe;
  background: rgba(139,92,246,.1); border: 1px solid var(--purple-dim);
  border-radius: 8px; padding: 10px 14px;
}
.mini-cart { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.mini-cart li { display: flex; align-items: center; gap: 12px; }
.mini-cart img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg3); }
.mini-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.mini-name small { color: var(--muted); font-weight: 400; }
.mini-price { font-weight: 700; font-size: 14.5px; }
.success-box {
  max-width: 640px; margin: 48px auto; text-align: center;
  background: var(--bg2); border: 1px solid var(--purple); border-radius: 16px;
  padding: 56px 40px; box-shadow: var(--shadow-glow);
}
.success-check {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: 42px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(22, 163, 74, 0.5);
}
.success-box h2 { font-size: 30px; margin-bottom: 10px; }
.order-id { font-size: 17px; margin-bottom: 14px; }
.success-box p { color: var(--muted); margin-bottom: 14px; }
.delivery-msg { background: rgba(139,92,246,.1); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.spinner {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- LEGAL / CONTACT ---------- */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 24px; margin: 32px 0 10px; color: #e9d5ff; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 12px; font-size: 16px; }
.legal-body ul { padding-left: 22px; }
.legal-body .updated { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.contact-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; text-align: center; transition: 0.2s;
}
.contact-card:hover { border-color: var(--purple); box-shadow: var(--shadow-glow); }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.form-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- PAGE TITLE BAR ---------- */
.page-title { padding: 56px 0 8px; text-align: center; }
.page-title h1 { font-size: 44px; letter-spacing: 0.05em; text-shadow: 0 0 26px rgba(139,92,246,.4); }
.page-title p { color: var(--muted); margin-top: 8px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 24px; }
.notfound h1 {
  font-family: var(--font-pixel); font-size: 64px; color: var(--purple-bright);
  text-shadow: 0 0 30px rgba(168,85,247,.6); margin-bottom: 20px;
}
.notfound h2 { font-size: 30px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 30px; }
.notfound .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- COUPONS ---------- */
.coupon-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon-row input[type="text"], .coupon-row input:not([type]) {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.coupon-row input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 4px; padding: 10px 12px;
  border: 1px dashed var(--purple); border-radius: 10px; background: rgba(139,92,246,.08);
}
.coupon-tag { font-weight: 700; letter-spacing: 1px; }
.coupon-tag em { font-style: normal; color: #4ade80; margin-left: 6px; }
.summary-row.coupon-discount { color: #4ade80; }
