/* Tm06 Cheet0s web - black/gold theme matching the launcher */

:root {
  --bg: #0a0a0c;
  --panel: #131316;
  --panel-2: #1a1a1e;
  --border: rgba(255, 214, 0, 0.30);
  --border-strong: rgba(255, 214, 0, 0.65);
  --accent: #ffd600;
  --accent-dim: rgba(255, 214, 0, 0.65);
  --text: #e8e9ee;
  --muted: #8a8d96;
  --danger: #ff5b6b;
  --success: #4ade80;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(255, 214, 0, 0.08), transparent 60%),
    radial-gradient(700px circle at 85% 90%, rgba(255, 214, 0, 0.05), transparent 55%),
    #060608;
}

.app { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; }

.view.hidden { display: none; }
/* General utility so any element with class="... hidden" is hidden - the
   view-specific rule above only matches sections, not paragraph tags. */
.hidden { display: none !important; }

/* --- Landing (under construction splash) --- */
.landing {
  min-height: calc(100vh - 100px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.landing-logo {
  width: 180px; height: 180px; object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(255, 214, 0, 0.35));
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 214, 0, 0.25)); }
  50%      { filter: drop-shadow(0 0 80px rgba(255, 214, 0, 0.55)); }
}
.landing-title {
  color: var(--accent); font-size: 42px; font-weight: 800;
  letter-spacing: 6px; margin: 26px 0 6px; text-shadow: 0 0 30px rgba(255, 214, 0, 0.3);
}
.landing-tag {
  color: var(--muted); font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; margin: 0 0 40px;
}
.landing-copy {
  max-width: 520px; color: var(--text);
  font-size: 16px; line-height: 1.7;
}
.landing-copy p { margin: 0 0 12px; }

/* --- Admin login button (top-right corner, discrete lock icon) --- */
.admin-btn {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255, 214, 0, 0.08); color: var(--accent);
  border: 1px solid rgba(255, 214, 0, 0.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.admin-btn:hover {
  background: rgba(255, 214, 0, 0.18);
  border-color: var(--border-strong);
  transform: scale(1.05);
}
.admin-btn.hidden { display: none; }

/* --- Card --- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.card.wide { padding: 28px 32px; }

/* --- Brand block (login/register) --- */
.brand { text-align: center; margin-bottom: 24px; }
.brand-mark {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: #111; font-weight: 800;
  letter-spacing: 2px; font-size: 14px;
  box-shadow: 0 0 40px rgba(255, 214, 0, 0.35);
}
.brand-mark.small { padding: 4px 10px; font-size: 12px; letter-spacing: 1.5px; }
.brand-name { margin-top: 14px; color: var(--accent); letter-spacing: 3px; font-weight: 700; font-size: 20px; }
.brand-name.small { margin-top: 0; margin-left: 10px; font-size: 14px; letter-spacing: 2px; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.brand-inline { display: inline-flex; align-items: center; }

/* --- Typography --- */
h1 { font-size: 24px; margin: 0 0 4px; color: var(--accent); font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.muted.small { font-size: 12px; text-transform: none; letter-spacing: normal; }
.switch.small { margin-top: 8px; font-size: 12px; }
code {
  background: var(--panel-2); padding: 2px 6px; border-radius: 4px;
  color: var(--accent); font-family: Consolas, monospace; font-size: 13px;
}

/* --- Inputs --- */
label {
  display: block; color: var(--muted);
  font-size: 12px; letter-spacing: 1.2px; margin: 16px 0 6px; text-transform: uppercase;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%; padding: 12px 14px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  font-size: 15px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.15);
}

/* --- Buttons --- */
.cta {
  display: block; width: 100%; margin-top: 22px; padding: 14px;
  background: linear-gradient(180deg, #ffdc33, #d9b400);
  color: #111; font-weight: 700; font-size: 15px; letter-spacing: 1.5px;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform 0.06s, box-shadow 0.15s, filter 0.15s;
}
.cta:hover { box-shadow: 0 6px 30px rgba(255, 214, 0, 0.35); }
.cta:active { transform: translateY(1px); }
.cta:disabled { filter: grayscale(0.6) brightness(0.6); cursor: not-allowed; }

.ghost {
  padding: 8px 16px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.ghost:hover { background: rgba(255, 214, 0, 0.1); }

/* --- Status line --- */
.status { margin-top: 14px; min-height: 20px; font-size: 14px; }
.status.err { color: var(--danger); }
.status.ok  { color: var(--success); }
.status.info { color: var(--muted); }

/* --- Switch link --- */
.switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.switch a { color: var(--accent); text-decoration: none; }
.switch a:hover { text-decoration: underline; }

/* --- Dashboard --- */
.top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding: 0 4px;
}
.user { display: flex; align-items: center; gap: 12px; }

.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 16px;
}
.game-card {
  background: var(--panel-2); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; padding: 18px;
  position: relative; overflow: hidden;
}
.game-card.owned { border-color: var(--border-strong); }
.game-card.owned::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.game-card.locked { opacity: 0.5; }
.game-title { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.game-sub { color: var(--muted); font-size: 12px; }
.game-badge {
  display: inline-block; margin-top: 10px; padding: 3px 8px;
  border-radius: 4px; font-size: 11px; letter-spacing: 1px;
}
.game-badge.owned  { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.game-badge.locked { background: rgba(255,255,255,0.05); color: var(--muted); }

.redeem-row { display: flex; gap: 10px; margin-top: 12px; }
.redeem-row input { flex: 1; margin: 0; font-family: Consolas, monospace; }
.redeem-row .cta { width: auto; margin-top: 0; padding: 12px 24px; }

/* --- Footer --- */
.footer { text-align: center; margin-top: 30px; font-size: 12px; }

/* --- Loading spinner --- */
.loader { text-align: center; padding: 100px 0; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid rgba(255,214,0,0.15); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Storefront layout (post-login) - top nav + pages (Home / Products / Library
   / FAQ) + footer. Only active inside #view-dashboard.
   ========================================================================== */

/* When the storefront view is active, we don't want the .app wrapper's
   narrow max-width constraining the layout. Break out. */
#view-dashboard { max-width: none; }
#view-dashboard.view { padding: 0; margin: 0; }

/* Dashboard view lives INSIDE .app which has max-width: 820px. Escape it. */
main.app:has(#view-dashboard:not(.hidden)) { max-width: none; padding: 0; }

/* --- Top navigation bar --- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 14px 40px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 214, 0, 0.10);
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  margin-right: 40px;
}
.topnav-logo { width: 32px; height: 32px; object-fit: contain; }
.topnav-name { font-weight: 700; letter-spacing: 1.5px; font-size: 14px; }
.accent { color: var(--accent); }
.topnav-links {
  display: flex; gap: 6px; flex: 1;
}
.topnav-link {
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.topnav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.topnav-link.active { color: var(--accent); background: rgba(255,214,0,0.08); }
.topnav-actions { display: flex; align-items: center; gap: 12px; }
.topnav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255, 214, 0, 0.06);
  border: 1px solid rgba(255, 214, 0, 0.15);
}
.topnav-user-badge {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}
.topnav-user-name { font-size: 13px; font-weight: 500; }
.topnav-logout {
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

/* --- Pages (SPA "routes") --- */
.page {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 40px;
}
.page.hidden { display: none; }

/* --- Hero section --- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: center; margin-bottom: 80px;
}
.hero-tag {
  display: inline-block; margin-bottom: 24px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.20);
  color: var(--accent); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-title {
  font-size: 56px; line-height: 1.05; font-weight: 800;
  margin: 0 0 20px; letter-spacing: -1.5px;
}
.hero-sub {
  font-size: 17px; color: var(--muted); line-height: 1.6;
  max-width: 540px; margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-solid, .btn-outline {
  padding: 14px 26px; border-radius: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  text-decoration: none; transition: transform 0.08s, box-shadow 0.18s;
  cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-solid {
  background: linear-gradient(180deg, #ffdc33, #d9b400);
  color: #111;
}
.btn-solid:hover { box-shadow: 0 8px 28px rgba(255, 214, 0, 0.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.30); }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-size: 24px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.5px;
}
.hero-stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-showcase {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-logo {
  width: 340px; max-width: 100%; height: auto;
  filter: drop-shadow(0 0 80px rgba(255, 214, 0, 0.35));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* --- Section headers (reused across pages) --- */
.section-header {
  text-align: center; margin: 60px 0 32px;
}
.section-eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 20px;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.18);
  color: var(--accent); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 40px; font-weight: 800; margin: 0;
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--muted); margin-top: 12px; font-size: 16px;
}

/* --- Feature cards --- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.feature {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px; padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.feature-icon-shield  { background: rgba(255, 214, 0, 0.10); }
.feature-icon-bolt    { background: rgba(255, 214, 0, 0.10); }
.feature-icon-lock    { background: rgba(255, 214, 0, 0.10); }
.feature-icon-refresh { background: rgba(255, 214, 0, 0.10); }
.feature h3 {
  font-size: 17px; font-weight: 700; margin: 0 0 8px;
}
.feature p {
  font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6;
}

/* --- Product cards (big game cards for products page + preview) --- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(255, 214, 0, 0.15);
}
.product-card.locked { opacity: 0.75; }
.product-card-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255, 214, 0, 0.35);
  background: linear-gradient(135deg,
    rgba(255, 214, 0, 0.12) 0%,
    rgba(0,0,0,0) 40%,
    rgba(255, 214, 0, 0.06) 100%),
    var(--panel-2);
}
.product-card-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 214, 0, 0.20), transparent 60%);
  pointer-events: none;
}
.product-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.6) 60%, transparent 100%);
}
.product-card-title {
  font-size: 18px; font-weight: 700; margin: 0 0 4px;
}
.product-card-sub {
  font-size: 12px; color: var(--muted); margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.product-card-badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.product-card-badge.owned  { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.product-card-badge.locked { background: rgba(255,255,255,0.06); color: var(--muted); }
.product-card-badge.soon   { background: rgba(140, 145, 155, 0.15); color: var(--muted); }

/* --- My Library redeem card --- */
.redeem-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 28px;
  max-width: 720px; margin: 0 auto;
}

/* --- FAQ accordion --- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0 24px;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  padding: 20px 0; cursor: pointer;
  font-weight: 600; font-size: 15px;
  list-style: none;
  position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 18px;
  font-size: 22px; color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding-bottom: 20px; color: var(--muted);
  line-height: 1.7; font-size: 14px; margin: 0;
}

/* --- Site footer --- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 60px; padding: 60px 40px 30px;
  background: rgba(0,0,0,0.3);
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.site-footer-brand { max-width: 320px; }
.site-footer-logo { width: 40px; height: 40px; margin-bottom: 12px; }
.site-footer-name { font-weight: 700; font-size: 15px; letter-spacing: 1.5px; margin-bottom: 10px; }
.site-footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin: 0 0 16px;
}
.site-footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; padding: 4px 0;
  transition: color 0.15s;
}
.site-footer-col a:hover { color: var(--text); }
.site-footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

/* --- Game-specific product card art (SVG icons) --- */
.product-card-art {
  /* keeps the old fallback text look OK if a slug isn't mapped */
  padding: 20px;
}
.product-card-art svg {
  width: 60%; height: 60%; max-width: 180px; max-height: 180px;
  color: var(--accent);
  filter: drop-shadow(0 0 24px rgba(255, 214, 0, 0.30));
}
.product-card-art .game-icon-img,
.product-modal-art .game-icon-img {
  width: 70%; height: 70%; max-width: 200px; max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 214, 0, 0.35));
}
.product-card-art .art-label {
  position: absolute; bottom: 60px; left: 0; right: 0;
  text-align: center;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 214, 0, 0.75); font-weight: 700;
}

/* ==========================================================================
   Product detail modal - opens when clicking a product card. Follows the
   two-column "art on left, buy panel on right" pattern common to cheat
   storefronts, adapted to our yellow/black language.
   ========================================================================== */
.product-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pm-fade 0.18s ease-out;
}
.product-modal.hidden { display: none; }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
.product-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.product-modal-card {
  position: relative;
  width: 100%; max-width: 1080px; max-height: 90vh;
  background: var(--panel);
  border: 1px solid rgba(255, 214, 0, 0.15);
  border-radius: 18px;
  padding: 40px 44px;
  overflow-y: auto;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(255, 214, 0, 0.05);
  animation: pm-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pm-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.product-modal-x {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.product-modal-x:hover { background: rgba(255, 91, 107, 0.15); color: var(--danger); border-color: rgba(255, 91, 107, 0.3); }

.product-modal-crumbs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.crumb-sep { color: rgba(255,255,255,0.15); }

.product-modal-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

/* --- Art panel (left) --- */
.product-modal-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg,
    rgba(255, 214, 0, 0.14) 0%,
    rgba(0,0,0,0) 40%,
    rgba(255, 214, 0, 0.08) 100%),
    var(--panel-2);
  border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-modal-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 214, 0, 0.20), transparent 60%);
  pointer-events: none;
}
.product-modal-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255, 214, 0, 0.14);
  border: 1px solid rgba(255, 214, 0, 0.30);
  color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.product-modal-art-inner {
  width: 60%; max-width: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.product-modal-art-inner svg {
  width: 100%; height: auto;
  color: var(--accent);
  filter: drop-shadow(0 0 60px rgba(255, 214, 0, 0.45));
}
.product-modal-art-label {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-weight: 800; font-size: 20px;
  letter-spacing: 4px;
  color: rgba(255, 214, 0, 0.85);
  text-transform: uppercase;
}

/* --- Body (right) --- */
.product-modal-body { display: flex; flex-direction: column; }
.pm-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 12px;
}
.pm-header h2 {
  margin: 0; font-size: 30px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15;
}
.pm-price { text-align: right; white-space: nowrap; }
.pm-price-num {
  color: var(--accent); font-weight: 800; font-size: 32px;
  letter-spacing: -0.5px;
}
.pm-price-per {
  display: block; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
}

.pm-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.30);
  color: var(--success); font-size: 13px; font-weight: 600;
  align-self: flex-start;
  margin-bottom: 28px;
}
.pm-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}
.pm-status.pm-status-locked  { background: rgba(140, 145, 155, 0.10); border-color: rgba(140, 145, 155, 0.30); color: var(--muted); }
.pm-status.pm-status-locked .pm-status-dot { background: var(--muted); box-shadow: none; }

.pm-section-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.pm-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 24px;
}
.pm-option {
  padding: 14px 16px; border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.pm-option:hover { border-color: var(--border); }
.pm-option.active {
  background: rgba(255, 214, 0, 0.10);
  border-color: var(--accent);
}
.pm-option.active::after {
  content: "✓"; position: absolute; top: 12px; right: 12px;
  color: var(--accent); font-weight: 700;
}
.pm-option-name {
  display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px;
}
.pm-option-stock {
  color: var(--success); font-size: 12px;
}
.pm-option-price {
  position: absolute; top: 14px; right: 34px;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.pm-option.active .pm-option-price { right: 34px; }

.pm-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 28px;
}
.pm-buy, .pm-discord {
  padding: 14px 20px; justify-content: center;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.pm-buy:disabled { filter: grayscale(0.6) brightness(0.6); cursor: not-allowed; }

.pm-features {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pm-features-title {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.pm-features ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}
.pm-features li {
  color: var(--text); font-size: 14px;
  padding-left: 18px; position: relative;
}
.pm-features li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* --- Responsive breakpoints --- */
@media (max-width: 900px) {
  .topnav { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .topnav-links { order: 3; width: 100%; overflow-x: auto; }
  .topnav-brand { margin-right: 0; }
  .page { padding: 40px 20px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 40px; }
  .hero-showcase { order: -1; }
  .hero-logo { width: 220px; }
  .section-header h2 { font-size: 28px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .product-modal-card { padding: 24px 20px; }
  .product-modal-grid { grid-template-columns: 1fr; gap: 24px; }
  .pm-header { flex-direction: column; }
  .pm-price { text-align: left; }
  .pm-options { grid-template-columns: 1fr; }
  .pm-actions { grid-template-columns: 1fr; }
  .pm-features ul { grid-template-columns: 1fr; }
}

/* ============================================================================
   CART DRAWER + CART NAV BUTTON
   Right-side slide-in cart drawer, cart icon with badge in top nav.
   ============================================================================ */

/* Cart button in nav */
.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 199, 0, 0.25);
  background: rgba(255, 199, 0, 0.05);
  color: #ffc700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cart-nav-btn:hover { background: rgba(255, 199, 0, 0.15); border-color: rgba(255, 199, 0, 0.5); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ffc700;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge.hidden { display: none; }

/* Cart drawer overlay */
.cart-drawer { position: fixed; inset: 0; z-index: 9000; }
.cart-drawer.hidden { display: none; }
.cart-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.cart-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #0d0d10;
  border-left: 1px solid rgba(255, 199, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: cart-slide-in 0.25s ease-out;
}
@keyframes cart-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.cart-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cart-drawer-head h2 { margin: 0; font-size: 20px; }
.cart-drawer-x {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; padding: 4px;
}
.cart-drawer-x:hover { color: #fff; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0c;
}

.cart-empty { text-align: center; padding: 40px 20px; }

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.cart-item-name { font-size: 14px; font-weight: 500; }
.cart-item-qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
}
.cart-qty-btn {
  width: 24px; height: 24px;
  border: none; background: transparent;
  color: #fff; cursor: pointer;
  font-size: 16px; line-height: 1;
  border-radius: 4px;
}
.cart-qty-btn:hover { background: rgba(255, 199, 0, 0.15); }
.cart-qty-num { min-width: 20px; text-align: center; font-size: 13px; }
.cart-item-total { font-weight: 600; font-size: 14px; min-width: 50px; text-align: right; }
.cart-item-remove {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 18px; padding: 4px 8px;
}
.cart-item-remove:hover { color: #ff5555; }

.cart-coupon-row { display: flex; gap: 8px; margin-bottom: 8px; }
.cart-coupon-row input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}
.cart-coupon-row input:focus { outline: none; border-color: #ffc700; }
.cart-coupon-apply { padding: 8px 16px; font-size: 13px; }
.cart-coupon-status { font-size: 12px; min-height: 16px; }

.cart-coupon-applied {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(0, 200, 100, 0.1);
  border: 1px solid rgba(0, 200, 100, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(150, 255, 200, 0.9);
  margin-bottom: 8px;
}
.cart-coupon-remove {
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 12px; text-decoration: underline;
}

.cart-totals { margin-bottom: 16px; }
.cart-total-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.cart-total-discount { color: rgba(150, 255, 200, 0.9); }
.cart-total-final {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 700;
}

.cart-checkout {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}
.cart-checkout:disabled { opacity: 0.5; cursor: wait; }
.cart-checkout-status { font-size: 12px; min-height: 16px; margin-top: 8px; }

/* Mobile: full-width drawer */
@media (max-width: 600px) {
  .cart-drawer-panel { max-width: 100%; }
}
