/* ==========================================================================
   DESIGN SYSTEM - IRIDESCENT MANGA (PREMIUM EDITORIAL THEME)
   ========================================================================== */

/* GLOBALS & VARIABLES */
:root {
    --bg-obsidian: #fbfbfa; /* Base page background: warm off-white */
    --bg-dark-card: #ffffff; /* Card/Panel background: pure white */
    --bg-light-card: #f5f5f4; /* Section/Alternate background: soft cream-gray */
    
    --color-cyan: #0f5cd8; /* Primary Accent: Brand Royal Blue */
    --color-cobalt: #0a46ab; /* Darker royal blue for deep contrasts */
    --color-blue-fire: #0f5cd8;
    --color-neon-purple: #1a1a1a;
    --color-red: #d93838; /* Soft primary red */
    
    --text-primary: #1a1a1a; /* Ink Dark Charcoal */
    --text-secondary: #666666; /* Muted gray for descriptions */
    --text-muted: #999999; /* Light gray for timestamps/helpers */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-ink: 1px solid #1a1a1a;
    --border-ink-thin: 1px solid #eaeaea;
    --manga-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --manga-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-obsidian);
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    min-height: 100vh;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

/* CUSTOM SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* HEADER & NAVIGATION */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(251, 251, 250, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeaea;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu.left-menu {
    justify-content: flex-end;
    width: 40%;
}

.nav-menu.right-menu {
    justify-content: flex-start;
    width: 40%;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.08em;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-cyan);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: var(--color-cyan);
}

.nav-link:hover::before {
    width: 100%;
}

.logo-container {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-block;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.03);
}

.nav-logo {
    height: 40px;
    object-fit: contain;
}

/* Cart Trigger Button */
.cart-trigger-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px;
    transition: color 0.2s;
}

.cart-trigger-btn:hover {
    color: var(--color-cyan);
}

.cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-cyan);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 3px;
    transform: translate(30%, -20%);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
    background-color: var(--bg-obsidian);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 35px auto;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* BUTTONS */
.btn-blue-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    padding: 14px 32px;
    background: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.btn-blue-fire:hover {
    background: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 92, 216, 0.25);
}

.btn-blue-fire:active {
    transform: translateY(0);
}

/* TICKER / MARQUEE */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--bg-light-card);
    border-top: 1px solid #eaeaea;
    z-index: 4;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    padding-left: 100%;
    box-sizing: content-box;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;
    animation: ticker-anim 35s linear infinite;
}

.ticker span {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0 2rem;
    letter-spacing: 0.08em;
}

.ticker span::after {
    content: " • ";
    color: var(--color-cyan);
    margin-left: 2rem;
}

/* SHOP SECTION */
.shop-section {
    width: 100%;
    background-color: var(--color-cyan); /* Flooded Brand Blue */
    padding: 90px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-header {
    width: 100%;
    max-width: 1320px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
}

.shop-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff; /* High contrast white */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none;
}

.shop-section .section-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-top: 5px;
}

.shop-section .title-deco-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--bg-obsidian) 0%, transparent 100%);
    margin-left: 40px;
    margin-bottom: 12px;
    opacity: 0.8;
    position: relative;
}

.shop-section .title-deco-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background-color: var(--bg-obsidian);
    box-shadow: none;
}

/* Shop Filter Tabs */
.shop-filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1320px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.2s ease;
}

.filter-tab:hover {
    color: #ffffff;
}

.filter-tab.active {
    color: #ffffff;
}

.filter-tab.active::after {
    width: 100%;
}

.filter-tab[data-filter="blaze"]:hover {
    color: #ff2a7a;
}

.filter-tab[data-filter="blaze"].active {
    color: #ff2a7a;
}

.filter-tab[data-filter="blaze"]::after {
    background-color: #ff2a7a;
}

/* PRODUCT GRID */
.product-grid {
    width: 100%;
    max-width: 1320px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    z-index: 5;
}

/* PRODUCT CARD */
.product-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Badge overlay */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-cyan);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    z-index: 10;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-badge.out-of-stock {
    background-color: var(--text-muted);
    color: #ffffff;
}

/* Image container */
.product-img-wrapper {
    width: 100%;
    padding-top: 130%; /* Book ratio aspect */
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light-card);
    border-bottom: 1px solid #eaeaea;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

/* Card details */
.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #ffffff;
}

.product-type {
    font-size: 0.8rem;
    color: var(--color-cyan);
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-add-to-cart {
    background: var(--bg-light-card);
    border: none;
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-add-to-cart:hover {
    background: var(--color-cyan);
    color: #ffffff;
    transform: scale(1.05);
}

/* DATABASE/LORE SECTION (Manga Panel Layout) */
.db-section {
    padding: 80px 40px;
    background-color: var(--bg-obsidian);
    border-top: var(--border-ink);
    border-bottom: var(--border-ink);
    position: relative;
}

.db-container {
    max-width: 1320px;
    margin: 0 auto;
}

.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .db-grid {
        grid-template-columns: 1fr;
    }
}

.db-card {
    background-color: #ffffff;
    border: var(--border-ink);
    padding: 40px;
    position: relative;
    box-shadow: var(--manga-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.db-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--manga-shadow-hover);
}

.db-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: var(--border-ink-thin);
    padding-bottom: 12px;
}

.db-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-cyan);
}

.db-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.db-card-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.db-corner-deco {
    display: none !important;
}

/* CART DRAWER SLIDE OUT */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background-color: var(--bg-dark-card);
    border-left: 1px solid #eaeaea;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

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

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.cart-close-btn:hover {
    color: var(--color-cyan);
}

/* Cart Items Container */
.cart-items-container {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-state {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.cart-empty-state .empty-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--text-primary);
}

.cart-empty-state p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Item block styling */
.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.cart-item-img-wrapper {
    width: 70px;
    height: 91px; /* Maintain manga book aspect */
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--color-cyan);
    text-transform: uppercase;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background-color: #ffffff;
}

.cart-qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.cart-qty-btn:hover {
    color: var(--color-cyan);
}

.cart-qty-val {
    width: 25px;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--color-red);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--text-primary);
}

/* Cart Footer */
.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid #eaeaea;
    background-color: var(--bg-light-card);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.cart-subtotal {
    font-size: 1.25rem;
    color: var(--color-cyan);
    font-weight: 700;
}

.shipping-alert {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.shipping-alert .needed-amount {
    color: var(--color-cyan);
    font-weight: 700;
}

.cart-action-container {
    margin-top: 20px;
}

.checkout-btn {
    width: 100%;
    text-align: center;
}

/* FOOTER */
.cyber-footer {
    background-color: var(--bg-obsidian);
    border-top: var(--border-ink);
    padding: 60px 40px;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo-img {
    height: 45px;
    object-fit: contain;
    opacity: 0.95;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 5px var(--color-cyan);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* Blue Flame Flicker Effect */
@keyframes blue-flame-flicker {
    0% {
        transform: translateY(0) scaleY(1);
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        transform: translateY(-2px) scaleY(1.05);
        filter: hue-rotate(-5deg) brightness(1.2);
    }
    100% {
        transform: translateY(1px) scaleY(0.95);
        filter: hue-rotate(5deg) brightness(0.9);
    }
}

/* Fire Sparks Rising */
@keyframes blue-fire-sparks {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.8;
    }
    50% {
        background-position: 5px -10px, -5px -12px, 3px -8px, -4px -15px, 2px -9px;
        opacity: 1;
    }
    100% {
        background-position: 10px -25px, -10px -30px, 6px -20px, -8px -35px, 4px -22px;
        opacity: 0;
    }
}

/* Glitch Title text animations */
@keyframes glitch-anim {
    0% {
        clip: rect(21px, 9999px, 86px, 0);
    }
    10% {
        clip: rect(82px, 9999px, 140px, 0);
    }
    20% {
        clip: rect(135px, 9999px, 5px, 0);
    }
    30% {
        clip: rect(4px, 9999px, 115px, 0);
    }
    40% {
        clip: rect(98px, 9999px, 53px, 0);
    }
    50% {
        clip: rect(62px, 9999px, 131px, 0);
    }
    60% {
        clip: rect(110px, 9999px, 22px, 0);
    }
    70% {
        clip: rect(15px, 9999px, 92px, 0);
    }
    80% {
        clip: rect(74px, 9999px, 107px, 0);
    }
    90% {
        clip: rect(123px, 9999px, 44px, 0);
    }
    100% {
        clip: rect(3px, 9999px, 126px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(76px, 9999px, 116px, 0);
    }
    11% {
        clip: rect(4px, 9999px, 61px, 0);
    }
    22% {
        clip: rect(122px, 9999px, 13px, 0);
    }
    33% {
        clip: rect(35px, 9999px, 105px, 0);
    }
    44% {
        clip: rect(91px, 9999px, 82px, 0);
    }
    55% {
        clip: rect(58px, 9999px, 125px, 0);
    }
    66% {
        clip: rect(104px, 9999px, 47px, 0);
    }
    77% {
        clip: rect(19px, 9999px, 88px, 0);
    }
    88% {
        clip: rect(69px, 9999px, 103px, 0);
    }
    100% {
        clip: rect(113px, 9999px, 28px, 0);
    }
}

@keyframes glitch-color {
    0% {
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    }
    50.1% {
        text-shadow: -2px -2px 0 var(--color-cyan), 2px 2px 0 var(--color-red);
    }
    52% {
        text-shadow: -2px -2px 0 var(--color-cyan), 2px 2px 0 var(--color-red);
    }
    52.1% {
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }
}

/* Marquee / Ticker loop translation */
@keyframes ticker-anim {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Lore Status blinking */
@keyframes blink {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px var(--color-cyan);
    }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        padding: 6px 8px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .glitch-title {
        font-size: 3.5rem;
    }
    
    .glitch-subtitle {
        font-size: 1.3rem;
        letter-spacing: 0.3em;
    }
    
    .hero-description {
        font-size: 1.0rem;
        letter-spacing: 0.12em;
    }
    
    .shop-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2.0rem;
    }
    
    .title-deco-line {
        margin-left: 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* CUSTOM NEON CURSOR SYSTEM */
/* STORY & DOSSIER SECTION */
.story-section {
    background-color: var(--bg-obsidian);
    padding: 90px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.story-container {
    width: 100%;
    max-width: 1320px;
}

.story-layout {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Synopsis Banner */
.story-synopsis-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 4px solid var(--color-cyan);
    border-radius: 6px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.synopsis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}

.story-synopsis-card p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 500;
}

.story-synopsis-card p strong {
    color: var(--color-cyan);
}

/* Hide cyber scanlines in clean theme */
.cyber-scanline-light {
    display: none !important;
}

/* Dossier Panel */
.dossier-panel {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .dossier-panel {
        grid-template-columns: 1fr;
    }
}

/* Character Dossier Tabs list */
.dossier-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid #eaeaea;
    padding-left: 0;
}

.dossier-tab {
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-left: -1px;
    transition: all 0.2s;
}

.dossier-tab:hover {
    color: var(--color-cyan);
    border-left-color: var(--color-cyan);
    padding-left: 24px;
}

.dossier-tab.active {
    color: var(--text-primary);
    font-weight: 700;
    border-left-color: var(--color-cyan);
    background: rgba(15, 92, 216, 0.03);
    padding-left: 24px;
}

.tab-index {
    color: inherit;
    opacity: 0.7;
    margin-right: 8px;
}

/* Dossier Content Card (Right column) */
.dossier-content-card-wrapper {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    min-height: 480px;
    position: relative;
    display: flex;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.dossier-content-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 650px) {
    .dossier-content-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .dossier-img-wrapper {
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
}

.dossier-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    background-color: var(--bg-light-card);
    border-right: 1px solid #eaeaea;
}

.dossier-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide glitch bars */
.dossier-glitch-bar {
    display: none !important;
}

.dossier-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dossier-char-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.dossier-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .dossier-meta-grid {
        grid-template-columns: 1fr;
    }
}

.dossier-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dossier-bio-heading {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dossier-bio-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Dossier loading transitions */
.dossier-content-card.glitching {
    opacity: 0.7;
    transform: translateY(3px);
}

@keyframes dossier-glitch {
    0% { transform: skewX(5deg); filter: hue-rotate(90deg); }
    50% { transform: skewX(-5deg) scaleY(0.9); filter: invert(0.1); }
    100% { transform: skewX(0deg); filter: hue-rotate(0deg); }
}

/* NATIVE CURSOR RESTORED */

/* ABOUT PAGE HELPER STYLES */
.about-hero {
    padding: 100px 40px 60px 40px;
    background-color: var(--bg-obsidian);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.about-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-tagline {
    font-size: 0.85rem;
    color: var(--color-cyan);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-top: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.about-bio-section {
    padding: 80px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.about-container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-profile-intro {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0;
    line-height: 1.3;
}

.origin {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-cta-card {
    background-color: var(--bg-light-card);
    padding: 30px;
    border-radius: 6px;
    margin-top: 40px;
    border: 1px solid #eaeaea;
}

.about-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.about-cta-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-bio-text-column p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.about-bio-text-column p:last-child {
    margin-bottom: 0;
}

.about-tour-section {
    padding: 90px 40px;
    background-color: #f5f5f4;
    border-bottom: 1px solid #eaeaea;
}

.tour-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tour-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0;
}

.tour-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .con-grid {
        grid-template-columns: 1fr;
    }
}

.con-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.con-loc {
    font-size: 0.75rem;
    color: var(--color-cyan);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.con-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0 15px 0;
    color: var(--text-primary);
}

.con-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.booth-details-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    border-left: 4px solid var(--color-cyan);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.booth-details-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.booth-details-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.about-portfolio-section {
    padding: 90px 40px;
    background-color: #ffffff;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0;
}

.portfolio-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.actor-card {
    background-color: var(--bg-light-card);
    padding: 20px 25px;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s, border-color 0.2s;
}

.actor-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-cyan);
}

.actor-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.actor-credits {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* BLUE FIRE INTERACTIVE CURSOR */
@media (pointer: fine) {
    body, a, button, select, input, textarea, .btn-blue-fire, .btn-add-to-cart, .cart-trigger-btn, .dossier-tab, .filter-tab {
        cursor: auto;
    }
    
    #custom-cursor-dot {
        width: 22px;
        height: 28px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 1C16 1 8 10 8 18a8 8 0 0 0 16 0C24 10 16 1 16 1z' fill='url(%23outerGrad)'/><path d='M16 7c0 0-5 6-5 11a5 5 0 0 0 10 0c0-5-5-11-5-11z' fill='url(%23innerGrad)'/><defs><linearGradient id='outerGrad' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%234b8df8'/><stop offset='60%' stop-color='%230f5cd8'/><stop offset='100%' stop-color='%237000ff'/></linearGradient><linearGradient id='innerGrad' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%23ffffff'/><stop offset='50%' stop-color='%234b8df8'/><stop offset='100%' stop-color='%230f5cd8'/></linearGradient></defs></svg>");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10001;
        transform: translate(-50%, -50%);
        transform-origin: center center;
        opacity: 0;
        filter: drop-shadow(0 0 4px var(--color-cyan)) drop-shadow(0 0 8px var(--color-cobalt));
        transition: opacity 0.3s ease, width 0.2s, height 0.2s, filter 0.2s;
        animation: cursor-flame-flicker 0.8s infinite alternate ease-in-out;
    }
    
    #custom-cursor-dot.hover {
        width: 32px;
        height: 40px;
        filter: drop-shadow(0 0 8px var(--color-cyan)) drop-shadow(0 0 16px var(--color-cobalt));
    }
}

@keyframes cursor-flame-flicker {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(-1deg);
    }
    50% {
        transform: translate(-50%, -50%) scaleY(1.15) scaleX(0.9) rotate(1deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-0.5deg);
    }
}

/* BLAZE MANGA PINK CATEGORY CARD STYLING */
.product-card[data-category="blaze"] .product-badge {
    background-color: #ff2a7a !important;
}

.product-card[data-category="blaze"] .product-type {
    color: #ff2a7a !important;
}

.product-card[data-category="blaze"] .btn-add-to-cart:hover {
    background-color: #ff2a7a !important;
    color: #ffffff !important;
}

/* HOMEPAGE COLLECTIONS GRID & CARDS */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.collection-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 42, 122, 0.4);
}

.collection-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f5f5f5;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-img {
    transform: scale(1.04);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-btn {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-btn {
    transform: translateY(0);
}

.collection-info {
    padding: 24px;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.collection-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--bg-obsidian);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.collection-card:hover .collection-name {
    color: #ff2a7a;
}

.collection-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}



/* Full-bleed promo splash with a readable foreground and a neutral loading background. */
.hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    padding: 115px 24px 100px;
    isolation: isolate;
    background: #080b12;
}
.hero-background, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-background { z-index: 0; }
.hero-background video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-shade { z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.62) 50%, rgba(0,0,0,.78)); }
.hero-content { z-index: 2; width: 100%; max-width: 740px; }
.hero-logo-wrapper { max-width: 500px; }
.hero-logo-img { filter: drop-shadow(0 2px 3px rgba(255,255,255,.85)) drop-shadow(0 4px 20px rgba(0,0,0,.8)); }
.hero-description { color: #fff; text-shadow: 0 2px 12px #000; }
.hero-cta-container .btn-blue-fire { background: var(--color-cyan); box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-cta-container .btn-blue-fire:hover { background: #1748ac; }
@media (max-width: 600px) {
    .hero-section { min-height: 600px; padding: 110px 20px 115px; }
    .hero-logo-wrapper { max-width: 340px; }
    .hero-background video { object-position: 50% center; }
    .hero-description { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-background video { visibility: hidden; }
    .hero-section .ticker { animation: none; }
}

.hero-loader { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #080b12; pointer-events: none; }
.hero-loader[hidden] { display: none; }
.hero-loader-logo { position: relative; width: min(68vw, 420px); }
.hero-loader-logo img { display: block; width: 100%; opacity: .2; filter: grayscale(1); }
.hero-loader-fill { position: absolute; inset: 0; background: #2875ff; -webkit-mask: url("assets/iridescent-logo.png") center / contain no-repeat; mask: url("assets/iridescent-logo.png") center / contain no-repeat; animation: hero-logo-fill 2.4s ease-in-out infinite alternate; }
@keyframes hero-logo-fill {
    from { clip-path: polygon(0 100%, 20% 96%, 40% 100%, 60% 96%, 80% 100%, 100% 96%, 100% 100%, 0 100%); }
    to { clip-path: polygon(0 3%, 20% 0, 40% 3%, 60% 0, 80% 3%, 100% 0, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-loader { display: none; }
    .hero-loader-fill { animation: none; }
    .hero-section .hero-content { transform: none !important; }
}

/* Keep native image drag and long-press image saving off on supported browsers. */
img { -webkit-user-drag:none; -webkit-touch-callout:none; }
