:root {
            --primary: #574e8a;
            --primary-dark: #261a72;
            --secondary: #00cec9;
            --dark: #2d3436;
            --light: #f5f6fa;
            --gray: #636e72;
            --success: #00b894;
            --warning: #fdcb6e;
            --danger: #d63031;
            --accent: #aa1a00;
            --accent-light: #ff6b6b;
            --background: #f5f6fa;
            --surface: #ffffff;
            --text-primary: #2d3436;
            --text-secondary: #636e72;
            --border: #e0e0e0;
        }

        [data-theme="dark"] {
            --dark: #f5f6fa;
            --light: #1a1a1a;
            --gray: #b0b3b8;
            --background: #121212;
            --surface: #1e1e1e;
            --text-primary: #ffffff;
            --text-secondary: #b0b3b8;
            --border: #333333;
            --primary: #6b5fb5;
            --primary-dark: #1a0d4d;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 600;
            background: var(--primary);
            border: 2px solid var(--border);
            border-radius: 50px;
            padding: 8px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            width: 60px;
            height: 35px;
            overflow: hidden;
        }
        [data-theme="dark"] .theme-toggle {
            background: var(--primary-dark);
            border-color: var(--primary);
        }

        .theme-toggle:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .theme-icon {
            font-size: 16px;
            transition: all 0.3s ease;
            position: absolute;
        }

        .theme-icon.sun {
            color: #ffd700;
            left: 8px;
            opacity: 1;
        }

        .theme-icon.moon {
            color: #64748b;
            right: 8px;
            opacity: 0;
        }

        [data-theme="dark"] .theme-icon.sun {
            opacity: 0;
            transform: translateX(-20px);
        }

        [data-theme="dark"] .theme-icon.moon {
            opacity: 1;
            transform: translateX(0);
        }

        /* Loading Screen Styles */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #loading-screen video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        body.loaded #loading-screen {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        /* Skip Loading Button */
        #skip-loading {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10001;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #skip-loading:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        body.loaded #skip-loading {
            display: none;
        }
        
        /* Header */
        header {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            color: white;
            padding: 2rem 0 3rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] header {
            background: linear-gradient(135deg, #0f0620, #2d1b4e);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
        }
        
        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
            opacity: 0.3;
            pointer-events: none;
        }
        
        .header-content {
            position: relative;
            z-index: 2;
            animation: fadeInDown 1s ease;
        }
        
        .logo, h1 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: white;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
            letter-spacing: 1px;
            position: relative;
            display: inline-block;
        }

        [data-theme="dark"] .logo, [data-theme="dark"] h1 {
            text-shadow:0 0 10px rgba(233, 69, 96, 0.7),
                         0 0 20px rgba(233, 69, 96, 0.5),
                         0 0 30px rgba(233, 69, 96, 0.3);
        }

        .subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 1.5rem;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
        }
        
 /* Enhanced Buy Button */
        .btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 14px 85px;
            background: linear-gradient(135deg, #3f0146 0%, #f5576c 100%);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 8px 25px rgba(102, 126, 234, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            cursor: pointer;
            border: none;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 12px 35px rgba(102, 126, 234, 0.4),
                0 8px 20px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .btn i {
            font-size: 20px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-3px);
            }
            60% {
                transform: translateY(-1px);
            }
        }

        /* Enhanced Popup Overlay */
        .popup-overlay {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .popup-overlay.show {
            opacity: 1;
        }

        /* Enhanced Popup Content */
        .popup-content {
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            padding: 4rem 3.5rem;
            border-radius: 28px;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
            min-width: 300px;
            max-width: 90vw;
            text-align: center;
            transform: scale(0.7) translateY(50px);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 100000;
        }

        .popup-overlay.show .popup-content {
            transform: scale(1) translateY(0);
        }

        .popup-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
            border-radius: 24px 24px 0 0;
        }

        .close-popup {
            position: absolute;
            top: 20px;
            right: 24px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #64748b;
            cursor: pointer;
            border-radius: 50%;
            background: rgba(248, 250, 252, 0.8);
            transition: all 0.2s ease;
            border: 1px solid rgba(203, 213, 225, 0.5);
            z-index: 100001;
        }

        .close-popup:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            transform: rotate(90deg);
        }

        .popup-content h2 {
            color: #1e293b;
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .popup-subtitle {
            color: #475569;
            font-size: 20px;
            margin-bottom: 3rem;
            font-weight: 500;
            line-height: 1.4;
        }
/* Dark mode popup styles */
[data-theme="dark"] .popup-content {
    background: linear-gradient(145deg, var(--surface) 0%, var(--background) 100%);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .close-popup {
    background: rgba(39, 39, 42, 0.9);
    color: var(--text-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .close-popup:hover,
[data-theme="dark"] .close-popup:active {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

[data-theme="dark"] .popup-content h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .popup-subtitle {
    color: var(--text-secondary);
}

/* Dark mode social links */
[data-theme="dark"] .popup-social-link {
    background: linear-gradient(145deg, 
        rgba(24, 24, 27, 0.95) 0%, 
        rgba(39, 39, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .popup-social-link:hover,
[data-theme="dark"] .popup-social-link:active {
    background: linear-gradient(145deg, 
        rgba(39, 39, 42, 1) 0%, 
        rgba(52, 52, 56, 0.98) 100%);
    border-color: rgba(107, 95, 181, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .popup-social-link span {
    color: #e2e8f0;
}

[data-theme="dark"] .popup-social-link:hover span,
[data-theme="dark"] .popup-social-link:active span {
    color: #f1f5f9;
}

[data-theme="dark"] .payment-method {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border-color: var(--border);
}

[data-theme="dark"] .payment-method:hover,
[data-theme="dark"] .payment-method:active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(107, 95, 181, 0.2);
}

/* Navigation Corner Buttons Container */
.nav-buttons-container {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual button containers */
.nav-corner-button {
    position: relative;
}

/* Shared button styles for both buttons */
.boost-nav-btn,
.sell-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-width: 90px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Shimmer effect */
.boost-nav-btn::before,
.sell-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.boost-nav-btn:hover::before,
.sell-nav-btn:hover::before {
    left: 100%;
}

/* Base button styles */
.boost-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sell-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Hover effects */
.boost-nav-btn:hover,
.boost-nav-btn:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.sell-nav-btn:hover,
.sell-nav-btn:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Icon spacing */
.boost-nav-btn i,
.sell-nav-btn i {
    margin-right: 6px;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.boost-nav-btn:hover i,
.sell-nav-btn:hover i {
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-buttons-container {
        top: 70px;
        right: 12px;
        gap: 10px;
    }
    
    .boost-nav-btn,
    .sell-nav-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 80px;
        border-radius: 20px;
    }
    
    .boost-nav-btn i,
    .sell-nav-btn i {
        font-size: 12px;
        margin-right: 5px;
    }
    
    /* Reduce shadow intensity on mobile */
    .boost-nav-btn {
        box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    }
    
    .sell-nav-btn {
        box-shadow: 0 3px 12px  0 3px 12px rgba(102, 126, 234, 0.3);
    }

    .boost-nav-btn:hover,
    .boost-nav-btn:active {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
    
    .sell-nav-btn:hover,
    .sell-nav-btn:active {
        transform: translateY(-1px) scale(1.02);
        box-shadow:  0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

@media (max-width: 480px) {
    .nav-buttons-container {
        top: 65px;
        right: 10px;
        gap: 8px;
    }
    
    .boost-nav-btn,
    .sell-nav-btn {
        padding: 7px 12px;
        font-size: 11px;
        min-width: 70px;
        border-radius: 18px;
    }
    
    .boost-nav-btn i,
    .sell-nav-btn i {
        font-size: 11px;
        margin-right: 4px;
    }
    
    /* Even lighter effects on small mobile */
    .boost-nav-btn {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.25);
    }
    
    .sell-nav-btn {
        box-shadow:0 2px 10px rgba(102, 126, 234, 0.25);
    }
    
    .boost-nav-btn:hover,
    .boost-nav-btn:active {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .sell-nav-btn:hover,
    .sell-nav-btn:active {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);

    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav-buttons-container {
        top: 60px;
        right: 8px;
        gap: 6px;
    }
    
    .boost-nav-btn,
    .sell-nav-btn {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 60px;
        border-radius: 15px;
    }
    
    .boost-nav-btn i,
    .sell-nav-btn i {
        font-size: 10px;
        margin-right: 3px;
    }
}

/* Focus states for accessibility */
.boost-nav-btn:focus-visible,
.sell-nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-buttons-container {
        top: 50px;
        right: 10px;
        gap: 8px;
    }
    
    .boost-nav-btn,
    .sell-nav-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .boost-nav-btn,
    .sell-nav-btn {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    }
    
    .sell-nav-btn {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    }
}

/* Animation for entrance */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-buttons-container {
    animation: slideInRight 0.6s ease-out;
}

.boost-nav-btn {
    animation-delay: 0.1s;
}

.sell-nav-btn {
    animation-delay: 0.2s;
}
        /* Floating particles animation */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }
        
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            animation: float linear infinite;
        }
        
        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
                opacity: 0;
            }
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        /* Main Content */
        main {
            padding: 1.5rem 0;
        }
        
        /* Category Tabs */
        .category-tabs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 8px;
            margin-bottom: 1.5rem;
            padding: 0 10px;
        }
        
        .category-tab {
            padding: 0.8rem 1rem;
            border: none;
            background: var(--surface);
            color: var(--text-primary);
            cursor: pointer;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 2px solid var(--border);
        }
        
        .category-tab:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .category-tab.active {
            background: var(--primary);
            color: white;
        }

        [data-theme="dark"] .category-tab.active {
            background: #26242b;
            color: var(--text-primary);
        }
        
        /* Sub Filters */
        .sub-filters {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            padding: 0 10px;
        }
        
        .sub-filter {
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            border: none;
            background: var(--surface);
            color: var(--text-primary);
            cursor: pointer;
            font-weight: 500;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border);
        }
        
        .sub-filter:hover {
            background: var(--light);
            transform: translateY(-1px);
        }
        
        .sub-filter.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary-dark);
        }
        [data-theme="dark"] .sub-filter.active {
            background: #26242b;
            color: var(--text-primary);
            border-color: var(--primary);
        }
        
        /* Card Filters */
        .card-filters {
            display: none;
            margin-bottom: 1.5rem;
            background: var(--surface);
            padding: 1rem;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border);
        }
        
        .card-filters.active {
            display: block;
        }
        
        .card-section {
            margin-bottom: 1.5rem;
        }
        
        .card-section:last-child {
            margin-bottom: 0;
        }
        
        .card-section-title {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 0.8rem;
            padding-bottom: 0.3rem;
            border-bottom: 2px solid var(--border);
            font-size: 0.95rem;
        }
        
/* Simplified Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    padding: 5px;
}

.card-item {
    background: var(--surface);
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 0.7rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.card-item:hover .card-name {
    transform: translateY(0);
}

.card-item:hover .card-image {
    transform: scale(1.05);
}

.card-item.selected {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 2px rgba(87, 78, 138, 0.3);
}


.card-png {
    position: absolute;
    width: 25px;
    height: 25px;
    left: -5px;
            bottom: -5px;
            z-index: 2;
            pointer-events: none;
        }

        /* Sort Controls */
        .sort-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0 10px;
        }
        
        .sort-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .sort-btn {
            background: var(--surface);
            border: none;
            color: var(--text-secondary);
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0.5rem 0.8rem;
            border-radius: 20px;
            transition: all 0.2s ease;
            font-size: 0.85rem;
        }
        
        .sort-btn:hover {
            background: var(--light);
            color: var(--text-primary);
            transform: translateY(-1px);
        }
        
        .sort-btn.active {
            color: var(--primary);
            font-weight: 600;
            background: rgba(87, 78, 138, 0.1);
        }
        
        .selected-cards-info {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        
        .clear-filters {
            color: var(--danger);
            cursor: pointer;
            font-weight: 500;
            margin-left: 5px;
        }
        
        /* Accounts Table */
       /* Accounts Table */
.accounts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    min-width: 100%;
}

[data-theme="dark"] .accounts-table {
    background: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
}

.accounts-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.9rem;
    min-width: 120px; /* Added minimum width */
}

[data-theme="dark"] .accounts-table th {
    background: #251d35;
}

.accounts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    min-width: 120px; /* Added minimum width */
}

[data-theme="dark"] .accounts-table td {
    border-bottom: 1px solid #2a2a2a;
}

.accounts-table tr:last-child td {
    border-bottom: none;
}

.accounts-table tr:hover {
    background: var(--light);
}

[data-theme="dark"] .accounts-table tr:hover {
    background: #242424;
}

.account-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.account-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.orb-count {
    font-weight: 600;
    color: var(--text-primary);
}

.orb-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .accounts-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .accounts-table th,
    .accounts-table td {
        padding: 0.8rem;
        min-width: 140px; /* Wider on mobile */
    }
    
    /* Make first two columns extra wide */
    .accounts-table td:nth-child(1),
    .accounts-table th:nth-child(1),
    .accounts-table td:nth-child(2),
    .accounts-table th:nth-child(2) {
        min-width: 160px;
    }
    
    .account-link {
        font-size: 0.85rem;
    }
    
    .orb-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .accounts-table th,
    .accounts-table td {
        padding: 0.7rem 0.6rem;
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .accounts-table td:nth-child(1),
    .accounts-table th:nth-child(1),
    .accounts-table td:nth-child(2),
    .accounts-table th:nth-child(2) {
        min-width: 140px;
    }
    
    .account-link {
        font-size: 0.82rem;
        margin-right: 6px;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

       /* Chat Bubble */
        .chat-bubble {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--light) 100%);
            border-radius: 50%;
            border: 5px solid #261a72;
            cursor: pointer;
            box-shadow: 0 8px 32px rgba(108, 95, 180, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            overflow: hidden;
        }

        .chat-bubble:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 40px rgba(93, 82, 156, 0.4);
        }

        .chat-bubble.active {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            transform: rotate(45deg);
        }

        .bubble-icon {
            width: 61px;
            height: 51px;
            fill: rgb(20, 0, 0);
            transition: all 0.3s ease;
        }

        .chat-bubble.active .bubble-icon {
            transform: rotate(-45deg);
        }

        /* Chat Window */
        .chat-window {
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 380px;
            height: 600px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .chat-window.open {
            transform: translateY(0) scale(1);
            opacity: 1;
            visibility: visible;
        }

        /* Dark Mode Chat Window */
        [data-theme="dark"] .chat-window {
            background: var(--surface);
            border: 1px solid var(--border);
        }

        [data-theme="dark"] .chat-header {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        }

        [data-theme="dark"] .message.bot .message-content {
            background: var(--background);
            color: var(--text-primary);
        }

        [data-theme="dark"] .message.user .message-content {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        }

        [data-theme="dark"] .chat-input {
            background: var(--surface);
            border-top: 1px solid var(--border);
        }

        [data-theme="dark"] .input-container {
            background: var(--background);
        }

        [data-theme="dark"] .message-input {
            color: var(--text-primary);
        }

        [data-theme="dark"] .quick-action {
            background: var(--background);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        [data-theme="dark"] .quick-action:hover {
            background: var(--primary);
            color: white;
        }

        /* Chat Header */
        .chat-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 20px;
            color: white;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .skull-icon {
            width: 29px;
            height: 24px;
            fill: white;
        }

        .header-info h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .header-info p {
            font-size: 12px;
            opacity: 0.9;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            margin-left: auto;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

/* Chat Messages - Fixed Mobile Scroll */
.chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* iOS scroll fix */
    -webkit-overflow-scrolling: touch;
    /* Prevent rubber band effect */
    overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--light);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

        .message {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background:  #ebecf1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .message.user .message-avatar {
            background: var(--secondary);
        }

        .message-content {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.4;
        }

        .message.bot .message-content {
            background: var(--light);
            color: var(--dark);
            border-bottom-left-radius: 6px;
        }

        .message.user .message-content {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border-bottom-right-radius: 6px;
        }

/* Chat Input - Fixed positioning */
.chat-input {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    position: relative; /* Remove absolute positioning conflicts */
    z-index: auto;
}


        .input-container {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--light);
            border-radius: 25px;
            padding: 4px;
            transition: all 0.3s ease;
        }

        .input-container:focus-within {
            box-shadow: 0 0 0 2px rgba(87, 78, 138, 0.2);
        }

        .message-input {
            flex: 1;
            border: none;
            outline: none;
            padding: 12px 16px;
            background: transparent;
            font-size: 14px;
            color: var(--dark);
        }

        .message-input::placeholder {
            color: var(--gray);
        }

        .send-button {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .send-button:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(87, 78, 138, 0.3);
        }

        .send-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Quick Actions */
        .quick-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .quick-action {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            padding: 8px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--gray);
        }

        .quick-action:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        /* Typing indicator */
        .typing-indicator {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: var(--light);
            border-radius: 18px;
            border-bottom-left-radius: 6px;
            max-width: 70%;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 6px;
            height: 6px;
            background: var(--gray);
            border-radius: 50%;
            animation: typing 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.5;
            }
            30% {
                transform: translateY(-10px);
                opacity: 1;
            }
        }

        /* Question Selector */
        .question-selector {
            position: relative;
            margin-bottom: 12px;
        }

        .select-button {
            width: 100%;
            padding: 12px 16px;
            background: var(--light);
            color: var(--dark);
            border: 1px solid var(--border);
            border-radius: 25px;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .select-button:hover {
            background: var(--primary-light);
        }

        .select-button::after {
            content: '▼';
            font-size: 10px;
            transition: transform 0.3s;
        }

        .select-button.open::after {
            transform: rotate(180deg);
        }

        .question-dropdown {
            position: absolute;
            bottom: 100%;
            left: 0;
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            z-index: 10;
            display: none;
            margin-bottom: 8px;
        }

        .question-dropdown.open {
            display: block;
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .question-option {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .question-option:hover {
            background: var(--primary);
            color: white;
        }

        /* Mobile Responsive Styles */
        @media (max-width: 768px) {
            .container {
                padding: 0 10px;
            }

            .theme-toggle {
                top: 15px;
                left: 15px;
                width: 50px;
                height: 30px;
            }

            .theme-icon {
                font-size: 14px;
            }

            header {
                padding: 1.5rem 0 2rem;
            }
            
            h1, .logo {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
                padding: 0 15px;
            }

            .btn {
                padding: 0.7rem 1.5rem;
                font-size: 0.9rem;
            }

            .nav-corner-button {
                top: 60px;
                right: 10px;
            }

            .boost-nav-btn {
                padding: 6px 12px;
                font-size: 11px;
            }
            
            .category-tabs {
                grid-template-columns: 1fr;
                gap: 6px;
                padding: 0 5px;
            }
            
            .category-tab {
                padding: 0.7rem 1rem;
                font-size: 0.85rem;
            }
            
            .sub-filters {
                gap: 6px;
                padding: 0 5px;
            }

            .sub-filter {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }

            .card-filters {
                margin: 0 5px 1.5rem;
                padding: 0.8rem;
            }
            
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Increased from 75px */
        gap: 8px; /* Increased from 6px */
    }

    .card-item {
        padding: 8px; /* Increased from 6px */
    }

    .card-image {
        width: 50px; /* Increased from 40px */
        height: 50px; /* Increased from 40px */
    }

    .card-name {
        font-size: 0.7rem; /* Increased from 0.7rem */
    }
    
    .new-badge {
        font-size: 0.6rem; /* Decreased from 0.7rem */
        padding: 1px 4px; /* Decreased padding */
    }
}
            
            .sort-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                padding: 0 5px;
            }

            .sort-buttons {
                width: 100%;
                justify-content: center;
            }

            .sort-btn {
                font-size: 0.8rem;
                padding: 0.4rem 0.7rem;
            }

            .selected-cards-info {
                font-size: 0.8rem;
            }

        @media (max-width: 480px) {
            .theme-toggle {
                width: 45px;
                height: 28px;
            }

            .theme-icon {
                font-size: 12px;
            }

            h1, .logo {
                font-size: 1.8rem;
            }

            .subtitle {
                font-size: 0.85rem;
            }

            .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.85rem;
            }

            .category-tab {
                padding: 0.6rem 0.8rem;
                font-size: 0.8rem;
            }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); /* Increased from 60px */
        gap: 4px; /* Increased from 1px */
    }

    .card-image {
        width: 45px; /* Increased from 35px */
        height: 45px; /* Increased from 35px */
    }

    .card-name {
        font-size: 0.65rem; /* Increased from 0.65rem */
    }
    
    .new-badge {
        font-size: 0.55rem; /* Decreased from 0.65rem */
        padding: 1px 3px; /* Decreased padding */
    }
}

            .account-link {
                font-size: 0.75rem;
            }

        /* Highlight animations */
        .account-link.highlight {
            background: linear-gradient(90deg, #667eea, #764ba2) !important;
            color: white !important;
            transform: scale(1.05);
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
            animation: highlightPulse 2s ease-in-out;
            padding: 2px 6px;
            border-radius: 4px;
        }

        @keyframes highlightPulse {
            0%, 100% { 
                background: linear-gradient(90deg, #667eea, #764ba2);
                box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
            }
            50% { 
                background: linear-gradient(90deg, #764ba2, #667eea);
                box-shadow: 0 5px 15px rgba(118, 75, 162, 0.6);
            }
        }

        /* Typing indicator */
        .typing-indicator {
            display: none;
            align-items: center;
            gap: 6px;
            padding: 10px 12px;
            background: var(--surface);
            border-radius: 16px;
            border-bottom-left-radius: 6px;
            max-width: 70%;
            border: 1px solid var(--border);
        }

        .typing-dots {
            display: flex;
            gap: 3px;
        }

        .typing-dot {
            width: 5px;
            height: 5px;
            background: var(--text-secondary);
            border-radius: 50%;
            animation: typing 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.5;
            }
            30% {
                transform: translateY(-6px);
                opacity: 1;
            }
        }

        /* Hidden class */
        .hidden {
            display: none !important;
        }

        /* Fade in animation */
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Smooth transitions for theme changes */
        * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        .card-item,
        .category-tab,
        .sub-filter,
        .sort-btn,
        .accounts-table,
        .chat-window,
        .message-content {
            transition: all 0.3s ease;
        }

 /* Modern Footer with Header Cohesion */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    padding: 4rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 8rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f0620, #2d1b4e);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Floating particles for cohesion with header */
footer::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 70%);
    animation: footerFloat 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes footerFloat {
    from { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.5; 
    }
    to { 
        transform: rotate(180deg) scale(1.1); 
        opacity: 0.8; 
    }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .footer-logo {
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.7),
                 0 0 20px rgba(233, 69, 96, 0.5),
                 0 0 30px rgba(233, 69, 96, 0.3);
}

.footer-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.footer-text {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}



/* Footer Social Links - Enhanced to match header style */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.footer-social-links .social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.footer-social-links .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-links .social-link:hover::before {
    opacity: 1;
}

.footer-social-links .social-link:hover {
    transform: translateY(-3px) scale(1.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Platform-specific hover colors matching header gradient style */
.footer-social-links .social-link:nth-child(1):hover {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.footer-social-links .social-link:nth-child(2):hover {
    background: linear-gradient(135deg, #5865f2, #7289da);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.footer-social-links .social-link:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
}

.footer-social-links .social-link:nth-child(4):hover {
    background: linear-gradient(135deg, #ea4335, #ff6b6b);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
}

.footer-social-links .social-link:nth-child(5):hover {
    background: linear-gradient(135deg, #25d366, #20bf55);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.footer-social-links .social-link i {
    font-size: 20px;
    color: inherit;
    transition: transform 0.3s ease;
}

.footer-social-links .social-link:hover i {
    transform: scale(1.1);
}

/* Payment Methods Section */
.footer-payment-section {
    margin: 32px 0 24px;
    position: relative;
    z-index: 2;
}

.payment-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.footer-payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.footer-payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-payment-method:hover::before {
    opacity: 1;
}

.footer-payment-method:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-payment-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer-payment-method:hover .footer-payment-icon {
    transform: scale(1.1);
    filter: brightness(1.1);
}

        .copyright {
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 1.5rem;
            font-size: 0.9rem;
            opacity: 0.7;
            color: rgba(255, 255, 255, 0.8);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 3rem 1rem 2rem;
        margin-top: 6rem;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .footer-social-links {
        gap: 12px;
    }
    
    .footer-social-links .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
              .footer-payment-methods {
                gap: 10px;
            }

            .footer-payment-method {
                width: 70px;
                height: 70px;
            }

            .footer-payment-icon {
                width: 50px;
                height: 50px;
            }

            .payment-section-title {
                font-size: 1rem;
            }
        
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-social-links {
        gap: 10px;
    }
    
    .footer-social-links .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
           .footer-payment-methods {
                gap: 8px;
            }

             .footer-payment-method {
                width: 70px;
                height: 70px;
            }

            .footer-payment-icon {
                width: 50px;
                height: 50px;
            }

            .payment-section-title {
                font-size: 0.9rem;
            }
        }
.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #00ff88, #043a20);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
    z-index: 10;
    animation: pulse-glow 2s ease-in-out infinite alternate,
               zoom-bounce 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 255, 136, 0.6);
    }
}

@keyframes zoom-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Standard Mobile - 320px to 480px */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 60px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .popup-content {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 18px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .close-popup {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .popup-content h2 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .popup-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }
    
    .popup-social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 1.25rem 0;
    }
    
    .popup-social-link {
        padding: 14px 10px;
        min-height: 75px;
        border-radius: 12px;
        min-width: 100px;
    }
    
    .popup-social-link i {
        font-size: 20px;
    }
    
    .popup-social-link span {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
        margin: 15px 0;
    }
    
    .payment-method {
        width: 60px;
        height: 60px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .payment-icon {
        width: 35px;
        height: 35px;
    }
}

/* Extra Small Mobile - 320px and below */
@media (max-width: 320px) {
    .popup-overlay {
        padding: 10px;
        padding-top: 50px;
    }
    
    .popup-content {
        padding: 1.25rem 1rem;
        border-radius: 16px;
        max-height: 80vh;
    }
    
    .close-popup {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .popup-content h2 {
        font-size: 1.4rem;
        margin-top: 10px;
    }
    
    .popup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .popup-social-links {
        gap: 8px;
        margin: 1rem 0;
    }
    
    .popup-social-link {
        padding: 12px 8px;
        min-height: 70px;
        border-radius: 10px;
        min-width: 90px;
    }
    
    .popup-social-link i {
        font-size: 18px;
    }
    
    .popup-social-link span {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
    
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
        margin: 12px 0;
    }
    
    .payment-method {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    .payment-icon {
        width: 30px;
        height: 30px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .popup-overlay {
        padding: 10px;
        align-items: center;
        padding-top: 20px;
    }
    
    .popup-content {
        max-height: 90vh;
        padding: 1.5rem 1.25rem;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    
    .popup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .popup-social-links {
        gap: 8px;
        margin: 1rem 0;
    }
    
    .popup-social-link {
        padding: 12px 8px;
        min-height: 65px;
    }
    
    .payment-methods {
        gap: 6px;
        margin: 12px 0;
    }
    
    .payment-method {
        width: 55px;
        height: 55px;
    }
    
    .payment-icon {
        width: 32px;
        height: 32px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .popup-overlay {
        /* Fix iOS viewport issues */
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .popup-content {
        /* Prevent iOS scroll issues */
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .popup-social-link,
    .payment-method {
        /* Larger touch targets for finger navigation */
        min-height: 44px;
        min-width: 44px;
    }
    
    .close-popup {
        /* Ensure close button is easily tappable */
        min-width: 44px;
        min-height: 44px;
    }
}

/* Accessibility and interaction improvements */
.popup-social-link:focus-visible,
.payment-method:focus-visible {
    outline: 2px solid rgba(87, 78, 138, 0.6);
    outline-offset: 2px;
}

/* Prevent text selection on touch devices */
.popup-social-link,
.payment-method {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .popup-content,
    .popup-social-link,
    .payment-method {
        transition: none;
    }
    
    .popup-social-link:hover,
    .popup-social-link:active,
    .payment-method:hover,
    .payment-method:active {
        transform: none;
    }
}

/* MOBILE-FIRST SOCIAL LINKS - Ultra Responsive Design */

/* Base Mobile Styles (Mobile First Approach) */
.popup-social-links,
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.popup-social-link,
.social-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(87, 78, 138, 0.1);
    box-shadow: 
        0 2px 8px rgba(87, 78, 138, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    backdrop-filter: blur(8px);
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

/* Touch-friendly hover effects */
.popup-social-link::before,
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(87, 78, 138, 0.08), 
        transparent);
    transition: left 0.4s ease;
}

.popup-social-link:hover::before,
.popup-social-link:active::before,
.social-link:hover::before,
.social-link:active::before {
    left: 100%;
}

.popup-social-link:hover,
.popup-social-link:active,
.social-link:hover,
.social-link:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 32px rgba(87, 78, 138, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(87, 78, 138, 0.2);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
}

.popup-social-link i,
.social-link i {
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: auto;
    text-align: center;
}

/* Platform-specific colors */
.popup-social-link.epicnpc i,
.social-link.epicnpc i { 
    color: #ff6b35; 
}

.popup-social-link.discord i,
.social-link.discord i { 
    color: #5865f2; 
}

.popup-social-link.instagram i,
.social-link.instagram i { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-social-link.email i,
.social-link.email i { 
    color: #ea4335; 
}

.popup-social-link.whatsapp i,
.social-link.whatsapp i { 
    color: #25d366; 
}

.popup-social-link span,
.social-link span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.2;
}

.popup-social-link:hover i,
.popup-social-link:active i,
.social-link:hover i,
.social-link:active i {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.popup-social-link:hover span,
.popup-social-link:active span,
.social-link:hover span,
.social-link:active span {
    color: var(--primary, #574e8a);
    font-weight: 700;
}

/* FOOTER SOCIAL LINKS - Mobile Optimized */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.footer-social-links .social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(14, 0, 53, 0.6) 0%, 
        rgba(141, 124, 182, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    min-height: auto;
    padding: 0;
    flex-direction: row;
    gap: 0;
    flex-shrink: 0;
}

.footer-social-links .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-links .social-link:hover::before,
.footer-social-links .social-link:active::before {
    opacity: 1;
}

.footer-social-links .social-link:hover,
.footer-social-links .social-link:active {
    transform: translateY(-2px) scale(1.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.footer-social-links .social-link i {
    font-size: 20px;
    color: inherit;
}

.footer-social-links .social-link span {
    display: none;
}

/* Individual footer social gradients on hover */
.footer-social-links .social-link:nth-child(1):hover,
.footer-social-links .social-link:nth-child(1):active {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3), 0 0 20px rgba(255, 107, 53, 0.2);
}

.footer-social-links .social-link:nth-child(2):hover,
.footer-social-links .social-link:nth-child(2):active {
    background: linear-gradient(135deg, #5865f2, #7289da);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3), 0 0 20px rgba(88, 101, 242, 0.2);
}

.footer-social-links .social-link:nth-child(3):hover,
.footer-social-links .social-link:nth-child(3):active {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.3), 0 0 20px rgba(220, 39, 67, 0.2);
}

.footer-social-links .social-link:nth-child(4):hover,
.footer-social-links .social-link:nth-child(4):active {
    background: linear-gradient(135deg, #ea4335, #ff6b6b);
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.3), 0 0 20px rgba(234, 67, 53, 0.2);
}

.footer-social-links .social-link:nth-child(5):hover,
.footer-social-links .social-link:nth-child(5):active {
    background: linear-gradient(135deg, #25d366, #20bf55);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3), 0 0 20px rgba(37, 211, 102, 0.2);
}

/* Dark Mode - Mobile Optimized */
[data-theme="dark"] .popup-social-link,
[data-theme="dark"] .social-link {
    background: linear-gradient(145deg, 
        rgba(24, 24, 27, 0.95) 0%, 
        rgba(39, 39, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .popup-social-link:hover,
[data-theme="dark"] .popup-social-link:active,
[data-theme="dark"] .social-link:hover,
[data-theme="dark"] .social-link:active {
    background: linear-gradient(145deg, 
        rgba(39, 39, 42, 1) 0%, 
        rgba(52, 52, 56, 0.98) 100%);
    border-color: rgba(107, 95, 181, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .popup-social-link span,
[data-theme="dark"] .social-link span {
    color: #e2e8f0;
}

[data-theme="dark"] .popup-social-link:hover span,
[data-theme="dark"] .popup-social-link:active span,
[data-theme="dark"] .social-link:hover span,
[data-theme="dark"] .social-link:active span {
    color: #f1f5f9;
}

[data-theme="dark"] .footer-social-links .social-link {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

/* TABLET BREAKPOINT - 768px and up */
@media (min-width: 768px) {
    .popup-social-links,
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 600px;
        padding: 0;
    }

    .popup-social-link,
    .social-link {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 24px 20px;
        min-height: 120px;
        border-radius: 18px;
    }

    .popup-social-link i,
    .social-link i {
        font-size: 28px;
        width: auto;
    }

    .popup-social-link span,
    .social-link span {
        font-size: 13px;
        text-align: center;
        letter-spacing: 0.6px;
    }

    .footer-social-links {
        gap: 18px;
        margin: 36px 0 28px;
        padding: 0;
    }

    .footer-social-links .social-link {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .footer-social-links .social-link i {
        font-size: 22px;
    }
}

/* DESKTOP BREAKPOINT - 1024px and up */
@media (min-width: 1024px) {
    .popup-social-links,
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }

    /* Specific positioning for desktop grid */
    .popup-social-links .popup-social-link:nth-child(1),
    .social-links .social-link:nth-child(1) { grid-column: 1; grid-row: 1; }
    .popup-social-links .popup-social-link:nth-child(2),
    .social-links .social-link:nth-child(2) { grid-column: 2; grid-row: 1; }
    .popup-social-links .popup-social-link:nth-child(3),
    .social-links .social-link:nth-child(3) { grid-column: 3; grid-row: 1; }
    .popup-social-links .popup-social-link:nth-child(4),
    .social-links .social-link:nth-child(4) { grid-column: 1; grid-row: 2; }
    .popup-social-links .popup-social-link:nth-child(5),
    .social-links .social-link:nth-child(5) { grid-column: 2; grid-row: 2; }

    .popup-social-link,
    .social-link {
        padding: 28px 20px;
        min-height: 140px;
        border-radius: 20px;
    }

    .popup-social-link i,
    .social-link i {
        font-size: 32px;
    }

    .popup-social-link span,
    .social-link span {
        font-size: 13px;
        letter-spacing: 0.8px;
    }

    /* Enhanced hover effects for desktop */
    .popup-social-link:hover,
    .social-link:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 
            0 20px 60px rgba(87, 78, 138, 0.15),
            0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .footer-social-links {
        gap: 20px;
        margin: 40px 0 30px;
    }

    .footer-social-links .social-link {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .footer-social-links .social-link i {
        font-size: 24px;
    }

    .footer-social-links .social-link:hover {
        transform: translateY(-5px) scale(1.1);
    }

    /* Desktop-only animations */
    .footer-social-links .social-link::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.1) 90deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.1) 270deg,
            transparent 360deg);
        opacity: 0;
        transition: all 0.6s ease;
        animation: footerRotate 15s linear infinite;
    }

    @keyframes footerRotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .footer-social-links .social-link:hover::after {
        opacity: 1;
        animation-duration: 2s;
    }
}

/* EXTRA SMALL MOBILE - 320px and below */
@media (max-width: 320px) {
    .popup-social-links,
    .social-links {
        padding: 0 12px;
        gap: 6px;
    }

    .popup-social-link,
    .social-link {
        padding: 10px 6px;
        min-height: 70px;
        gap: 6px;
        border-radius: 10px;
    }

    .popup-social-link i,
    .social-link i {
        font-size: 18px;
    }

    .popup-social-link span,
    .social-link span {
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .footer-social-links {
        gap: 12px;
        margin: 28px 0 20px;
    }

    .footer-social-links .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .footer-social-links .social-link i {
        font-size: 18px;
    }
}

/* LARGE MOBILE - 480px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
    .popup-social-links,
    .social-links {
        max-width: 450px;
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
    }

    .popup-social-link,
    .social-link {
        padding: 14px 12px;
        min-height: 85px;
        border-radius: 14px;
        gap: 8px;
    }

    .popup-social-link i,
    .social-link i {
        font-size: 22px;
    }

    .popup-social-link span,
    .social-link span {
        font-size: 11px;
    }

    .footer-social-links .social-link {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }

    .footer-social-links .social-link i {
        font-size: 21px;
    }
}

/* Touch and focus accessibility */
.popup-social-link:focus-visible,
.social-link:focus-visible {
    outline: 3px solid rgba(87, 78, 138, 0.6);
    outline-offset: 2px;
}

.footer-social-links .social-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Prevent text selection on touch devices */
.popup-social-link,
.social-link,
.footer-social-links .social-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .popup-social-link,
    .social-link {
        border-width: 0.5px;
    }
    
    .footer-social-links .social-link {
        border-width: 1px;
    }
}

/* Bot Message Social Links */
.message.bot .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    margin: clamp(12px, 3vw, 24px) 0;
    flex-wrap: wrap;
    padding: 0 16px;
}

.message.bot .social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(76px, 20vw, 96px);
    height: clamp(52px, 12vw, 64px);
    min-width: 76px;
    min-height: 52px;
    text-decoration: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    color: #ffffff;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.message.bot .social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.message.bot .social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.message.bot .social-link:hover::before {
    opacity: 1;
}

.message.bot .social-link:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: 0.1s;
}

/* Platform-specific modern colors with gradients and proper text colors */
.message.bot .social-link:nth-child(1) { 
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    color: #ffffff;
    border-color: rgba(255, 107, 53, 0.3);
}

.message.bot .social-link:nth-child(2) { 
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
    color: #ffffff;
    border-color: rgba(88, 101, 242, 0.3);
}

.message.bot .social-link:nth-child(3) { 
    background: linear-gradient(135deg, #E4405F 0%, #F56040 50%, #FFDC80 100%);
    box-shadow: 0 2px 8px rgba(228, 64, 95, 0.2);
    color: #ffffff;
    border-color: rgba(228, 64, 95, 0.3);
}

.message.bot .social-link:nth-child(4) { 
    background: linear-gradient(135deg, #EA4335 0%, #FF6B6B 100%);
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.2);
    color: #ffffff;
    border-color: rgba(234, 67, 53, 0.3);
}

.message.bot .social-link:nth-child(5) { 
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    color: #ffffff;
    border-color: rgba(37, 211, 102, 0.3);
}

/* Hover effects for platform colors */
.message.bot .social-link:nth-child(1):hover { 
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
}

.message.bot .social-link:nth-child(2):hover { 
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.5);
}

.message.bot .social-link:nth-child(3):hover { 
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
    border-color: rgba(228, 64, 95, 0.5);
}

.message.bot .social-link:nth-child(4):hover { 
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.3);
    border-color: rgba(234, 67, 53, 0.5);
}

.message.bot .social-link:nth-child(5):hover { 
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.5);
}

/* Dark mode optimizations */
[data-theme="dark"] .message.bot .social-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .message.bot .social-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Dark mode platform colors - maintain white text */
[data-theme="dark"] .message.bot .social-link:nth-child(1),
[data-theme="dark"] .message.bot .social-link:nth-child(2),
[data-theme="dark"] .message.bot .social-link:nth-child(3),
[data-theme="dark"] .message.bot .social-link:nth-child(4),
[data-theme="dark"] .message.bot .social-link:nth-child(5) {
    color: #ffffff;
}

/* Light mode optimizations */
[data-theme="light"] .message.bot .social-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .message.bot .social-link:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Light mode platform colors - maintain white text on colored backgrounds */
[data-theme="light"] .message.bot .social-link:nth-child(1),
[data-theme="light"] .message.bot .social-link:nth-child(2),
[data-theme="light"] .message.bot .social-link:nth-child(3),
[data-theme="light"] .message.bot .social-link:nth-child(4),
[data-theme="light"] .message.bot .social-link:nth-child(5) {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Enhanced responsive behavior */
@media (max-width: 768px) {
    .message.bot .social-links {
        gap: clamp(6px, 1.5vw, 12px);
        margin: clamp(8px, 2vw, 16px) 0;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .message.bot .social-links {
        gap: 8px;
        padding: 0 8px;
    }
    
    .message.bot .social-link {
        width: 66px;
        height: 48px;
        min-width: 66px;
        min-height: 48px;
        font-size: 14px;
        border-radius: 12px;
        border-width: 2px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .message.bot .social-link {
        transition: none;
    }
    
    .message.bot .social-link:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.message.bot .social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
        /* Question Selector */
        .question-selector {
            position: relative;
            margin-bottom: 12px;
        }

        .select-button {
            width: 100%;
            padding: 12px 16px;
            background: var(--light);
            color: var(--dark);
            border: 1px solid var(--border);
            border-radius: 25px;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .select-button:hover {
            background: var(--primary-light);
        }

        .select-button::after {
            content: '▼';
            font-size: 10px;
            transition: transform 0.3s;
        }

        .select-button.open::after {
            transform: rotate(180deg);
        }

        .question-dropdown {
            position: absolute;
            bottom: 100%;
            left: 0;
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            z-index: 10;
            display: none;
            margin-bottom: 8px;
        }

        .question-dropdown.open {
            display: block;
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .question-option {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .question-option:hover {
            background: var(--primary);
            color: white;
        }

        /* Dark mode for Question Selector */
        [data-theme="dark"] .select-button {
            background: var(--surface);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        [data-theme="dark"] .select-button:hover {
            background: var(--primary-dark);
            color: #fff;
        }

        [data-theme="dark"] .question-dropdown {
            background: var(--surface);
            border: 1px solid var(--border);
            box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        }

        [data-theme="dark"] .question-option {
            color: var(--text-primary);
            background: transparent;
        }

        [data-theme="dark"] .question-option:hover {
            background: var(--primary);
            color: #fff;
        }

/* Responsive */
@media (max-width: 768px) {
    .chat-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
        height: 80vh;
        max-height: 650px;
        min-height: 550px;
        display: flex;
        flex-direction: column;
    }
    
    .chat-header {
        flex-shrink: 0; /* Prevent header from shrinking */
    }
    
    .chat-messages {
        flex: 1; /* Take remaining space */
        height: auto; /* Remove fixed height */
        min-height: 0; /* Allow shrinking */
        max-height: none; /* Remove max-height constraint */
        padding: 15px;
        /* Enhanced iOS scrolling */
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
        overscroll-behavior: contain;
        /* Force hardware acceleration */
        transform: translateZ(0);
        will-change: scroll-position;
    }
    
    .chat-bubble {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
    }
    
    .bubble-icon {
        width: 35px;
        height: 35px;
    }

    .question-dropdown {
        max-height: 150px;
        /* Fix dropdown scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .chat-input {
        padding: 20px 15px;
        flex-shrink: 0; /* Prevent input from shrinking */
        position: relative; /* Remove absolute positioning */
        background: white;
        border-top: 2px solid #f0f0f0;
        z-index: 1;
        /* Prevent input from being covered */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .message-input {
        min-height: 40px;
        font-size: 16px; /* Prevents zoom on iOS */
        /* Fix iOS input behavior */
        appearance: none;
        -webkit-appearance: none;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 70px;
        height: 85vh;
        max-height: 700px;
        min-height: 600px;
        right: 5px;
        left: 5px;
        display: flex;
        flex-direction: column;
    }
    
    .message-content {
        font-size: 13px;
        max-width: 80%;
    }
    
    .chat-header {
        padding: 15px;
        min-height: 60px;
        flex-shrink: 0;
    }
    
    .chat-messages {
        flex: 1;
        height: auto;
        min-height: 0;
        padding: 15px;
        /* Enhanced mobile scrolling */
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
        overscroll-behavior: contain;
        transform: translateZ(0);
        will-change: scroll-position;
        /* Smooth scrolling */
        scroll-behavior: smooth;
    }
    
    .chat-input {
        padding: 20px 15px;
        flex-shrink: 0;
        position: relative;
        background: white;
        border-top: 2px solid #f0f0f0;
        z-index: 1;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .input-container {
        min-height: 52px;
    }
    
    .message-input {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        /* iOS fixes */
        appearance: none;
        -webkit-appearance: none;
        border-radius: 0;
        outline: none;
        resize: none;
    }
    
    .send-button {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .select-button {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 48px;
        appearance: none;
        -webkit-appearance: none;
        outline: none;
        outline: none;
    }

    .question-option {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .question-dropdown {
        max-height: 120px; /* Reduced for mobile */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateZ(0);
    }
}

/* Additional iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    .chat-messages {
        /* Force iOS to recognize scrollable area */
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        /* Prevent momentum scrolling issues */
        overscroll-behavior-y: contain;
    }
    
    .chat-window {
        /* Fix iOS viewport issues */
        height: 80vh !important;
        max-height: 80vh !important;
    }
    
    @media (max-width: 480px) {
        .chat-window {
            height: 85vh !important;
            max-height: 85vh !important;
        }
        
        .chat-messages {
            /* iOS specific scroll fixes */
            min-height: 200px;
            position: relative;
            z-index: 1;
        }
    }
}

/* Dark mode chat scroll fixes */
[data-theme="dark"] .chat-messages::-webkit-scrollbar-track {
    background: var(--background);
}

[data-theme="dark"] .chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
}

/* Prevent scrolling issues with long messages */
.message {
    flex-shrink: 0; /* Prevent messages from shrinking */
}

.message-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .chat-window {
        height: 90vh;
        max-height: 90vh;
    }
    
    .chat-messages {
        padding: 10px 15px;
    }
    
    .chat-input {
        padding: 15px;
    }
}
        .payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    justify-items: center;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 60px;
    height: 60px;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.payment-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .payment-method {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    
    .payment-icon {
        width: 30px;
        height: 30px;
    }
}