/* ============================================
   FREE FIRE DIAMOND STORE — styles.css
   ============================================ */

/* --- Variables de Diseño Premium --- */
:root {
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --success: #4ade80;
    --gold: #ffb800;
    --glass: rgba(15, 10, 25, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(192, 38, 211, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, 
            rgba(5,0,15,0.7) 0%, 
            rgba(10,2,25,0.4) 40%, 
            rgba(3,0,12,0.8) 100%);
    z-index: 0;
    pointer-events: none;
}


/* --- Animations --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-left {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in-right {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pop-in {
    0%   { opacity: 0; transform: scale(0.7); }
    80%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    from { background-position: -500px 0; }
    to   { background-position: 500px 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.3); }
    50%       { box-shadow: 0 0 50px rgba(192, 38, 211, 0.7); }
}

@keyframes ambient-shift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
    33%  { transform: translate(3%vw, -5%vh) scale(1.1); opacity: 1; }
    66%  { transform: translate(-2%vw, 4%vh) scale(0.9); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
}

@keyframes sweep {
    0% { transform: translateX(-150%) skewX(-15deg); }
    100% { transform: translateX(250%) skewX(-15deg); }
}

.animate-ambient-1 {
    animation: ambient-shift 20s ease-in-out infinite alternate;
}
.animate-ambient-2 {
    animation: ambient-shift 25s ease-in-out infinite alternate-reverse;
}


@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.notif-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d4d4d4;
    letter-spacing: 0.02em;
    left: 0;
    will-change: transform;
}

.notif-ticker-track:hover {
    animation-play-state: paused;
}

.notif-sep {
    color: #8b5cf6;
    margin: 0 1.2rem;
    font-size: 0.6rem;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.animate-fade-in-down  { animation: fade-in-down  0.7s ease-out both; }
.animate-fade-in-left  { animation: fade-in-left  0.7s ease-out 0.1s both; }
.animate-fade-in-right { animation: fade-in-right 0.7s ease-out 0.2s both; }

/* --- Scrollbar --- */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #05000f; }
::-webkit-scrollbar-thumb  { background: #2d1a4d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }

/* ============================================
   PACKAGE CARDS
   ============================================ */
.package-card {
    position: relative;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.25rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-15deg);
    transition: all 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.package-card:hover::after {
    left: 200%;
    transition: left 0.7s ease;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 0;
}

.package-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    background: #100818;
}

.package-card:hover::before { opacity: 1; }

.package-card.popular {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(145deg, rgba(20,10,35,0.8), rgba(30,10,40,0.9));
}

/* Selected State */
.package-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(145deg, #0d0520, #150830);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 0 1px #8b5cf6, 0 8px 40px rgba(139, 92, 246, 0.4);
    animation: pulse-glow 2s ease infinite;
}

.package-card.selected .card-icon {
    animation: float-icon 1.8s ease-in-out infinite;
}

.package-card.selected .card-price {
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    color: #fff;
    border-color: transparent;
}

/* Card Inner Elements */
.card-icon {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.package-card:hover .card-icon { transform: scale(1.15); }

.card-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a855f7;
}

.reward-points {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: -0.2rem;
}

.card-bonus {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.card-price {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #d1d5db;
    transition: all 0.25s ease;
    margin-top: 0.25rem;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 0 1.2rem 0 0.6rem;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    color: #fff;
}

/* ============================================
   STATUS & TRUST ELEMENTS
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a3a3a3;
}

#recent-activity-container {
    perspective: 1000px;
    min-height: 40px;
}

.activity-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(13, 8, 25, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slide-up-toast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slide-up-toast {
    from { opacity: 0; transform: translateY(20px) rotateX(-20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.toast-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

/* ============================================
   SUCCESS CHECKMARK
   ============================================ */
.success-check {
    animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   PAYMENT METHOD TABS
   ============================================ */
.payment-tab {
    background: #0d0720;
    color: #737373;
    border-color: #2d1a4d;
}

.payment-tab:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #d4d4d4;
}

.payment-tab.active-tab {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(192, 38, 211, 0.12));
    border-color: #8b5cf6;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ============================================
   FLOATING DIAMONDS
   ============================================ */
.floating-diamond {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    filter: blur(1px);
    animation: float-diamond-anim linear infinite;
}

@keyframes float-diamond-anim {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Polishing custom scrollbar for modal */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

/* ============================================
   PREMIUM MOBILE OPTIMIZATION
   ============================================ */
@keyframes slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (max-width: 768px) {
    /* Responsive Header */
    header h1 { font-size: 2.8rem !important; }
    header h1 span.text-3xl { font-size: 1.5rem !important; }
    header p { font-size: 0.75rem !important; letter-spacing: 2px !important; }
    
    /* Bottom Sheet Modals */
    .mobile-bottom-sheet {
        align-items: flex-end !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mobile-bottom-sheet > div:last-child {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 2rem 2rem 0 0 !important;
        animation: slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Mobile Navigation Bar */
    #mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(10, 5, 20, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(139, 92, 246, 0.3);
        z-index: 250;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #737373;
        transition: all 0.3s ease;
    }

    .nav-item.active {
        color: #a855f7;
    }

    .nav-item i { font-size: 1.25rem; }
    .nav-item span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }

    /* Sticky Checkout Bar */
    #sticky-checkout {
        position: fixed;
        bottom: 75px; 
        left: 1rem;
        right: 1rem;
        z-index: 240;
        transform: translateY(200%);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    #sticky-checkout.visible {
        transform: translateY(0);
    }

    /* Grid adjustment */
    #packages-grid {
        gap: 0.75rem !important;
    }
    
    .package-card {
        padding: 1.2rem 0.75rem !important;
    }
    
    .card-amount { font-size: 1.5rem !important; }
}

/* ============================================
   GAMIFICATION: LOYALTY PROGRESS BAR
   ============================================ */
.progress-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    border-radius: inherit;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: shimmer 1.5s infinite;
}

.progress-bar.completed {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

@keyframes progress-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pop {
    animation: progress-pop 0.4s ease-out;
}

