/* ============================================================
   1. VARIABLES Y ESTILOS BASE
   ============================================================ */
:root {
    --primary: #dc851e;
    --primary-light: #ff9d2e;
    --primary-dark: #a65f11;
    --primary-glow: rgba(220, 133, 30, 0.4);
    --bg: #08090a;
    --card: #111214;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border: rgba(255, 255, 255, 0.05);
    --font: 'Outfit', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 50% -10%, #3a240d 0%, #08090a 60%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   2. TICKER DE COMPRAS
   ============================================================ */
.purchase-ticker {
    background: #0a0a0a;
    border-bottom: 2px solid var(--primary);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

.ticker-item {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    font-size: 0.9rem;
    padding: 0 10px;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-item b { color: var(--primary); text-transform: uppercase; font-weight: 900; }
.ticker-item i { margin-right: 10px; color: var(--primary); }

/* ============================================================
   3. NAVBAR Y NAVEGACIÓN SUPERIOR
   ============================================================ */
    .nav-center {
    display: flex;
    gap: 30px;
}
.nav-center a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 5px 0;
}
.nav-center a i {
    color: var(--primary);
    font-size: 1rem;
    transition: 0.3s;
}

/* Efecto Hover: Brillo y línea debajo */
.nav-center a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-center a:hover i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px var(--primary));
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-center a:hover::after {
    width: 100%;
}
   .navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 8%; 
    background: rgba(0,0,0,0.9); 
    border-bottom: 2px solid var(--primary);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.nav-logo-img { 
    height: 100px; 
    transition: 0.6s ease; 
}

.nav-logo-img:hover { 
    transform: scale(1.57); 
    filter: drop-shadow(0 0 10px var(--primary)); 
}

.btn-login-nav {
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 10px 20px;
    border-radius: 8px; 
    font-weight: 900; 
    cursor: pointer; 
    transition: 0.3s;
}

.btn-login-nav:hover { 
    background: white; 
    color: var(--primary); 
}

/* ============================================================
   4. HEADER, BANNER Y BOTONES DE IP / DISCORD
   ============================================================ */
.header-main {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 40px 8%; 
    background: rgba(0,0,0,0.2); 
    gap: 20px;
}

.header-center { flex: 1; text-align: center; }

.banner-anim {
    width: 100%;
    max-width: 450px; 
    filter: drop-shadow(0 0 25px var(--primary-glow));
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.header-side {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer;
    background: rgba(255,255,255,0.03); 
    padding: 15px 25px; 
    border-radius: 12px;
    border: 1px solid var(--border); 
    transition: 0.6s; 
    min-width: 250px;
}

.header-side:hover { 
    background: rgba(220, 133, 30, 0.1); 
    border-color: var(--primary); 
    transform: translateY(-3px); 
}

.header-side i { font-size: 2rem; color: var(--primary); }
.header-side .ip-text { font-weight: 900; font-size: 1.1rem; display: block; }
.header-side .sub { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }

/* ============================================================
   5. LAYOUT (SIDEBAR Y CONTENIDO)
   ============================================================ */
.main-layout { 
    display: grid; 
    grid-template-columns: 300px 1fr; 
    gap: 30px; 
    padding: 40px 8%; 
}

.glass-card {
    background: var(--card); 
    border: 1px solid var(--border);
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* Navegación lateral */
.sidebar h3 { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    color: var(--text-dim); 
    margin-bottom: 15px; 
    letter-spacing: 2px; 
}

.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-list a {
    text-decoration: none; 
    color: var(--text-main); 
    padding: 12px 15px;
    border-radius: 8px; 
    transition: 0.3s; 
    border: 1px solid transparent;
    font-weight: 600;
}

.cat-list a:hover, .cat-list a.active { 
    background: rgba(220, 133, 30, 0.1); 
    border-color: var(--primary); 
    color: var(--primary); 
}

/* ============================================================
   6. WIDGET DE META MENSUAL (GOAL)
   ============================================================ */
.goal-bar {
    background: rgba(255,255,255,0.05); 
    height: 12px; 
    border-radius: 10px;
    overflow: hidden; 
    border: 1px solid var(--border); 
    margin-top: 10px;
}

.goal-fill {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    height: 100%; 
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================================
   7. GRILLA DE PRODUCTOS (PACKAGES)
   ============================================================ */
.packages-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; 
    margin-top: 30px;
}

.package-card {
    background: var(--card); 
    border: 1px solid var(--border);
    padding: 30px 20px; 
    border-radius: 15px; 
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; 
    overflow: hidden;
}

.package-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5); 
}

.package-card i { 
    font-size: 3.5rem; 
    color: var(--primary); 
    margin-bottom: 20px; 
    filter: drop-shadow(0 5px 15px var(--primary-glow)); 
}

.package-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 900; }
.package-card .price { font-size: 1.8rem; font-weight: 900; color: var(--primary-light); }

.discount-badge {
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: #ff4444;
    color: white; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-weight: 900; 
    font-size: 0.8rem;
}

/* ============================================================
   8. TABLAS Y TOP DONADORES
   ============================================================ */
.top-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.top-table th { text-align: left; color: var(--text-dim); font-size: 0.75rem; padding: 10px; text-transform: uppercase; }
.top-table td { padding: 15px 10px; border-bottom: 1px solid var(--border); }

.rank-num { color: var(--primary); font-weight: 900; font-size: 1.1rem; }
.amount { text-align: right; color: var(--primary-light); font-weight: 900; }

/* ============================================================
   9. MODALES Y VENTANAS EMERGENTES
   ============================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 10000;
}

.modal-content {
    background: #1a1b1e; 
    border: 2px solid var(--primary);
    padding: 35px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 450px;
    text-align: center;
}

.login-input-group { display: flex; gap: 10px; margin: 20px 0; }
.login-input-group input {
    flex: 1; background: #000; border: 1px solid var(--border);
    padding: 12px; border-radius: 8px; color: white;
}

/* Permitir scroll si el formulario de PayPal es muy largo */
.modal {
    overflow-y: auto !important;
    padding: 20px 10px;
    align-items: flex-start !important; /* Ayuda a que el scroll empiece desde arriba */
}

/* Contenedor del modal más flexible */
.modal .glass-card {
    margin: auto; /* Centra horizontalmente */
    max-height: none; 
    width: 100%;
    max-width: 400px;
}

/* Ajuste para que el iframe de PayPal no rompa el diseño */
#paypal-button-container {
    width: 100%;
    overflow: hidden;
}
/* ============================================================
   10. BOTONES GENERALES
   ============================================================ */
.btn-buy {
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 14px;
    border-radius: 8px; 
    font-weight: 900; 
    cursor: pointer; 
    text-transform: uppercase;
    transition: 0.3s; 
    width: 100%;
}

.btn-buy:hover { background: var(--primary-light); transform: scale(1.02); }

.basket-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.basket-trigger:hover {
    transform: scale(1.1);
}

.basket-trigger i {
    color: white;
    font-size: 1.6rem;
}

.basket-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff3b3b;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.4);
}

.ticket-btn-footer {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    color: white !important;
    padding: 14px 25px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease !important;
    margin-top: 15px;
}

.ticket-btn-footer:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
    filter: brightness(1.1);
}

.ticket-btn-footer::before {
    content: '\f392';
    font-family: 'Font Awesome 6 Brands';
    font-size: 1.2rem;
}
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.btn-add-basket {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(220, 133, 30, 0.3);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-basket:hover {
    background: rgba(220, 133, 30, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-buy {
    width: 100%;
    margin: 0 !important;
}
/* ============================================================
   11. SECCIÓN ADMINISTRACIÓN
   ============================================================ */
.admin-card {
    background: rgba(255,255,255,0.02); 
    border: 1px dashed #444;
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 20px;
}

.admin-card label { 
    display: block; 
    color: var(--primary); 
    font-weight: 900; 
    font-size: 0.7rem; 
    margin-bottom: 5px; 
}

.admin-card input, .admin-card textarea {
    width: 100%; background: #000; border: 1px solid #333;
    padding: 10px; color: white; border-radius: 5px; margin-bottom: 10px;
}

.admin-grid-inputs { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* ============================================================
   12. RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ============================================================ */

/* Tablets */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .header-main { padding: 30px 5%; }
}

/* Móviles */
@media (max-width: 600px) {
    .header-main { flex-direction: column; text-align: center; }
    .banner-anim { width: 280px; }
    .header-side { width: 100%; min-width: 100%; }
    
    .cat-list { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
    }
    
    .nav-logo-img { height: 45px; }
    .navbar { padding: 10px 5%; }
    
    h1 { font-size: 1.8rem !important; }
}
/* =========================================
   FOOTER
   ========================================= */
.pro-footer {
    background: #0a0a0a;
    border-top: 2px solid var(--primary);
    padding: 60px 8% 20px 8%;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img { height: 100px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-dim); max-width: 300px; }

.footer-links a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.ticket-btn {
    background: linear-gradient(135deg, #7289da 0%, #4e5d94 100%);
    color: white !important;
    padding: 15px !important;
    border-radius: 10px !important;
    text-align: center;
    font-weight: 900 !important;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}
.basket-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.basket-trigger i {
    color: rgba(245, 155, 46, 0.771);
    font-size: 1.5rem;
}

.basket-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4747;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 0 0 5px rgba(255, 71, 71, 0.5);
}
.user-pill {
    background: rgba(220,133,30,0.1);
    border: 1px solid var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.discount-tag {
    position: absolute; top: 15px; right: 15px;
    background: #ff4444; color: white; padding: 4px 10px;
    border-radius: 6px; font-weight: 900; font-size: 0.75rem;
}
.old-price { color: #ff4444; text-decoration: line-through; font-size: 0.8rem; opacity: 0.6; }
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto !important;
        padding: 10px;
        gap: 15px;
    }

    .nav-left, .nav-right {
        width: 100%;
        justify-content: center !important;
        display: flex;
    }

    .nav-logo-img {
        height: 40px;
    }

    .main-layout {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .content-area {
        width: 100% !important;
    }

    .cat-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}