:root {
    --primary: #ff0000;
    /* Original Red */
    --primary-glow: rgba(255, 0, 0, 0.4);
    --secondary: #1a1a1a;
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 15, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --liquid-ease: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Brutal Liquid Transition */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary);
    transform: translateY(100%);
    z-index: 1100;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* SVG Distortion Filters */
#svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}

.distort-on-hover:hover {
    filter: url(#glitch-filter);
}

body.loading {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    cursor: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.urban-font {
    font-family: 'Staatliches', cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    font-family: 'Staatliches', cursive;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    margin-left: 30px;
    letter-spacing: 2px;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Custom Cursor */
#cursor {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100000;
    pointer-events: none;
    mix-blend-mode: difference;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.1s ease-out;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta-wrapper {
    position: absolute;
    bottom: 5vh;
    /* Bajando el botón hasta el borde inferior */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}



.hero-bg-container {
    position: absolute;
    inset: -10%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) brightness(0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1400px;
}



.hero-title {
    font-family: 'Staatliches', cursive;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    max-width: 1200px;
}

.hero-line {
    line-height: 0.9;
    white-space: nowrap;
}

.line-1 {
    font-size: clamp(4rem, 15vw, 12rem);
    color: #fff;
}

.line-2 {
    font-size: clamp(4rem, 15vw, 12rem);
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
    margin-top: -0.1em;
}

.line-3 {
    font-size: clamp(2rem, 8vw, 6rem);
    color: #fff;
    align-self: flex-end;
    letter-spacing: 10px;
}

.hero-subtitle {
    font-family: 'Staatliches', cursive;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: #C4C4C9;
    /* Updated Color */
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    font-size: 20vw;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    text-align: center;
}

/* Branded Logos */
.branding-logo {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
}

.logo-stack,
.button-logo-stack,
.button-logo-stack-small {
    display: flex;
    flex-direction: column;
    line-height: 0.8;
    align-items: flex-start;
}

.logo-la {
    color: #fff;
    /* White solid */
    font-weight: 800;
    letter-spacing: -1px;
    -webkit-text-stroke: 0;
}

.logo-esq {
    color: transparent;
    -webkit-text-stroke: 2px #ff0000;
    /* Red outlined */
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-logo {
    color: inherit;
    text-decoration: none;
    font-size: 1.8rem;
}

/* Nav Logo Adjustments (Design Restore) */
.nav-logo .logo-la {
    color: #fff;
    -webkit-text-stroke: 0;
    text-decoration: none;
    /* Removed underline from LA to avoid overlap */
}

.nav-logo .logo-esq {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    /* Thinner line */
    text-underline-offset: 5px;
}

.nav-logo .logo-stack {
    gap: 2px;
    /* Slight gap adjustment */
}

.button-logo-stack-small .logo-la,
.button-logo-stack-small .logo-esq {
    font-size: 1.5rem;
}

/* Side Logos Styling */
.button-logo-stack-small .logo-la {
    color: #fff;
    -webkit-text-stroke: 0;
}

.button-logo-stack-small .logo-esq {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
}

.logo-stack .branding-logo {
    height: 160px;
    /* Base size for large logo */
}

.button-logo-stack .branding-logo {
    height: 110px;
    /* Base size for nav/button logo */
}

.button-logo-stack-small .branding-logo {
    height: 55px;
    /* Base size for section header logo */
}

/* Old text sizes - keeping for compatibility during migration */
.logo-stack .logo-la,
.logo-stack .logo-esq {
    font-size: 5rem;
}

/* Sections */
.cinematic-section {
    padding: 100px 0;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-header h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #C4C4C9;
    opacity: 0.9;
}

.section-header .line {
    flex-grow: 1;
    height: 3px;
    background: var(--primary);
}

.news-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #111;
}

.news-grid::-webkit-scrollbar {
    height: 6px;
}

.news-grid::-webkit-scrollbar-track {
    background: #111;
}

.news-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Ensure cards don't shrink and snap to view */
.news-grid .news-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .news-grid .news-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .news-grid .news-card {
        flex: 0 0 85%;
    }
}

.news-card {
    /* Base card style */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--primary);
}

/* News Specific */
.news-card {
    height: 550px;
    display: flex;
    flex-direction: column;
}

.news-img-box {
    width: 100%;
    height: 50%;
    overflow: hidden;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-img-box img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.news-content p {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Merch Specific */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Merch Specific Fixes */
.merch-image-container {
    width: 100%;
    height: 450px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.merch-item:hover .merch-image-container img {
    transform: scale(1.08);
    /* Subtle hover zoom on grid */
}

.merch-info {
    padding: 0 10px 10px;
}

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

.merch-price {
    font-size: 2.2rem;
    color: var(--primary);
    font-family: 'Staatliches';
    margin: 5px 0 15px;
}

.btn-buy {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Staatliches';
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-buy:hover {
    color: #000;
}

.btn-buy:hover::before {
    left: 0;
}

.btn-buy:active {
    transform: scale(0.95);
}

.btn-buy:disabled {
    border-color: #333;
    color: #333;
    cursor: not-allowed;
}

/* Crew Specific */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.crew-card {
    padding: 20px;
}

.crew-img-box {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    overflow: hidden;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.8s ease;
    background: #000;
}

.crew-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.crew-card:hover .crew-img-box {
    filter: grayscale(0.5) contrast(1.2);
}

.crew-info {
    text-align: center;
}

.crew-info h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.crew-info p {
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 3px;
}

/* Tickets */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-row {
    display: grid;
    grid-template-columns: 120px 250px 1fr auto;
    align-items: center;
    padding: 30px 50px;
    background: #050505;
    border-left: 0px solid var(--primary);
    transition: all 0.3s ease;
    gap: 40px;
}

.ticket-row:hover {
    border-left-width: 10px;
    background: #0a0a0a;
}

.ticket-img-box {
    width: 250px;
    height: 140px;
    overflow: hidden;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.6s ease;
    border: 1px solid #1a1a1a;
}

.ticket-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ticket-row:hover .ticket-img-box {
    filter: grayscale(0) contrast(1.2);
    border-color: var(--primary);
}

.ticket-date {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--primary);
}

.ticket-month {
    font-size: 1.5rem;
}

/* Buttons */
.btn-urban {
    padding: 18px 50px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-family: 'Staatliches';
    font-size: 1.5rem;
    display: inline-block;
    border: 1px solid var(--primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition);
    letter-spacing: 3px;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), transparent);
}

.btn-urban::before {
    content: '';
    position: absolute;
    top: 0;
    left: -101%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.8;
}

.btn-urban:hover {
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-urban:hover::before {
    left: 101%;
}

/* Clean Urban Text (Replaces Neon) */
.neon-text {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
.apple-entry {
    opacity: 0;
    will-change: transform, opacity;
}

#loader-esquina {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

@keyframes esquina-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: invert(1) drop-shadow(0 0 20px var(--primary));
    }
}

/* Glitch Animation for Loader Logo (Intermediate) */
@keyframes glitch-aggressive {
    0% {
        transform: translate(0) skew(0deg);
        opacity: 1;
    }

    10% {
        transform: translate(-1px, 1px) skew(-2deg);
        opacity: 0.9;
    }

    20% {
        transform: translate(1px, -1px) skew(2deg);
        opacity: 1;
    }

    30% {
        transform: translate(-2px, 0) skew(-5deg);
        opacity: 0.8;
        /* Less flicker */
    }

    40% {
        transform: translate(2px, 1px) skew(1deg);
        opacity: 1;
    }

    50% {
        transform: translate(0, 2px) skew(0);
        opacity: 1;
    }

    60% {
        transform: translate(-1px, -2px) skew(-1deg);
        opacity: 0.9;
    }

    70% {
        transform: translate(2px, 1px) skew(4deg);
        opacity: 1;
    }

    80% {
        transform: translate(-1px, -1px) skew(-1deg);
        opacity: 1;
        /* No cutout */
    }

    90% {
        transform: translate(1px, 1px) skew(0);
        opacity: 1;
    }

    100% {
        transform: translate(0) skew(0);
        opacity: 1;
    }
}

#loader-esquina .logo-stack {
    animation: glitch-aggressive 0.25s infinite linear alternate-reverse;
}

#loader-esquina .logo-la {
    color: #fff;
    -webkit-text-stroke: 0;
}

#loader-esquina .logo-esq {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    text-decoration: none;
}

/* Glitch Animation for Loader Logo */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

#loader-esquina .logo-la,
#loader-esquina .logo-esq {
    animation: glitch-skew 0.3s infinite;
    display: inline-block;
}

/* Footer */
footer {
    padding: 100px 0 60px;
    text-align: center;
    background: #0C0C0D;
    border-top: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.footer-branding-large {
    width: 100%;
    opacity: 0.03;
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 20vw;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    white-space: nowrap;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 5;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-left {
    text-align: left;
}

.footer-left .logo-la {
    color: #fff;
    -webkit-text-stroke: 0;
}

.social-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Staatliches';
    font-size: 1.1rem;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 15px;
}

.footer-sub {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 3px;
    margin-top: 60px;
    font-family: 'Outfit', sans-serif;
}

/* Video Hub */
.video-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.shorts-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #111;
}

.shorts-grid::-webkit-scrollbar {
    height: 6px;
}

.shorts-grid::-webkit-scrollbar-track {
    background: #111;
}

.shorts-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.shorts-grid .video-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    grid-column: auto !important;
}

@media (max-width: 768px) {
    .shorts-grid .video-card {
        flex: 0 0 80%;
    }
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.video-card {
    grid-column: span 4;
}

.video-info p.label {
    margin: 5px 0 0;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-info p.desc {
    margin: 10px 0 0;
    color: #888;
    font-size: 1rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.img-fallback-msg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper.vertical {
    padding-bottom: 177.78%;
    /* 9:16 Aspect Ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.5s ease;
}

.video-card:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* Video Covers & Play Button */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.5s ease, transform 0.8s ease;
    z-index: 2;
}

.video-card:hover .video-cover {
    filter: grayscale(0) contrast(1);
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--primary-glow);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 40px var(--primary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
}

.video-wrapper.active .video-cover,
.video-wrapper.active .play-button {
    display: none;
}

.video-info {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.video-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.video-card.featured .video-info h3 {
    font-size: 2.5rem;
}

.video-info p {
    margin: 5px 0 0;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .video-card:not(.featured) {
        grid-column: span 12;
    }

    .video-card.featured .video-info h3 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .ticket-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    #cursor,
    #cursor-follower {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* --- SHOP SYSTEM (CART & MODAL) --- */
.cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #0c0c0d;
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

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

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

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #151515;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

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

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.cart-item-info span {
    font-weight: 800;
    color: var(--primary);
}

.cart-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #444;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-footer {
    padding: 30px;
    background: #111;
    border-top: 1px solid #222;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'Staatliches';
    font-size: 1.5rem;
}

/* --- BOUTIQUE MERCH MODAL (CONSOLIDATED 2026) --- */
.merch-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.merch-modal.active {
    display: flex;
}

.merch-modal .modal-content {
    background: #e8e8e8 !important;
    /* Elegant Boutique Gray */
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    /* Seamless design */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border-radius: 4px;
}

.merch-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    transition: all 0.3s ease;
}

.merch-modal .modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

.merch-modal .modal-left {
    background: #dcdcdc;
    /* Balanced contrast for image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.merch-modal .modal-left img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.merch-modal .modal-left:hover img {
    transform: scale(2.2);
    transform-origin: center;
}

.merch-modal .modal-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: #000;
}

.merch-modal h2 {
    font-family: 'Staatliches', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1;
}

/* Redesigned Modal Price Block */
.merch-modal .price-container {
    background: #1a1a1a !important;
    padding: 20px !important;
    margin: 10px -40px 30px !important;
    /* Offset padding for full-width effect */
    text-align: center;
    border-left: 6px solid var(--primary);
}

.merch-modal #modal-price {
    color: #fff !important;
    font-size: 2.4rem !important;
    font-weight: 800;
}

.merch-modal .modal-hint {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Variant Design Sync */
.merch-modal .variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.merch-modal .variant-btn {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    padding: 15px 10px;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
}

.merch-modal .variant-btn:hover:not(:disabled) {
    background: #f9f9f9 !important;
    border-color: #999 !important;
    transform: translateY(-2px);
}

.merch-modal .variant-btn.selected {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

.merch-modal .variant-btn .v-size {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000 !important;
    font-family: 'Staatliches';
}

.merch-modal .variant-btn .v-color {
    font-size: 0.75rem;
    color: #888;
}

.merch-modal .variant-btn .v-stock-label {
    font-size: 0.6rem;
    margin-top: 5px;
    font-weight: 700;
}

/* Cart Button Sync */
.merch-modal #btn-add-to-cart {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 22px !important;
    font-family: 'Staatliches', cursive;
    font-size: 1.5rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.merch-modal #btn-add-to-cart:hover:not(:disabled) {
    background: #1a1a1a !important;
    color: #fff !important;
    letter-spacing: 4px;
}

.merch-modal #btn-add-to-cart:disabled {
    background: #eee !important;
    color: #aaa !important;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .merch-modal .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
        overflow-y: auto;
    }

    .merch-modal .modal-right {
        padding: 30px;
    }

    .merch-modal .price-container {
        margin: 10px -30px 20px !important;
    }
}

/* --- NEWS MODAL ÉLITE --- */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.news-modal-container {
    background: #000;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #222;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.1);
}

.news-modal-container::-webkit-scrollbar {
    width: 6px;
}

.news-modal-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.news-modal-header {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.news-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, #000, transparent);
}

.news-modal-content {
    padding: 40px 60px;
    position: relative;
}

@media (max-width: 768px) {
    .news-modal-content {
        padding: 30px 20px;
    }

    .news-modal-header {
        height: 35vh;
    }
}

.news-modal-content h2 {
    font-size: 4rem;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .news-modal-content h2 {
        font-size: 2.5rem;
    }
}

.news-text-content {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    max-width: 800px;
}

.news-text-content p {
    margin-bottom: 25px;
}

/* Close button consistently styled across modals */
.news-modal .modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s;
}

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

/* Elite Back Button */
.btn-back-elite {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border: 1px solid transparent;
}

.btn-back-elite:hover {
    color: var(--primary);
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* PIXEL UNIVERSE (INTERACTIVE ESQUINA) */
.interactive-map-wrapper {
    margin-top: 50px;
    background: #000;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.map-container {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    position: relative;
    background: url('../assets/maracay_bg.png') center/cover no-repeat;
    image-rendering: pixelated;
    cursor: crosshair;
}

.habitants-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.habitant {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
}

.habitant img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.habitant:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 100;
}

.habitant:hover img {
    filter: drop-shadow(0 0 20px var(--primary));
}

.habitant-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    font-family: 'Staatliches';
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.habitant:hover .habitant-tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.4));
    pointer-events: none;
    z-index: 5;
}

.map-controls {
    padding: 15px;
    background: #111;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.map-hint {
    font-family: 'Staatliches';
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* HUD System (Mobile Only) */
.hud-btn,
.hud-menu {
    display: none;
}


/* --- MAP EXPLORER MODAL --- */
.map-explorer-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-explorer-modal.active {
    display: flex;
    opacity: 1;
}

.explorer-header {
    height: 70px;
    background: #111;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-shrink: 0;
}

.explorer-header h3 {
    margin: 0;
    letter-spacing: 4px;
    color: var(--primary);
}

.close-explorer {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.explorer-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    background: #050505;
}

.explorer-body:active {
    cursor: grabbing;
}



.explorer-footer {
    height: 50px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Staatliches';
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #666;
    flex-shrink: 0;
}


/* --- REAL-TIME PRESENCE & SCANNER --- */
.status-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff66;
    color: #00ff66;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-family: 'Staatliches';
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff66;
}

.pulse-active {
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

.scanner-hud {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: rgba(0, 20, 10, 0.6);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 50%;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.scanner-ring {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(0, 255, 102, 0.1);
    border-radius: 50%;
}

.scanner-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00ff66);
    transform-origin: left center;
    animation: scannerSweep 4s linear infinite;
}

@keyframes scannerSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#scanner-dots {
    position: absolute;
    inset: 0;
}

.scanner-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff66;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px #00ff66;
}

.scanner-dot.me {
    background: #fff;
    box-shadow: 0 0 8px #fff;
    width: 6px;
    height: 6px;
}

.scanner-dot.hotspot {
    background: #ff003c;
    box-shadow: 0 0 8px #ff003c;
    animation: blinkHotspot 1s infinite;
}

@keyframes blinkHotspot {
    50% {
        opacity: 0.3;
    }
}

.scanner-label {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.5rem;
    color: rgba(0, 255, 102, 0.5);
    font-family: 'Staatliches';
    letter-spacing: 1px;
}

.btn-expand-map:hover {
    transform: scale(1.1);
}

.btn-expand-map svg {
    width: 24px;
    height: 24px;
}

/* Character flipping for movement */
.habitant-char.flip {
    transform: translate(-50%, -50%) scaleX(-1);
}

.active-avatar {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    z-index: 1000 !important;
}

.active-avatar::after {
    content: '▼';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    font-size: 24px;
    animation: bounce 1s infinite;
    text-shadow: 0 0 10px #00ffff;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -5px);
    }
}

.explorer-map {
    position: absolute;
    width: 4096px;
    /* 4x scale of 1024px */
    height: 2284px;
    /* 4x scale of 571px */
    background-image: url('../assets/maracay_bg_large.jpg');
    background-size: cover;
    image-rendering: pixelated;
    cursor: grab;
    will-change: transform;
    /* Optimize for GSAP */
}

/* Scaling for habitants in high-res explorer */
.explorer-map .habitant {
    width: 150px;
    height: 150px;
    will-change: left, top, transform;
}

.explorer-map .habitant-tooltip {
    font-size: 1.5rem;
    top: -60px;
}

.explorer-map .habitant:hover .habitant-tooltip {
    top: -80px;
}

/* RAP EMOTES & ANIMATIONS */
.emote-rap-1 {
    animation: rapHandUp 0.6s ease-in-out infinite alternate;
}

.emote-rap-2 {
    animation: rapNod 0.4s ease-in-out infinite alternate;
}

.emote-rap-3 {
    animation: rapWave 0.5s ease-in-out infinite;
}

@keyframes rapHandUp {
    0% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg) scale(var(--scale, 1));
    }

    100% {
        transform: translate(-50%, -50%) translateY(-15px) rotate(-15deg) scale(var(--scale, 1));
    }
}

@keyframes rapNod {
    0% {
        transform: translate(-50%, -50%) scaleY(1) scale(var(--scale, 1));
    }

    50% {
        transform: translate(-50%, -50%) scaleY(0.9) translateY(5px) scale(var(--scale, 1));
    }

    100% {
        transform: translate(-50%, -50%) scaleY(1) scale(var(--scale, 1));
    }
}

@keyframes rapWave {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(var(--scale, 1));
    }

    25% {
        transform: translate(-50%, -50%) rotate(10deg) scale(var(--scale, 1));
    }

    75% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(var(--scale, 1));
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(var(--scale, 1));
    }
}

/* --- 3D INTERACTION UI --- */
.interaction-prompt {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.3);
}

.interaction-prompt.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.interaction-prompt .key-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 0 #ccc;
    animation: keyPress 1s infinite alternate;
}

.interaction-prompt span {
    color: #fff;
    font-family: 'Staatliches', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

@keyframes keyPress {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(2px);
    }
}

/* AUTH MODAL & CHARACTER SELECTION */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 40px;
    width: 95%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    /* Prevent overflow */
    max-height: 90vh;
}

.auth-step {
    display: none;
    width: 100%;
    /* Ensure full width */
}

.auth-step.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-choice-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
}

.auth-tab {
    background: none;
    border: none;
    color: #666;
    font-family: 'Staatliches';
    font-size: 1.5rem;
    padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-sub-form {
    display: none;
}

.auth-sub-form.active {
    display: block;
}

.form-group-premium {
    margin-bottom: 25px;
    text-align: left;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff0000' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 100;
    transition: all 0.2s ease;
    opacity: 1;
    /* Full opacity to resist white backgrounds */
}

.toggle-password.visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff0000' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88'/%3E%3C/svg%3E");
    opacity: 1;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.form-group-premium label {
    display: block;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group-premium input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 15px 50px 15px 20px;
    /* Added right padding */
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-group-premium input:focus {
    outline: none;
    border-color: var(--primary);
    background: #151515;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

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

.avatar-option {
    background: #111;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.avatar-option:hover {
    border-color: #666;
    transform: translateY(-5px);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
}

/* Sprite Preview (CSS Crop) */
.avatar-preview {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background-repeat: no-repeat;
    /* 8 columns x 4 rows = 800% width, 400% height */
    background-size: 800% 400%;
    /* Position 0 0 usually shows top-left frame (Down/Idle) */
    background-position: 0 0;
    image-rendering: pixelated;
    /* Essential for crisp pixel art */
}

.w-full {
    width: 100%;
}

/* --- TOAST NOTIFICATIONS (Admin Style) --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    /* High z-index */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #111;
    border: 1px solid #333;
    border-left: 4px solid #ff003c;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #00ff66;
}

.toast.error {
    border-left-color: #ff003c;
}

/* --- SHOP LIGHT THEME --- */
.shop-light-theme {
    background-color: #e8e8e8 !important;
    /* Slightly darker gray */
    color: #1a1a1a !important;
}

.shop-light-theme .branding-logo {
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7470%) hue-rotate(359deg) brightness(97%) contrast(114%);
}

/* Global Logo Refinement in Light Zone */
.shop-light-theme .logo-la {
    color: #000 !important;
    background: transparent !important;
}

/* Force RED outline for ESQ. in Light Theme (Nav & Header) */
.shop-light-theme .nav-logo .logo-esq,
.shop-light-theme .logo-esq {
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--primary) !important;
    text-decoration-color: var(--primary) !important;
}

/* Final Cursor Fix: Pure Red, No Cyan. */
.in-light-zone #cursor,
.shop-light-theme #cursor,
body.shop-light-theme #cursor {
    mix-blend-mode: normal !important;
    background-color: #ff0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

.in-light-zone #cursor-follower,
.shop-light-theme #cursor-follower,
body.shop-light-theme #cursor-follower {
    mix-blend-mode: normal !important;
    border-color: #ff0000 !important;
    opacity: 1 !important;
}

.shop-light-theme .section-header h2,
.shop-light-theme .urban-font,
.shop-light-theme h1,
.shop-light-theme h2,
.shop-light-theme h3 {
    color: #000000 !important;
}

.shop-light-theme .section-header .line {
    background: var(--primary) !important;
}

.shop-light-theme .text-muted,
.shop-light-theme p {
    color: #444444 !important;
}

/* Merch Items in Light Theme - Balanced Design */
.shop-light-theme .merch-item {
    background: #e8e8e8 !important;
    /* Matches page background */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Sutil border for definition */
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shop-light-theme .merch-item:hover {
    background: #dcdcdc !important;
    /* Sutil darkening of the gray area */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.shop-light-theme .merch-item .btn-buy {
    opacity: 1 !important;
    /* Always visible */
    transform: none !important;
    color: var(--primary) !important;
    /* RED text */
    background: #ffffff !important;
    /* WHITE background for balance */
    border: none !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
    font-family: 'Staatliches', cursive;
    font-size: 1.3rem;
    padding: 18px 0 !important;
    width: 100%;
    margin: 0 !important;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-light-theme .merch-item .btn-buy:hover {
    background: #f8f8f8 !important;
    letter-spacing: 3px;
}

.shop-light-theme .merch-info {
    padding: 0 !important;
    /* No global padding, use specific area padding */
    display: flex;
    flex-direction: column;
}

.shop-light-theme .merch-info h4 {
    color: #000 !important;
    font-weight: 800;
    margin: 15px 15px 10px !important;
    font-size: 1.1rem;
}

/* Redesigned Price Stripe */
.shop-light-theme .merch-info .price {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    font-weight: 800 !important;
    display: inline-block;
    width: 100%;
    text-align: center;
    border-left: 4px solid var(--primary);
    margin: 0 !important;
    /* Seamless block design */
    font-size: 1.2rem !important;
}

/* Button Refinement for Light Theme */
.shop-light-theme .btn-urban {
    color: #000 !important;
    border-color: #000 !important;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05), transparent) !important;
}

.shop-light-theme .btn-urban::before {
    background: linear-gradient(90deg, transparent, #000, transparent) !important;
}

.shop-light-theme .btn-urban:hover {
    color: #fff !important;
    background: #000 !important;
}

/* Navigation & Footer adjustments when parent is light */
.shop-light-theme .main-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid #ccc !important;
}

.shop-light-theme .nav-links a {
    color: #000 !important;
}

/* Logos inside stacks in light zone */
.shop-light-theme .button-logo-stack .logo-la,
.shop-light-theme .button-logo-stack-small .logo-la {
    background: transparent !important;
    color: #000 !important;
}

.shop-light-theme .button-logo-stack .logo-esq,
.shop-light-theme .button-logo-stack-small .logo-esq {
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--primary) !important;
}

/* Shop.html specific overrides */
body.shop-light-theme .shop-header {
    background: #e8e8e8 !important;
    border-bottom: 1px solid #ccc !important;
}

body.shop-light-theme .filters-bar {
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

/* WORLD CHAT HUD (BRUTAL) */
.world-chat-hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 320px;
    z-index: 1000;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    height: 180px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-msg {
    animation: slideInChat 0.3s ease-out forwards;
}

.chat-msg .name {
    color: var(--primary);
    font-weight: 800;
    margin-right: 5px;
    text-transform: uppercase;
}

.chat-msg .text {
    color: #fff;
}

.chat-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
}

.chat-input-wrapper input:focus {
    outline: none;
}

.chat-input-wrapper button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 20px;
    font-family: 'Staatliches', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.chat-input-wrapper button:hover {
    opacity: 0.8;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.shop-light-theme .search-box {
    background: #fff !important;
    color: #000 !important;
    border-color: #ddd !important;
}

body.shop-light-theme .tag-btn {
    border-color: #ddd !important;
    color: #888 !important;
}

body.shop-light-theme .tag-btn.active,
body.shop-light-theme .tag-btn:hover {
    border-color: var(--primary) !important;
    color: #000 !important;
}

body.shop-light-theme .cinematic-footer {
    background: #ddd !important;
    color: #333 !important;
    border-top: 1px solid #ccc !important;
}