/* 
  Design System for Free Fire ID Verification 
  Theme: Dark, Premium, Gaming
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

/* ============================== */
/* SPLASH SCREEN - GAMER HUD     */
/* ============================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #07030D;
    background: radial-gradient(ellipse at center, #1a0a3a 0%, #07030D 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}
.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Partículas de fondo */
.splash-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(0, 240, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(157, 0, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(0, 240, 255, 0.3), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(157, 0, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(0, 240, 255, 0.2), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(255, 0, 229, 0.2), transparent);
    animation: splashParticlesDrift 4s ease-in-out infinite alternate;
}
@keyframes splashParticlesDrift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.02); }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 2;
}

/* Crosshair animado estilo FPS/Battle Royale */
.splash-crosshair {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
}
.crosshair-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(0, 240, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: crosshairPulse 2s ease-in-out infinite;
}
.crosshair-ring.ring-2 {
    width: 50px;
    height: 50px;
    border-color: rgba(157, 0, 255, 0.5);
    animation: crosshairPulse 2s ease-in-out infinite 0.3s;
}
@keyframes crosshairPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.crosshair-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #00F0FF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #00F0FF, 0 0 30px rgba(0, 240, 255, 0.5);
    animation: dotGlow 1.5s ease-in-out infinite;
}
@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 10px #00F0FF, 0 0 20px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 20px #00F0FF, 0 0 40px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.2); }
}
.crosshair-line {
    position: absolute;
    background: rgba(0, 240, 255, 0.7);
}
.crosshair-line.top, .crosshair-line.bottom {
    width: 2px;
    height: 16px;
    left: 50%;
    transform: translateX(-50%);
}
.crosshair-line.top { top: 5px; }
.crosshair-line.bottom { bottom: 5px; }
.crosshair-line.left, .crosshair-line.right {
    height: 2px;
    width: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.crosshair-line.left { left: 5px; }
.crosshair-line.right { right: 5px; }

/* Logo con efecto glitch */
.splash-logo {
    position: relative;
}
.splash-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #00F0FF 0%, #9D00FF 50%, #FF00E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: splashGlitch 4s ease-in-out infinite;
}
.splash-logo-text::before,
.splash-logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00F0FF, #9D00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.splash-logo-text::before {
    animation: glitchTop 3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.splash-logo-text::after {
    animation: glitchBottom 3s ease-in-out infinite 0.15s;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes splashGlitch {
    0%, 90%, 100% { transform: none; }
    92% { transform: skewX(-2deg); }
    94% { transform: skewX(2deg); }
    96% { transform: skewX(-1deg); }
}
@keyframes glitchTop {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(-3px, -1px); }
    92% { transform: translate(3px, 1px); }
    94% { transform: translate(-1px, 0); }
}
@keyframes glitchBottom {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(3px, 1px); }
    92% { transform: translate(-3px, -1px); }
    94% { transform: translate(1px, 0); }
}

.splash-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
}

/* Barra de carga tipo gaming */
.splash-loader-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}
.splash-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00F0FF, #9D00FF, #FF00E5);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    animation: splashFill 2.5s ease-in-out forwards;
}
@keyframes splashFill {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 70%; }
    85% { width: 90%; }
    100% { width: 100%; }
}

.splash-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(0, 240, 255, 0.6);
    text-transform: uppercase;
}
.splash-dots::after {
    content: '';
    animation: splashDots 1.5s steps(4, end) infinite;
}
@keyframes splashDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Esquinas HUD decorativas */
.splash-hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
}
.splash-hud-corner.top-left {
    top: 20px;
    left: 20px;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
}
.splash-hud-corner.top-right {
    top: 20px;
    right: 20px;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-right: 2px solid rgba(0, 240, 255, 0.3);
}
.splash-hud-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid rgba(157, 0, 255, 0.3);
    border-left: 2px solid rgba(157, 0, 255, 0.3);
}
.splash-hud-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid rgba(157, 0, 255, 0.3);
    border-right: 2px solid rgba(157, 0, 255, 0.3);
}

@media (max-width: 600px) {
    .splash-logo-text {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }
    .splash-subtitle {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }
    .splash-crosshair {
        width: 70px;
        height: 70px;
    }
    .crosshair-ring {
        width: 55px;
        height: 55px;
    }
    .crosshair-ring.ring-2 {
        width: 38px;
        height: 38px;
    }
}

:root {
    --primary: #9D00FF;
    --primary-hover: #B845FF;
    --secondary: #00F0FF;
    --accent: #FF00E5;
    --bg-dark: #07030D;
    --card-bg: rgba(20, 10, 35, 0.7);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #FFFFFF;
    --text-gray: #b0a8c0;
    --glow: 0 0 30px rgba(157, 0, 255, 0.4);
    --glow-secondary: 0 0 30px rgba(0, 240, 255, 0.3);
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: radial-gradient(circle at center, #1b0a3a 0%, #0A0514 100%);
    padding-top: 40px; /* Espacio para la barra fija */
}

/* Background Elements */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('fondo.jpg') no-repeat center center/cover;
    opacity: 0.35;
    z-index: -1;
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(157, 0, 255, 0.9), rgba(0, 240, 255, 0.9));
    backdrop-filter: blur(10px);
    color: #FFF;
    padding: 8px 0;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee var(--marquee-duration, 50s) linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.top-banner i {
    margin-right: 8px;
    color: #FFF;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.main-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 45px 35px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.header-actions {
    position: fixed;
    top: 50px; /* Debajo del banner fijo */
    right: 20px;
    z-index: 900;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login-header {
    background: rgba(157, 0, 255, 0.2);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login-header:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 5px 5px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-points {
    color: #ffd700;
    font-weight: 800;
    font-size: 0.9rem;
}

.btn-logout-header {
    background: rgba(255, 75, 43, 0.2);
    border: none;
    color: #ff4b2b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .header-actions {
        top: 45px;
        right: 10px;
    }
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.logo-container p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 5px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn i {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

/* Download App Button */
.download-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 5px;
    margin-bottom: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5), 0 0 10px rgba(157, 0, 255, 0.3);
}

.download-app-btn i {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-size: 1.1rem;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-input-action {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-input-action:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--secondary);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 0, 255, 0.6);
}

.btn-secondary-outline {
    width: 100%;
    background: transparent;
    color: var(--text-gray);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: var(--secondary);
}

.btn-star-small {
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.btn-star-small:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.btn-primary:active {
    transform: translateY(0);
}

.footer-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.support-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    color: #25D366;
    transform: translateY(-2px);
}

.support-btn i {
    font-size: 1rem;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.welcome-container {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-out;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.welcome-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.welcome-container p {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 600;
}

.welcome-container h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.btn-redeem-small {
    display: block;
    margin: 0 auto;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.btn-redeem-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.btn-change-id {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
    width: 100%;
}

.btn-change-id:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

/* Dashboard Styles */
.main-container {
    max-width: 500px;
    transition: var(--transition);
}

.main-container.expanded {
    max-width: 800px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text-white);
    margin: 25px 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.package-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    background: rgba(157, 0, 255, 0.05);
    border-color: rgba(157, 0, 255, 0.3);
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--glow);
}

.package-card.selected {
    background: rgba(157, 0, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(157, 0, 255, 0.25);
}

.package-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(157, 0, 255, 0.5));
}

.diamond-icon {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
    transition: var(--transition);
}

.package-card:hover .diamond-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.7));
}

.pack-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pack-info .amount {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin-bottom: 4px;
}

.pack-info .bonus {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px;
}

.rate-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-usdt {
    font-size: 0.9rem;
    color: #F7B500;
    font-weight: 700;
    margin-top: 5px;
}

.price-bs {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 2px;
}

.package-card.selected .price-bs {
    color: rgba(255, 255, 255, 0.7);
}

.buy-btn:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-method-card i {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.payment-method-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: rgba(157, 0, 255, 0.15);
}

.payment-method-card.selected i {
    color: var(--primary);
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 15px;
}

.info-box p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.info-box p strong {
    color: var(--text-white);
}

.btn-copy {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-copy:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

/* Custom SweetAlert Styles */
.swal2-popup {
    background: #121217 !important;
    color: white !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swal2-title {
    color: white !important;
}

.swal2-confirm {
    background-color: var(--primary) !important;
    border-radius: 10px !important;
}

/* Custom Free Fire Loader */
.ff-loader-container {
    margin-top: 15px;
    padding: 10px 0;
}

.ff-loader-text {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--secondary); }
    100% { opacity: 0.6; }
}

.ff-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.ff-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--secondary);
    border-radius: 10px;
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0% { width: 0%; }
    40% { width: 70%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* Receipt Styles (Custom Comprobante - Dark Mode) */
.receipt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.receipt-success-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 15px;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.receipt-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.receipt-card {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 100%;
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.receipt-logo {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

.receipt-logo span {
    color: inherit;
    -webkit-text-fill-color: transparent;
}

.receipt-info p {
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.receipt-info p:last-child {
    border-bottom: none;
}

.receipt-info strong {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.receipt-info span.val {
    color: #fff;
    font-weight: 700;
}

.status-pending {
    color: #ffd700 !important;
    font-weight: 700 !important;
    animation: blink 1.5s infinite;
}

.status-approved {
    color: #25D366 !important;
    font-weight: 700 !important;
}

.status-rejected {
    color: #ff4b2b !important;
    font-weight: 700 !important;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.receipt-ticket {
    margin-top: 25px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.8;
}

.receipt-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-action {
    padding: 14px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
}

.btn-action:hover {
    transform: translateY(-3px);
}

.btn-share { 
    background: rgba(157, 0, 255, 0.2); 
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 60px; 
}

.btn-fav { 
    background: rgba(255, 20, 147, 0.1); 
    border: 1px solid #ff1493;
    color: #ff1493;
    width: 60px; 
}

.btn-continue-receipt { 
    background: var(--primary); 
    flex: 1;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .card {
        padding: 15px;
        margin: 5px;
        border-radius: 15px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-container h1 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .logo-container p {
        font-size: 0.75rem;
    }

    .welcome-container {
        padding: 12px;
        margin-bottom: 15px;
    }

    .welcome-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .welcome-container h2 {
        font-size: 1.3rem;
    }

    .points-badge {
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .section-title {
        margin: 15px 0 10px;
        font-size: 1rem;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    .package-card {
        padding: 24px 6px 12px 6px;
        text-align: center;
    }

    .package-card .diamond-icon {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .package-card .amount {
        font-size: 0.75rem;
        display: block;
    }

    .package-card .price-usdt {
        font-size: 0.7rem;
    }

    .package-card .price-bs {
        font-size: 0.85rem;
        font-weight: 800;
    }

    .stock-badge {
        top: 4px;
        left: 4px;
        padding: 2px 4px;
        font-size: 0.45rem;
        letter-spacing: 0px;
    }

    .promo-tag {
        top: 4px;
        right: 4px;
        bottom: auto;
        padding: 2px 4px;
        font-size: 0.42rem;
        letter-spacing: 0px;
        border-radius: 6px;
        animation: none !important;
        box-shadow: none !important;
        background-size: auto !important;
    }

    .promo-tag {
        display: none;
    }

    .payment-methods {
        gap: 8px;
        margin-bottom: 10px;
    }

    .payment-method-card {
        padding: 8px;
        gap: 5px;
    }

    .payment-method-card i {
        font-size: 1.2rem;
    }

    .payment-method-card span {
        font-size: 0.85rem;
    }

    .info-box {
        padding: 10px;
        margin-bottom: 10px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-group input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .buy-btn, #finish-btn {
        margin-top: 10px !important;
    }
    .main-container.expanded {
        max-width: 100%;
    }

    .btn-primary, .btn-secondary-outline, .whatsapp-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .secondary-actions {
        flex-direction: row;
        gap: 8px;
    }

    .secondary-actions button {
        font-size: 0.75rem;
        padding: 10px 5px;
    }

    /* Modal adjustments */
    .swal2-popup {
        width: 95% !important;
        padding: 15px !important;
    }

    .receipt-success-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .receipt-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .receipt-info {
        padding: 5px;
    }

    .receipt-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .receipt-info p {
        padding-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        font-size: 0.85rem;
    }

    .receipt-info p span.val {
        text-align: left;
        width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
        font-size: 0.9rem;
    }

    .receipt-logo {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .receipt-ticket {
        margin-top: 15px;
        font-size: 0.75rem;
    }

    .btn-action {
        padding: 10px;
    }

    .btn-action {
        padding: 8px;
        font-size: 0.9rem;
    }

    .btn-share, .btn-fav {
        width: 45px;
    }

    .btn-continue-receipt {
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .receipt-info p {
        margin: 5px 0;
        padding-bottom: 5px;
    }

    .receipt-success-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .receipt-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* === STOCK BADGES === */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}
.stock-badge.available {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.stock-badge.out {
    background: rgba(255, 75, 43, 0.15);
    color: #ff4b2b;
    border: 1px solid rgba(255, 75, 43, 0.3);
}
.package-card.out-of-stock {
    cursor: not-allowed;
    filter: grayscale(0.8);
}
.package-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* === PROMO TAGS (Marketing Labels) === */
.promo-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    white-space: nowrap;
    animation: promoGlow 2.5s ease-in-out infinite;
}

/* 🎮 Para Empezar - Azul suave */
.promo-starter {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.25), rgba(65, 105, 225, 0.15));
    color: #7CB9E8;
    border: 1px solid rgba(100, 149, 237, 0.4);
    box-shadow: 0 0 8px rgba(100, 149, 237, 0.2);
}

/* 🔥 Popular - Naranja fuego */
.promo-popular {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(255, 69, 0, 0.15));
    color: #FF8C00;
    border: 1px solid rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.3);
    animation: promoGlow 2s ease-in-out infinite, promoFirePulse 1.5s ease-in-out infinite;
}

/* ⚡ Más Vendido - Amarillo eléctrico */
.promo-bestseller {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.15));
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    animation: promoGlow 2s ease-in-out infinite, promoBoltFlash 3s ease-in-out infinite;
}

/* 💰 Mejor Valor - Verde esmeralda */
.promo-value {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.3), rgba(0, 150, 60, 0.15));
    color: #00E676;
    border: 1px solid rgba(0, 200, 83, 0.5);
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.25);
}

/* 👑 Premium - Dorado real */
.promo-premium {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.35), rgba(184, 134, 11, 0.15));
    color: #FFD700;
    border: 1px solid rgba(218, 165, 32, 0.6);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
    animation: promoGlow 2s ease-in-out infinite, promoShimmer 3s linear infinite;
}

/* 🏆 VIP Élite - Púrpura brillante */
.promo-vip {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.35), rgba(148, 0, 211, 0.2));
    color: #E040FB;
    border: 1px solid rgba(186, 85, 211, 0.6);
    box-shadow: 0 0 18px rgba(186, 85, 211, 0.35);
    animation: promoGlow 2s ease-in-out infinite, promoShimmer 2.5s linear infinite;
}

/* Animaciones de las etiquetas */
@keyframes promoGlow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

@keyframes promoFirePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 140, 0, 0.2); }
    50% { box-shadow: 0 0 16px rgba(255, 69, 0, 0.5); }
}

@keyframes promoBoltFlash {
    0%, 90%, 100% { text-shadow: none; }
    95% { text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); }
}

@keyframes promoShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.promo-premium,
.promo-vip {
    background-size: 200% auto;
}

/* === PREMIUM RECEIPT ENHANCEMENTS === */
.receipt-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(20, 10, 35, 0.9), rgba(10, 5, 20, 0.95));
}
.receipt-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* PIN DISPLAY STYLES */
#pin-display-container {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 1px dashed var(--secondary);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

#assigned-pin {
    font-size: 1.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    letter-spacing: 3px;
    margin: 5px 0;
    display: block;
    text-shadow: 0 0 10px var(--secondary);
}

.btn-copy-pin {
    background: var(--secondary);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-copy-pin:hover {
    background: #fff;
    transform: scale(1.05);
}

/* === NOTIFICACIONES PUSH PWA (CAMPANA) === */
.btn-bell-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-bell-header:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transform: scale(1.08);
}

.btn-bell-header.active {
    background: rgba(157, 0, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary-hover);
    animation: bellRing 1.5s ease-in-out infinite;
}

.btn-bell-header.active:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(-6deg); }
    50% { transform: rotate(4deg); }
    60% { transform: rotate(-2deg); }
    70% { transform: rotate(0); }
}

/* ============================================ */
/* ANIMACIÓN SHAKE - ID Inválido               */
/* ============================================ */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-8px); }
    30%       { transform: translateX(8px); }
    45%       { transform: translateX(-6px); }
    60%       { transform: translateX(6px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.input-shake {
    animation: inputShake 0.6s ease-in-out !important;
    border: 2px solid rgba(255, 75, 43, 0.8) !important;
    box-shadow: 0 0 16px rgba(255, 75, 43, 0.4) !important;
}
