:root {
    --color-bg: #FFF8E7; /* Cosmic Latte */
    --color-bg-rgb: 255, 248, 231;
    --color-text: #1a1a1a; /* Almost Black */
    --color-text-rgb: 26, 26, 26;
    --color-grey: #8c8c8c;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Accent tokens (theme-aware: dark on cream, bright on void) */
    --color-eth-accent: #2e44a8;
    --color-eth-glow: rgba(46, 68, 168, 0.22);
    --color-prana-accent: #8a6c15;
    --color-prana-glow: rgba(138, 108, 21, 0.22);

    /* Footer Specific */
    --color-footer-bg: #050505; /* Deep luxury black */
    --color-footer-text: #FFF8E7;
    --color-footer-text-rgb: 255, 248, 231;
}

body.dark-mode,
:root:has(body.dark-mode) {
    --color-bg: #0f0f0f; /* Void Black */
    --color-bg-rgb: 15, 15, 15;
    --color-text: #f0f0f0; /* Off White */
    --color-text-rgb: 240, 240, 240;
    --color-grey: #6c6c6c;

    --color-eth-accent: #8fa3ff;
    --color-eth-glow: rgba(98, 126, 234, 0.28);
    --color-prana-accent: #cca43b;
    --color-prana-glow: rgba(204, 164, 59, 0.3);

    /* Footer Specific in Dark Mode */
    --color-footer-bg: #050505;
    --color-footer-text: #f0f0f0;
    --color-footer-text-rgb: 240, 240, 240;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    /* Hide native cursor ONLY on desktop AND only when the page actually
       ships a .custom-cursor div + app.js to render the gold-dot replacement.
       Without this :has() guard, pages that don't load the custom cursor
       (creator-portal, garments, nfts, etc.) lose the cursor entirely. */
    body:has(.custom-cursor) * {
        cursor: none !important;
    }
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    background-color: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-display: swap;
    overflow-x: hidden;
    /* Cinematic Page Fade */
    animation: fadeInPage 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Analog Texture Overlay — kept below product/footer z-index so it never covers content */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Tactical Noise Pattern (Base64) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1; /* Subtly integrated */
    z-index: -1; /* Behind all content — prevents overlay on product images & footer */
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Cursor Styles */
.custom-cursor {
    width: 10px; /* Slightly larger for visibility */
    height: 10px;
    background: #cca43b; /* Premium Gold */
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(204, 164, 59, 0.6);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                height 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                background 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bright cursor for dark backgrounds (footer) */
.custom-cursor.on-dark {
    background: #f0e6c8; /* Warm bright cream-gold */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 18px rgba(240, 230, 200, 0.8), 0 0 6px rgba(255, 255, 255, 0.5);
}

.custom-cursor.on-dark.hovering {
    background: rgba(240, 230, 200, 0.1);
    border: 1px solid rgba(240, 230, 200, 0.5);
    box-shadow: 0 0 20px rgba(240, 230, 200, 0.4);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(204, 164, 59, 0.05);
    border: 1px solid rgba(204, 164, 59, 0.3);
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    color: var(--color-text);
    pointer-events: none;
    transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
    padding: 1rem 4rem;
    background: rgba(var(--color-bg-rgb), 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.navbar.scrolled .logo {
    font-size: 1.2rem;
}

.navbar a { 
    pointer-events: auto; 
}

.header-wallet-btn {
    pointer-events: auto;
    margin-left: 1.5rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.scroll-container {
    /* Catalog v2: natural-flow page. The legacy 100vh + scroll-snap
       container locked sections to viewport-snap, which is incompatible
       with a flowing grid catalog. Snap-align declarations on children
       become harmless no-ops without the parent's snap-type. */
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Intro Section */
.intro-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: start;
    padding: 0 10%;
    background-color: var(--color-bg);
    position: relative;
    z-index: 5;
    overflow: hidden; /* Clip Three.js sacred geometry canvas within this section */
}

.intro-content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-section.active .intro-content {
    opacity: 1;
    transform: translateY(0);
}

.intro-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    line-height: 1.1;
}

.intro-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    margin-bottom: 3.5rem;
    color: var(--color-grey);
    text-transform: uppercase;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--color-text);
    font-weight: 300;
    margin: 0 auto 5rem;
    max-width: 650px;
    opacity: 0.8;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.5;
    animation: bounce 2.5s infinite;
}

.scroll-down span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
}

.arrow-down {
    width: 1px;
    height: 60px;
    background: var(--color-text);
    position: relative;
}

.arrow-down::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-12px);}
    60% {transform: translateY(-6px);}
}

/* Product Section */
.product-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    z-index: 5;
}

.product-image-container {
    width: 45%;
    height: 70vh; /* Scaled down for elegance */
    position: relative;
    /* Reduced starting offset to keep image safe on screen */
    transform: translate3d(-100px, 0, 0); 
    /* Hover interactions handled here with transition */
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    
    /* Subtle, sophisticated luxury shadow (Warmer tones, lower opacity) */
    box-shadow: 
        0 40px 80px rgba(26, 26, 26, 0.05),
        0 20px 40px rgba(26, 26, 26, 0.03),
        0 5px 15px rgba(26, 26, 26, 0.02);
}

/* Ensure the box-shadow is visible outside the hidden gallery mask */
.product-section:not(.hero) .product-image-container {
    overflow: visible; 
}

.parallax-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Mask moved here to allow container shadows */
    border-radius: 4px; /* Matches the hero's softening */
    will-change: transform;
    display: flex; /* Horizontal gallery */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.parallax-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.product-image {
    flex: 0 0 100%; /* Each image takes full width of container */
    height: 100%;
    object-fit: contain;
    scroll-snap-align: center;
    /* Images now inherit the unified box shadow from container */
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 10;
}

.product-section.is-detailed .product-image-container {
    /* Subtle deepening for interactive state */
    box-shadow: 
        0 80px 150px rgba(26, 26, 26, 0.08),
        0 40px 80px rgba(26, 26, 26, 0.05),
        0 15px 30px rgba(26, 26, 26, 0.03);
}

.scroll-indicator {
    position: absolute;
    bottom: -4rem; /* Lowered and absolute-positioned relative to parent with overflow visible */
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-grey);
    opacity: 0.6;
    pointer-events: none;
}

.product-section:hover .scroll-indicator {
    opacity: 0;
}

.gallery-pagination {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-grey);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.dot.active {
    opacity: 0.8;
    background: var(--color-grey); /* Soft charcoal instead of pure black */
    transform: scale(1.3);
}

/* Product Number Indicator */
.product-number {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    font-size: 10rem;
    font-family: var(--font-heading);
    color: rgba(26, 26, 26, 0.03); /* Extremely subtle */
    pointer-events: none;
    z-index: 0;
}

/* Hover Drawer sliding in */
.product-details {
    position: absolute;
    top: 0;
    right: -55%; /* Hidden state */
    width: 55%;
    height: 100vh;
    background: rgba(var(--color-bg-rgb), 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    transition: 
        right 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
        left 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 1.2s linear,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem; /* Refined padding for 55% width */
    border-left: 1px solid rgba(var(--color-text-rgb), 0.06);
    z-index: 10;
    box-shadow: -30px 0 90px rgba(0, 0, 0, 0.18);
    overflow: hidden; /* For the canvas background */
}

.details-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content but in the drawer */
    pointer-events: none;
    opacity: 0.15; /* Subtle watermark feel */
}

.left-layout .product-details {
    right: auto;
    left: -55%;
    border-left: none;
    border-right: 1px solid rgba(var(--color-text-rgb), 0.06);
    box-shadow: 30px 0 90px rgba(0, 0, 0, 0.18);
}

.details-content {
    position: relative;
    z-index: 2; /* On top of canvas */
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

/* Scroll-Triggered States (Controlled by JS) */
.product-section.is-detailed .product-details {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.product-section.left-layout.is-detailed .product-details {
    left: 0;
    right: auto !important;
    opacity: 1;
    visibility: visible;
}

.product-section.is-detailed .details-content {
    opacity: 1;
    transform: translateX(0);
}

.product-section.is-detailed .product-image-container {
    width: 45%; /* Keep width consistent to prevent jumpiness */
    transform: translate3d(-58%, 0, 0) scale(0.95); /* Safer translation to prevent chopping */
}

/* Editorial Split Hero Layout */
.hero {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important; /* Asymmetrical Split */
    grid-template-rows: 1fr !important; /* Forces same horizontal line */
    align-items: center;
    padding: 0 6rem;
    gap: 4rem;
    overflow: hidden;
    height: 100vh;
}

.hero .product-image-container {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 70vh; 
    margin-bottom: 0;
    transform: none;
    opacity: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the hoodie within bounds */
    box-shadow: 
        0 40px 80px rgba(26, 26, 26, 0.08),
        0 20px 40px rgba(26, 26, 26, 0.04);
    border-radius: 4px;
}

.hero .product-details {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 4rem !important; /* Breathable editorial padding */
    text-align: left;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    visibility: visible !important;
    opacity: 1;
    background: transparent !important; /* Remove the creme box */
    box-shadow: none !important; /* Remove the drawer shadow */
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero .details-content {
    align-items: flex-start;
    opacity: 1; /* Visible by default */
    display: flex;
    flex-direction: column;
}

.hero .product-title {
    font-size: 3.2rem; /* Reduced to prevent column bleed */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 100%; /* Strict containment */
    word-wrap: break-word;
}

.hero .product-price {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero .product-description {
    max-width: 380px; /* Tighter column for luxury feel */
    margin: 0 0 3.5rem 0;
    text-align: left;
    line-height: 1.8;
}

.hero .size-selector {
    justify-content: flex-start;
    margin-bottom: 3.5rem;
}

.hero .add-to-cart {
    max-width: 300px;
    margin: 0;
}

/* Removed hero animation to ensure reliability in local environments */

.product-section.left-layout.is-detailed .product-image-container {
    width: 45%;
    transform: translate3d(58%, 0, 0) scale(0.95);
}

/* Left Layout overrides for static states */
.left-layout .product-image-container {
    transform: translate3d(100px, 0, 0);
}

.left-layout .product-details {
    right: auto;
    left: -550px;
    border-left: none;
    border-right: 1px solid rgba(26,26,26,0.05);
}

.left-layout .details-content {
    transform: translateX(-40px); /* Stagger fade in from the left instead of right */
}

/* Drawer Typography */
.product-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.product-price {
    font-size: 1.2rem;
    color: var(--color-grey);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.product-description {
    line-height: 1.8;
    margin-bottom: 3.5rem;
    color: rgba(var(--color-text-rgb), 0.72);
    font-weight: 300;
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--color-text-rgb), 0.1);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-grey);
    font-weight: 600;
}

.info-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 300;
    opacity: 0.9;
}

/* Interactive Elements */
.size-selector-container {
    position: relative;
    margin-bottom: 3rem;
}

.size-selector {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    width: 100%;
    /* Luxury fade hint at the right edge */
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.size-selector::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.size-selector span {
    flex: 0 0 calc(20% - 0.65rem); /* Precisely 5 sizes visible */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 26, 26, 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--color-grey);
}

.size-selector span:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.size-selector span.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.add-to-cart {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.add-to-cart:hover {
    background: var(--color-text);
    color: var(--color-bg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}



/* CSS Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(120px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.footer {
    text-align: left;
    padding: 0;
    height: auto;
    min-height: auto;
    scroll-snap-align: end;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    position: relative;
    z-index: 5;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(var(--color-footer-text-rgb), 0.5);
    margin-bottom: 2rem;
}

.footer-philosophy {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 400px;
    margin-bottom: 2rem;
}

.footer-care {
    max-width: 400px;
}

.footer-care p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    opacity: 0.8;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(var(--color-footer-text-rgb), 0.4);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-col a {
    color: rgba(var(--color-footer-text-rgb), 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.02em;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--color-footer-text);
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: rgba(var(--color-footer-text-rgb), 0.08);
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(var(--color-footer-text-rgb), 0.35);
    text-transform: uppercase;
}

.footer-trust {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-trust span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--color-footer-text-rgb), 0.4);
    font-weight: 300;
}

.trust-dot {
    color: rgba(var(--color-footer-text-rgb), 0.2) !important;
}

/* ─── Scroll Progress Bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, rgba(26,26,26,0.6), var(--color-text));
    z-index: 1000;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ─── Toast Notification ─── */
.toast-container {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1.2rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateX(120%);
    opacity: 0;
    animation: toastIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               toastOut 0.5s cubic-bezier(0.55, 0, 1, 0.45) 2.5s forwards;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ─── Hamburger Menu ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    pointer-events: auto;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── Add to Cart Success State ─── */
.add-to-cart.added {
    background: var(--color-text);
    color: var(--color-bg);
    pointer-events: none;
}

/* ─── Gallery Image Hover ─── */
.parallax-wrapper img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-wrapper:hover img {
    transform: scale(1.03);
}

/* ─── Staggered Detail Reveal ─── */
.product-section:not(.hero) .details-content .product-title,
.product-section:not(.hero) .details-content .product-price,
.product-section:not(.hero) .details-content .product-description,
.product-section:not(.hero) .details-content .product-info-grid,
.product-section:not(.hero) .details-content .size-selector-container,
.product-section:not(.hero) .details-content .add-to-cart {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-section:not(.hero).is-detailed .details-content .product-title      { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.product-section:not(.hero).is-detailed .details-content .product-price      { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.product-section:not(.hero).is-detailed .details-content .product-description { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.product-section:not(.hero).is-detailed .details-content .product-info-grid  { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.product-section:not(.hero).is-detailed .details-content .size-selector-container { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.product-section:not(.hero).is-detailed .details-content .add-to-cart        { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }

/* ─── Mobile Nav Overlay ─── */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile & Tablet Optimization Overrides */
@media (max-width: 1024px) {
    * {
        cursor: auto !important;
    }
    .custom-cursor {
        display: none !important;
    }

    .navbar {
        padding: 1.5rem 2rem;
        flex-direction: row;
        height: auto;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 150;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
        pointer-events: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .header-wallet-btn {
        margin-left: auto;
        padding: 0.55rem 0.8rem;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        order: 2;
    }

    .hamburger {
        order: 3;
    }

    .hero {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        padding-top: 8rem;
        height: auto;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
    }

    .hero .product-image-container {
        grid-column: 1;
        grid-row: 1;
        height: 50vh;
        width: 85% !important;
        margin: 0 auto 3rem !important;
        transform: none !important;
    }

    .hero .product-details {
        grid-column: 1;
        grid-row: 2;
        padding: 0 2rem 6rem !important;
        text-align: center;
        align-items: center;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        transform: none !important;
    }

    .hero .details-content {
        align-items: center;
        width: 100% !important;
        transform: none !important;
    }

    .hero .product-title {
        font-size: 2.5rem; /* Slightly larger for tablets */
        text-align: center;
    }

    .hero .product-description {
        max-width: 100%;
        text-align: center;
    }

    .product-section {
        grid-template-columns: 1fr !important;
        height: auto;
        padding: 4rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-image-container {
        height: 50vh;
        width: 85% !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .product-details {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 3rem 2rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .details-content {
        opacity: 1 !important;
        transform: none !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Disable stagger on mobile */
    .product-section:not(.hero) .details-content .product-title,
    .product-section:not(.hero) .details-content .product-price,
    .product-section:not(.hero) .details-content .product-description,
    .product-section:not(.hero) .details-content .product-info-grid,
    .product-section:not(.hero) .details-content .size-selector-container,
    .product-section:not(.hero) .details-content .add-to-cart {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Footer mobile */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-inner {
        padding: 4rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-trust {
        flex-wrap: wrap;
        justify-content: center;
    }

    .toast-container {
        right: 1rem;
        left: 1rem;
        bottom: 2rem;
    }

    .toast {
        font-size: 0.75rem;
        padding: 1rem 1.5rem;
    }

    .product-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .product-price {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .product-description {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 3rem;
        text-align: center;
        max-width: 600px; /* Better readability on wider tablets */
    }

    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 2rem 0;
        border-top: 1px solid rgba(26, 26, 26, 0.05);
    }

    .add-to-cart {
        width: 100%;
        max-width: 400px; /* Centered focus for tablets */
        padding: 1.2rem;
    }

    .scroll-indicator, .gallery-pagination {
        display: none !important;
    }

    .collection-tag {
        font-size: 0.8rem !important;
        text-align: center;
    }

    .product-number {
        font-size: 6rem;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%) !important;
        opacity: 0.05;
    }

    /* Intro Section Mobile */
    .intro-section {
        padding: 0 2rem;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .intro-title {
        font-size: 3.5rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .intro-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .intro-text {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 3rem;
    }

    .arrow-down {
        height: 40px;
    }
}

/* Medium Tablets & Large Phones (Portrait) */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2.8rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }

    .product-image-container {
        height: 45vh;
    }
    
    .product-info-grid {
        gap: 1rem;
    }
}

/* Small Phones (Portrait) */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .intro-title {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 0.9rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-number {
        font-size: 4rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Landscape / Short Windows Optimization */
@media (max-height: 700px) and (min-width: 1025px) {
    .product-image-container {
        height: 60vh;
    }
    
    .product-details {
        padding: 4rem !important;
    }
    
    .product-info-grid {
        margin-bottom: 1.5rem;
        padding-top: 1rem;
    }
}

/* Ultra-wide Screen Optimization */
@media (min-width: 1800px) {
    .details-content {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   UI UPGRADES (PRELOADER, DRAWER, THEME)
   ========================================================================== */

/* Cinematic Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.3em;
    color: var(--color-text);
    opacity: 0;
    animation: pulseLogo 2s infinite alternate;
}

.preloader-line {
    width: 0px;
    height: 1px;
    background: var(--color-text);
    animation: loadLine 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pulseLogo {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes loadLine {
    to { width: 100px; }
}

/* Off-Canvas Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0; right: -450px;
    width: 100%; max-width: 450px;
    height: 100%;
    background: var(--color-bg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.cart-drawer-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.cart-close {
    background: none; border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cart-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-drawer-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.cart-drawer-item img {
    width: 80px; height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-drawer-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-drawer-item-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-drawer-item-price {
    font-size: 0.85rem;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.cart-drawer-footer {
    padding: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    background: var(--color-bg);
}

.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.drawer-checkout-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s ease;
}

.drawer-checkout-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Theme Toggle Button */
#theme-toggle {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

#theme-toggle:hover {
    transform: rotate(30deg);
}

/* Make add to bag a magnetic target */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- WEB3 VAULT STYLES --- */
.web3-connect-btn {
    background:
        linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
        linear-gradient(135deg, rgba(204, 164, 59, 0.95), rgba(var(--color-text-rgb), 0.34), rgba(204, 164, 59, 0.72)) border-box;
    color: var(--color-text) !important;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.68rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 10px 28px rgba(204, 164, 59, 0.08);
    isolation: isolate;
}

.web3-connect-btn:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 16px 36px rgba(204, 164, 59, 0.16);
}

.vault-section {
    width: 100%;
    padding: 8rem 4rem;
    background: rgba(var(--color-bg-rgb), 0.5);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.vault-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.vault-header {
    text-align: center;
}

.vault-title {
    font-size: 3rem;
    margin: 1rem 0;
}

.vault-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.vault-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.1);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-grey);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.prana-card {
    background: rgba(255, 215, 0, 0.02);
    border-color: rgba(255, 215, 0, 0.2);
}

.stat-value.prana-glow {
    color: var(--color-prana-accent);
    text-shadow: 0 0 20px var(--color-prana-glow);
}

.vault-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.vault-btn {
    padding: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
}

.vault-btn.primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.vault-btn.primary:hover {
    background: var(--color-grey);
    border-color: var(--color-grey);
}

.vault-btn.outline:hover {
    background: rgba(128, 128, 128, 0.1);
}

.vault-btn.danger {
    border-color: #ff4444;
    color: #ff4444;
}

.vault-btn.danger:hover {
    background: #ff4444;
    color: white;
}

@media (max-width: 900px) {
    .vault-stats-grid, .vault-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LUXURY VISUAL UPGRADE — MICRO-INTERACTIONS & EYE CANDY
   ========================================================================== */

/* ─── Golden Accent System ─── */
:root {
    --gold: #cca43b;
    --gold-faint: rgba(204, 164, 59, 0.12);
    --gold-glow: rgba(204, 164, 59, 0.25);
    --eth-blue: #627eea;
    --luxury-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Sacred Particles Canvas (scoped to intro section only) ─── */
#sacred-particles-canvas {
    /* No mix-blend-mode needed — canvas is contained within intro section */
}

body.dark-mode #sacred-particles-canvas {
    opacity: 0.7;
}

/* ─── Navbar Golden Underglow ─── */
.nav-glow {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold-faint) 20%,
        var(--gold) 50%,
        var(--gold-faint) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.8s var(--luxury-ease);
    pointer-events: none;
}

.navbar.scrolled .nav-glow {
    opacity: 0.4;
}

/* ─── Enhanced Logo Treatment ─── */
.logo {
    position: relative;
    transition: font-size 0.5s var(--luxury-ease), letter-spacing 0.5s var(--luxury-ease);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.6s var(--luxury-ease);
}

.logo:hover::after {
    width: 100%;
}

/* ─── Character-Level Title Reveal ─── */
.char-reveal-container {
    overflow: hidden;
}

.char-reveal-word {
    display: inline-block;
    white-space: nowrap;
}

.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    animation: charReveal 0.8s var(--luxury-ease) forwards;
    transform-origin: bottom center;
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(100%) rotateX(-80deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-5%) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* ─── Price Shimmer Effect ─── */
.shimmer-text {
    position: relative;
    background: linear-gradient(
        120deg,
        var(--color-grey) 0%,
        var(--color-text) 40%,
        var(--gold) 50%,
        var(--color-text) 60%,
        var(--color-grey) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}

/* ─── Button Ripple Effect ─── */
.add-to-cart, .vault-btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(204, 164, 59, 0.25);
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    animation: rippleExpand 0.8s var(--luxury-ease) forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* ─── Product Section Glow Lines ─── */
.product-glow-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-faint),
        var(--gold),
        var(--gold-faint),
        transparent
    );
    transition: width 1.5s var(--luxury-ease);
    pointer-events: none;
    z-index: 5;
}

.product-section.active .product-glow-line {
    width: 60%;
}

/* ─── Sacred Section Dividers ─── */
.section-sacred-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
    color: var(--gold);
    opacity: 0;
    animation: fadeInDivider 1s var(--luxury-ease) 0.5s forwards;
}

@keyframes fadeInDivider {
    from { opacity: 0; transform: translateX(-50%) translateY(-30%); }
    to { opacity: 1; transform: translateX(-50%) translateY(-50%); }
}

/* ─── Enhanced Product Image Container ─── */
.parallax-wrapper {
    transition: transform 0.6s var(--luxury-ease);
    transform-style: preserve-3d;
}

.product-image-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        transparent 30%,
        var(--gold-faint) 50%,
        transparent 70%
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.8s var(--luxury-ease);
    pointer-events: none;
}

.product-image-container:hover::before {
    opacity: 1;
}

/* ─── Floating Animation Enhancement ─── */
.product-image.floating {
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ─── Enhanced Size Selector ─── */
.size-selector span {
    position: relative;
    overflow: hidden;
}

.size-selector span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(204, 164, 59, 0.08),
        transparent
    );
    transition: left 0.6s var(--luxury-ease);
}

.size-selector span:hover::before {
    left: 100%;
}

/* ─── Enhanced Add to Cart Button ─── */
.add-to-cart {
    position: relative;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(204, 164, 59, 0.1),
        transparent
    );
    transition: left 0.8s var(--luxury-ease);
}

.add-to-cart:hover::before {
    left: 100%;
}

/* ─── Vault Aurora Canvas ─── */
.vault-aurora-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vault-aurora-canvas canvas {
    width: 100%;
    height: 100%;
}

.vault-section {
    position: relative;
    overflow: hidden;
}

.vault-container {
    position: relative;
    z-index: 1;
}

/* ─── Enhanced Stat Cards ─── */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--luxury-ease), 
                box-shadow 0.4s var(--luxury-ease),
                border-color 0.4s var(--luxury-ease);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(204, 164, 59, 0.04) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s var(--luxury-ease);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-faint);
}

.stat-card:hover::after {
    opacity: 1;
}

/* ─── Enhanced PRANA Card Glow ─── */
.prana-card {
    position: relative;
}

.prana-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 5px;
    background: linear-gradient(
        135deg,
        rgba(204, 164, 59, 0.2) 0%,
        transparent 50%,
        rgba(204, 164, 59, 0.1) 100%
    );
    z-index: -1;
    opacity: 0;
    animation: pranaGlowPulse 3s ease-in-out infinite;
}

@keyframes pranaGlowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ─── ETH Card Enhancement ─── */
.eth-card {
    position: relative;
}

.eth-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 5px;
    background: linear-gradient(
        135deg,
        rgba(98, 126, 234, 0.15) 0%,
        transparent 50%,
        rgba(98, 126, 234, 0.08) 100%
    );
    z-index: -1;
    opacity: 0;
    animation: ethGlowPulse 4s ease-in-out infinite;
}

@keyframes ethGlowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ─── Vault Button Hover Glow ─── */
.vault-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vault-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(204, 164, 59, 0.2);
}

/* ─── Footer Constellation Canvas ─── */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

/* ─── Enhanced Footer Links ─── */
.footer-col a {
    position: relative;
}

.footer-col a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--luxury-ease);
}

.footer-col a:hover::before {
    width: 100%;
}

.footer-col a:hover {
    color: var(--gold) !important;
}

/* ─── Enhanced Scroll Progress ─── */
.scroll-progress {
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        rgba(204, 164, 59, 0.6) 50%,
        var(--gold) 100%
    );
    box-shadow: 0 0 15px var(--gold-glow);
}

/* ─── Enhanced Preloader ─── */
.preloader-logo {
    position: relative;
}

.preloader-line {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── Custom Cursor Enhancement ─── */

/* ─── Product Number Golden Accent ─── */
body.dark-mode .product-number {
    color: rgba(204, 164, 59, 0.04);
}

/* ─── Enhanced Collection Tag ─── */
.collection-tag {
    position: relative;
    display: inline-block;
}

.hero .collection-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

/* ─── Intro Section Enhancement ─── */
.intro-subtitle {
    position: relative;
}

.intro-subtitle::before,
.intro-subtitle::after {
    content: '◇';
    font-size: 0.6em;
    vertical-align: middle;
    opacity: 0.3;
    margin: 0 1rem;
    color: var(--gold);
}

/* ─── Scroll Down Arrow Enhancement ─── */
.scroll-down span {
    background: linear-gradient(
        120deg,
        var(--color-text) 0%,
        var(--gold) 50%,
        var(--color-text) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.arrow-down {
    background: linear-gradient(to bottom, transparent, var(--gold));
}

.arrow-down::after {
    border-color: var(--gold);
}

/* ─── Cart Drawer Enhancement ─── */
.cart-drawer {
    border-left: 1px solid var(--gold-faint);
}

.drawer-checkout-btn {
    position: relative;
    overflow: hidden;
}

.drawer-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(204, 164, 59, 0.15),
        transparent
    );
    transition: left 0.6s var(--luxury-ease);
}

.drawer-checkout-btn:hover::before {
    left: 100%;
}

/* ─── Toast Enhancement ─── */
.toast {
    border-left: 2px solid var(--gold);
}

.toast-check {
    color: var(--gold);
    border-color: var(--gold);
}

/* ─── Dark Mode Specific Enhancements ─── */
body.dark-mode .product-image-container::before {
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(204, 164, 59, 0.06) 50%,
        transparent 70%
    );
}

body.dark-mode .stat-card {
    background: rgba(204, 164, 59, 0.02);
    border-color: rgba(204, 164, 59, 0.08);
}

body.dark-mode .vault-btn {
    border-color: rgba(204, 164, 59, 0.2);
}

body.dark-mode .vault-btn.primary {
    background: var(--gold);
    color: #0f0f0f;
    border-color: var(--gold);
}

body.dark-mode .vault-btn.primary:hover {
    background: #b8922f;
    border-color: #b8922f;
}

body.dark-mode .add-to-cart {
    border-color: rgba(240, 240, 240, 0.15);
}

body.dark-mode .add-to-cart:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(204, 164, 59, 0.08);
}

body.dark-mode .nav-glow {
    opacity: 0.6;
}

body.dark-mode .section-sacred-divider {
    color: var(--gold);
}

body.dark-mode .footer-constellation {
    opacity: 0.8;
}

/* ─── Web3 Connect Button Enhancement ─── */
.web3-connect-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--luxury-ease);
}

.web3-connect-btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.46) 46%, transparent 58%);
    transform: translateX(-140%);
    transition: transform 0.75s var(--luxury-ease);
    z-index: -1;
}

.web3-connect-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 34%;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(204, 164, 59, 0.6);
    transition: width 0.4s var(--luxury-ease), opacity 0.4s var(--luxury-ease);
    opacity: 0.8;
}

.web3-connect-btn:hover::before {
    transform: translateX(140%);
}

.web3-connect-btn:hover::after {
    width: 62%;
    opacity: 1;
}

body.dark-mode .web3-connect-btn {
    background:
        linear-gradient(#111, #111) padding-box,
        linear-gradient(135deg, var(--gold), rgba(255, 248, 231, 0.38), var(--gold)) border-box;
    color: var(--color-text) !important;
    border-color: transparent;
}

body.dark-mode .web3-connect-btn:hover {
    box-shadow: 0 4px 20px var(--gold-glow);
}

body.dark-mode .web3-connect-btn.connected {
    background:
        linear-gradient(135deg, rgba(204, 164, 59, 0.98), rgba(255, 240, 168, 0.94)) padding-box,
        linear-gradient(135deg, var(--gold), #37a37f) border-box;
    color: #050505 !important;
    border-color: transparent;
}

/* ─── Mobile Overrides for Luxury Layer ─── */
@media (max-width: 1024px) {
    .product-glow-line {
        display: none;
    }

    .section-sacred-divider {
        display: none;
    }

    #sacred-particles-canvas {
        display: none;
    }

    .nav-glow {
        display: none;
    }

    .vault-aurora-canvas {
        display: none;
    }

    .char-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── Reduced Motion Preference ─── */
@media (prefers-reduced-motion: reduce) {
    .char-reveal,
    .shimmer-text,
    .floating,
    .product-glow-line,
    .btn-ripple,
    .prana-card::before,
    .eth-card::before {
        animation: none !important;
    }

    .parallax-wrapper {
        transition: none !important;
    }

    #sacred-particles-canvas,
    .vault-aurora-canvas,
    .footer-constellation {
        display: none !important;
    }
}

/* ==========================================================================
   TWO-WORLD EXPERIENCE UPGRADE
   ========================================================================== */

.intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(204, 164, 59, 0.08), transparent 34%),
        radial-gradient(circle at 50% 12%, rgba(204, 164, 59, 0.05), transparent 34%);
    pointer-events: none;
    z-index: 0;
}

.intro-section::after {
    content: "";
    position: absolute;
    inset: 12vh 8vw;
    border: 1px solid rgba(var(--color-text-rgb), 0.05);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-section {
    isolation: isolate;
}

.product-section::before {
    content: "";
    position: absolute;
    inset: 7rem 4rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.035);
    transform: skewX(-8deg);
    pointer-events: none;
    z-index: -1;
}

.product-image-container::after {
    content: "";
    position: absolute;
    inset: -1rem;
    border: 1px solid rgba(204, 164, 59, 0.14);
    transform: translate(1rem, 1rem);
    pointer-events: none;
    z-index: -1;
}

.product-details {
    background:
        linear-gradient(135deg, rgba(var(--color-bg-rgb), 0.82), rgba(var(--color-bg-rgb), 0.62)),
        linear-gradient(145deg, rgba(204, 164, 59, 0.06), transparent 42%) !important;
}

.web3-connect-btn.connected {
    background:
        linear-gradient(135deg, rgba(204, 164, 59, 0.98), rgba(255, 240, 168, 0.94)) padding-box,
        linear-gradient(135deg, var(--gold), #37a37f) border-box;
    color: #050505 !important;
    border-color: transparent;
}

.vault-section {
    min-height: 100vh;
    padding: 7rem 4rem;
    background:
        linear-gradient(135deg, rgba(var(--color-bg-rgb), 1) 0%, rgba(var(--color-bg-rgb), 0.92) 48%, rgba(245, 236, 207, 0.96) 100%),
        radial-gradient(circle at 76% 24%, rgba(204, 164, 59, 0.13), transparent 34%),
        radial-gradient(circle at 18% 70%, rgba(55, 112, 126, 0.10), transparent 30%);
    color: var(--color-text);
    border: none;
}

.vault-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(26, 26, 26, 0.055) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(204, 164, 59, 0.10) 0 1px, transparent 1px 100%);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
    opacity: 0.55;
    pointer-events: none;
}

.vault-container {
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.vault-header {
    grid-column: 1;
    text-align: left;
    align-self: center;
    padding: 2rem 0;
}

.vault-kicker {
    color: #37a37f;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.vault-title {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 0.92;
    margin: 1rem 0 1.5rem;
}

.vault-subtitle {
    max-width: 560px;
    color: rgba(var(--color-text-rgb), 0.64);
    line-height: 1.8;
}

.vault-orbit {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 390px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(var(--color-bg-rgb), 0.18)),
        radial-gradient(circle at center, rgba(204, 164, 59, 0.16), transparent 48%);
    overflow: hidden;
}

.orbit-ring,
.orbit-core {
    position: absolute;
    border-radius: 999px;
}

.orbit-ring {
    border: 1px solid rgba(204, 164, 59, 0.24);
    animation: orbitSpin 18s linear infinite;
}

.orbit-ring-one {
    width: 260px;
    height: 260px;
    transform: rotateX(62deg) rotateZ(12deg);
}

.orbit-ring-two {
    width: 330px;
    height: 130px;
    border-color: rgba(98, 126, 234, 0.28);
    animation-duration: 24s;
    animation-direction: reverse;
}

.orbit-core {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    letter-spacing: 0.16em;
    color: var(--color-bg);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    box-shadow: 0 0 50px rgba(204, 164, 59, 0.18);
}

@keyframes orbitSpin {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

/* ─── Vault Bento Grid (3×2) ─── */
.vault-stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    position: relative;
    min-height: 168px;
    padding: 1.5rem 1.5rem 1.4rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 55%),
        rgba(var(--color-bg-rgb), 0.55);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 164, 59, 0.4), transparent);
    opacity: 0.7;
    transition: opacity 0.4s var(--luxury-ease);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.5);
}

.stat-value {
    font-family: var(--font-heading);
    font-feature-settings: "tnum" on, "lnum" on;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

.eth-card {
    border-color: rgba(98, 126, 234, 0.25);
}

.eth-card::before {
    background: linear-gradient(90deg, transparent, var(--color-eth-accent), transparent);
    opacity: 0.85;
}

.prana-card::before {
    background: linear-gradient(90deg, transparent, var(--color-prana-accent), transparent);
    opacity: 0.85;
}

.eth-card .stat-value {
    color: var(--color-eth-accent);
    text-shadow: 0 0 18px var(--color-eth-glow);
}

/* ─── Actions Bento (3×2) ─── */
.vault-actions-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    background: transparent;
    border: 0;
    padding: 0;
}

.vault-action-card {
    position: relative;
    min-height: 138px;
    padding: 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%),
        rgba(var(--color-bg-rgb), 0.5);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s var(--luxury-ease),
                border-color 0.3s var(--luxury-ease),
                box-shadow 0.3s var(--luxury-ease);
}

.vault-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 164, 59, 0.35), transparent);
    opacity: 0.5;
    transition: opacity 0.3s var(--luxury-ease);
}

.vault-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(204, 164, 59, 0.32);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.vault-action-card:hover::before {
    opacity: 1;
}

.vault-action-card.primary-action::before {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.9;
}

.vault-action-card.eth-action::before {
    background: linear-gradient(90deg, transparent, var(--color-eth-accent), transparent);
    opacity: 0.85;
}

.action-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.5);
}

.vault-btn {
    min-height: 50px;
    border-color: rgba(var(--color-text-rgb), 0.22);
    color: var(--color-text);
    background: rgba(var(--color-text-rgb), 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.vault-btn:hover {
    border-color: rgba(204, 164, 59, 0.55);
    background: rgba(204, 164, 59, 0.08);
    box-shadow: inset 0 0 0 1px rgba(204, 164, 59, 0.4);
}

.vault-btn.primary {
    border: none;
    color: #050505;
    background: linear-gradient(135deg, var(--gold), #fff0a8);
    box-shadow: 0 10px 28px rgba(204, 164, 59, 0.22);
}

.vault-btn.primary:hover {
    box-shadow: 0 12px 36px rgba(204, 164, 59, 0.36);
    background: linear-gradient(135deg, #ffd96b, var(--gold));
}

.eth-action .vault-btn {
    border-color: rgba(98, 126, 234, 0.45);
    color: var(--color-eth-accent);
}

.eth-action .vault-btn:hover {
    border-color: rgba(98, 126, 234, 0.85);
    background: rgba(98, 126, 234, 0.08);
    box-shadow: inset 0 0 0 1px rgba(98, 126, 234, 0.5);
}

/* ─── Protocol Constants Cells ─── */
.constant-cell {
    position: relative;
    min-height: 132px;
    padding: 1.2rem 1.3rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%),
        rgba(var(--color-bg-rgb), 0.5);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.constant-cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(204, 164, 59, 0.4) 50%,
        transparent 100%);
    opacity: 0.7;
}

.constant-label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.5);
}

.constant-value {
    font-family: var(--font-heading);
    font-feature-settings: "tnum" on, "lnum" on;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--color-text);
    margin-top: auto;
}

.constant-unit {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(var(--color-text-rgb), 0.55);
    margin-left: 0.18em;
}

.constant-foot {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: rgba(var(--color-text-rgb), 0.46);
    line-height: 1.4;
}

/* ─── ETH Split Bar ─── */
.constant-cell--split {
    gap: 0.7rem;
}

.eth-split-bar {
    width: 100%;
    height: 8px;
    margin-top: auto;
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(var(--color-text-rgb), 0.08);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
}

.bar-seg {
    height: 100%;
    width: var(--w, 0%);
    transition: width 0.6s var(--luxury-ease);
}
.seg-ops   { background: linear-gradient(90deg, var(--gold), #ffe89c); }
.seg-treas { background: linear-gradient(90deg, var(--color-eth-accent), #6f88ff); }
.seg-pool  { background: linear-gradient(90deg, #37a37f, #5fc8a3); }

.eth-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(var(--color-text-rgb), 0.6);
}
.eth-split-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.eth-split-legend .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.dot-ops   { background: var(--gold); }
.dot-treas { background: var(--color-eth-accent); }
.dot-pool  { background: #37a37f; }

/* ───────────────────────────────────────────────
   Vault Sections — narrative rows
   Each row is a distinct dApp surface:
   My Position / Protocol Pulse / Acquire /
   Staking Lifecycle / Yield & Redemption.
   ─────────────────────────────────────────────── */
.vault-row {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 3.5rem;
}

.vault-row + .vault-row {
    margin-top: 4rem;
}

.vault-row-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vault-row-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.78);
    white-space: nowrap;
}

.vault-row-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(204, 164, 59, 0.55) 0%,
        rgba(204, 164, 59, 0.18) 30%,
        transparent 100%);
}

.vault-row-tag {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.42);
    white-space: nowrap;
}

.vault-row-grid {
    display: grid;
    gap: 1rem;
    position: relative;
}

.vault-row-grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vault-row-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vault-row-grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Stat-card foot text (small caption under the value) */
.stat-foot {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: rgba(var(--color-text-rgb), 0.46);
    line-height: 1.4;
}

/* Action blurb in lifecycle/yield cards */
.action-blurb {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(var(--color-text-rgb), 0.65);
    margin: 0;
}

/* ─── Hero Acquire Card ─── */
.vault-action-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.4rem 2.6rem;
    background:
        linear-gradient(135deg, rgba(204, 164, 59, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
        rgba(var(--color-bg-rgb), 0.55);
    border: 1px solid rgba(204, 164, 59, 0.32);
    border-radius: 3px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vault-action-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(204, 164, 59, 0) 8%,
        rgba(204, 164, 59, 1) 50%,
        rgba(204, 164, 59, 0) 92%,
        transparent 100%);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-label {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.5);
}

.hero-price {
    font-family: var(--font-heading);
    font-feature-settings: "tnum" on, "lnum" on;
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.hero-meta {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(var(--color-text-rgb), 0.6);
    max-width: 36ch;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
}

.vault-btn--hero {
    min-height: 64px;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.hero-cta-sub {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.42);
    text-align: center;
}

/* HUD corners on the new vault-row-grid containers */
.vault-row-grid::before,
.vault-row-grid::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(204, 164, 59, 0.45);
    pointer-events: none;
    z-index: 2;
}
.vault-row-grid::before {
    top: -8px;
    left: -8px;
    border-right: 0;
    border-bottom: 0;
}
.vault-row-grid::after {
    bottom: -8px;
    right: -8px;
    border-left: 0;
    border-top: 0;
}

/* Stat cards in the new sections need top/foot anchors */
.stat-card {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.55rem;
    text-align: left;
}
.stat-card .stat-value {
    margin-top: auto;
}
.stat-card .stat-foot {
    margin-top: 0.15rem;
}

/* Lifecycle/Yield cards anchor button at bottom, blurb between */
.vault-action-card {
    align-items: stretch;
}
.vault-action-card .vault-btn {
    margin-top: auto;
}

/* ───────────────────────────────────────────────
   Futuristic Vault — light-mode polish
   Dark mode already reads as neon-vault;
   light mode gets crystalline glass + HUD framing.
   ─────────────────────────────────────────────── */
body:not(.dark-mode) .vault-section {
    background:
        linear-gradient(135deg, #fffaee 0%, #fbf3df 55%, #f4e9c8 100%),
        radial-gradient(circle at 78% 22%, rgba(204, 164, 59, 0.16), transparent 32%),
        radial-gradient(circle at 14% 76%, rgba(46, 68, 168, 0.10), transparent 30%);
}

body:not(.dark-mode) .vault-section::before {
    background:
        linear-gradient(90deg, rgba(46, 68, 168, 0.06) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(204, 164, 59, 0.10) 0 1px, transparent 1px 100%);
    background-size: 56px 56px;
    opacity: 0.7;
}

/* Ambient indigo + gold blobs floating behind the bento */
body:not(.dark-mode) .vault-container {
    position: relative;
}
body:not(.dark-mode) .vault-container::before,
body:not(.dark-mode) .vault-container::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
body:not(.dark-mode) .vault-container::before {
    top: 8%;
    left: -8%;
    background: radial-gradient(circle, rgba(46, 68, 168, 0.18), transparent 65%);
}
body:not(.dark-mode) .vault-container::after {
    bottom: 6%;
    right: -10%;
    background: radial-gradient(circle, rgba(204, 164, 59, 0.22), transparent 65%);
}
body:not(.dark-mode) .vault-container > * {
    position: relative;
    z-index: 1;
}

/* Crystalline cards: brighter surface, polished top edge, deeper shadow */
body:not(.dark-mode) .stat-card,
body:not(.dark-mode) .vault-action-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7) 60%, rgba(255, 248, 231, 0.55)),
        rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(46, 68, 168, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 1px 0 rgba(204, 164, 59, 0.18),
        0 12px 32px -12px rgba(46, 68, 168, 0.18),
        0 22px 48px -24px rgba(0, 0, 0, 0.16);
}

body:not(.dark-mode) .stat-card:hover,
body:not(.dark-mode) .vault-action-card:hover {
    border-color: rgba(204, 164, 59, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 1px 0 rgba(204, 164, 59, 0.4),
        0 18px 42px -14px rgba(46, 68, 168, 0.28),
        0 28px 64px -28px rgba(0, 0, 0, 0.2);
}

/* Sharper accent stripes (2px) with a brighter center punch */
body:not(.dark-mode) .stat-card::before,
body:not(.dark-mode) .vault-action-card::before {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(204, 164, 59, 0.0) 15%,
        rgba(204, 164, 59, 0.85) 50%,
        rgba(204, 164, 59, 0.0) 85%,
        transparent 100%);
    opacity: 0.85;
}
body:not(.dark-mode) .eth-card::before,
body:not(.dark-mode) .vault-action-card.eth-action::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(46, 68, 168, 0.0) 15%,
        rgba(46, 68, 168, 0.95) 50%,
        rgba(46, 68, 168, 0.0) 85%,
        transparent 100%);
}
body:not(.dark-mode) .prana-card::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(138, 108, 21, 0.0) 15%,
        rgba(138, 108, 21, 0.95) 50%,
        rgba(138, 108, 21, 0.0) 85%,
        transparent 100%);
}
body:not(.dark-mode) .vault-action-card.primary-action::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(204, 164, 59, 0.0) 12%,
        rgba(204, 164, 59, 1) 50%,
        rgba(204, 164, 59, 0.0) 88%,
        transparent 100%);
    height: 2px;
    opacity: 1;
}

/* HUD corner brackets get an indigo tint in light mode */
body:not(.dark-mode) .vault-row-grid::before,
body:not(.dark-mode) .vault-row-grid::after {
    border-color: rgba(46, 68, 168, 0.45);
}

/* Section eyebrow gets a subtle indigo accent dot in light mode */
body:not(.dark-mode) .vault-row-eyebrow {
    color: rgba(26, 26, 26, 0.85);
}
body:not(.dark-mode) .vault-row-line {
    background: linear-gradient(90deg,
        rgba(204, 164, 59, 0.7) 0%,
        rgba(46, 68, 168, 0.18) 50%,
        transparent 100%);
}
body:not(.dark-mode) .vault-row-tag {
    color: rgba(46, 68, 168, 0.55);
}

/* Hero card — luminous gold-indigo prism in light mode */
body:not(.dark-mode) .vault-action-hero {
    background:
        linear-gradient(135deg, rgba(204, 164, 59, 0.14), transparent 50%),
        linear-gradient(225deg, rgba(46, 68, 168, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 231, 0.6));
    border: 1px solid rgba(204, 164, 59, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 1px 0 rgba(204, 164, 59, 0.4),
        0 18px 48px -16px rgba(204, 164, 59, 0.32),
        0 28px 64px -28px rgba(46, 68, 168, 0.18);
}
body:not(.dark-mode) .vault-action-hero::before {
    height: 2px;
}

/* Stat values: slight indigo glow on the neutral cards too,
   so the entire dashboard reads as one luminous instrument panel */
body:not(.dark-mode) .stat-value {
    text-shadow: 0 0 24px rgba(46, 68, 168, 0.06);
}

/* Polished outline buttons */
body:not(.dark-mode) .vault-btn {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
    border-color: rgba(26, 26, 26, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 10px -6px rgba(46, 68, 168, 0.18);
}

body:not(.dark-mode) .vault-btn:hover {
    background: linear-gradient(180deg, rgba(255, 246, 218, 0.95), rgba(255, 232, 174, 0.7));
    border-color: rgba(204, 164, 59, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(204, 164, 59, 0.4),
        0 6px 16px -8px rgba(204, 164, 59, 0.5);
}

body:not(.dark-mode) .vault-btn.primary {
    background: linear-gradient(135deg, var(--gold) 0%, #ffe89c 50%, var(--gold) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 12px 28px -8px rgba(204, 164, 59, 0.55);
}
body:not(.dark-mode) .vault-btn.primary:hover {
    background: linear-gradient(135deg, #ffd96b 0%, #fff3b8 50%, #ffd96b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 16px 36px -8px rgba(204, 164, 59, 0.7);
}

body:not(.dark-mode) .eth-action .vault-btn {
    color: var(--color-eth-accent);
    border-color: rgba(46, 68, 168, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(232, 237, 255, 0.45));
}
body:not(.dark-mode) .eth-action .vault-btn:hover {
    background: linear-gradient(180deg, rgba(228, 235, 255, 0.95), rgba(200, 213, 255, 0.7));
    border-color: rgba(46, 68, 168, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(46, 68, 168, 0.45),
        0 6px 16px -8px rgba(46, 68, 168, 0.4);
}

/* Constants cells get the same crystalline polish as stat cards */
body:not(.dark-mode) .constant-cell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7) 60%, rgba(255, 248, 231, 0.55)),
        rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(46, 68, 168, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 1px 0 rgba(204, 164, 59, 0.15),
        0 8px 24px -10px rgba(46, 68, 168, 0.14),
        0 18px 38px -22px rgba(0, 0, 0, 0.14);
}

body:not(.dark-mode) .constant-cell::before {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(204, 164, 59, 0) 15%,
        rgba(204, 164, 59, 0.85) 50%,
        rgba(204, 164, 59, 0) 85%,
        transparent 100%);
    opacity: 0.85;
}

body:not(.dark-mode) .eth-split-bar {
    background: rgba(46, 68, 168, 0.08);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
    .vault-container {
        grid-template-columns: 1fr;
    }

    .vault-stats-grid,
    .vault-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vault-orbit {
        grid-column: 1;
        grid-row: auto;
        min-height: 280px;
    }

    .vault-section {
        padding: 6rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .vault-stats-grid,
    .vault-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .intro-title {
        font-size: 3rem;
    }

    .vault-title {
        font-size: 3.2rem;
    }

    .navbar {
        padding: 1.1rem 1rem;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .header-wallet-btn {
        padding: 0.45rem 0.55rem;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .orbit-ring-one {
        width: 190px;
        height: 190px;
    }

    .orbit-ring-two {
        width: 230px;
        height: 92px;
    }
}

/* ==========================================================================
   RESPONSIVE POLISH — STOREFRONT + CHECKOUT SHELL
   ========================================================================== */

@media (max-width: 1024px) {
    html,
    body {
        min-width: 320px;
    }

    .scroll-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        scroll-snap-type: none;
    }

    .intro-section,
    .product-section,
    .footer,
    .vault-section {
        scroll-snap-align: none;
    }

    .navbar {
        min-height: 70px;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        background: rgba(var(--color-bg-rgb), 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(var(--color-text-rgb), 0.06);
        pointer-events: auto;
    }

    .navbar.scrolled {
        padding: 0.85rem 1.25rem;
    }

    .logo {
        font-size: clamp(1rem, 4vw, 1.25rem);
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-wallet-btn {
        margin-left: auto;
        max-width: min(34vw, 145px);
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.58rem 0.7rem;
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }

    .hamburger {
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .nav-links {
        width: min(84vw, 360px);
        max-width: none;
        padding: 6rem 2rem 3rem;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1.1rem 0;
        border-bottom: 1px solid rgba(var(--color-text-rgb), 0.08);
        font-size: 0.9rem;
        line-height: 1.3;
        text-align: left;
    }

    .intro-section {
        min-height: min(820px, 100svh);
        padding: 8rem clamp(1.25rem, 6vw, 4rem) 4rem;
    }

    .intro-content {
        width: min(100%, 680px);
    }

    .intro-title {
        font-size: clamp(2.25rem, 10vw, 4.6rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .intro-subtitle {
        font-size: clamp(0.82rem, 3vw, 1.1rem);
        line-height: 1.7;
    }

    .intro-subtitle::before,
    .intro-subtitle::after {
        margin: 0 0.4rem;
    }

    .intro-text {
        font-size: clamp(0.92rem, 2.7vw, 1.05rem);
        line-height: 1.85;
        max-width: 36rem;
    }

    .hero,
    .product-section {
        min-height: auto;
        padding: 6.5rem clamp(1.1rem, 5vw, 3rem) 4.5rem;
        gap: clamp(1.75rem, 5vw, 3rem);
    }

    .hero {
        padding-top: 7.5rem;
    }

    .product-section + .product-section {
        border-top: 1px solid rgba(var(--color-text-rgb), 0.055);
    }

    .product-section::before {
        inset: 4rem 1rem;
        transform: none;
    }

    .product-section::after {
        display: none;
    }

    .product-image-container,
    .hero .product-image-container {
        width: min(100%, 620px) !important;
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 62svh;
        min-height: 320px;
        margin: 0 auto !important;
        transform: none !important;
        box-shadow:
            0 28px 70px rgba(26, 26, 26, 0.07),
            0 10px 28px rgba(26, 26, 26, 0.04);
    }

    .product-image-container::after {
        inset: -0.55rem;
        transform: translate(0.55rem, 0.55rem);
    }

    .product-image,
    .hero .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: center;
    }

    .product-details,
    .hero .product-details {
        width: min(100%, 680px) !important;
        padding: 0 !important;
        margin: 0 auto;
        align-items: stretch;
    }

    .details-content,
    .hero .details-content {
        align-items: stretch !important;
        text-align: left !important;
        width: 100% !important;
    }

    .collection-tag,
    .hero .collection-tag {
        text-align: left !important;
        line-height: 1.6;
    }

    .hero .collection-tag::after {
        left: 0;
        transform: none;
    }

    .product-title,
    .hero .product-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
        line-height: 1.06;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .product-price,
    .hero .product-price {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .product-description,
    .hero .product-description {
        max-width: none;
        text-align: left;
        margin-bottom: 2rem;
    }

    .product-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .size-selector-container {
        margin-bottom: 2rem;
    }

    .size-selector {
        display: grid;
        grid-template-columns: repeat(5, minmax(42px, 1fr));
        gap: 0.55rem;
        overflow: visible;
        padding: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .size-selector span {
        flex: initial;
        min-width: 0;
        height: 44px;
    }

    .add-to-cart,
    .hero .add-to-cart {
        max-width: none;
        width: 100%;
        min-height: 52px;
        margin: 0;
        display: grid;
        place-items: center;
    }

    .product-number {
        top: 1.5rem;
        right: 1rem;
        bottom: auto;
        left: auto;
        transform: none !important;
        font-size: clamp(4rem, 18vw, 7rem);
    }

    .vault-section {
        min-height: auto;
        padding: 6rem clamp(1.1rem, 5vw, 3rem) 4rem;
    }

    .vault-container {
        gap: 1.25rem;
    }

    .vault-header {
        padding: 0;
    }

    .vault-title {
        font-size: clamp(2.4rem, 11vw, 4.5rem);
    }

    .vault-orbit {
        min-height: 260px;
    }

    .vault-stats-grid,
    .vault-actions-grid {
        gap: 0.75rem;
        background: transparent;
        border: 0;
    }

    .vault-action-card,
    .stat-card {
        min-height: auto;
        padding: 1.25rem;
    }

    .footer-inner {
        padding: 4rem clamp(1.25rem, 5vw, 3rem);
    }

    .footer-top {
        gap: 2.5rem;
    }

    .footer-philosophy,
    .footer-care {
        max-width: none;
    }

    .footer-columns {
        gap: 1.5rem;
    }

    .cart-drawer {
        width: min(100%, 430px);
        right: min(-100%, -430px);
    }

    .cart-drawer-header,
    .cart-drawer-items,
    .cart-drawer-footer {
        padding-left: clamp(1.1rem, 5vw, 2rem);
        padding-right: clamp(1.1rem, 5vw, 2rem);
    }
}

@media (max-width: 640px) {
    .navbar {
        min-height: 64px;
        padding: 0.8rem 0.9rem;
    }

    .navbar.scrolled {
        padding: 0.7rem 0.9rem;
    }

    .logo {
        font-size: 1rem;
        max-width: 33vw;
    }

    .web3-connect-btn.header-wallet-btn {
        max-width: 35vw;
        min-height: 38px;
        padding: 0.5rem 0.55rem;
        font-size: 0.52rem;
        letter-spacing: 0.035em;
    }

    .hamburger {
        width: 38px;
        height: 38px;
        padding: 7px;
    }

    .nav-links {
        width: min(88vw, 330px);
    }

    .intro-section {
        padding: 7rem 1rem 3.5rem;
    }

    .scroll-down {
        display: none;
    }

    .hero,
    .product-section {
        padding: 5.75rem 1rem 3.75rem;
    }

    .product-image-container,
    .hero .product-image-container {
        width: 100% !important;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1.18;
    }

    .product-image-container::after {
        inset: -0.35rem;
        transform: translate(0.35rem, 0.35rem);
    }

    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        padding-top: 1.5rem;
    }

    .info-block {
        gap: 0.35rem;
    }

    .size-selector {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-number {
        right: 0.8rem;
        font-size: 4.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom,
    .footer-trust {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    .footer-trust {
        flex-direction: column;
        gap: 0.55rem;
    }

    .trust-dot {
        display: none;
    }

    .cart-drawer {
        width: 100%;
        max-width: none;
        right: -100%;
    }

    .cart-drawer-item {
        gap: 1rem;
    }

    .cart-drawer-item img {
        width: 68px;
        height: 86px;
    }

    .cart-drawer-subtotal {
        gap: 1rem;
        align-items: baseline;
    }

    #drawer-subtotal-value {
        text-align: right;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .logo {
        max-width: 30vw;
        font-size: 0.9rem;
        letter-spacing: 0.07em;
    }

    .web3-connect-btn.header-wallet-btn {
        max-width: 36vw;
        font-size: 0.48rem;
    }

    .product-title,
    .hero .product-title {
        font-size: 1.65rem;
    }

    .product-description {
        font-size: 0.88rem;
    }

    .add-to-cart,
    .drawer-checkout-btn {
        letter-spacing: 0.1em;
    }
}

/* ═══════════════════════════════════════════════
   HEADER COLLECTION DROPDOWN
   ═══════════════════════════════════════════════ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-trigger::after {
    content: '▾';
    font-size: 0.55rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: rgba(var(--color-bg-rgb), 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(var(--color-text-rgb), 0.06);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.04);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-grey);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
    pointer-events: auto;
}

.nav-dropdown-item:hover {
    color: var(--color-text);
    background: rgba(var(--color-text-rgb), 0.03);
    border-left-color: var(--color-text);
    padding-left: 1.8rem;
}

.nav-dropdown-item.active {
    color: var(--color-text);
    border-left-color: var(--color-text);
}

.nav-dropdown-item .dropdown-tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--color-grey);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(var(--color-text-rgb), 0.05);
    margin: 0.3rem 1.2rem;
}

/* Make sure dropdown is visible above everything */
.navbar {
    z-index: 200;
}

/* ═══════════════════════════════════════════════
   BROWSER-STYLE COLLECTION TABS
   ═══════════════════════════════════════════════ */

/* Editorial collection nav — centered, hairline-bounded, sliding
   underline under the active label. Replaces the skeuomorphic
   browser-tab metaphor. */

.collection-tabs-bar {
    width: 100%;
    background: rgba(var(--color-bg-rgb), 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.4rem 2rem;
    position: sticky;
    /* Sit just below the navbar's scrolled-state height (~64px). When
       the user is at the very top of the page the navbar is taller and
       the tabs bar isn't yet sticky anyway. */
    top: 64px;
    z-index: 90;
    scroll-snap-align: start;
    border-top: 1px solid rgba(var(--color-text-rgb), 0.07);
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.07);
}

.tabs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6vw, 4.5rem);
    padding: 1.1rem 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-row::-webkit-scrollbar { display: none; }

.browser-tab {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.4rem 0.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.42);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    transform: none;
}

.browser-tab:hover {
    color: rgba(var(--color-text-rgb), 0.78);
    background: transparent;
}

.browser-tab.active {
    color: var(--color-text);
    background: transparent;
    transform: none;
    font-weight: 500;
    border: 0;
}

/* Sliding underline under active — animates in via width grow. */
.browser-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.browser-tab.active::after {
    width: calc(100% - 0.4rem);
    background: var(--color-text);
}

.tab-icon {
    display: none; /* Replaced by the underline + active color */
}

/* Count rendered as inline editorial number, not a chip. */
.tab-count {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(var(--color-text-rgb), 0.4);
    font-weight: 400;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(-0.45em); /* Lifts slightly like a numeral marker */
}

.browser-tab.active .tab-count,
.browser-tab:hover .tab-count {
    color: rgba(var(--color-text-rgb), 0.7);
    background: transparent;
}

/* Empty state */
.tabs-row:empty::after {
    content: "Loading collections…";
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-grey);
    opacity: 0.45;
}

@media (max-width: 768px) {
    .collection-tabs-bar { padding: 0.25rem 1rem; }
    .tabs-row {
        padding: 0.85rem 0.5rem;
        gap: 1.75rem;
        justify-content: flex-start; /* Allow horizontal scroll on mobile */
    }
    .browser-tab {
        font-size: 0.66rem;
        letter-spacing: 0.22em;
    }
    .tab-count {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }
}

/* Dark-mode tweak: ensure inactive labels remain readable on the cream-darker void background */
body.dark-mode .browser-tab {
    color: rgba(var(--color-text-rgb), 0.45);
}
body.dark-mode .browser-tab.active { color: var(--color-text); }
body.dark-mode .browser-tab::after { background: var(--color-text); }

/* ═══════════════════════════════════════════════
   COLLECTION DIVIDER (between collections in "All" view)
   ═══════════════════════════════════════════════ */

.collection-divider {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    scroll-snap-align: start;
    position: relative;
}

.collection-divider-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-grey), transparent);
    opacity: 0.2;
}

.collection-divider-content {
    padding: 3rem 0;
}

.collection-divider-tag {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.collection-divider-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-transform: uppercase;
}

.collection-divider-desc {
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-grey);
    font-weight: 300;
}

/* Dynamic products container transition */
#dynamic-products {
    transition: opacity 0.4s ease;
}

@media (max-width: 768px) {
    .collection-tab {
        padding: 1rem 1.5rem;
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .collection-divider-title {
        font-size: 1.6rem;
    }

    .collection-divider {
        min-height: 40vh;
        padding: 4rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Luxury Glow Stage — replaces the WebGL particle/wireframe cluster
   that used to live in the hero + vault. Three soft, blurred orbs
   drift on slow keyframes; mouse-parallax wired in luxury-glow.js.
   Theme-aware via CSS vars; works without GPU.
   ═══════════════════════════════════════════════════════════════════ */
.luxury-glow-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    --glow-gold:   rgba(204, 164, 59, 0.18);
    --glow-indigo: rgba(46, 68, 168, 0.10);
    --glow-warm:   rgba(255, 220, 150, 0.16);
    --veil-tint:   rgba(255, 248, 231, 0);
    --orb-blur:    180px;
    --orb-mix:     normal;
}

body.dark-mode .luxury-glow-stage {
    --glow-gold:   rgba(201, 169, 110, 0.20);
    --glow-indigo: rgba(96, 126, 234, 0.12);
    --glow-warm:   rgba(255, 200, 120, 0.10);
    --veil-tint:   rgba(10, 10, 10, 0);
    --orb-blur:    200px;
    --orb-mix:     screen;
}

/* WebGL cosmos canvas — ambient atmosphere, below page content.
   Radial-gradient mask clears the center so headlines stay legible;
   stars only show on the outer "horizon" of each section. */
.cosmos-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: cosmosFadeIn 1.8s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    -webkit-mask-image: radial-gradient(
        ellipse 65% 55% at 50% 50%,
        rgba(0, 0, 0, 0.0)  0%,
        rgba(0, 0, 0, 0.35) 32%,
        rgba(0, 0, 0, 1.0)  78%);
    mask-image: radial-gradient(
        ellipse 65% 55% at 50% 50%,
        rgba(0, 0, 0, 0.0)  0%,
        rgba(0, 0, 0, 0.35) 32%,
        rgba(0, 0, 0, 1.0)  78%);
}

/* Vault has its bento dashboard centered; pull the mask wider so stars
   ring the cards instead of overlaying them. */
.luxury-glow-stage--vault .cosmos-canvas {
    -webkit-mask-image: radial-gradient(
        ellipse 78% 70% at 50% 50%,
        rgba(0, 0, 0, 0.0)  0%,
        rgba(0, 0, 0, 0.40) 40%,
        rgba(0, 0, 0, 1.0)  85%);
    mask-image: radial-gradient(
        ellipse 78% 70% at 50% 50%,
        rgba(0, 0, 0, 0.0)  0%,
        rgba(0, 0, 0, 0.40) 40%,
        rgba(0, 0, 0, 1.0)  85%);
}

@keyframes cosmosFadeIn {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cosmos-canvas { animation: none; opacity: 1; }
}

.luxury-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(var(--orb-blur));
    mix-blend-mode: var(--orb-mix);
    will-change: transform;
    transition:
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1s ease;
    transform: translate3d(
        calc(var(--mx, 0) * var(--mx-strength, 30px)),
        calc(var(--my, 0) * var(--my-strength, 30px)),
        0)
        scale(var(--scale, 1));
}

.orb-gold {
    width: 56vw; height: 56vw;
    max-width: 820px; max-height: 820px;
    top: -10%; right: -8%;
    background: radial-gradient(circle at 35% 35%, var(--glow-gold), transparent 65%);
    --mx-strength: 36px;
    --my-strength: 28px;
    animation: luxuryDriftA 26s ease-in-out infinite alternate;
}

.orb-indigo {
    width: 52vw; height: 52vw;
    max-width: 760px; max-height: 760px;
    bottom: -12%; left: -10%;
    background: radial-gradient(circle at 60% 50%, var(--glow-indigo), transparent 70%);
    --mx-strength: -28px;
    --my-strength: -22px;
    animation: luxuryDriftB 32s ease-in-out infinite alternate;
}

.orb-warm {
    width: 38vw; height: 38vw;
    max-width: 580px; max-height: 580px;
    top: 35%; left: 32%;
    background: radial-gradient(circle at 50% 50%, var(--glow-warm), transparent 72%);
    --mx-strength: 18px;
    --my-strength: 14px;
    opacity: 0.7;
    animation: luxuryDriftC 40s ease-in-out infinite alternate;
}

.luxury-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            var(--veil-tint) 0%,
            transparent 35%,
            transparent 65%,
            var(--veil-tint) 100%);
    pointer-events: none;
}

/* Vault variant: same stage, slightly tightened so cards don't fight orbs */
.luxury-glow-stage--vault .orb-gold   { --mx-strength: 24px; --my-strength: 20px; opacity: 0.8; }
.luxury-glow-stage--vault .orb-indigo { --mx-strength: -22px; --my-strength: -18px; opacity: 0.75; }
.luxury-glow-stage--vault .orb-warm   { opacity: 0.45; }

@keyframes luxuryDriftA {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-3vw, 4vw, 0) scale(1.06); }
    100% { transform: translate3d(2vw, -3vw, 0) scale(1.02); }
}
@keyframes luxuryDriftB {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4vw, -2vw, 0) scale(1.08); }
    100% { transform: translate3d(-2vw, 3vw, 0) scale(1.03); }
}
@keyframes luxuryDriftC {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
    50%  { transform: translate3d(2vw, -3vw, 0) scale(1.1); opacity: 0.85; }
    100% { transform: translate3d(-3vw, 2vw, 0) scale(0.95); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
    .luxury-orb { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   Numeric Typography — JetBrains Mono in both modes
   Stat values, prices, totals, and protocol constants share the
   admin-dashboard mono treatment in light AND dark mode for a
   consistent web3-instrument feel. Colors stay theme-aware.
   ═══════════════════════════════════════════════════════════════════ */
.stat-value,
.constant-value,
.constant-unit,
.hero-price,
.product-price,
.subtotal-value,
.tax-value,
.total-value,
.price-row.total {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: "tnum" on, "lnum" on;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE — Admin Dashboard Aesthetic
   Mirrors /admin/assets/css/admin.css surface palette: deep #0a0a0a
   bg, restrained #111 cards with rgba(255,255,255,0.06) borders, gold
   numerals, mono digits, no glassmorphism. Light mode untouched.
   ═══════════════════════════════════════════════════════════════════ */
body.dark-mode,
:root:has(body.dark-mode) {
    --color-bg: #0a0a0a;
    --color-bg-rgb: 10, 10, 10;
    --color-text: #f0f0f0;
    --color-text-rgb: 240, 240, 240;
    --color-grey: #999;

    --admin-surface:    #111111;
    --admin-surface-2:  #181818;
    --admin-surface-3:  #1e1e1e;
    --admin-border:     rgba(255, 255, 255, 0.06);
    --admin-border-hov: rgba(255, 255, 255, 0.12);
    --admin-text-2:     #999999;
    --admin-text-3:     #555555;
    --admin-gold:       #c9a96e;
    --admin-gold-hov:   #dfc089;
    --admin-gold-dim:   rgba(201, 169, 110, 0.15);
    --admin-radius:     10px;
    --font-mono:        'JetBrains Mono', monospace;
}

/* Vault stat cards — flat surface like admin */
body.dark-mode .stat-card,
body.dark-mode .vault-action-card,
body.dark-mode .constant-cell {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
body.dark-mode .stat-card::before,
body.dark-mode .vault-action-card::before,
body.dark-mode .constant-cell::before {
    display: none;
}
body.dark-mode .stat-card:hover,
body.dark-mode .vault-action-card:hover,
body.dark-mode .constant-cell:hover {
    border-color: var(--admin-border-hov);
    transform: none;
    box-shadow: none;
}

/* Stat values: admin renders primary numerals in gold-mono */
body.dark-mode .stat-value,
body.dark-mode .constant-value {
    font-family: var(--font-mono);
    color: var(--admin-gold);
    text-shadow: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}
body.dark-mode .stat-value.prana-glow {
    color: var(--admin-gold);
    text-shadow: none;
}
body.dark-mode .eth-card .stat-value {
    color: #60a5fa; /* admin --info */
    text-shadow: none;
}

/* Labels & footnotes: admin tertiary text */
body.dark-mode .stat-label,
body.dark-mode .constant-label,
body.dark-mode .action-eyebrow,
body.dark-mode .vault-row-tag {
    color: var(--admin-text-3);
}
body.dark-mode .stat-foot,
body.dark-mode .constant-foot,
body.dark-mode .action-blurb {
    color: var(--admin-text-2);
}
body.dark-mode .vault-row-eyebrow {
    color: var(--admin-text-2);
    font-family: var(--font-body);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}
body.dark-mode .vault-row-line {
    background: linear-gradient(90deg, var(--admin-border) 0%, transparent 100%);
    height: 1px;
}

/* HUD corner brackets become subtle gold tick marks */
body.dark-mode .vault-row-grid::before,
body.dark-mode .vault-row-grid::after {
    border-color: var(--admin-gold);
    opacity: 0.35;
    width: 12px;
    height: 12px;
}

/* Hero acquire card — solid surface with gold accent */
body.dark-mode .vault-action-hero {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.dark-mode .vault-action-hero::before {
    background: linear-gradient(90deg, transparent, var(--admin-gold), transparent);
    opacity: 0.55;
    height: 1px;
}
body.dark-mode .hero-price {
    font-family: var(--font-mono);
    color: var(--admin-gold);
    font-weight: 500;
}
body.dark-mode .hero-meta {
    color: var(--admin-text-2);
}
body.dark-mode .hero-label,
body.dark-mode .hero-cta-sub {
    color: var(--admin-text-3);
}

/* Vault buttons — admin outline + primary */
body.dark-mode .vault-btn {
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    color: var(--color-text);
    box-shadow: none;
    letter-spacing: 0.04em;
}
body.dark-mode .vault-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--admin-border-hov);
    box-shadow: none;
}
body.dark-mode .vault-btn.primary {
    background: linear-gradient(135deg, var(--admin-gold), #b8944f);
    color: #0a0a0a;
    border-color: transparent;
    box-shadow: none;
}
body.dark-mode .vault-btn.primary:hover {
    background: linear-gradient(135deg, var(--admin-gold-hov), var(--admin-gold));
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
    transform: translateY(-1px);
}
body.dark-mode .eth-action .vault-btn {
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}
body.dark-mode .eth-action .vault-btn:hover {
    background: rgba(96, 165, 250, 0.06);
    border-color: rgba(96, 165, 250, 0.55);
}

/* ETH split bar — admin-tinted segment colors */
body.dark-mode .eth-split-bar {
    background: var(--admin-surface-2);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.5);
}
body.dark-mode .seg-ops   { background: linear-gradient(90deg, var(--admin-gold), var(--admin-gold-hov)); }
body.dark-mode .seg-treas { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
body.dark-mode .seg-pool  { background: linear-gradient(90deg, #4ade80, #6ee7a3); }
body.dark-mode .dot-ops   { background: var(--admin-gold); }
body.dark-mode .dot-treas { background: #60a5fa; }
body.dark-mode .dot-pool  { background: #4ade80; }
body.dark-mode .eth-split-legend { color: var(--admin-text-2); }

/* Vault section: drop the radial blobs in dark mode for the flat admin look */
body.dark-mode .vault-section {
    background: var(--color-bg);
}
body.dark-mode .vault-section::before {
    opacity: 0;
}
body.dark-mode .vault-orbit {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.4)),
        radial-gradient(circle at center, rgba(201, 169, 110, 0.12), transparent 50%);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
}

/* Vault title + kicker tuned to admin warmth */
body.dark-mode .vault-kicker {
    color: var(--admin-gold);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
}
body.dark-mode .vault-subtitle {
    color: var(--admin-text-2);
}

/* Product detail surface in dark mode — match admin card */
body.dark-mode .product-section:not(.hero) .product-details {
    background: rgba(17, 17, 17, 0.92) !important;
    border-left: 1px solid var(--admin-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
body.dark-mode .product-section:not(.hero).left-layout .product-details {
    border-left: none;
    border-right: 1px solid var(--admin-border);
}
body.dark-mode .product-price {
    font-family: var(--font-mono);
    color: var(--admin-gold);
    font-weight: 500;
}
body.dark-mode .info-label {
    color: var(--admin-text-3);
}
body.dark-mode .info-text {
    color: var(--admin-text-2);
    opacity: 1;
}
body.dark-mode .product-info-grid {
    border-top-color: var(--admin-border);
}

/* Checkout in dark mode — admin surface for the right panel */
body.dark-mode .order-summary {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: var(--admin-radius);
    box-shadow: none !important;
}
body.dark-mode .order-summary::before {
    color: var(--admin-text-3);
}
body.dark-mode .summary-item {
    border-bottom-color: var(--admin-border);
}
body.dark-mode .summary-img--placeholder {
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
}
body.dark-mode .price-row {
    color: var(--admin-text-2);
}
body.dark-mode .price-row.total,
body.dark-mode .total-value,
body.dark-mode .subtotal-value {
    color: var(--color-text);
}
body.dark-mode .total-value {
    font-family: var(--font-mono);
    color: var(--admin-gold);
}

/* Form controls in dark-mode checkout match admin inputs */
body.dark-mode .input-group input,
body.dark-mode .input-group select,
body.dark-mode .input-group textarea {
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    color: var(--color-text);
}
body.dark-mode .input-group input:focus,
body.dark-mode .input-group select:focus,
body.dark-mode .input-group textarea:focus {
    border-color: var(--admin-gold);
    outline: none;
}
body.dark-mode .input-group label,
body.dark-mode .form-section-title {
    color: var(--admin-text-3);
}

/* Payment method cards adopt admin surfaces in dark mode */
body.dark-mode .payment-method-selector {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: var(--admin-radius);
}
body.dark-mode .payment-method-selector:hover {
    border-color: var(--admin-border-hov) !important;
    transform: none;
    box-shadow: none;
}

/* Discount panel in checkout — match admin surface-2 */
body.dark-mode .prana-discount-panel {
    background: var(--admin-surface-2);
    border: 1px dashed rgba(201, 169, 110, 0.35);
}
body.dark-mode .prana-tier-btn {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    color: var(--color-text);
}
body.dark-mode .prana-tier-btn .tier-meta {
    color: var(--admin-text-2);
}
body.dark-mode .prana-tier-btn.is-active {
    border-color: var(--admin-gold);
    background: var(--admin-gold-dim);
    box-shadow: inset 0 0 0 1px var(--admin-gold);
}

/* Place order button → admin primary */
body.dark-mode .place-order-btn {
    background: linear-gradient(135deg, var(--admin-gold), #b8944f) !important;
    color: #0a0a0a !important;
    border: none;
}
body.dark-mode .place-order-btn:hover {
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

/* Navbar in dark mode adopts admin topbar */
body.dark-mode .navbar.scrolled,
body.dark-mode .navbar.checkout-navbar {
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid var(--admin-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ════════════════════════════════════════════════════════════════
   WALLET BUTTON v2 — restrained web3-native pill
   Replaces the shimmery gold pill with a hairline outline that
   matches nav typography. Connected state uses JetBrains Mono for
   the address with a green pulse dot. Specificity is high enough
   to override the legacy `.web3-connect-btn` rules earlier in the
   file without removing them.
   ════════════════════════════════════════════════════════════════ */

.navbar .web3-connect-btn.header-wallet-btn {
    background: transparent;
    color: var(--color-text) !important;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.18);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    isolation: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.35s var(--luxury-ease), background 0.35s var(--luxury-ease), transform 0.35s var(--luxury-ease);
}

.navbar .web3-connect-btn.header-wallet-btn:hover {
    border-color: rgba(var(--color-text-rgb), 0.55);
    background: rgba(var(--color-text-rgb), 0.03);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Kill the legacy shimmer + gold underline pseudo elements */
.navbar .web3-connect-btn.header-wallet-btn::before,
.navbar .web3-connect-btn.header-wallet-btn::after {
    content: none !important;
    display: none !important;
}

/* Connected state — mono address + pulse dot */
.navbar .web3-connect-btn.header-wallet-btn.connected {
    background: rgba(var(--color-text-rgb), 0.03);
    color: var(--color-text) !important;
    border-color: rgba(var(--color-text-rgb), 0.18);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: none;
    padding-left: 0.85rem;
}

.navbar .web3-connect-btn.header-wallet-btn.connected::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #37a37f;
    box-shadow: 0 0 0 0 rgba(55, 163, 127, 0.55);
    animation: kickerPulse 2s ease-out infinite;
    flex-shrink: 0;
    inset: auto;
    position: static;
    transform: none;
    margin-right: 0.1rem;
}

.navbar .web3-connect-btn.header-wallet-btn.connected:hover {
    border-color: rgba(var(--color-text-rgb), 0.5);
    background: rgba(var(--color-text-rgb), 0.05);
}

/* Dark mode */
body.dark-mode .navbar .web3-connect-btn.header-wallet-btn {
    background: transparent;
    color: var(--color-text) !important;
    border-color: rgba(var(--color-text-rgb), 0.2);
}
body.dark-mode .navbar .web3-connect-btn.header-wallet-btn:hover {
    border-color: rgba(var(--color-text-rgb), 0.5);
    background: rgba(var(--color-text-rgb), 0.04);
}
body.dark-mode .navbar .web3-connect-btn.header-wallet-btn.connected {
    background: rgba(var(--color-text-rgb), 0.04);
    color: var(--color-text) !important;
    border-color: rgba(var(--color-text-rgb), 0.22);
}

/* Mobile tightening */
@media (max-width: 768px) {
    .navbar .web3-connect-btn.header-wallet-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.55rem;
        letter-spacing: 0.16em;
        gap: 0.4rem;
        max-width: 32vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .navbar .web3-connect-btn.header-wallet-btn.connected {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
    }
    .navbar .web3-connect-btn.header-wallet-btn.connected::before {
        width: 5px;
        height: 5px;
    }
}

/* ════════════════════════════════════════════════════════════════
   VAULT TERMINAL — crypto-vault HUD replacing the orbit visual.
   Glass panel with mono data, pulse status, supply bar, address
   line. Tightens the homepage hero to feel ledger-native rather
   than ambient.
   ════════════════════════════════════════════════════════════════ */

.vault-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #37a37f;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 500;
}
.kicker-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #37a37f;
    box-shadow: 0 0 0 0 rgba(55, 163, 127, 0.55);
    animation: kickerPulse 2s ease-out infinite;
}
@keyframes kickerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(55, 163, 127, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(55, 163, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 163, 127, 0); }
}

.vault-terminal {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.65rem 1.75rem;
    min-height: 380px;
    border-radius: 6px;
    border: 1px solid rgba(var(--color-text-rgb), 0.1);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(245, 236, 207, 0.35) 60%, rgba(204, 164, 59, 0.06));
    box-shadow:
        0 30px 80px rgba(26, 26, 26, 0.06),
        0 8px 24px rgba(26, 26, 26, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle scan-line + grid backplate */
.vt-grid-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(26, 26, 26, 0.045) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, rgba(26, 26, 26, 0.045) 0 1px, transparent 1px 28px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.vault-terminal > :not(.vt-grid-bg) { position: relative; z-index: 1; }

/* ─── Header row ─── */
.vt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(var(--color-text-rgb), 0.12);
}

.vt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.78);
}
.vt-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37a37f;
    box-shadow: 0 0 0 0 rgba(55, 163, 127, 0.5);
    animation: kickerPulse 2s ease-out infinite;
}

.vt-net {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.vt-net-label { color: rgba(var(--color-text-rgb), 0.42); font-family: var(--font-heading); }
.vt-net-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(var(--color-text-rgb), 0.85);
    text-transform: none;
}

/* ─── Center display ─── */
.vt-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 0 1.5rem;
    gap: 0.5rem;
}

.vt-symbol {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    line-height: 1;
}
.vt-symbol-mark {
    font-size: 0.85em;
    color: rgba(204, 164, 59, 0.85);
    transform: translateY(-0.04em);
}

.vt-supply {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}
.vt-supply-now { color: var(--color-text); font-weight: 500; }
.vt-supply-sep { color: rgba(var(--color-text-rgb), 0.3); }
.vt-supply-cap { color: rgba(var(--color-text-rgb), 0.55); }

.vt-supply-label {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.45);
    font-family: var(--font-heading);
}

.vt-bar {
    width: 78%;
    max-width: 320px;
    height: 2px;
    margin-top: 0.85rem;
    background: rgba(var(--color-text-rgb), 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.vt-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #cca43b, #fff8e7);
    border-radius: 999px;
}

/* ─── Footer cells ─── */
.vt-foot {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(var(--color-text-rgb), 0.12);
}

.vt-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.vt-cell-label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(var(--color-text-rgb), 0.4);
}
.vt-cell-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dark mode */
body.dark-mode .vault-terminal {
    background:
        linear-gradient(160deg, rgba(20, 20, 20, 0.85), rgba(15, 15, 15, 0.7) 60%, rgba(204, 164, 59, 0.05));
    border-color: rgba(var(--color-text-rgb), 0.14);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
body.dark-mode .vt-grid-bg {
    background:
        linear-gradient(90deg, rgba(240, 240, 240, 0.05) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, rgba(240, 240, 240, 0.05) 0 1px, transparent 1px 28px);
}
body.dark-mode .vt-bar-fill {
    background: linear-gradient(90deg, #cca43b, #f7e9b3);
}

/* ════════════════════════════════════════════════════════════════
   VAULT — MOBILE ALIGNMENT FIXES
   The vault has multiple grid layers (.vault-container, .vault-row-grid,
   .vault-action-hero, .constants-grid). Existing breakpoints only
   covered the orbit + obsolete classes; the real grids stayed wide.
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .vault-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .vault-header,
    .vault-terminal {
        grid-column: 1;
        grid-row: auto;
    }
    .vault-terminal {
        min-height: 340px;
    }
    .vault-row-grid.grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vault-action-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    .vault-section {
        padding: 5rem 1rem 4rem;
    }
    .vault-container {
        gap: 1.5rem;
    }
    .vault-header { padding: 0; }
    .vault-title {
        font-size: clamp(2.2rem, 9vw, 3.4rem);
        line-height: 1;
    }
    .vault-subtitle {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .vault-terminal {
        padding: 1.25rem 1.1rem;
        min-height: 0;
    }
    .vt-head {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .vt-net-label { display: none; }
    .vt-display { padding: 1.25rem 0 1rem; }
    .vt-symbol { font-size: 2rem; }
    .vt-supply { font-size: 0.95rem; }
    .vt-foot {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .vt-foot .vt-cell {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .vault-row { margin-top: 2.5rem; gap: 1rem; }
    .vault-row + .vault-row { margin-top: 2.5rem; }
    .vault-row-head { gap: 0.75rem; }
    .vault-row-eyebrow { font-size: 0.66rem; letter-spacing: 0.22em; }
    .vault-row-tag { display: none; }

    .vault-row-grid.grid-2,
    .vault-row-grid.grid-3,
    .vault-row-grid.grid-4 {
        grid-template-columns: 1fr;
    }
    .vault-row-grid.grid-4.constants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vault-row-grid.grid-4.constants-grid .constant-cell--split {
        grid-column: 1 / -1;
    }

    .stat-card,
    .vault-action-card {
        padding: 1.1rem 1rem;
        min-height: 0;
    }

    .vault-action-hero {
        padding: 1.5rem 1.25rem;
    }
    .hero-price { font-size: 2rem; }
    .vault-btn--hero { padding: 0.85rem 1.5rem; font-size: 0.78rem; }
}

/* ════════════════════════════════════════════════════════════════
   CATALOG v2 — Uniform Grid + Detail Modal
   Replaces the 100vh-per-product editorial scroll. Cards are
   identical regardless of how many products exist; admin no longer
   picks a layout per product. One optional "feature" slot per
   collection promotes a single product to a 2-col editorial card.
   ════════════════════════════════════════════════════════════════ */

.catalog {
    padding: 6rem 4rem 8rem;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.catalog-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: catalogFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.catalog-kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.catalog-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.catalog-subtitle {
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--color-grey);
    font-weight: 300;
}

/* Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
    align-items: start;
}

.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    color: var(--color-grey);
}
.catalog-empty p:first-child {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.catalog-empty p:last-child {
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto;
}

/* Card */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    transform: translateY(24px);
    animation: catalogFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card.feature {
    grid-column: span 2;
}

@keyframes catalogFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.product-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(var(--color-text-rgb), 0.03);
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(26, 26, 26, 0.06),
        0 12px 24px rgba(26, 26, 26, 0.04);
    transition:
        box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card.feature .product-card-media {
    aspect-ratio: 16 / 11;
}

.product-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-media .img-secondary {
    opacity: 0;
}

.product-card-placeholder,
.modal-gallery-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(var(--color-text-rgb), 0.04), rgba(var(--color-text-rgb), 0.08));
    color: var(--color-grey);
    text-align: center;
    padding: 2rem;
}
.product-card-placeholder span,
.modal-gallery-placeholder span {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    opacity: 0.35;
}
.product-card-placeholder em,
.modal-gallery-placeholder em {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.6;
    max-width: 80%;
    line-height: 1.6;
}

.product-card:hover .product-card-media {
    box-shadow:
        0 50px 100px rgba(26, 26, 26, 0.12),
        0 20px 40px rgba(26, 26, 26, 0.06);
    transform: translateY(-4px);
}

.product-card:hover .product-card-media .img-primary {
    opacity: 0;
    transform: scale(1.04);
}

.product-card:hover .product-card-media .img-secondary {
    opacity: 1;
    transform: scale(1.04);
}

/* Quick-view pill on hover */
.product-card-quickview {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translate(-50%, 12px);
    padding: 0.65rem 1.4rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.product-card:hover .product-card-quickview {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Sold-out / limited overlay badges */
.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.7rem;
    background: rgba(var(--color-bg-rgb), 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
}

.product-card-badge.sold-out {
    background: rgba(26, 26, 26, 0.88);
    color: var(--color-bg);
    border-color: transparent;
}

/* Card text block */
.product-card-info {
    padding: 1.4rem 0.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-card-tag {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-grey);
    opacity: 0.75;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text);
    line-height: 1.25;
    transition: color 0.3s ease;
}

.product-card.feature .product-card-name {
    font-size: 1.45rem;
}

.product-card-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

.product-card-edition {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-grey);
    opacity: 0.6;
    margin-top: 0.2rem;
}

/* ─── Detail Modal (drawer) ─── */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    z-index: 9000;
    pointer-events: none;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.product-modal-overlay.open {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.product-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: min(680px, 100%);
    height: 100vh;
    background: var(--color-bg);
    z-index: 9001;
    transform: translateX(105%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -40px 0 90px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.product-modal.open { transform: translateX(0); }

.product-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    background: rgba(var(--color-text-rgb), 0.05);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease, transform 0.3s ease;
}
.product-modal-close:hover {
    background: rgba(var(--color-text-rgb), 0.1);
    transform: rotate(90deg);
}

.product-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* Override legacy .product-section rules when used inside modal */
.product-modal .product-section {
    position: relative;
    height: auto;
    width: 100%;
    overflow: visible;
    display: block;
    scroll-snap-align: none;
    z-index: 1;
}

.product-modal .product-section::before,
.product-modal .product-section::after {
    display: none !important;
}

.product-modal .modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: rgba(var(--color-text-rgb), 0.03);
    overflow: hidden;
}

.product-modal .modal-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.product-modal .modal-gallery-track::-webkit-scrollbar { display: none; }

.product-modal .product-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.product-modal .modal-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    background: rgba(var(--color-bg-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
}
.product-modal .modal-gallery-dots .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-text);
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.product-modal .modal-gallery-dots .dot.active {
    opacity: 0.85;
    transform: scale(1.3);
}

/* Prev/next arrows — visible at low opacity by default so the
   scrollable affordance is discoverable without hover. */
.product-modal .modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--color-bg-rgb), 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.35s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.product-modal .modal-gallery-nav.prev { left: 1rem; }
.product-modal .modal-gallery-nav.next { right: 1rem; }

.product-modal .modal-gallery:hover .modal-gallery-nav,
.product-modal .modal-gallery-nav:focus-visible {
    opacity: 1;
}

.product-modal .modal-gallery-nav:hover {
    background: var(--color-bg);
    transform: translateY(-50%) scale(1.05);
}

.product-modal .modal-gallery-nav.is-disabled {
    opacity: 0;
    pointer-events: none;
}

/* One-time "peek" hint — gallery nudges left then settles back, cueing
   the user that more images live to the right. Plays only when the
   modal opens with multi-image content. */
@keyframes galleryPeek {
    0%   { transform: translateX(0); }
    35%  { transform: translateX(-22px); }
    70%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.product-modal.open .modal-gallery-track.has-multi {
    animation: galleryPeek 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.55s 1;
}

/* Subtle gradient hint on the right edge of the gallery so the
   "there's more →" affordance survives even without hover. Hidden
   on the last image. */
.product-modal .modal-gallery::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    background: linear-gradient(to left, rgba(var(--color-text-rgb), 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}
.product-modal .modal-gallery.has-multi:not(.at-end)::after { opacity: 1; }

.product-modal .modal-gallery-nav span {
    transform: translateY(-1px);
}

/* "1 / N" counter */
.product-modal .modal-gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(var(--color-bg-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    border-radius: 999px;
    z-index: 3;
}

@media (hover: none) {
    /* Touch devices: arrows always visible at reduced opacity (swipe still primary) */
    .product-modal .modal-gallery-nav { opacity: 0.6; }
    .product-modal .modal-gallery-nav.is-disabled { opacity: 0; }
}

@media (max-width: 700px) {
    .product-modal .modal-gallery-nav { width: 38px; height: 38px; }
    .product-modal .modal-gallery-nav.prev { left: 0.6rem; }
    .product-modal .modal-gallery-nav.next { right: 0.6rem; }
}

/* Modal info block */
.product-modal .modal-info {
    padding: 2.5rem 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
}

.product-modal .modal-tag {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 0.9rem;
}

.product-modal .product-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.product-modal .product-price {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.85;
    margin-bottom: 1.8rem;
    letter-spacing: 0.04em;
}

.product-modal .product-description {
    font-size: 0.92rem;
    line-height: 1.85;
    color: rgba(var(--color-text-rgb), 0.75);
    font-weight: 300;
    margin-bottom: 2rem;
}

.product-modal .modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.08);
    margin-bottom: 2rem;
}

.product-modal .modal-info-grid .info-block {
    display: flex; flex-direction: column; gap: 0.4rem;
}
.product-modal .modal-info-grid .info-label {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-grey);
    font-weight: 600;
}
.product-modal .modal-info-grid .info-text {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 300;
    opacity: 0.9;
}

.product-modal .size-selector-container {
    margin-bottom: 1.5rem;
}
.product-modal .modal-size-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-grey);
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.product-modal .size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}
.product-modal .size-selector span {
    flex: 0 0 auto;
    width: 52px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--color-text-rgb), 0.15);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--color-text);
    border-radius: 2px;
    background: transparent;
}
.product-modal .size-selector span:hover {
    border-color: var(--color-text);
}
.product-modal .size-selector span.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.product-modal .add-to-cart {
    width: 100%;
    padding: 1.15rem;
    margin-top: 1rem;
    background: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.product-modal .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.product-modal .add-to-cart.added {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Hide legacy ornaments inside the modal */
.product-modal .product-number,
.product-modal .scroll-indicator,
.product-modal .gallery-pagination,
.product-modal .details-bg-canvas {
    display: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.75rem;
    }
    .product-card.feature { grid-column: span 2; }
    .product-card.feature .product-card-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
    .catalog { padding: 4rem 1.25rem 5rem; }
    .catalog-header { margin-bottom: 3rem; }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .product-card.feature { grid-column: span 1; }
    .product-card.feature .product-card-media { aspect-ratio: 4 / 5; }

    .product-modal { width: 100%; }
    .product-modal .modal-info { padding: 2rem 1.5rem 3rem; }
    .product-modal .product-title { font-size: 1.55rem; }
}

/* Dark mode */
body.dark-mode .product-card-media {
    background: rgba(var(--color-text-rgb), 0.04);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.25);
}
body.dark-mode .product-card:hover .product-card-media {
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.55),
        0 20px 40px rgba(0, 0, 0, 0.35);
}
body.dark-mode .product-card-quickview {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
body.dark-mode .product-modal {
    background: #141414;
    box-shadow: -40px 0 90px rgba(0, 0, 0, 0.6);
}
body.dark-mode .product-modal-close {
    background: rgba(var(--color-text-rgb), 0.06);
    border-color: rgba(var(--color-text-rgb), 0.1);
}

/* Reveal-on-scroll for catalog grid */
.catalog-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.catalog-grid .product-card:nth-child(2) { animation-delay: 0.12s; }
.catalog-grid .product-card:nth-child(3) { animation-delay: 0.19s; }
.catalog-grid .product-card:nth-child(4) { animation-delay: 0.26s; }
.catalog-grid .product-card:nth-child(5) { animation-delay: 0.33s; }
.catalog-grid .product-card:nth-child(6) { animation-delay: 0.40s; }
.catalog-grid .product-card:nth-child(n+7) { animation-delay: 0.45s; }

/* ─── Discount badge / was-now pricing ─── */
.product-card-discount {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.32rem 0.72rem;
    background: linear-gradient(135deg, var(--color-gold, #d4af37), #b8860b);
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.price-was {
    text-decoration: line-through;
    opacity: 0.55;
    margin-right: 0.45rem;
    font-size: 0.92em;
}
.price-now {
    color: var(--color-gold, #d4af37);
    font-weight: 600;
}
.modal-discount-banner {
    display: inline-block;
    margin: 0.4rem 0 0.6rem;
    padding: 0.35rem 0.75rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--color-gold, #d4af37);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 3px;
}
