/* --- LASTLIFE STYLE SYSTEM --- */

:root {
    --primary: #24ff93;
    /* Verde LastLife */
    --accent: #18dfff;
    /* Cian energia */
    --gold: #d9b961;
    /* Oro LastLife */
    --bg-dark: #01070b;
    /* Obsidiana Profunda */
    --bg-surface: #051318;
    /* Carbón/Lava */
    --bg-card: #07191e;
    /* Tarjetas */
    --border-glow: rgba(24, 223, 255, 0.22);
    --border: #17464c;
    /* Borde neon sutil */
    --text-main: #fbf9f8;
    /* Blanco pluma */
    --text-muted: #91aeb0;
    /* Neblina */
}

/* Base resets and overrides */
body {
    background:
        linear-gradient(rgba(1, 7, 11, 0.94), rgba(1, 7, 11, 0.98)),
        url('../img/lastlife-bg.svg') center top / cover fixed !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- IP Connection & Status Banner (Inside Main Container) --- */
.store-ip-banner {
    background: rgba(20, 14, 13, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(21, 242, 161, 0.05);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-ip-banner:hover {
    border-color: rgba(34, 223, 255, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(21, 242, 161, 0.1);
}

.ip-banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ip-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-label i {
    color: var(--primary);
}

.ip-address-badge {
    background: #090504;
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--gold);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    user-select: none;
}

.ip-address-badge:hover {
    background: #110907;
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(21, 242, 161, 0.25);
    color: white;
}

.ip-address-badge.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #bbf7d0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.ip-address-badge .copy-icon {
    font-size: 0.95rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.ip-address-badge:hover .copy-icon {
    opacity: 1;
}

.ip-address-badge.copied .copy-icon {
    opacity: 1;
    color: #10b981;
    transform: scale(1.1);
}

.ip-banner-right {
    display: flex;
    align-items: center;
}

.players-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.players-badge i {
    color: var(--accent);
}

.players-badge strong {
    color: var(--text-main);
    font-weight: 700;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
}

.animated-pulse {
    animation: indicatorPulse 2s infinite ease-in-out;
}

@keyframes indicatorPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

.players-online i {
    color: var(--accent);
    margin-right: 5px;
}

/* --- Header & Nav --- */
.main-header {
    background: rgba(0, 0, 0, 0.42);
    border-bottom: 1px solid rgba(34, 223, 255, 0.16);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User account widget (Zestian style) */
.mc-connected-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 7, 6, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mc-connected-user:hover {
    background: rgba(11, 7, 6, 0.85);
    border-color: var(--accent);
}

.mc-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-right {
    text-align: right;
}

.user-status {
    font-size: 0.8rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    opacity: 0.9;
}

.user-action {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.user-avatar-head {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1.5px solid var(--accent);
    background: #000;
}

.mc-unlink-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.mc-unlink-btn:hover {
    transform: scale(1.1);
    color: #f87171;
}

/* Cart Trigger */
.cart-trigger {
    cursor: pointer;
    background: rgba(11, 7, 6, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-trigger:hover {
    border-color: var(--accent);
    background: rgba(34, 223, 255, 0.1);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-icon-wrapper i {
    font-size: 1.15rem;
    color: var(--text-main);
}

.cart-badge-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-dark);
}

/* --- Hero Section & Zestian Widgets --- */
.hero-section {
    --hero-bg-url: url('../img/lastlife-bg.svg');
    background: #000;
    height: 440px;
    min-height: 390px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    /* needed so absolute-positioned children anchor here */
    padding-top: 64px;
    overflow: hidden;
    /* No border-bottom - gradient fades naturally into the dark page */
}

/* Add a blurred dark gradient cover background to match Zestian style */
.hero-section::before {
    content: '' !important;
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background:
        radial-gradient(circle at 50% 38%, rgba(36, 255, 147, 0.16), transparent 42%),
        linear-gradient(rgba(1, 7, 11, 0.28), rgba(1, 7, 11, 0.78)),
        var(--hero-bg-url) no-repeat center center;
    background-size: cover;
    filter: saturate(1.2);
    transform: scale(1.01);
    z-index: 1;
    pointer-events: none;
}

/* Hero container - center brand fills it, widgets pin to bottom corners */
.hero-grid-container {
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

/* Side Widgets - absolutely pinned to the bottom corners of the hero */
.hero-widget-side {
    position: absolute;
    bottom: 22px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.left-side {
    left: max(30px, calc((100vw - 1290px) / 2 + 30px));
    align-items: flex-start;
}

.right-side {
    right: max(30px, calc((100vw - 1290px) / 2 + 30px));
    align-items: flex-end;
}

/* Floating orange/purple badge count */
.hero-widget-badge {
    position: absolute;
    top: -12px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(34, 223, 255, 0.4);
    z-index: 5;
    animation: bounceSlow 3s infinite ease-in-out;
}

.left-side .hero-widget-badge {
    left: 15px;
}

.right-side .hero-widget-badge {
    right: 15px;
    background: #5865F2;
    /* Discord Purple */
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.4);
    color: white;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Side Widget Pill */
.hero-widget-pill {
    background: rgba(20, 14, 13, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    max-width: 290px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.hero-widget-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(21, 242, 161, 0.15), 0 0 15px rgba(21, 242, 161, 0.05);
}

.hero-widget-pill.copied {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.widget-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.play-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 12px rgba(21, 242, 161, 0.4);
}

.discord-icon {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.widget-text {
    display: flex;
    flex-direction: column;
}

.widget-text strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}

.widget-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Center Brand & Logo */
.hero-center-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-wrapper {
    position: relative;
    width: min(360px, 38vw);
    aspect-ratio: 1 / 1;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-logo-wrapper::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(36, 255, 147, 0.28), rgba(24, 223, 255, 0.12) 45%, transparent 70%);
    filter: blur(16px);
    transform: scale(1.02);
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.hero-mascot-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 0 20px rgba(36, 255, 147, 0.55))
        drop-shadow(0 0 34px rgba(24, 223, 255, 0.38))
        drop-shadow(0 12px 38px rgba(0, 0, 0, 0.78));
    animation: mascotFloat 5s infinite ease-in-out;
}

.hero-brand-name {
    display: none;
    /* Logo image already contains the LastLife text */
}

.hero-brand-ip-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: -5px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(214, 178, 95, 0.4);
}

/* --- Store Layout Grid (Zestian Two Columns) --- */
.store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 50px;
}

.store-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Column */
.categories-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 90px;
}

.sidebar-header {
    background: rgba(11, 7, 6, 0.4);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    text-align: left;
}

.sidebar-header h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
}

/* Sidebar Items */
.sidebar-menu-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.sidebar-menu-item i {
    font-size: 1.1rem;
    transition: transform 0.2s;
    width: 20px;
    text-align: center;
}

.sidebar-menu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item:hover i {
    transform: scale(1.15);
}

.sidebar-menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(21, 242, 161, 0.25) !important;
}

.sidebar-menu-item.active i {
    color: white !important;
}

/* Catalog Panel Column */
.catalog-content {
    display: flex;
    flex-direction: column;
}

.catalog-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
    gap: 20px;
}

.catalog-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.catalog-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border-radius: 2px;
}

/* Search bar inline styling */
.catalog-content .search-bar-container {
    margin-bottom: 0;
    width: 280px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

#store-search-input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#store-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(21, 242, 161, 0.15);
    outline: none;
}

/* --- Product Grid & Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(21, 242, 161, 0.15);
}

.card-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(21, 242, 161, 0.4);
    text-transform: uppercase;
}

.card-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 7, 6, 0.8);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    font-family: 'Rajdhani', sans-serif;
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    background: #02070b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    padding: 25px;
}

/* Circular Background Glow frame behind the image */
.product-image-container::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.1) 0%, rgba(21, 242, 161, 0.02) 70%, transparent 100%);
    border: 1.5px dashed rgba(34, 223, 255, 0.2);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-image-container::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(214, 178, 95, 0.08);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image-container::before {
    transform: scale(1.1) rotate(15deg);
    border-color: rgba(21, 242, 161, 0.35);
    background: radial-gradient(circle, rgba(255, 95, 0, 0.18) 0%, rgba(21, 242, 161, 0.06) 70%, transparent 100%);
}

.product-card:hover .product-image-container::after {
    transform: scale(1.15);
    border-color: rgba(214, 178, 95, 0.2);
}

.product-image-container img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image-container img {
    transform: scale(1.08) translateY(-4px);
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(20, 14, 13, 0.92);
    color: var(--text-main);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(21, 242, 161, 0.28), rgba(34, 223, 255, 0.2));
    color: white;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.pagination-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.product-stock-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: -10px 0 16px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.btn-card-info {
    width: 42px;
    height: 42px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-card-info:hover {
    background: #2563eb;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-card-add {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card-add:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(21, 242, 161, 0.4);
    transform: translateY(-1px);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-header h3 i {
    color: var(--primary);
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.drawer-close-btn:hover {
    color: white;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    color: var(--text-muted);
    text-align: center;
}

.empty-cart-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border);
}

/* Cart Item Cards */
.drawer-cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.drawer-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #080504;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    text-transform: uppercase;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 2px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 5px;
}

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

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: var(--primary);
}

.cart-qty-val {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cart-remove-btn:hover {
    opacity: 1;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.drawer-total-price {
    color: var(--gold);
    font-size: 1.25rem;
}

.btn-checkout {
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
}

/* --- Modals Overlay & Structure --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(21, 242, 161, 0.1);
    text-align: center;
}

.scale-up {
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: white;
}

.modal-icon-header {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(21, 242, 161, 0.4));
}

.modal-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: white;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* User Link Avatar Preview Row */
.input-avatar-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 10px;
}

.input-avatar-preview-container img {
    width: 48px;
    height: 48px;
    background: #080504;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.input-avatar-preview-container input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.input-avatar-preview-container input:focus {
    box-shadow: none !important;
}

.modal-footer-disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-footer-disclaimer i {
    color: var(--accent);
}

/* --- Product Detail Modal Layout --- */
.product-detail-card {
    max-width: 850px;
    padding: 25px;
}

.product-detail-layout {
    display: flex;
    gap: 30px;
    text-align: left;
    flex-wrap: wrap;
}

.pd-media-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pd-main-image-container {
    background: #080504;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1.1 / 1;
}

.pd-main-image-container img {
    max-height: 220px;
    object-fit: contain;
}

.pd-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pd-gallery-thumb {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    background: #080504;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.pd-gallery-thumb.active,
.pd-gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

.pd-info-column {
    flex: 1.2 1 350px;
    display: flex;
    flex-direction: column;
}

.pd-info-column h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: white;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.pd-variants {
    margin-bottom: 20px;
}

.pd-variants label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.variant-swatches-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-swatch-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.variant-swatch-item:hover {
    border-color: var(--primary);
}

.variant-swatch-item.active {
    background: rgba(21, 242, 161, 0.15);
    border-color: var(--primary);
    color: white;
}

.pd-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}

.pd-description-inline-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin: 12px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #080504;
}

.pd-description-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -10px 0 16px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.pd-description-pager button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
}

.pd-description-pager button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.pd-description-pager span {
    color: var(--gold);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.pd-description-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -4px 0 18px;
}

.pd-description-gallery img {
    width: 100%;
    aspect-ratio: 1 / 0.72;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #080504;
    padding: 8px;
}

.pd-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.pd-actions .qty-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.pd-actions .qty-btn {
    background: var(--bg-surface);
    color: white;
    width: 40px;
    height: 48px;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.pd-actions .qty-btn:hover {
    background: var(--border);
}

.pd-actions .qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Support Section --- */
.support-section {
    border-top: 1px solid var(--border);
    padding-top: 50px;
    margin-top: 40px;
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.support-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s;
}

.support-card:hover {
    transform: translateY(-3px);
}

.support-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(21, 242, 161, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(21, 242, 161, 0.2));
}

.support-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin: 0 0 10px;
}

.support-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Footer --- */
.main-footer {
    background: #070404;
    border-top: 1px solid var(--border);
    padding: 50px 20px 20px;
    margin-top: 50px;
    color: var(--text-muted);
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.footer-brand {
    text-align: center;
}

.footer-brand p {
    max-width: 450px;
    margin: 10px auto 0;
    font-size: 0.95rem;
}

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

.footer-links h4 {
    display: none;
}

.footer-links a {
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-disclaimer p {
    margin: 0 0 8px 0;
}

.footer-disclaimer .copyright {
    color: var(--text-muted);
    margin-top: 15px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .store-layout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .categories-sidebar {
        position: static;
        margin-bottom: 10px;
        box-shadow: none;
        background: transparent;
        border: none;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 5px 0;
        gap: 10px;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-menu-item {
        width: auto;
        white-space: nowrap;
        padding: 10px 20px;
        border-radius: 30px;
        border: 1px solid var(--border);
        background: var(--bg-surface);
    }

    /* On tablet the hero is taller due to stacking, keep widgets at bottom corners */
    .hero-grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-widget-side {
        bottom: 20px;
    }

    .left-side {
        left: 15px;
    }

    .right-side {
        right: 15px;
    }

    .hero-section {
        height: 410px;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 100px;
        /* room for the absolutely-positioned bottom widgets */
    }

    .hero-logo-wrapper {
        width: min(310px, 64vw);
        margin-top: 5px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .catalog-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .catalog-content .search-bar-container {
        width: 100%;
    }

    .payment-selector-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Scale down the hero IP/Discord widget pills on small phones */
    .hero-widget-pill {
        padding: 9px 14px;
        gap: 10px;
        max-width: 220px;
    }

    .widget-text strong {
        font-size: 0.85rem;
    }

    .widget-text span {
        font-size: 0.65rem;
    }

    .widget-icon-circle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-widget-badge {
        font-size: 0.75rem;
        padding: 2px 9px;
    }

    .left-side {
        left: 8px;
    }

    .right-side {
        right: 8px;
    }

    .hero-brand-name {
        font-size: 2.5rem;
    }

    .hero-logo-wrapper {
        width: min(245px, 74vw);
        margin-top: 92px;
    }
}

/* --- ADICIONALES DE DISENO Y ANIMACIONES PREMIUM (LASTLIFE) --- */

/* Brillo y vibracion del logo en hover */
.logo-wrapper:hover .logo-icon-glowing {
    animation: flameVibrate 0.15s infinite linear;
    filter: drop-shadow(0 0 15px var(--accent));
}

@keyframes flameVibrate {
    0% {
        transform: translate(1px, 1px) scale(1.1);
    }

    10% {
        transform: translate(-1px, -2px) scale(1.1);
    }

    20% {
        transform: translate(-3px, 0px) scale(1.1);
    }

    30% {
        transform: translate(0px, 2px) scale(1.1);
    }

    40% {
        transform: translate(1px, -1px) scale(1.1);
    }

    50% {
        transform: translate(-1px, 2px) scale(1.1);
    }

    60% {
        transform: translate(-3px, 1px) scale(1.1);
    }

    70% {
        transform: translate(2px, 1px) scale(1.1);
    }

    80% {
        transform: translate(-1px, -1px) scale(1.1);
    }

    90% {
        transform: translate(2px, 2px) scale(1.1);
    }

    100% {
        transform: translate(1px, -2px) scale(1.1);
    }
}

/* Fondo de particulas flotantes (Embers) en el Hero */
.hero-section::after {
    content: none;
}

@keyframes floatEmbers {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-40px) rotate(3deg) scaleX(1.1);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-80px) rotate(-3deg) translateY(80px) scaleX(1);
        opacity: 0.3;
    }
}

/* Efecto de texto ardiente animado en el Hero */
.hero-title {
    animation: fireTextGlow 3s infinite ease-in-out;
}

@keyframes fireTextGlow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(21, 242, 161, 0.5), 0 0 30px rgba(21, 242, 161, 0.3), 0 0 45px rgba(34, 223, 255, 0.1);
        color: #ffffff;
    }

    50% {
        text-shadow: 0 0 25px rgba(21, 242, 161, 0.8), 0 0 40px rgba(34, 223, 255, 0.6), 0 0 60px rgba(214, 178, 95, 0.4), 0 0 8px var(--gold);
        color: #fffefb;
    }
}

/* Pulsacion de aro dorado en la skin vinculada */
.mc-connected-user img {
    border: 1.5px solid var(--gold) !important;
    animation: goldGlowRing 2s infinite ease-in-out;
}

@keyframes goldGlowRing {

    0%,
    100% {
        box-shadow: 0 0 4px var(--gold);
        border-color: var(--gold);
    }

    50% {
        box-shadow: 0 0 12px var(--accent);
        border-color: var(--accent);
    }
}

/* Efecto hover suave y expansivo en las tarjetas de productos */
.product-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(34, 223, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 95, 0, 0.2);
}

/* Transicion animada del fondo para los Chips de las categorias */
.tab-chip {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tab-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out;
    border-radius: 6px;
}

.tab-chip:hover::before {
    transform: scaleX(1);
}

.tab-chip:hover {
    color: white !important;
    border-color: var(--primary) !important;
}

.tab-chip.active::before {
    transform: scaleX(1);
}

/* Efectos de pulso y glow en los modales */
.modal-card {
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.modal-card:hover {
    border-color: var(--accent);
}

/* --- Account Center (Centro de Cuentas) --- */
.saved-accounts-section {
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    text-align: left;
}

.saved-accounts-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.saved-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.saved-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.saved-account-item:hover {
    border-color: rgba(34, 223, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.saved-account-item.active {
    border-color: var(--accent);
    background: rgba(34, 223, 255, 0.08);
}

.saved-account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-grow: 1;
}

.saved-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #080504;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-account-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.saved-account-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--accent);
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

.saved-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-switch-account {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-switch-account:hover {
    background: var(--accent);
    color: #000;
}

.btn-delete-saved-account {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 4px;
}

.btn-delete-saved-account:hover {
    opacity: 1;
}
