/* ==========================================================================
   VERTEX NETWORK - HOJA DE ESTILOS PRINCIPALES
   Diseño Premium & Moderno para Tienda de Minecraft
   ========================================================================== */

/* --- Variables y Paleta de Colores --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Colores del Sistema */
    --bg-main: #060913;
    --bg-card: rgba(13, 19, 36, 0.7);
    --bg-card-hover: rgba(20, 29, 54, 0.85);
    --bg-navbar: rgba(6, 9, 19, 0.8);
    
    --color-accent-gold: #facc15;      /* Amarillo Vertex */
    --color-accent-gold-rgb: 250, 204, 21;
    --color-accent-gold-dark: #d97706;
    
    --color-accent-blue: #3b82f6;      /* Azul Secundario */
    --color-accent-blue-rgb: 59, 130, 246;
    --color-accent-blue-dark: #1d4ed8;

    --color-eclipse: #c084fc;          /* Rango Eclipse */
    --color-abysm: #f43f5e;            /* Rango Abysm */
    --color-vertex: #fbbf24;           /* Rango Vertex */

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;

    /* Efectos de Glassmorphism & Sombras */
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.35);
    --shadow-glow-gold: 0 0 25px rgba(250, 204, 21, 0.35);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reseteo de Estilos --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* --- Fondo Animado (Minecraft PvP + Estrellas) --- */
.page-background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0.4) 0%, rgba(6, 9, 19, 0.75) 100%),
                url('assets/background.png') no-repeat center center/cover;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    top: -10px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px #facc15, 0 0 8px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    will-change: transform;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(-60px);
        opacity: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* --- Tipografía Especial --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--color-accent-gold);
}

/* --- Barra de Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 9, 19, 0.95);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(4, 6, 12, 0.95);
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.4));
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-btn {
    background-color: #5865f2;
    color: white;
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* User Area in Navbar */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.nav-cart-btn:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid #060913;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.nav-cart-btn.has-items .cart-badge {
    transform: scale(1);
}

.nav-login-btn {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.25);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(250, 204, 21, 0.4);
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 4px 12px 4px 6px;
    border-radius: 50px;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #333;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.profile-logout {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 5px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.profile-logout:hover {
    color: #f87171;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0.6) 0%, rgba(6, 9, 19, 0.1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-box {
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.hero-logo-img {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.6));
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

/* --- Widget de IP e Indicador en Vivo --- */
.ip-widget {
    background: rgba(13, 19, 36, 0.5);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.ip-widget:hover {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.1);
}

.ip-address-box {
    background: rgba(250, 204, 21, 0.08);
    border: 1px dashed rgba(250, 204, 21, 0.4);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ip-address-box:hover {
    background: rgba(250, 204, 21, 0.15);
    border-style: solid;
}

.ip-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    letter-spacing: 1px;
}

.ip-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.copy-icon {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.ip-address-box:hover .copy-icon {
    color: var(--color-accent-gold);
    transform: scale(1.1);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-green 2s infinite;
}

.status-indicator.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.status-indicator.pinging {
    background-color: #eab308;
    box-shadow: 0 0 10px #eab308;
    animation: pulse-yellow 1.5s infinite;
}

/* --- Sección de Características --- */
.features-section {
    padding: 80px 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-main);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.02) 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--color-accent-gold);
    margin: 0 auto 24px auto;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, rgba(250, 204, 21, 0.3) 100%);
    color: var(--text-dark);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Sección Tienda --- */
.store-section {
    padding: 80px 0;
    background: transparent;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 14px 28px;
    background: rgba(13, 19, 36, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(13, 19, 36, 0.8);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--text-dark);
    border-color: var(--color-accent-gold);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.35);
}

/* --- Subcategorías --- */
.subcategory-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 35px;
    animation: fadeIn 0.4s ease-in-out;
}

.subcategory-wrapper.hidden {
    display: none;
}

.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    background: rgba(6, 9, 19, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.subcategory-tab {
    padding: 8px 18px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.subcategory-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.subcategory-tab.active {
    background: rgba(250, 204, 21, 0.15);
    color: var(--color-accent-gold);
    box-shadow: inset 0 0 8px rgba(250, 204, 21, 0.1);
}

.store-content {
    position: relative;
    min-height: 350px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.store-loading i {
    font-size: 2.5rem;
    color: var(--color-accent-gold);
}

/* --- Tarjetas de Productos --- */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: var(--shadow-main);
}

.product-image-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    position: relative;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Diseños Especiales por Rango/Tipo */
.product-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
}

.product-card.featured:hover {
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow-blue), var(--shadow-main);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-blue-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    z-index: 5;
}

.product-card.vertex-tier {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 10px 40px -10px rgba(250, 204, 21, 0.15);
}

.product-card.vertex-tier:hover {
    border-color: var(--color-accent-gold);
    box-shadow: var(--shadow-glow-gold), var(--shadow-main);
}

.vertex-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
    z-index: 5;
}

.alert-badge {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Detalles de Producto */
.product-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
    margin-bottom: 20px;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-perks {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-perks li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-perks li i {
    margin-top: 3px;
    font-size: 0.95rem;
}

.text-success {
    color: #22c55e;
}
.text-warning {
    color: #f59e0b;
}
.text-danger {
    color: #ef4444;
}
.text-info {
    color: #3b82f6;
}

/* Colores de Prefijos en el Rango */
.badge-eclipse {
    background-color: var(--color-eclipse);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-abysm {
    background-color: var(--color-abysm);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-vertex {
    background-color: var(--color-vertex);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--color-vertex);
}

.text-gold {
    color: var(--color-accent-gold);
    font-weight: 600;
}

.text-sm {
    font-size: 0.8rem;
}

/* Botón de Compra */
.buy-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.product-card:hover .buy-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card.featured .buy-btn {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-blue-dark) 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.product-card.featured:hover .buy-btn {
    background: linear-gradient(135deg, #60a5fa 0%, var(--color-accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.45);
}

.product-card.vertex-tier .buy-btn {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3);
}

.product-card.vertex-tier:hover .buy-btn {
    background: linear-gradient(135deg, #fef08a 0%, var(--color-accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.45);
}

/* --- Sección Top Compradores --- */
.top-buyers-section {
    padding: 80px 0;
    background: transparent;
    border-top: 1px solid var(--border-glass);
}

.top-buyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.buyer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.buyer-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-main);
}

.buyer-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.buyer-avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.buyer-head {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
}

.buyer-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

.buyer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.buyer-premium-icon {
    color: #3b82f6;
    font-size: 0.8rem;
}

.buyer-spent {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    background: rgba(250, 204, 21, 0.05);
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid rgba(250, 204, 21, 0.15);
}

/* Podium highlights */
.buyer-card.rank-1 {
    border-color: rgba(250, 204, 21, 0.45);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.06) 0%, rgba(13, 19, 36, 0.8) 100%);
    box-shadow: 0 5px 25px rgba(250, 204, 21, 0.1);
}
.buyer-card.rank-1 .buyer-rank {
    background: var(--color-accent-gold);
    color: var(--text-dark);
    border-color: var(--color-accent-gold);
}
.buyer-card.rank-1 .buyer-head {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.buyer-card.rank-2 {
    border-color: rgba(156, 163, 175, 0.35);
    background: linear-gradient(180deg, rgba(156, 163, 175, 0.05) 0%, rgba(13, 19, 36, 0.8) 100%);
}
.buyer-card.rank-2 .buyer-rank {
    background: #9ca3af;
    color: var(--text-dark);
    border-color: #9ca3af;
}

.buyer-card.rank-3 {
    border-color: rgba(180, 83, 9, 0.35);
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.05) 0%, rgba(13, 19, 36, 0.8) 100%);
}
.buyer-card.rank-3 .buyer-rank {
    background: #b45309;
    color: white;
    border-color: #b45309;
}

.top-buyers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.top-buyers-empty i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* --- Sección Reglas (FAQ / Accordion) --- */
.rules-section {
    padding: 80px 0;
    background: transparent;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: var(--border-glass-hover);
    background-color: var(--bg-card-hover);
}

.accordion-header {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    text-align: left;
}

.accordion-icon {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
}

.accordion-item.open {
    border-color: rgba(250, 204, 21, 0.3);
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 10, 0.9) 100%);
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-grid h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 24px;
    height: 2px;
    background-color: var(--color-accent-gold);
    border-radius: 2px;
}

.footer-col-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-col-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--text-dark);
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3);
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-glass);
    margin-bottom: 30px;
}

.footer-legal {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal .disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

/* --- Modales --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-box {
    background: #0d1324;
    border: 1px solid var(--border-glass-hover);
    border-radius: 24px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-box::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 3px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.05) 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--color-accent-gold);
    margin: 0 auto 24px auto;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    transition: var(--transition-smooth);
    margin-bottom: 8px;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.modal-input:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.modal-error {
    font-size: 0.8rem;
    color: #f87171;
    min-height: 20px;
    margin-bottom: 16px;
}

.modal-submit {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-display);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(250, 204, 21, 0.3);
}

.modal-submit:hover {
    background: linear-gradient(135deg, #fef08a 0%, var(--color-accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.45);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

/* --- Product Detail Modal --- */
.product-modal-box {
    max-width: 800px;
    width: 95%;
    padding: 30px;
    text-align: left;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

.product-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-main-img-wrap {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background-color: rgba(255, 255, 255, 0.02);
}

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

.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumbs::-webkit-scrollbar {
    height: 4px;
}

.product-thumbs::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 2px;
}

.thumb-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.thumb-img.active {
    border-color: var(--color-accent-gold);
}

.product-info-side {
    display: flex;
    flex-direction: column;
}

.product-info-side .modal-product-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 8px;
}

.product-info-side .modal-product-price {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent-gold);
    margin-bottom: 20px;
}

.modal-product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}

.modal-product-desc::-webkit-scrollbar {
    width: 4px;
}

.modal-product-desc::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 2px;
}

.modal-product-perks-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-product-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    overflow-y: auto;
    max-height: 150px;
}

.modal-product-perks::-webkit-scrollbar {
    width: 4px;
}

.modal-product-perks::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 2px;
}

.modal-product-perks li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.modal-product-perks li i {
    margin-top: 3px;
    color: #22c55e;
}

/* --- Live Purchases Notification Toast --- */
.live-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(13, 19, 36, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    max-width: 320px;
}

.live-toast.active {
    transform: translateX(0);
}

.toast-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #333;
    display: block;
    image-rendering: pixelated;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-content {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.toast-user {
    font-weight: 700;
    color: white;
}

.toast-action {
    color: var(--text-muted);
}

.toast-product {
    font-weight: 700;
    color: var(--color-accent-gold);
}

/* --- Animaciones Keyframes --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* ==========================================================================
   Media Queries - Diseño Responsivo Celular / Tablet
   ========================================================================== */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Barra de Navegación Móvil */
    .nav-toggle {
        display: block;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #060913;
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        align-items: stretch;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-user-area {
        margin-left: auto;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .hero-section {
        padding: 120px 0 60px 0;
        min-height: auto;
        background-size: contain, cover;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tab {
        justify-content: center;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .product-price {
        font-size: 1.8rem;
    }
    
    .live-toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

/* --- Canasta de Compras Modal & Items --- */
.cart-modal-box {
    max-width: 600px;
    width: 95%;
}

.cart-items-list {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}
.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 3px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 12px;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    font-weight: 600;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 4px 8px;
    border-radius: 8px;
}

.qty-btn {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    color: white;
}

.qty-val {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.cart-item-remove {
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 8px;
}

.cart-item-remove:hover {
    color: #f87171;
    transform: scale(1.1);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    margin-bottom: 20px;
}

#cartTotalVal {
    color: var(--color-accent-gold);
    font-size: 1.4rem;
}

.cart-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.cart-modal-actions .modal-submit {
    flex-grow: 1;
}

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

.cart-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.05);
}

/* Modificación de Botones en Modal Detalle de Producto */
.product-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-secondary-cart {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass-hover);
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.btn-secondary-cart:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Botones directos en Tarjeta de Producto */
.product-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-card-actions .buy-btn {
    flex-grow: 1;
}

.btn-quick-cart {
    width: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.btn-quick-cart:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

.product-card.featured .btn-quick-cart:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}

.product-card.vertex-tier .btn-quick-cart:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}
