/* ═══════════════════════════════════════════════════════════
   NAVBAR — copied from main site style_4.css
═══════════════════════════════════════════════════════════ */

/* Extra tokens the navbar uses (not in store palette) */
:root {
  --accent:        #ff8c42;
  --accent-glow:   rgba(255, 140, 66, 0.6);
  --flame-orange:  #ff6a1a;
}

/* ─── HEADER WRAPPER ─── */
header {
  position: relative;
  z-index: 150;
  height: 150px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(15, 8, 4, 0.92), rgba(15, 8, 4, 0.6));
  border-bottom: 1px solid rgba(255, 107, 26, 0.15);
  overflow: visible;
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 26, 0.12), transparent 70%);
  animation: flameFlow 15s ease-in-out infinite;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
@keyframes flameFlow {
  0%   { transform: scale(1) translateX(-5%);  opacity: 0.5; }
  50%  { transform: scale(1.05) translateX(5%); opacity: 0.8; }
  100% { transform: scale(1) translateX(-5%);  opacity: 0.5; }
}

/* ─── NAVBAR ─── */
.navbar {
  position: relative;
  z-index: 151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  padding: 0 2rem;
  height: 70px;
  margin-top: 15px;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.navbar a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #d4b5a0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 17px;
  transition: color 0.25s, transform 0.25s;
}
.navbar a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-2px);
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--flame-orange), var(--ember));
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
  box-shadow: 0 0 8px var(--accent-glow);
}
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* ─── LOGO ─── */
.logo-inline {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-45%);
  z-index: 200;
  pointer-events: all;
}
.logo-inline img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255, 107, 26, 0.5));
  transition: transform 0.3s ease;
  animation: emberGlow 5s ease-in-out infinite;
  cursor: pointer;
}
.logo-inline img:hover {
  transform: translateY(-3px) scale(1.04);
}
@keyframes emberGlow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 107, 26, 0.4)); }
  50%      { filter: drop-shadow(0 0 50px rgba(255, 69, 0, 0.8)); }
}

/* ─── MOBILE BURGER ─── */
.burger {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: 8px;
  cursor: pointer;
  z-index: 300;
  padding: 0;
  transition: all 0.3s ease;
}
.burger:hover {
  border-color: var(--ember);
  background: rgba(255, 106, 26, 0.08);
  box-shadow: 0 0 16px rgba(255, 106, 26, 0.25);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ember-bright);
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.35s ease;
  box-shadow: 0 0 6px rgba(255, 106, 26, 0.5);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: linear-gradient(180deg, var(--soot) 0%, var(--void) 100%);
  border-left: 1px solid rgba(255, 106, 26, 0.35);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7), -5px 0 30px rgba(255, 106, 26, 0.15);
  transform: translateX(100%);
  transition: transform 0.45s ease;
  z-index: 250;
  padding: 5.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson, #d4200c), var(--ember), #fbbf24);
}
.mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 106, 26, 0.1), transparent 60%);
  pointer-events: none;
}
.mobile-menu a {
  position: relative;
  display: block;
  padding: 1rem 1.25rem;
  color: #f0ebe4;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  z-index: 1;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--ember-bright);
  background: rgba(255, 106, 26, 0.08);
  border-color: rgba(255, 106, 26, 0.25);
  transform: translateX(6px);
  text-shadow: 0 0 12px rgba(255, 106, 26, 0.5);
}
.mobile-menu .mobile-cta {
  margin-top: 0.8rem;
  background: linear-gradient(135deg, var(--ember) 0%, #d4200c 100%);
  color: #fff !important;
  text-align: center;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.25);
}
.mobile-menu .mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 106, 26, 0.4);
}

/* ─── MOBILE BACKDROP ─── */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 249;
}
.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
body.menu-open { overflow: hidden; }

/* ─── MOBILE NAV BREAKPOINTS ─── */
@media (max-width: 900px) {
  header { height: 90px; }
  .navbar {
    height: 90px;
    padding: 0 1rem;
    margin-top: 0;
    justify-content: flex-start;
  }
  .nav-left,
  .nav-right { display: none; }
  .burger { display: block; }
  .logo-inline {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
  }
  .logo-inline img { width: 180px; }
}
@media (max-width: 480px) {
  .logo-inline img { width: 150px; }
  .mobile-menu,
  .mobile-backdrop,
  .burger {
    display: none !important;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-backdrop,
  .burger {
    display: none !important;
  }
}

/* ===================================================================
 * XALOR · STORE
 * Aesthetic: FIRE · BRIMSTONE · ASH
 * Forged in flame. Looking down into a furnace. Embers drift upward.
 * =================================================================== */

/* -------------------- Tokens -------------------- */
:root {
    /* Ash — backgrounds */
    --ash-void:      #050302;
    --ash-deep:      #0a0604;
    --ash:           #110a06;
    --ash-light:     #1a1108;
    --ash-elevated:  #241710;
    --ash-input:     #1a0f08;

    /* Iron / forged borders */
    --iron-deep:     #2a1c10;
    --iron:          #3d2818;
    --iron-hot:      #5a3520;

    /* Brimstone — sulfurous yellow accents */
    --brimstone:     #ffaa33;
    --brimstone-hot: #ffd166;
    --brimstone-pale:#ffe9b3;

    /* Ember — molten orange/red, the primary accent */
    --ember-deep:    #b32a0a;
    --ember:         #ff4d1a;
    --ember-bright:  #ff7a3d;
    --ember-glow:    #ffaa66;

    /* Blood — deep red for danger/error */
    --blood:         #8a1a0a;
    --blood-bright:  #d63a1a;

    /* Smoke — text */
    --text-bright:   #f4e4cc;
    --text-body:     #d6c2a6;
    --text-muted:    #8a7561;
    --text-faded:    #5a4a3a;
    --text-inverse:  #0a0604;

    /* Status */
    --success:       #8fc97f;

    /* Effects */
    --glow-ember:    0 0 32px rgba(255, 77, 26, 0.35);
    --glow-brimstone:0 0 28px rgba(255, 170, 51, 0.25);
    --shadow-deep:   0 14px 40px rgba(0, 0, 0, 0.7);
    --shadow-card:   0 8px 24px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-display:  'Cinzel Decorative', 'Cinzel', serif;
    --font-heading:  'Cinzel', 'Trajan Pro', serif;
    --font-body:     'Outfit', -apple-system, system-ui, sans-serif;

    /* Layout */
    --container:     1280px;
    --radius:        2px;
    --radius-md:     6px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--ash-void);
    /* Layered atmosphere — embers below, smoke above */
    background-image:
        radial-gradient(ellipse 100% 50% at 50% 100%,
            rgba(255, 77, 26, 0.18) 0%,
            rgba(179, 42, 10, 0.08) 25%,
            transparent 60%),
        radial-gradient(ellipse 70% 40% at 20% 90%,
            rgba(255, 170, 51, 0.08) 0%,
            transparent 50%),
        radial-gradient(ellipse 60% 30% at 80% 10%,
            rgba(45, 25, 15, 0.4) 0%,
            transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Ash grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='5'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.6 0 0 0 0 0.2 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* Drifting embers — three layers of slow-rising particles */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle at 12% 110%, rgba(255, 122, 61, 0.5) 0px, transparent 1.5px),
        radial-gradient(circle at 32% 110%, rgba(255, 170, 51, 0.4) 0px, transparent 1.2px),
        radial-gradient(circle at 58% 110%, rgba(255, 77, 26, 0.5) 0px, transparent 1.8px),
        radial-gradient(circle at 78% 110%, rgba(255, 122, 61, 0.4) 0px, transparent 1.5px),
        radial-gradient(circle at 88% 110%, rgba(255, 170, 51, 0.5) 0px, transparent 1.2px);
    background-size: 100% 100vh;
    animation: embers 22s linear infinite;
    opacity: 0.7;
    mix-blend-mode: screen;
}
@keyframes embers {
    0%   { background-position: 0 0,   0 0,   0 0,   0 0,   0 0; }
    100% { background-position: 0 -120vh, 0 -135vh, 0 -110vh, 0 -130vh, 0 -125vh; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ember-glow); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea { font: inherit; }
::selection { background: var(--ember); color: var(--ash-void); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

/* Custom scrollbar — molten */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ash-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
    border: 2px solid var(--ash-deep);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ember-bright) 0%, var(--ember) 100%);
    box-shadow: 0 0 8px rgba(255, 77, 26, 0.5);
}

/* ===================================================================
 * SLIM STORE EYEBROW
 * =================================================================== */
.store-eyebrow {
    padding: 100px 0 18px;
    text-align: center;
    position: relative;
}

.eyebrow-tag {
    display: inline-block;
    padding: 7px 22px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-glow);
    background: linear-gradient(180deg,
        rgba(255, 77, 26, 0.08) 0%,
        rgba(255, 77, 26, 0.02) 100%);
    border: 1px solid rgba(255, 77, 26, 0.25);
    border-radius: 999px;
    margin-bottom: 14px;
}

.eyebrow-sub {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.eyebrow-sub code {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 12px;
    color: var(--brimstone-hot);
    background: rgba(255, 170, 51, 0.08);
    padding: 2px 8px;
    border: 1px solid rgba(255, 170, 51, 0.25);
    border-radius: var(--radius);
    margin: 0 3px;
}

/* ===================================================================
 * HERO CAROUSEL
 * =================================================================== */
.hero-wrap {
    padding: 18px 0 36px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 100% at 50% 100%,
            rgba(255, 77, 26, 0.18) 0%,
            transparent 60%),
        linear-gradient(180deg,
            var(--ash-light) 0%,
            var(--ash) 100%);
    border: 1px solid var(--iron);
    border-radius: var(--radius);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 170, 51, 0.05);
}

/* Glowing top edge */
.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember-deep) 25%,
        var(--ember) 50%,
        var(--ember-deep) 75%,
        transparent 100%);
    opacity: 0.6;
    z-index: 5;
}

.hero-track {
    display: flex;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: center;
    gap: 60px;
    padding: 60px 80px 70px;
    min-height: 440px;
}

/* Hero slide art — bigger, more dramatic forge halo */
.hero-slide-art {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.hero-slide-halo {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 77, 26, 0.55) 0%,
            rgba(255, 170, 51, 0.25) 30%,
            transparent 65%);
    filter: blur(2px);
    z-index: -1;
    animation: forge-pulse 4s ease-in-out infinite;
}
@keyframes forge-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.04); }
}
.hero-slide-ring {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 26, 0.2);
    z-index: -1;
}
.hero-slide-ring::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 170, 51, 0.08);
}
.hero-slide-art img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 24px rgba(255, 170, 51, 0.3));
}

/* Hero slide content */
.hero-slide-content {
    padding-right: 20px;
}

.hero-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ash-void);
    background: linear-gradient(180deg, var(--brimstone-hot) 0%, var(--ember) 100%);
    border-radius: var(--radius);
    box-shadow: 0 0 14px rgba(255, 170, 51, 0.4);
    margin-bottom: 18px;
}
.hero-flame {
    font-size: 13px;
    line-height: 1;
}

.hero-slide-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 50%,
        var(--ember-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 170, 51, 0.35));
}

.hero-slide-summary {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 460px;
}

.hero-slide-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 42px;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 170, 51, 0.4));
    line-height: 1;
}

.hero-slide-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-slide-cta .btn {
    height: 48px;
    padding: 0 28px;
    font-size: 12px;
}

.hero-slide-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--ember-bright);
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Carousel arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 6, 4, 0.7);
    border: 1px solid var(--iron);
    color: var(--text-bright);
    font-size: 22px;
    line-height: 1;
    z-index: 4;
    transition: all .25s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: rgba(255, 77, 26, 0.18);
    border-color: var(--ember-deep);
    color: var(--ember-bright);
    box-shadow: 0 0 20px rgba(255, 77, 26, 0.3);
}
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

/* Carousel dots */
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    transition: all .3s;
}
.hero-dot:hover { background: rgba(255, 170, 51, 0.4); }
.hero-dot.is-active {
    background: linear-gradient(90deg, var(--brimstone) 0%, var(--ember) 100%);
    box-shadow: 0 0 10px rgba(255, 170, 51, 0.5);
    width: 44px;
}

/* ===================================================================
 * TRUST STRIP
 * =================================================================== */
.trust-strip-wrap {
    padding: 0 0 36px;
}
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 22px 28px;
    background: linear-gradient(180deg,
        rgba(255, 77, 26, 0.04) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
}
.trust-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.trust-item strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}
.trust-item code {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px;
    color: var(--brimstone-hot);
    background: rgba(255, 170, 51, 0.08);
    padding: 1px 6px;
    border-radius: 2px;
}
.trust-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--iron-hot) 50%,
        transparent 100%);
}

/* ===================================================================
 * MAIN GRID
 * =================================================================== */
.store-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    padding: 60px 0 100px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ===================================================================
 * CATEGORY BAR — like seared brands
 * =================================================================== */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    margin-bottom: 32px;
    background: linear-gradient(180deg,
        var(--ash) 0%,
        var(--ash-deep) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    position: relative;
}
.category-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 170, 51, 0.06);
}

.cat {
    padding: 11px 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all .25s;
    position: relative;
}
.cat:hover {
    color: var(--brimstone-hot);
    background: rgba(255, 170, 51, 0.04);
}
.cat.is-active {
    color: var(--ash-void);
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--brimstone) 60%,
        var(--ember) 100%);
    box-shadow:
        0 0 16px rgba(255, 170, 51, 0.3),
        inset 0 1px 0 rgba(255, 233, 179, 0.4);
}
.cat.is-active:hover { color: var(--ash-void); }

/* ===================================================================
 * FLASH MESSAGES
 * =================================================================== */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid;
    background: var(--ash);
}
.flash-error {
    color: #ffb4b4;
    border-color: var(--blood-bright);
    background: linear-gradient(90deg, rgba(214, 58, 26, 0.12), transparent);
}
.flash-success {
    color: #c4e6b4;
    border-color: var(--success);
    background: linear-gradient(90deg, rgba(143, 201, 127, 0.1), transparent);
}

/* ===================================================================
 * EMPTY STATE
 * =================================================================== */
.empty-state {
    padding: 100px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--ash);
    border: 1px dashed var(--iron-deep);
    border-radius: var(--radius);
    font-style: italic;
}

/* ===================================================================
 * PRODUCT GRID
 * =================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

/* ===================================================================
 * PRODUCT CARD — "forged tablet"
 * =================================================================== */
.product {
    position: relative;
    padding: 28px 20px 22px;
    background:
        linear-gradient(180deg,
            rgba(255, 77, 26, 0.04) 0%,
            transparent 30%),
        linear-gradient(180deg,
            var(--ash-light) 0%,
            var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    transition: all .35s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
    isolation: isolate;
}

/* Thin glowing top edge */
.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--iron-hot) 30%,
        rgba(255, 122, 61, 0.4) 50%,
        var(--iron-hot) 70%,
        transparent 100%);
    opacity: 0.5;
    transition: opacity .35s;
}

/* Bottom ember glow on hover */
.product::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%,
        rgba(255, 77, 26, 0.5) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
    z-index: -1;
}

.product:hover {
    transform: translateY(-3px);
    border-color: var(--ember-deep);
    box-shadow:
        0 0 0 1px rgba(255, 77, 26, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 77, 26, 0.18);
}
.product:hover::before {
    opacity: 1;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember) 50%,
        transparent 100%);
}
.product:hover::after { opacity: 1; }

/* "Featured" — branded/seared on */
.featured-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 5px 11px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ash-void);
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember) 100%);
    border-radius: var(--radius);
    box-shadow:
        0 0 12px rgba(255, 170, 51, 0.4),
        inset 0 1px 0 rgba(255, 233, 179, 0.5);
}

/* Bundle badge — top-right, distinct from featured */
.bundle-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brimstone-hot);
    background: rgba(255, 170, 51, 0.06);
    border: 1px solid rgba(255, 170, 51, 0.35);
    border-radius: var(--radius);
}

/* Bundle "Includes" list inside modal */
.bundle-list {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(255, 77, 26, 0.04);
    border: 1px solid rgba(255, 77, 26, 0.2);
    border-radius: var(--radius);
    text-align: left;
}
.bundle-list-head {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ember-glow);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 77, 26, 0.15);
}
.bundle-list ul {
    list-style: none;
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.bundle-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    color: var(--text-body);
    padding: 4px 0;
}
.bundle-list li::before {
    content: '✦';
    color: var(--brimstone);
    font-size: 10px;
    flex-shrink: 0;
}
.bundle-qty {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brimstone-hot);
    font-size: 13px;
    min-width: 36px;
}
.bundle-name {
    color: var(--text-bright);
    font-weight: 500;
}

/* The forge-pit image area */
.product-art {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 14px auto 22px;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
}

/* Inner glow — looking down into hot coals */
.product-art-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 77, 26, 0.5) 0%,
            rgba(255, 170, 51, 0.2) 30%,
            transparent 70%);
    transition: all .4s ease;
    z-index: -1;
}
.product-art::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 26, 0.15);
    z-index: -1;
}
.product:hover .product-art-halo {
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 77, 26, 0.75) 0%,
            rgba(255, 170, 51, 0.3) 35%,
            transparent 70%);
    transform: scale(1.05);
}
.product-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
}
.product:hover .product-art img {
    transform: scale(1.08) translateY(-2px);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-bright);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 14px rgba(255, 170, 51, 0.15);
}

.product-summary {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
    min-height: 40px;
    margin-bottom: 18px;
}

.product-foot {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--iron-deep);
    position: relative;
}
.product-foot::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember) 50%,
        transparent 100%);
    opacity: 0.6;
}

/* Price — glowing brimstone */
.product-price { text-align: center; }
.price-amount {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 170, 51, 0.35));
    display: inline-block;
}

/* Quantity stepper */
.qty-stepper {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    background: var(--ash-input);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    height: 34px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 600;
    transition: all .15s;
}
.qty-btn:hover {
    color: var(--ember-bright);
    background: rgba(255, 77, 26, 0.08);
}
.qty-input {
    height: 34px;
    border: 0;
    border-left: 1px solid var(--iron-deep);
    border-right: 1px solid var(--iron-deep);
    background: transparent;
    color: var(--text-bright);
    text-align: center;
    font-weight: 600;
    width: 100%;
    outline: none;
    font-size: 14px;
}

/* Add to cart — molten metal */
.btn-add {
    height: 42px;
    width: 100%;
    padding: 0 18px;
    font-family: var(--font-body);
    background: linear-gradient(180deg,
        var(--brimstone) 0%,
        var(--ember) 60%,
        var(--ember-deep) 100%);
    color: var(--ash-void);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11.5px;
    border: 1px solid var(--ember-deep);
    border-radius: var(--radius);
    transition: all .25s;
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 4px 14px rgba(255, 77, 26, 0.25),
        0 0 0 1px rgba(255, 122, 61, 0.0);
    position: relative;
    overflow: hidden;
}
.btn-add::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 233, 179, 0.3) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform .6s;
}
.btn-add:hover:not(:disabled) {
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember-bright) 60%,
        var(--ember) 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.55),
        0 6px 20px rgba(255, 77, 26, 0.45),
        0 0 28px rgba(255, 170, 51, 0.3);
}
.btn-add:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-add:disabled {
    background: var(--ash-elevated);
    color: var(--text-faded);
    border-color: var(--iron-deep);
    cursor: not-allowed;
    box-shadow: none;
}
.btn-add.is-success {
    background: linear-gradient(180deg, #b8e6b8 0%, var(--success) 100%);
    border-color: #6aa66a;
}

.btn-info {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    color: var(--brimstone);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 0 2px;
    transition: color .2s, text-shadow .2s;
}
.btn-info-star {
    color: var(--brimstone-hot);
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.55);
    transition: transform .2s, text-shadow .2s;
}
.btn-info:hover {
    color: var(--brimstone-hot);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}
.btn-info:hover .btn-info-star {
    transform: scale(1.18) rotate(8deg);
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.85);
}

/* ===================================================================
 * SIDEBAR
 * =================================================================== */
.store-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 28px;
}

.side-card {
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember-deep) 30%,
        var(--ember) 50%,
        var(--ember-deep) 70%,
        transparent 100%);
    opacity: 0.55;
}

.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-bright);
    border-bottom: 1px solid var(--iron-deep);
    background: linear-gradient(180deg, rgba(255, 77, 26, 0.04) 0%, transparent 100%);
}
.side-card-body { padding: 22px 20px; }
.side-card-foot {
    display: block;
    padding: 11px 18px;
    text-align: center;
    border-top: 1px solid var(--iron-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faded);
    transition: all .2s;
}
.side-card-foot:hover {
    color: var(--ember-bright);
    background: rgba(255, 77, 26, 0.05);
}

.muted-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-faded);
    margin-bottom: 8px;
    text-align: center;
}

/* Username display */
.username-display { text-align: center; }
.username-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.06em;
    color: var(--brimstone-hot);
    text-shadow: 0 0 16px rgba(255, 170, 51, 0.4);
    margin-top: 4px;
}

/* Discount display */
.discount-active { text-align: center; }
.discount-percent {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 6px 0;
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 77, 26, 0.45));
}
.discount-code {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Inputs */
.input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    background: var(--ash-input);
    color: var(--text-bright);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    transition: all .25s;
    font-size: 14px;
}
.input:focus {
    outline: none;
    border-color: var(--ember-deep);
    box-shadow:
        0 0 0 3px rgba(255, 77, 26, 0.1),
        inset 0 0 12px rgba(255, 77, 26, 0.04);
}
.input::placeholder { color: var(--text-faded); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all .25s;
    border: 1px solid transparent;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(180deg,
        var(--brimstone) 0%,
        var(--ember) 60%,
        var(--ember-deep) 100%);
    color: var(--ash-void);
    border-color: var(--ember-deep);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 4px 14px rgba(255, 77, 26, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember-bright) 60%,
        var(--ember) 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.55),
        0 6px 22px rgba(255, 77, 26, 0.5),
        0 0 28px rgba(255, 170, 51, 0.3);
}

.btn-ghost {
    background: var(--ash-input);
    color: var(--text-body);
    border-color: var(--iron);
}
.btn-ghost:hover {
    border-color: var(--ember-deep);
    color: var(--ember-bright);
    background: rgba(255, 77, 26, 0.06);
    box-shadow: 0 0 16px rgba(255, 77, 26, 0.15);
}

.code-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* ===================================================================
 * CART
 * =================================================================== */
.cart-count {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-faded);
    background: var(--ash-input);
    border: 1px solid var(--iron-deep);
    padding: 3px 11px;
    border-radius: 999px;
    min-width: 32px;
    text-align: center;
    transition: all .25s;
    letter-spacing: 0.05em;
}
.cart-count.has-items {
    background: linear-gradient(180deg,
        var(--brimstone) 0%,
        var(--ember) 100%);
    color: var(--ash-void);
    border-color: var(--ember-deep);
    box-shadow: 0 0 12px rgba(255, 77, 26, 0.4);
}

.cart-empty {
    padding: 28px 0;
    text-align: center;
    color: var(--text-faded);
    font-size: 13px;
    font-style: italic;
}

.cart-items {
    list-style: none;
    padding: 4px 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--iron-deep);
    transition: all .2s;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item:hover { background: rgba(255, 77, 26, 0.04); }
.cart-item.is-removing { opacity: 0.3; transform: translateX(10px); }

.cart-item-art {
    width: 46px;
    height: 46px;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 77, 26, 0.2) 0%,
            transparent 70%),
        var(--ash-input);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 4px;
}
.cart-item-art img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.cart-item-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.cart-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.cart-item-meta .dot { color: var(--iron-hot); margin: 0 6px; }
.cart-item-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--text-faded);
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.cart-item-remove:hover {
    color: var(--blood-bright);
    background: rgba(214, 58, 26, 0.12);
}

.cart-totals {
    padding: 16px 20px;
    border-top: 1px solid var(--iron-deep);
    background: rgba(0, 0, 0, 0.25);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    letter-spacing: 0.02em;
}
.cart-total-row.savings { color: var(--success); }
.cart-total-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--iron-hot);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cart-total-row.total span:last-child {
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 170, 51, 0.4));
}

.cart-checkout { padding: 16px 20px 20px; }

/* ===================================================================
 * MODAL
 * =================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%,
            rgba(255, 77, 26, 0.18) 0%,
            transparent 60%),
        rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}
.modal-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash-deep) 100%);
    border: 1px solid var(--iron);
    border-radius: var(--radius);
    padding: 40px 36px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-deep), var(--glow-ember);
    animation: modalIn .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember) 50%,
        transparent 100%);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    transition: all .2s;
}
.modal-close:hover {
    color: var(--ember-bright);
    background: rgba(255, 77, 26, 0.1);
}
.modal-art {
    width: 140px;
    height: 140px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.modal-art::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 60%,
        rgba(255, 77, 26, 0.45) 0%,
        rgba(255, 170, 51, 0.15) 35%,
        transparent 70%);
    z-index: -1;
}
.modal-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}
.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 8px;
    text-shadow: 0 0 18px rgba(255, 170, 51, 0.2);
}
.modal-limit {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.modal-desc {
    text-align: left;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.65;
    background: var(--ash-deep);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
}
.modal-desc p { margin-bottom: 10px; }
.modal-desc p:last-child { margin-bottom: 0; }
.modal-desc ul { padding-left: 20px; margin: 8px 0; }
.modal-desc li { margin-bottom: 4px; }
.modal-desc strong { color: var(--brimstone-hot); }
.modal-desc em { color: var(--ember-bright); font-style: normal; font-weight: 600; }
.modal-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 170, 51, 0.4));
}

/* ===================================================================
 * FOOTER
 * =================================================================== */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--iron-deep);
    background: var(--ash-deep);
    margin-top: 60px;
    position: relative;
    z-index: 2;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember-deep) 30%,
        var(--ember) 50%,
        var(--ember-deep) 70%,
        transparent 100%);
    opacity: 0.4;
}
.site-footer p {
    text-align: center;
    color: var(--text-faded);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ===================================================================
 * AUTH PAGES (login, register)
 * =================================================================== */
.auth-wrap {
    padding: 80px 0 100px;
    min-height: 70vh;
    display: grid;
    place-items: center;
}

.auth-card {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 48px 44px;
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash-deep) 100%);
    border: 1px solid var(--iron);
    border-radius: var(--radius);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 170, 51, 0.06);
    overflow: hidden;
    isolation: isolate;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 32px; right: 32px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember) 50%,
        transparent 100%);
}
.auth-glow {
    position: absolute;
    bottom: -120px;
    left: 50%;
    width: 80%;
    height: 200px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 70% 100% at 50% 0%,
        rgba(255, 77, 26, 0.45) 0%,
        transparent 65%);
    z-index: -1;
    pointer-events: none;
    filter: blur(8px);
}

.auth-eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-glow);
    margin-bottom: 12px;
}

.auth-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 44px;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 170, 51, 0.35));
}

.auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.field {
    display: block;
    margin-bottom: 18px;
}
.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.field-optional {
    color: var(--text-faded);
    font-weight: 500;
    letter-spacing: 0.16em;
}
.field-hint {
    display: block;
    font-size: 11px;
    color: var(--text-faded);
    margin-top: 6px;
    letter-spacing: 0.04em;
}
.input-lg {
    height: 50px;
    padding: 0 18px;
    font-size: 15px;
}

.btn-lg {
    height: 52px;
    font-size: 13px;
    letter-spacing: 0.24em;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-faded);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--iron-deep), transparent);
}

/* ===================================================================
 * PROFILE PAGE
 * =================================================================== */
.profile-wrap {
    padding: 36px 0 80px;
}

.profile-hero {
    position: relative;
    padding: 36px 36px 32px;
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash) 100%);
    border: 1px solid var(--iron);
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 28px;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 32px; right: 32px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ember-deep) 25%,
        var(--ember) 50%,
        var(--ember-deep) 75%,
        transparent 100%);
    opacity: 0.6;
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 100% at 25% 100%,
            rgba(255, 77, 26, 0.18) 0%,
            transparent 60%);
    z-index: -1;
}

.profile-hero-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 44px;
    color: var(--ash-void);
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember) 60%,
        var(--ember-deep) 100%);
    border: 1px solid var(--ember-deep);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 0 rgba(255, 233, 179, 0.5),
        0 0 30px rgba(255, 77, 26, 0.4);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.profile-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-glow);
    margin-bottom: 6px;
}

.profile-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(255, 170, 51, 0.25);
}

.profile-meta {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

/* ===================================================================
 * STAT TILES
 * =================================================================== */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-tile {
    padding: 22px 24px;
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.stat-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--ember), transparent);
    opacity: 0.4;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faded);
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone) 60%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 170, 51, 0.3));
    margin-bottom: 6px;
    line-height: 1;
}

.stat-foot {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ===================================================================
 * BONUS TRACKS
 * =================================================================== */
.bonus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.bonus-panel {
    background: linear-gradient(180deg,
        var(--ash-light) 0%,
        var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    position: relative;
    overflow: hidden;
}
.bonus-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--ember), transparent);
    opacity: 0.5;
}

.bonus-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
}

.bonus-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-glow);
    margin-bottom: 6px;
}

.bonus-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
    text-shadow: 0 0 14px rgba(255, 170, 51, 0.18);
}

.bonus-reset {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding-top: 22px;
}
.bonus-reset strong {
    color: var(--brimstone-hot);
    font-weight: 700;
}

/* Progress bar */
.bonus-progress { margin-bottom: 22px; }

.bonus-progress-track {
    position: relative;
    height: 8px;
    background: var(--ash-input);
    border: 1px solid var(--iron-deep);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.bonus-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--ember-deep) 0%,
        var(--ember) 50%,
        var(--brimstone) 100%);
    box-shadow: 0 0 12px rgba(255, 77, 26, 0.6);
    border-radius: 4px;
    transition: width .8s cubic-bezier(.2, .8, .2, 1);
    position: relative;
}
.bonus-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; right: -2px;
    width: 6px;
    height: 100%;
    background: var(--brimstone-pale);
    box-shadow: 0 0 8px var(--brimstone);
}

.bonus-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.bonus-progress-label strong { color: var(--text-bright); font-weight: 600; }
.bonus-progress-next { color: var(--brimstone-hot); }
.bonus-maxed {
    color: var(--ember-bright) !important;
    font-weight: 600;
}

/* Tier list */
.tier-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.tier {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--ash-deep);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.tier-art {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 77, 26, 0.18) 0%,
            transparent 70%),
        var(--ash-input);
    border: 1px solid var(--iron-deep);
    border-radius: 50%;
    overflow: hidden;
    padding: 6px;
}
.tier-art img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tier-rank {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faded);
    margin-bottom: 4px;
}
.tier-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 2px;
}
.tier-summary {
    font-size: 12px;
    color: var(--text-muted);
}

.tier-action {
    min-width: 100px;
    text-align: right;
}

.tier-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.3;
}
.tier-status-locked {
    color: var(--text-faded);
    background: var(--ash);
    border: 1px solid var(--iron-deep);
}
.tier-status-pending {
    color: var(--brimstone-hot);
    background: rgba(255, 170, 51, 0.06);
    border: 1px solid rgba(255, 170, 51, 0.25);
    text-align: center;
}
.tier-status-pending code {
    background: transparent;
    color: var(--brimstone-hot);
    font-family: 'JetBrains Mono', monospace;
    border: 0;
    padding: 0;
    font-size: 10px;
}
.tier-status-done {
    color: var(--success);
    background: rgba(143, 201, 127, 0.08);
    border: 1px solid rgba(143, 201, 127, 0.3);
}
.tier-status-done .tick {
    margin-right: 4px;
    font-size: 11px;
}

/* Claim button — extra glow */
.btn-claim {
    height: 38px;
    padding: 0 20px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ash-void);
    background: linear-gradient(180deg,
        var(--brimstone-hot) 0%,
        var(--ember) 60%,
        var(--ember-deep) 100%);
    border: 1px solid var(--ember-deep);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.5),
        0 0 16px rgba(255, 77, 26, 0.4);
    transition: all .2s;
    cursor: pointer;
    animation: claim-pulse 2.5s ease-in-out infinite;
}
@keyframes claim-pulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 233, 179, 0.5), 0 0 16px rgba(255, 77, 26, 0.4); }
    50%      { box-shadow: inset 0 1px 0 rgba(255, 233, 179, 0.6), 0 0 28px rgba(255, 77, 26, 0.7); }
}
.btn-claim:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg,
        var(--brimstone-pale) 0%,
        var(--brimstone-hot) 60%,
        var(--ember) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 179, 0.6),
        0 0 32px rgba(255, 170, 51, 0.6);
    animation: none;
}

/* Tier states */
/* ===================================================================
 * AVAILABLE TIER — intensity scales with tier number
 *
 * Tier 1: warm brimstone halo (single layer)
 * Tier 2: ember double halo (close + medium)
 * Tier 3: deep molten triple halo + faster pulse
 * Tier 4: white-hot quad halo + ring + brightest art
 * =================================================================== */

.tier--available {
    position: relative;
    border-color: rgba(255, 170, 51, 0.45);
}
.tier--available::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 100% at 0% 50%,
        rgba(255, 170, 51, 0.08) 0%,
        transparent 60%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

/* Make sure content always sits above pseudo overlays */
.tier > .tier-art,
.tier > .tier-body,
.tier > .tier-action {
    position: relative;
    z-index: 1;
}

/* TIER 1 — gentle brimstone halo */
.tier--available[data-tier="1"] {
    border-color: rgba(255, 170, 51, 0.5);
    box-shadow:
        0 0 0 1px rgba(255, 170, 51, 0.3),
        0 0 24px rgba(255, 170, 51, 0.45);
    animation: tier-pulse-1 3.2s ease-in-out infinite;
}
.tier--available[data-tier="1"] .tier-rank { color: var(--brimstone-hot); }
.tier--available[data-tier="1"] .tier-art {
    border-color: rgba(255, 170, 51, 0.55);
    box-shadow: 0 0 18px rgba(255, 170, 51, 0.4);
}
@keyframes tier-pulse-1 {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 170, 51, 0.25),
            0 0 16px rgba(255, 170, 51, 0.3);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 170, 51, 0.4),
            0 0 28px rgba(255, 170, 51, 0.55);
    }
}

/* TIER 2 — warmer double-halo ember */
.tier--available[data-tier="2"] {
    border-color: rgba(255, 122, 61, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 122, 61, 0.4),
        0 0 24px rgba(255, 122, 61, 0.5),
        0 0 48px rgba(255, 170, 51, 0.25);
    animation: tier-pulse-2 2.6s ease-in-out infinite;
}
.tier--available[data-tier="2"] .tier-rank { color: rgb(255, 150, 80); }
.tier--available[data-tier="2"] .tier-art {
    border-color: rgba(255, 150, 80, 0.6);
    box-shadow: 0 0 22px rgba(255, 122, 61, 0.5);
}
@keyframes tier-pulse-2 {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 122, 61, 0.35),
            0 0 20px rgba(255, 122, 61, 0.4),
            0 0 40px rgba(255, 170, 51, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 122, 61, 0.55),
            0 0 36px rgba(255, 122, 61, 0.6),
            0 0 70px rgba(255, 170, 51, 0.3);
    }
}

/* TIER 3 — molten triple-halo */
.tier--available[data-tier="3"] {
    border-color: rgba(255, 77, 26, 0.6);
    box-shadow:
        0 0 0 1px rgba(255, 77, 26, 0.45),
        0 0 28px rgba(255, 77, 26, 0.55),
        0 0 60px rgba(255, 122, 61, 0.35),
        0 0 100px rgba(255, 170, 51, 0.18);
    animation: tier-pulse-3 2s ease-in-out infinite;
}
.tier--available[data-tier="3"] .tier-rank {
    color: rgb(255, 122, 61);
    text-shadow: 0 0 8px rgba(255, 77, 26, 0.5);
}
.tier--available[data-tier="3"] .tier-art {
    border-color: rgba(255, 122, 61, 0.7);
    box-shadow:
        0 0 28px rgba(255, 77, 26, 0.55),
        0 0 56px rgba(255, 122, 61, 0.3);
}
@keyframes tier-pulse-3 {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 77, 26, 0.4),
            0 0 22px rgba(255, 77, 26, 0.45),
            0 0 50px rgba(255, 122, 61, 0.28),
            0 0 80px rgba(255, 170, 51, 0.14);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 77, 26, 0.6),
            0 0 44px rgba(255, 77, 26, 0.7),
            0 0 90px rgba(255, 122, 61, 0.45),
            0 0 130px rgba(255, 170, 51, 0.22);
    }
}

/* TIER 4 — white-hot quad-halo + glowing ring inside */
.tier--available[data-tier="4"] {
    border: 2px solid rgba(255, 200, 100, 0.7);
    box-shadow:
        0 0 0 1px rgba(255, 233, 179, 0.4),
        0 0 32px rgba(255, 200, 100, 0.6),
        0 0 70px rgba(255, 77, 26, 0.5),
        0 0 120px rgba(255, 170, 51, 0.35),
        0 0 200px rgba(255, 77, 26, 0.18);
    animation: tier-pulse-4 1.6s ease-in-out infinite;
}
.tier--available[data-tier="4"] .tier-rank {
    color: rgb(255, 233, 179);
    text-shadow:
        0 0 10px rgba(255, 200, 100, 0.7),
        0 0 20px rgba(255, 170, 51, 0.4);
}
.tier--available[data-tier="4"] .tier-name {
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(255, 200, 100, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.6);
}
.tier--available[data-tier="4"] .tier-summary {
    color: var(--text-body);
}
.tier--available[data-tier="4"] .tier-art {
    border-color: rgba(255, 233, 179, 0.8);
    box-shadow:
        0 0 24px rgba(255, 233, 179, 0.6),
        0 0 60px rgba(255, 77, 26, 0.5),
        inset 0 0 16px rgba(255, 233, 179, 0.25);
}
@keyframes tier-pulse-4 {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 233, 179, 0.3),
            0 0 24px rgba(255, 200, 100, 0.5),
            0 0 60px rgba(255, 77, 26, 0.4),
            0 0 100px rgba(255, 170, 51, 0.28),
            0 0 160px rgba(255, 77, 26, 0.14);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 233, 179, 0.55),
            0 0 50px rgba(255, 200, 100, 0.85),
            0 0 100px rgba(255, 77, 26, 0.6),
            0 0 160px rgba(255, 170, 51, 0.45),
            0 0 240px rgba(255, 77, 26, 0.22);
    }
}

/* Claim button intensity per tier */
.tier--available[data-tier="3"] .btn-claim {
    box-shadow: 0 0 18px rgba(255, 122, 61, 0.5);
}
.tier--available[data-tier="4"] .btn-claim {
    background: linear-gradient(180deg,
        #ffe9b3 0%,
        #ffaa33 50%,
        #ff7a3d 100%) !important;
    color: #1a0a02 !important;
    text-shadow: none !important;
    font-weight: 800;
    border: 1px solid #ffd166 !important;
    /* Replace base claim-pulse with stronger tier-4 version */
    animation: claim-pulse-4 1.8s ease-in-out infinite !important;
}
@keyframes claim-pulse-4 {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 22px rgba(255, 233, 179, 0.55),
            0 0 44px rgba(255, 170, 51, 0.35);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            0 0 36px rgba(255, 233, 179, 0.85),
            0 0 70px rgba(255, 170, 51, 0.55);
    }
}
.btn-claim.is-loading { opacity: 0.65; cursor: wait; }

/* Inline error under a claim form */
.claim-error {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius);
    color: #ff8a8a;
    font-size: 11px;
    text-align: center;
}

.tier--claimed,
.tier--delivered {
    opacity: 0.78;
}
.tier--claimed .tier-art,
.tier--delivered .tier-art {
    border-color: rgba(143, 201, 127, 0.3);
}

.tier--locked {
    opacity: 0.55;
}
.tier--locked .tier-art {
    filter: grayscale(0.5);
}

/* ===================================================================
 * SECTION HEAD (shared)
 * =================================================================== */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

/* ===================================================================
 * ORDERS
 * =================================================================== */
.orders-section {
    background: var(--ash-light);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    padding: 26px 28px 24px;
    position: relative;
}
.orders-section::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--ember), transparent);
    opacity: 0.4;
}

.orders-list {
    display: grid;
    gap: 4px;
}

.order-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    background: var(--ash-deep);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    transition: border-color .2s;
}
.order-row:hover { border-color: var(--iron-hot); }

.order-date {
    text-align: center;
    padding-right: 18px;
    border-right: 1px solid var(--iron-deep);
}
.order-day {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--brimstone-hot);
    text-transform: uppercase;
}
.order-year {
    font-size: 11px;
    color: var(--text-faded);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.order-items {
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 520px;
}
.order-meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.order-meta .dot { margin: 0 6px; color: var(--iron-hot); }

.order-total {
    text-align: right;
}
.order-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--brimstone-hot);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.order-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.order-status.is-good { color: var(--success); }
.order-status.is-bad { color: var(--blood-bright); }

/* ===================================================================
 * CHECKOUT
 * =================================================================== */
.checkout-wrap {
    padding: 36px 0 80px;
}

.checkout-head {
    margin-bottom: 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

.checkout-summary {
    background: linear-gradient(180deg, var(--ash-light) 0%, var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    position: sticky;
    top: 28px;
}
.checkout-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 18px; right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
    opacity: 0.5;
}

/* Terms */
.terms-card {
    background: linear-gradient(180deg, var(--ash-light) 0%, var(--ash) 100%);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    padding: 32px 36px 28px;
    position: relative;
}
.terms-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
    opacity: 0.5;
}

.terms-h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--iron-deep);
}

.terms-card h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brimstone-hot);
    margin-top: 18px;
    margin-bottom: 8px;
}
.terms-card h3:first-of-type { margin-top: 0; }

.terms-card p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
}
.terms-card p strong { color: var(--brimstone-hot); }

.terms-actions {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--iron-deep);
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--ash-input);
    border: 1px solid var(--iron-deep);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s;
}
.terms-check:hover { border-color: var(--iron-hot); }
.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ember);
    cursor: pointer;
    flex-shrink: 0;
}
.terms-check span {
    font-size: 13px;
    color: var(--text-body);
    letter-spacing: 0.02em;
}

.terms-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.terms-buttons .btn { min-width: 140px; }

/* Redirecting page */
.checkout-redirect {
    text-align: center;
    padding: 100px 0;
}
.checkout-redirect h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 28px 0 8px;
    text-shadow: 0 0 18px rgba(255, 170, 51, 0.3);
}
.checkout-redirect p {
    color: var(--text-muted);
    font-size: 14px;
}
.redirect-orb {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        var(--brimstone-hot) 0%,
        var(--ember) 40%,
        var(--ember-deep) 80%,
        transparent 100%);
    box-shadow:
        0 0 32px rgba(255, 77, 26, 0.6),
        0 0 64px rgba(255, 170, 51, 0.4);
    animation: orb-pulse 1.4s ease-in-out infinite;
}
@keyframes orb-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.1); opacity: 0.85; }
}

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .terms-card { padding: 24px 22px; }
}

/* ===================================================================
 * RESPONSIVE — auth + profile
 * =================================================================== */
@media (max-width: 900px) {
    .profile-hero-content {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    .profile-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .stat-tiles { grid-template-columns: repeat(2, 1fr); }
    .bonus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .auth-card { padding: 36px 24px; }
    .profile-hero { padding: 24px 20px; }
    .profile-hero-content { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar { margin: 0 auto; }
    .profile-actions { justify-content: center; }
    .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-tile { padding: 16px; }
    .stat-value { font-size: 24px; }
    .order-row { grid-template-columns: 1fr; gap: 8px; }
    .order-date { display: flex; gap: 8px; padding-right: 0; border-right: 0; }
    .order-total { text-align: left; }
    .tier { grid-template-columns: 48px 1fr; }
    .tier-action { grid-column: 1 / -1; text-align: left; }
}

/* ===================================================================
 * RESPONSIVE — main layout
 * =================================================================== */
@media (max-width: 1100px) {
    .hero-slide {
        grid-template-columns: 280px 1fr;
        gap: 40px;
        padding: 50px 60px 60px;
    }
    .hero-slide-art { width: 240px; height: 240px; }
}

@media (max-width: 980px) {
    .store-main {
        grid-template-columns: 1fr;
    }
    .store-sidebar { position: static; }

    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 40px 32px 60px;
        min-height: auto;
    }
    .hero-slide-art { width: 200px; height: 200px; }
    .hero-slide-content { padding-right: 0; }
    .hero-slide-summary { margin-left: auto; margin-right: auto; }
    .hero-slide-cta { justify-content: center; }
    .hero-arrow { width: 38px; height: 38px; }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }

    .trust-strip { flex-direction: column; gap: 14px; }
    .trust-divider { display: none; }
}

@media (max-width: 580px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product { padding: 22px 14px 18px; }
    .product-art { width: 100px; height: 100px; }
    .container { padding: 0 18px; }
    .hero-slide { padding: 32px 20px 56px; }
    .hero-slide-name { font-size: 32px; }
    .hero-slide-price { font-size: 34px; }
    .hero-slide-cta .btn { padding: 0 18px; font-size: 11px; }
    .store-eyebrow { padding: 24px 0 12px; }
}

/* ===================================================================
 * CELEBRATION MODAL — the "you just claimed something epic" moment
 * =================================================================== */
.celebration-modal {
    /* Override the default .modal grid centering to allow our own */
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity .28s ease;
}
.celebration-modal[hidden] { display: none !important; }
.celebration-modal:not([hidden]) { display: grid !important; }
.celebration-modal.is-open    { opacity: 1; }

.celebration-modal .modal-overlay {
    background:
        radial-gradient(ellipse 80% 80% at 50% 60%,
            rgba(255, 77, 26, 0.18) 0%,
            transparent 60%),
        rgba(2, 1, 0, 0.86);
    backdrop-filter: blur(6px);
}

.celebration-card {
    position: relative;
    width: min(92vw, 480px);
    max-height: 92vh;
    overflow: hidden auto;
    padding: 36px 40px 32px;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%,
            rgba(255, 200, 100, 0.16) 0%,
            transparent 70%),
        linear-gradient(180deg, var(--ash-light) 0%, var(--ash) 100%);
    border: 1px solid rgba(255, 170, 51, 0.4);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 170, 51, 0.15),
        0 0 60px rgba(255, 77, 26, 0.3),
        0 30px 80px rgba(0, 0, 0, 0.6);
    text-align: center;
    z-index: 2;
    transform: scale(0.94) translateY(8px);
    transition: transform .42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.celebration-modal.is-open .celebration-card {
    transform: scale(1) translateY(0);
}
.celebration-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255, 233, 179, 0.6), transparent);
}

/* Rising particles inside the card */
.celebration-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
.cel-particle {
    position: absolute;
    bottom: -8px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 233, 179, 1) 0%,
        rgba(255, 170, 51, 0.7) 40%,
        transparent 70%);
    filter: blur(0.5px);
    animation: cel-rise linear infinite;
    opacity: 0;
}
@keyframes cel-rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-110vh) translateX(8px); opacity: 0; }
}

/* Radial light rays behind the item */
.celebration-rays {
    position: absolute;
    top: 32%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background:
        conic-gradient(from 0deg,
            rgba(255, 200, 100, 0.0) 0deg,
            rgba(255, 200, 100, 0.18) 30deg,
            rgba(255, 200, 100, 0.0) 60deg,
            rgba(255, 200, 100, 0.18) 90deg,
            rgba(255, 200, 100, 0.0) 120deg,
            rgba(255, 200, 100, 0.18) 150deg,
            rgba(255, 200, 100, 0.0) 180deg,
            rgba(255, 200, 100, 0.18) 210deg,
            rgba(255, 200, 100, 0.0) 240deg,
            rgba(255, 200, 100, 0.18) 270deg,
            rgba(255, 200, 100, 0.0) 300deg,
            rgba(255, 200, 100, 0.18) 330deg,
            rgba(255, 200, 100, 0.0) 360deg);
    pointer-events: none;
    animation: cel-rotate 22s linear infinite;
    opacity: 0.7;
    mask-image: radial-gradient(circle, black 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 0%, black 30%, transparent 70%);
}
@keyframes cel-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Eyebrow above title */
.celebration-eyebrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brimstone-hot);
    margin-bottom: 8px;
}
.celebration-spark {
    color: var(--brimstone-bright);
    text-shadow: 0 0 10px rgba(255, 233, 179, 0.8);
    animation: spark-pulse 1.6s ease-in-out infinite;
}
.celebration-spark:nth-child(3) { animation-delay: 0.8s; }
@keyframes spark-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1);   }
    50%      { opacity: 1;   transform: scale(1.3); }
}

/* Title */
.celebration-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 6px;
    background: linear-gradient(180deg,
        #fff5d8 0%,
        var(--brimstone-bright) 40%,
        var(--brimstone-hot) 70%,
        var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 170, 51, 0.4);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}
.celebration-sub {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin: 0 0 22px;
}

/* Item art — pulsing halo + ring + image */
.celebration-art {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}
.celebration-halo {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 233, 179, 0.5) 0%,
        rgba(255, 170, 51, 0.25) 30%,
        rgba(255, 77, 26, 0.1) 60%,
        transparent 80%);
    filter: blur(2px);
    animation: halo-pulse 2.4s ease-in-out infinite;
}
@keyframes halo-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50%      { transform: scale(1.1);  opacity: 1;   }
}
.celebration-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--ash-light), var(--ash-light)) padding-box,
        linear-gradient(135deg,
            var(--brimstone-bright) 0%,
            var(--ember) 40%,
            var(--brimstone-hot) 100%) border-box;
    box-shadow:
        0 0 16px rgba(255, 170, 51, 0.5),
        inset 0 0 12px rgba(255, 233, 179, 0.2);
}
.celebration-art img {
    position: relative;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 170, 51, 0.6));
    animation: cel-float 3s ease-in-out infinite;
}
@keyframes cel-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Tier line + name */
.celebration-tier-line {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ember-glow);
    margin-bottom: 4px;
}
.celebration-tier-sep { opacity: 0.5; }

.celebration-name {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 4px;
}
.celebration-summary {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.celebration-divider {
    position: relative;
    z-index: 2;
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg,
        transparent, rgba(255, 170, 51, 0.4), transparent);
}

.celebration-text {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 22px;
}
.celebration-text code {
    background: rgba(255, 170, 51, 0.12);
    border: 1px solid rgba(255, 170, 51, 0.35);
    color: var(--brimstone-hot);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.celebration-card .modal-close {
    z-index: 3;
}

@media (max-width: 580px) {
    .celebration-card {
        padding: 28px 24px 24px;
    }
    .celebration-title { font-size: 42px; }
    .celebration-art   { width: 110px; height: 110px; }
    .celebration-art img { width: 84px; height: 84px; }
}

/* ===================================================================
 * SITEWIDE SALE BANNER (storefront)
 * =================================================================== */
.sale-banner-wrap {
    position: relative;
    overflow: hidden;
    margin-top: 60px;   /* clears the floating logo on the nav above */
}
@media (max-width: 720px) {
    .sale-banner-wrap { margin-top: 30px; }
}
.sale-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 14px 24px;
    background:
        linear-gradient(90deg,
            rgba(255, 77, 26, 0)   0%,
            rgba(255, 170, 51, 0.18) 30%,
            rgba(255, 233, 179, 0.25) 50%,
            rgba(255, 170, 51, 0.18) 70%,
            rgba(255, 77, 26, 0)   100%),
        linear-gradient(180deg, #1a0a02 0%, #0a0604 100%);
    border-top:    1px solid rgba(255, 200, 100, 0.4);
    border-bottom: 1px solid rgba(255, 200, 100, 0.4);
    box-shadow:
        0 0 30px rgba(255, 77, 26, 0.4),
        inset 0 0 60px rgba(255, 170, 51, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.sale-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 233, 179, 0.18) 50%,
        transparent 60%,
        transparent 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    animation: sale-shimmer 5s linear infinite;
    pointer-events: none;
}
@keyframes sale-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -150% 0; }
}
.sale-banner > * { position: relative; z-index: 1; }
.sale-banner-spark {
    color: var(--brimstone-bright);
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 233, 179, 0.8);
    animation: spark-pulse 1.6s ease-in-out infinite;
}
.sale-banner-spark:nth-child(4) { animation-delay: 0.8s; }
.sale-banner-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff5d8;
    text-shadow: 0 0 12px rgba(255, 200, 100, 0.5);
}
.sale-banner-pct {
    display: inline-block;
    padding: 4px 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: var(--ash-void);
    background: linear-gradient(180deg, #ffe9b3 0%, #ffaa33 100%);
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(255, 233, 179, 0.5);
}

@media (max-width: 580px) {
    .sale-banner { gap: 12px; padding: 11px 14px; }
    .sale-banner-text { font-size: 11px; letter-spacing: 0.14em; }
    .sale-banner-pct  { font-size: 11px; padding: 3px 9px; }
}

/* Admin button — only visible to Blue/Kai */
.btn-admin {
    height: 38px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ash-void);
    background: linear-gradient(180deg, #ffe9b3 0%, #ffaa33 60%, #ff7a3d 100%);
    border: 1px solid #ffd166;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 16px rgba(255, 170, 51, 0.45);
    transition: all .15s;
}
.btn-admin:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 24px rgba(255, 170, 51, 0.65);
}

/* ════════════════════════════════════════════════════════════
   IN-GAME VERIFICATION LOGIN
   ════════════════════════════════════════════════════════════ */
.auth-card-wide { max-width: 520px; }
.auth-step      { animation: stepFadeIn .35s ease both; }
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-sub-tight { margin-top: -8px; font-size: 13px; }

.verify-command {
    margin: 28px 0 18px;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(255,77,26,0.12), rgba(255,77,26,0.04));
    border: 1px solid rgba(255,77,26,0.45);
    border-radius: 12px;
    text-align: center;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-bright, #ffe9b3);
    text-shadow: 0 0 18px rgba(255,170,51,0.4);
    user-select: all;
}
.verify-command span {
    color: #ffaa33;
    letter-spacing: 0.18em;
    margin-left: 8px;
    font-variant-numeric: tabular-nums;
}

.verify-status {
    margin-top: 22px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted, #b29c83);
}
.verify-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,170,51,0.2);
    border-top-color: #ffaa33;
    border-radius: 50%;
    animation: vSpin .8s linear infinite;
    flex-shrink: 0;
}
@keyframes vSpin { to { transform: rotate(360deg); } }

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted, #b29c83);
}
.btn-ghost:hover {
    border-color: rgba(255,77,26,0.35);
    color: var(--text-bright, #ffe9b3);
}

/* ============================================================
   SIGN-IN RIBBON & LOGIN-REQUIRED MODAL
   ============================================================ */

.signin-ribbon {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin: 0 0 22px;
    background: linear-gradient(90deg,
        rgba(255, 77, 26, 0.10) 0%,
        rgba(255, 170, 51, 0.06) 50%,
        rgba(255, 77, 26, 0.10) 100%);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 10px;
    color: var(--text-bright, #ffe9b3);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.signin-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 170, 51, 0.12),
        transparent);
    transform: translateX(-100%);
    transition: transform 1.4s ease;
}
.signin-ribbon:hover {
    border-color: rgba(255, 170, 51, 0.55);
    box-shadow: 0 0 24px rgba(255, 77, 26, 0.18);
    transform: translateY(-1px);
}
.signin-ribbon:hover::before {
    transform: translateX(100%);
}
.signin-ribbon-icon {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 170, 51, 0.6));
}
.signin-ribbon-text {
    flex: 1;
    letter-spacing: 0.02em;
}
.signin-ribbon-text strong {
    color: #ffaa33;
    font-weight: 700;
}
.signin-ribbon-cta {
    flex-shrink: 0;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff4d1a, #ff8c42);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 77, 26, 0.35);
}

@media (max-width: 600px) {
    .signin-ribbon {
        flex-wrap: wrap;
        font-size: 13px;
        padding: 10px 14px;
    }
    .signin-ribbon-cta {
        margin-left: auto;
    }
}

/* ---- Login-required modal (small) ---- */
.modal-panel-sm {
    max-width: 420px;
    text-align: center;
    padding: 38px 32px 30px;
}
.login-modal-icon {
    font-size: 42px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 16px rgba(255, 170, 51, 0.5));
    animation: loginIconPulse 2.4s ease-in-out infinite;
}
@keyframes loginIconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.login-modal-title {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 22px;
    font-weight: 700;
    color: #ffaa33;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
}
.login-modal-text {
    color: var(--text, #c4bdb3);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.login-modal-text strong {
    color: #ff8c42;
}
.login-modal-hint {
    color: var(--text-muted, #8a7e70);
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0 0 22px;
    font-style: italic;
}
.login-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-modal-actions .btn {
    width: 100%;
}

/* ============================================================
   STORE CREDIT
   ============================================================ */

.credit-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 0 0 22px;
    background: linear-gradient(90deg,
        rgba(255, 170, 51, 0.12) 0%,
        rgba(255, 77, 26, 0.06) 100%);
    border: 1px solid rgba(255, 170, 51, 0.35);
    border-radius: 8px;
    color: var(--text-bright, #ffe9b3);
    font-size: 14px;
    box-shadow: 0 0 18px rgba(255, 170, 51, 0.10);
}
.credit-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 170, 51, 0.7));
}
.credit-banner-body { flex: 1; }
.credit-banner-body strong { color: #ffaa33; }
.credit-banner-applied {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted, #b29c83);
    margin-top: 2px;
}

.stat-tile-credit {
    border: 1px solid rgba(255, 170, 51, 0.35) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 170, 51, 0.10), transparent 60%),
        var(--coal, #110a06);
}

/* ---- Side card credit display ---- */
.side-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 170, 51, 0.12), transparent 60%),
        rgba(255, 170, 51, 0.04);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.side-credit:hover {
    border-color: rgba(255, 170, 51, 0.55);
    box-shadow: 0 0 18px rgba(255, 170, 51, 0.15);
}
.side-credit-icon {
    font-size: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 170, 51, 0.6));
}
.side-credit-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted, #b29c83);
    margin-bottom: 1px;
}
.side-credit-amount {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 18px;
    font-weight: 700;
    color: #ffaa33;
    letter-spacing: 0.02em;
}

/* Already-owned one-per products on the storefront */
.product.product-owned {
    opacity: 0.55;
    filter: grayscale(0.4);
}
.product.product-owned:hover {
    opacity: 0.75;
    filter: grayscale(0.2);
}
.product.product-owned .btn-add {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a) !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ============================================================
   PAYMENT METHOD PICKER
   ============================================================ */

.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0 18px;
}
@media (max-width: 520px) {
    .payment-method-grid { grid-template-columns: 1fr; }
}

.payment-method {
    cursor: pointer;
    display: block;
    position: relative;
}
.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: rgba(20, 12, 6, 0.4);
    border: 1px solid rgba(255, 170, 51, 0.15);
    border-radius: 10px;
    transition: all 0.25s ease;
    text-align: center;
}
.payment-method:hover .payment-method-card {
    border-color: rgba(255, 170, 51, 0.40);
    background: rgba(20, 12, 6, 0.6);
}
.payment-method input:checked + .payment-method-card {
    border-color: #ff8c42;
    background: linear-gradient(180deg,
        rgba(255, 77, 26, 0.10),
        rgba(20, 12, 6, 0.6));
    box-shadow: 0 0 16px rgba(255, 77, 26, 0.25);
}
.payment-method-icon {
    font-size: 28px;
    line-height: 1;
}
.payment-method-label {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright, #ffe9b3);
    letter-spacing: 0.04em;
}
.payment-method-sub {
    font-size: 11px;
    color: var(--text-muted, #b29c83);
    line-height: 1.4;
}

/* Credit toggle — interactive version of credit-banner */
.credit-banner-toggle {
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.credit-banner-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.credit-banner-toggle .credit-banner-switch {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 999px;
    transition: all 0.25s ease;
}
.credit-banner-toggle .credit-banner-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #b29c83;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.credit-banner-toggle input:checked ~ .credit-banner-switch {
    background: linear-gradient(90deg, #ff4d1a, #ffaa33);
    border-color: rgba(255, 170, 51, 0.7);
    box-shadow: 0 0 12px rgba(255, 170, 51, 0.4);
}
.credit-banner-toggle input:checked ~ .credit-banner-switch::after {
    left: 18px;
    background: #fff;
}
.credit-banner-toggle:has(input:not(:checked)) {
    opacity: 0.65;
}
.credit-banner-toggle:hover {
    border-color: rgba(255, 170, 51, 0.55);
    opacity: 1;
}

/* ============================================================
   PER-ITEM DISCOUNTS
   ============================================================ */

/* Sale percentage badge — top corner of the product card */
.sale-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 5px 11px;
    background: linear-gradient(135deg, #ff4d1a 0%, #d4200c 100%);
    color: #fff;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 4px;
    box-shadow:
        0 4px 14px rgba(255, 77, 26, 0.45),
        0 0 0 1px rgba(255, 170, 51, 0.25) inset;
    animation: saleTagPulse 2.4s ease-in-out infinite;
}
@keyframes saleTagPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 77, 26, 0.45), 0 0 0 1px rgba(255, 170, 51, 0.25) inset; }
    50%      { box-shadow: 0 4px 22px rgba(255, 77, 26, 0.75), 0 0 0 1px rgba(255, 200, 100, 0.55) inset; }
}

/* Glow ring around products on sale */
.product.product-on-sale {
    border-color: rgba(255, 77, 26, 0.40) !important;
    box-shadow: 0 0 24px rgba(255, 77, 26, 0.10);
}
.product.product-on-sale:hover {
    border-color: rgba(255, 77, 26, 0.65) !important;
    box-shadow: 0 0 36px rgba(255, 77, 26, 0.20);
}

/* Sale countdown pill */
.sale-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 14px 0;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(255, 77, 26, 0.12), rgba(255, 170, 51, 0.05));
    border: 1px solid rgba(255, 77, 26, 0.30);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-bright, #ffe9b3);
    letter-spacing: 0.04em;
}
.sale-timer-icon {
    font-size: 12px;
    flex-shrink: 0;
}
.sale-timer-label {
    flex: 1;
    color: var(--text-muted, #b29c83);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}
.sale-timer-value {
    color: #ff8c42;
    font-family: ui-monospace, 'Menlo', monospace;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.sale-timer-static {
    justify-content: center;
}
.sale-timer-static strong {
    color: #ff8c42;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Strikethrough original price on storefront */
.price-was {
    display: inline-block;
    color: var(--text-muted, #8a7e70);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 77, 26, 0.55);
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
}
.price-now {
    color: #ff8c42 !important;
}

/* Cart line strikethrough */
.cart-was {
    color: var(--text-muted, #8a7e70);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 77, 26, 0.5);
    font-size: 12px;
    margin-right: 6px;
}

/* ============================================================
   POST-PURCHASE CELEBRATION MODAL  (pcel- prefixed, isolated)
   ============================================================ */

.pcel-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: pcelFadeIn 0.4s ease;
}
.pcel-modal.pcel-is-closing { animation: pcelFadeOut 0.28s ease forwards; }

.pcel-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%,
        rgba(255, 77, 26, 0.18) 0%,
        rgba(0, 0, 0, 0.85) 60%,
        rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

@keyframes pcelFadeIn  { 0% {opacity:0} 100% {opacity:1} }
@keyframes pcelFadeOut { 0% {opacity:1} 100% {opacity:0} }

.pcel-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 50px 40px 36px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 77, 26, 0.18), transparent 60%),
        linear-gradient(180deg, #1a0d05 0%, #0a0503 100%);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 14px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 77, 26, 0.18),
        0 0 0 1px rgba(255, 170, 51, 0.06) inset;
    text-align: center;
    overflow: hidden;
    animation: pcelPanelIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pcelPanelIn {
    0%   { transform: scale(0.7) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.pcel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 170, 51, 0.25);
    border-radius: 50%;
    color: #ffaa33;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pcel-close:hover {
    background: rgba(255, 77, 26, 0.20);
    border-color: rgba(255, 170, 51, 0.6);
    color: #fff;
    transform: rotate(90deg);
}

.pcel-aura {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 26, 0.35) 0%, transparent 50%);
    pointer-events: none;
    animation: pcelAura 3s ease-in-out infinite;
}
@keyframes pcelAura {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.pcel-aura-pending {
    background: radial-gradient(circle, rgba(255, 170, 51, 0.25) 0%, transparent 50%);
}

.pcel-embers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.pcel-embers span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffaa33;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff8c42, 0 0 16px rgba(255, 77, 26, 0.6);
    animation: pcelEmberFloat 4s ease-in infinite;
}
.pcel-embers span:nth-child(1) { left: 10%; bottom: 0; animation-delay: 0s;   animation-duration: 4.5s; }
.pcel-embers span:nth-child(2) { left: 22%; bottom: 0; animation-delay: 0.7s; animation-duration: 5.2s; }
.pcel-embers span:nth-child(3) { left: 38%; bottom: 0; animation-delay: 1.4s; animation-duration: 4.0s; }
.pcel-embers span:nth-child(4) { left: 55%; bottom: 0; animation-delay: 0.3s; animation-duration: 5.8s; }
.pcel-embers span:nth-child(5) { left: 68%; bottom: 0; animation-delay: 2.1s; animation-duration: 4.7s; }
.pcel-embers span:nth-child(6) { left: 82%; bottom: 0; animation-delay: 1.0s; animation-duration: 5.0s; }
.pcel-embers span:nth-child(7) { left: 90%; bottom: 0; animation-delay: 1.8s; animation-duration: 4.3s; }
.pcel-embers span:nth-child(8) { left: 5%;  bottom: 0; animation-delay: 2.5s; animation-duration: 5.5s; }
@keyframes pcelEmberFloat {
    0%   { transform: translateY(0) scale(1);     opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-600px) scale(0.4); opacity: 0; }
}

.pcel-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    z-index: 2;
}
.pcel-icon {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    font-size: 44px;
    background: linear-gradient(135deg, #ff4d1a 0%, #ffaa33 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow:
        0 0 40px rgba(255, 77, 26, 0.7),
        0 0 80px rgba(255, 170, 51, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3);
    animation: pcelIconBob 3s ease-in-out infinite;
}
@keyframes pcelIconBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.pcel-icon-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 170, 51, 0.4);
    border-radius: 50%;
    animation: pcelRing 2.5s ease-out infinite;
}
@keyframes pcelRing {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.pcel-spinner {
    width: 60px;
    height: 60px;
    margin: 14px auto;
    border: 3px solid rgba(255, 170, 51, 0.2);
    border-top-color: #ffaa33;
    border-radius: 50%;
    animation: pcelSpin 0.9s linear infinite;
}
@keyframes pcelSpin { to { transform: rotate(360deg); } }

.pcel-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
    background: rgba(255, 170, 51, 0.10);
    border: 1px solid rgba(255, 170, 51, 0.35);
    border-radius: 999px;
    color: #ffaa33;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pcel-title {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-bright, #ffe9b3);
    letter-spacing: 0.04em;
    text-shadow: 0 0 24px rgba(255, 77, 26, 0.4);
    line-height: 1.2;
}
.pcel-sub {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    color: var(--text-muted, #b29c83);
    font-size: 14px;
    line-height: 1.6;
}
.pcel-sub strong { color: #ff8c42; }

.pcel-order {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    margin: 0 0 22px;
    background: rgba(20, 12, 6, 0.7);
    border: 1px solid rgba(255, 170, 51, 0.18);
    border-radius: 8px;
    text-align: left;
}
.pcel-order-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 170, 51, 0.08);
}
.pcel-order-row:last-child { border-bottom: none; }
.pcel-order-label {
    color: var(--text-muted, #b29c83);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 11px;
    flex-shrink: 0;
    padding-top: 2px;
}
.pcel-order-value {
    color: var(--text-bright, #ffe9b3);
    text-align: right;
    font-weight: 600;
}
.pcel-order-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 170, 51, 0.18) !important;
}
.pcel-order-total .pcel-order-value {
    color: #ff8c42;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 18px;
}

.pcel-stat { position: relative; z-index: 2; margin: 0 0 22px; }
.pcel-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted, #b29c83);
    margin-bottom: 8px;
}
.pcel-stat-bar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(255, 77, 26, 0.10), rgba(255, 170, 51, 0.05));
    border: 1px solid rgba(255, 170, 51, 0.25);
    border-radius: 999px;
}
.pcel-stat-was {
    color: var(--text-muted, #8a7e70);
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 600;
}
.pcel-stat-arrow { color: #ff8c42; font-size: 18px; font-weight: 700; }
.pcel-stat-now {
    color: #ffaa33;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 170, 51, 0.5);
}

.pcel-claim {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 24px;
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 170, 51, 0.10), transparent 60%),
        rgba(20, 12, 6, 0.6);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 8px;
    text-align: left;
}
.pcel-claim-icon {
    font-size: 26px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 170, 51, 0.7));
    animation: pcelIconBob 2.5s ease-in-out infinite;
}
.pcel-claim-title {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 14px;
    font-weight: 700;
    color: #ffaa33;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.pcel-claim-body p { margin: 0; color: var(--text, #c4bdb3); font-size: 12.5px; line-height: 1.5; }
.pcel-claim-body p strong { color: #ff8c42; }
.pcel-claim-body code {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(255, 170, 51, 0.10);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 3px;
    color: #ffaa33;
    font-family: ui-monospace, 'Menlo', monospace;
    font-size: 11.5px;
}

.pcel-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pcel-actions .btn { flex: 1; max-width: 200px; }

@media (max-width: 520px) {
    .pcel-panel { padding: 40px 24px 28px; }
    .pcel-title { font-size: 24px; }
    .pcel-stat-bar { padding: 10px 16px; gap: 10px; }
    .pcel-stat-now { font-size: 18px; }
    .pcel-actions { flex-direction: column; }
    .pcel-actions .btn { max-width: none; }
}

/* ============================================================
   LIMITED STOCK COUNTER
   ============================================================ */

.stock-bar {
    margin: 10px 14px 0;
    padding: 8px 12px;
    background: rgba(20, 12, 6, 0.55);
    border: 1px solid rgba(255, 170, 51, 0.25);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-bright, #ffe9b3);
}
.stock-bar-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--text-muted, #b29c83);
}
.stock-bar-meta strong {
    color: #ffaa33;
    font-weight: 700;
}
.stock-bar-icon {
    font-size: 12px;
    flex-shrink: 0;
}
.stock-bar-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
}
.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffaa33, #ff8c42);
    transition: width 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 170, 51, 0.4);
}

/* Low stock state */
.stock-bar.stock-bar-low {
    border-color: rgba(255, 77, 26, 0.45);
    background: linear-gradient(90deg, rgba(255, 77, 26, 0.08), rgba(20, 12, 6, 0.55));
    animation: stockPulse 2s ease-in-out infinite;
}
.stock-bar-low .stock-bar-meta strong {
    color: #ff4d1a;
}
.stock-bar-low .stock-bar-fill {
    background: linear-gradient(90deg, #ff4d1a, #d4200c);
    box-shadow: 0 0 10px rgba(255, 77, 26, 0.6);
}
@keyframes stockPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 77, 26, 0); }
    50%      { box-shadow: 0 0 12px rgba(255, 77, 26, 0.25); }
}

/* Sold out state */
.stock-bar.stock-bar-empty {
    border-color: rgba(120, 120, 120, 0.4);
    background: rgba(40, 20, 10, 0.4);
    opacity: 0.75;
}
.stock-bar-empty .stock-bar-meta strong {
    color: #d4d4d4;
}
.stock-bar-empty .stock-bar-fill {
    background: #555;
    box-shadow: none;
}

/* Sold-out card */
.product.product-sold-out {
    opacity: 0.7;
    filter: grayscale(0.5);
}
.product.product-sold-out:hover {
    opacity: 0.9;
    filter: grayscale(0.3);
}
.product.product-sold-out .btn-add {
    background: linear-gradient(135deg, #2a1a1a, #1a0a0a) !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ============================================================
   REFERRAL HUB (profile page)
   ============================================================ */

.referral-hub {
    margin: 28px 0;
    padding: 32px 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 170, 51, 0.08), transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(255, 77, 26, 0.06), transparent 60%),
        rgba(20, 12, 6, 0.55);
    border: 1px solid rgba(255, 170, 51, 0.20);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.referral-hub::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 51, 0.55), transparent);
}

.referral-hub-head { margin-bottom: 24px; }
.referral-hub-eyebrow {
    display: inline-block;
    padding: 3px 12px;
    margin-bottom: 10px;
    background: rgba(255, 170, 51, 0.12);
    border: 1px solid rgba(255, 170, 51, 0.30);
    border-radius: 999px;
    color: #ffaa33;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.referral-hub-title {
    margin: 0 0 8px;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-bright, #ffe9b3);
    letter-spacing: 0.04em;
}
.referral-hub-sub {
    margin: 0;
    color: var(--text-muted, #b29c83);
    font-size: 13px;
    line-height: 1.6;
    max-width: 600px;
}
.referral-hub-sub strong { color: #ff8c42; }

/* Code row */
.referral-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
    align-items: stretch;
}
.referral-code-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 77, 26, 0.10), rgba(255, 170, 51, 0.04));
    border: 1px solid rgba(255, 170, 51, 0.40);
    border-radius: 8px;
}
.referral-code-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted, #b29c83);
    margin-bottom: 4px;
}
.referral-code-value {
    font-family: ui-monospace, 'Menlo', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #ffaa33;
    letter-spacing: 0.06em;
    text-shadow: 0 0 12px rgba(255, 170, 51, 0.3);
    user-select: all;
}

.referral-copy-btn,
.referral-share-btn {
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
}
.referral-copy-btn .referral-copy-success {
    display: none;
}
.referral-copy-btn.referral-copied .referral-copy-default { display: none; }
.referral-copy-btn.referral-copied .referral-copy-success { display: inline; }
.referral-copy-btn.referral-copied,
.referral-share-btn.referral-copied {
    background: linear-gradient(135deg, #1a8a3a, #2da64a) !important;
    border-color: #2da64a !important;
    color: #fff !important;
}

/* Stats grid */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .referral-stats { grid-template-columns: 1fr; }
}
.referral-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(20, 12, 6, 0.6);
    border: 1px solid rgba(255, 170, 51, 0.15);
    border-radius: 8px;
    transition: border-color 0.2s, transform 0.2s;
}
.referral-stat:hover {
    border-color: rgba(255, 170, 51, 0.35);
    transform: translateY(-2px);
}
.referral-stat-icon {
    font-size: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255, 170, 51, 0.3));
}
.referral-stat-value {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 20px;
    font-weight: 700;
    color: #ffaa33;
    line-height: 1;
}
.referral-stat-label {
    font-size: 11px;
    color: var(--text-muted, #b29c83);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-top: 4px;
}

/* ============================================================
   WAYS TO PAY (storefront banner)
   ============================================================ */

.pay-methods {
    margin: 0 0 22px;
    padding: 16px 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 170, 51, 0.06), transparent 60%),
        rgba(20, 12, 6, 0.55);
    border: 1px solid rgba(255, 170, 51, 0.18);
    border-radius: 10px;
}
.pay-methods-head {
    margin-bottom: 12px;
}
.pay-methods-eyebrow {
    font-size: 10px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #ffaa33;
    font-weight: 700;
}
.pay-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 10px;
}
@media (max-width: 720px) {
    .pay-methods-grid { grid-template-columns: 1fr; }
}
.pay-method {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 170, 51, 0.15);
    border-radius: 6px;
    transition: border-color 0.2s;
}
.pay-method:hover {
    border-color: rgba(255, 170, 51, 0.4);
}
.pay-method-icon {
    font-size: 18px;
    margin-bottom: 2px;
}
.pay-method-name {
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright, #ffe9b3);
    letter-spacing: 0.04em;
}
.pay-method-sub {
    font-size: 10.5px;
    color: var(--text-muted, #b29c83);
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.pay-method-direct {
    border-color: rgba(199, 155, 255, 0.35);
}
.pay-method-direct .pay-method-name { color: #c79bff; }
.pay-method-direct:hover { border-color: rgba(199, 155, 255, 0.6); }


/* ============================================================
   DIRECT-ONLY PRODUCTS (storefront cards)
   ============================================================ */

.product.product-direct {
    border-color: rgba(199, 155, 255, 0.35) !important;
    box-shadow: 0 0 24px rgba(199, 155, 255, 0.06);
}
.product.product-direct:hover {
    border-color: rgba(199, 155, 255, 0.6) !important;
    box-shadow: 0 0 36px rgba(199, 155, 255, 0.15);
}
.product.product-direct .btn-add {
    background: linear-gradient(135deg, #2a1a3a, #4a2a6a) !important;
    color: #c79bff !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(199, 155, 255, 0.45) !important;
    box-shadow: none !important;
}


/* ============================================================
   DIRECT-ONLY CHECKOUT BLOCK
   ============================================================ */

.direct-only-block {
    text-align: center;
    padding: 30px 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(199, 155, 255, 0.10), transparent 60%),
        rgba(20, 12, 6, 0.6);
    border: 1px solid rgba(199, 155, 255, 0.30);
    border-radius: 10px;
}
.direct-only-icon {
    font-size: 48px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 18px rgba(199, 155, 255, 0.6));
}
.direct-only-block h3 {
    margin: 0 0 12px;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 22px;
    color: #c79bff;
    letter-spacing: 0.04em;
}
.direct-only-block p {
    margin: 0 0 14px;
    color: var(--text, #c4bdb3);
    font-size: 14px;
    line-height: 1.6;
}
.direct-only-block p strong {
    color: #c79bff;
}
.direct-only-items {
    list-style: none;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(199, 155, 255, 0.20);
    border-radius: 6px;
    text-align: left;
}
.direct-only-items li {
    padding: 5px 0;
    color: var(--text-bright, #ffe9b3);
    font-weight: 600;
}
.direct-only-items li::before {
    content: '◆ ';
    color: #c79bff;
    margin-right: 6px;
}

/* ===================================================================
 * Product modal media gallery (extra images + videos)
 * =================================================================== */
.modal-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 20px;
    max-width: 360px;
}
.gallery-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255, 140, 66, 0.35);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(20, 12, 6, 0.6);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-thumb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--accent-glow);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb-noimg {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}
.gallery-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Lightbox viewer */
.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    background: rgba(8, 4, 2, 0.92);
    backdrop-filter: blur(6px);
}
.gallery-viewer[hidden] { display: none; }
.gallery-viewer-stage {
    width: min(90vw, 960px);
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-viewer-stage img,
.gallery-viewer-stage video {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}
.gallery-viewer-stage iframe {
    width: min(90vw, 960px);
    height: min(50.625vw, 540px);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}
.gallery-viewer-caption {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-align: center;
    max-width: 90vw;
}
.gallery-viewer-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 140, 66, 0.4);
    background: rgba(20, 12, 6, 0.8);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gallery-viewer-close:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}


/* ===================================================================
 * Modal responsiveness + scroll fix (prevents tall modals leaking)
 * =================================================================== */
.modal {
    /* allow the grid item to shrink and scroll instead of overflowing */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-card {
    /* never taller than the viewport minus the modal padding; scroll inside */
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    /* thin themed scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--ember) transparent;
}
.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-thumb {
    background: var(--ember);
    border-radius: 4px;
}
.modal-card::-webkit-scrollbar-track { background: transparent; }

/* Clickable main image — show it's zoomable */
.modal-art-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    transition: transform .2s ease;
}
.modal-art-zoom:hover { transform: scale(1.04); }
.modal-art-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

/* Tablet / phone */
@media (max-width: 600px) {
    .modal { padding: 12px; }
    .modal-card {
        padding: 30px 18px 22px;
        max-height: calc(100vh - 24px);
    }
    .modal-card h3 { font-size: 20px; }
    .modal-art { width: 110px; height: 110px; margin-bottom: 16px; }
    .gallery-viewer { padding: 16px; }
    .gallery-viewer-close { top: 10px; right: 12px; }
}

/* The lightbox stage image should also signal it can be closed */
.gallery-viewer-stage img { cursor: zoom-out; }
