/* ==============================================
   CSS PHẦN 1 - TỐI ƯU HÓA 
   Variables + Base Styles + Sidebar + Topbar
   ============================================== */

/* ===== VARIABLES - CONSOLIDATED ===== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-light: #60a5fa;
    --info-dark: #2563eb;
    
    /* Gradients - Unified */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
    
    /* Gray Scale */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #000000;
    
    /* Theme Colors */
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f8fafc;
    --topbar-bg: #ffffff;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
}

/* ===== BASE STYLES - RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--body-bg);
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition-base);
}

.main-content.sidebar-collapsed {
    margin-left: 80px;
}

/* ===== SIDEBAR - CONSOLIDATED ===== */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
    position: fixed;
    left: 0;
    top: 0;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.sidebar.collapsed {
    width: 80px;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .sidebar-header {
    padding: var(--space-4) var(--space-3);
}

/* Logo Styles - Consolidated */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.sidebar-logo:hover {
    transform: translateX(2px);
    color: #ffffff;
}

.logo-icon-box {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.logo-icon-box .iconify {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 2;
    position: relative;
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-brand {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: baseline;
}

.logo-dot {
    color: #ffd700;
    font-size: 28px;
    line-height: 0.8;
    margin: 0 1px;
    animation: dot-bounce 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.logo-tld {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: -2px;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-top: 4px;
    opacity: 0.8;
}

.logo-tagline.aurora {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff 0%, #ffd700 20%, #ffffff 40%, #00ff88 60%, #ffffff 80%, #ffd700 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-wave 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
    position: relative;
}

.logo-tagline.aurora::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(90deg, #ffd700, #00ff88, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    color: #ffffff;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(180deg);
}

.sidebar-toggle i {
    font-size: var(--text-lg);
    transition: var(--transition-base);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed .sidebar-nav {
    padding: var(--space-3);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    transition: all var(--transition-base);
    margin-bottom: var(--space-2);
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: var(--transition-base);
}

.sidebar-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar-link:hover::before {
    left: 0;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sidebar-link.active:hover {
    background: var(--gradient-primary);
}

.sidebar-link i,
.sidebar-link .iconify {
    width: 20px;
    text-align: center;
    font-size: var(--text-lg);
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    z-index: 1;
    position: relative;
}

.sidebar-link iconify-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.sidebar-link:hover iconify-icon {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #6366f1;
    font-size: var(--text-xs);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.sidebar-link.active .sidebar-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Sidebar Collapsed States */
.sidebar.collapsed .logo-text-group {
    display: none;
}

.sidebar.collapsed .logo-icon-box {
    width: 40px;
    height: 40px;
}

.sidebar.collapsed .logo-pulse {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    padding: var(--space-3);
    justify-content: center;
}

.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-badge {
    display: none;
}

.sidebar.collapsed .sidebar-link i {
    margin: 0;
    font-size: var(--text-xl);
}

.sidebar.collapsed .sidebar-link iconify-icon {
    width: 24px;
    height: 24px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: var(--text-sm);
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .user-info {
    padding: var(--space-2);
    justify-content: center;
}

.sidebar.collapsed .user-details {
    display: none;
}

/* Logout Button - Consolidated */
.sidebar-footer .btn-logout,
.sidebar .btn-logout,
button.btn-logout,
.btn-logout {
    width: 100% !important;
    padding: 12px 16px !important;
    background: #fee2e2 !important;
    background-color: #fee2e2 !important;
    border: 2px solid #fecaca !important;
    border-radius: 8px !important;
    color: #dc2626 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}

.btn-logout *,
.btn-logout span,
.btn-logout i {
    color: #dc2626 !important;
}

.btn-logout i,
.btn-logout .fas,
.btn-logout .fa-sign-out-alt {
    color: #dc2626 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.btn-logout span {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.btn-logout:hover,
button.btn-logout:hover,
.sidebar-footer .btn-logout:hover {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.btn-logout:hover *,
.btn-logout:hover i,
.btn-logout:hover .fas,
.btn-logout:hover span {
    color: #ffffff !important;
}

.sidebar.collapsed .btn-logout {
    padding: 12px !important;
    min-width: 44px !important;
}

.sidebar.collapsed .btn-logout i {
    margin: 0 !important;
}

.sidebar.collapsed .btn-logout span {
    display: none !important;
}

/* Support Section */
.support-section {
    padding: 20px 16px;
    margin-bottom: 16px;
}

.support-header {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 10px;
}

.support-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 1px;
}

.support-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.support-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: none !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.support-btn.telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
}

.support-btn.telegram:hover {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.4);
    color: #ffffff !important;
}

.support-btn.zalo {
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%) !important;
}

.support-btn.zalo:hover {
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
    color: #ffffff !important;
}

.sidebar .support-btn:hover {
    background-color: transparent !important;
}

.support-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.sidebar.collapsed .support-section {
    padding: 12px 8px;
}

.sidebar.collapsed .support-header {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sidebar.collapsed .support-buttons {
    grid-template-columns: 1fr;
    gap: 6px;
}

.sidebar.collapsed .support-btn {
    padding: 8px;
    font-size: 9px;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--topbar-bg);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-900);
}

.page-title i {
    color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Marquee - Optimized */
.announcement-marquee-container {
    flex: 1;
    margin: 0 20px;
    overflow: hidden;
    position: relative;
    max-width: calc(100% - 200px);
    min-width: 0;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.marquee-content {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 50s linear infinite;
    color: #6366f1;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding-right: 100%;
    will-change: transform;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.balance-widget {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.balance-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.balance-amount {
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--gray-600);
}

.notification-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: var(--white);
    font-size: var(--text-xs);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes dot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes aurora-wave {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes scroll-left {
    0% { 
        transform: translateX(100%);
    }
    100% { 
        transform: translateX(-100%);
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .announcement-marquee-container {
        max-width: calc(100% - 150px);
    }
}

@media (max-width: 768px) {
    .logo-brand {
        font-size: 20px;
    }
    
    .logo-tld {
        font-size: 18px;
    }
    
    .logo-tagline {
        font-size: 8px;
    }
    
    .announcement-marquee-container {
        display: none;
    }
    
    .topbar {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
    }
    
    .topbar-left,
    .topbar-right {
        width: 100%;
    }
    
    .balance-widget {
        width: 100%;
        justify-content: center;
    }
    
    .page-title {
        font-size: var(--text-xl);
    }
    
    .notification-btn {
        width: 40px;
        height: 40px;
    }
    
    .support-buttons {
        gap: 6px;
    }
    
    .support-btn {
        padding: 8px 10px;
        font-size: 10px;
    }
}

@media (max-width: 375px) {
    .sidebar-logo:hover .logo-icon-box::before {
        opacity: 1;
        animation: shimmer 0.6s ease-out;
    }
}
/* ==============================================
   CSS PHẦN 2 - TỐI ƯU HÓA 
   Components + Forms + Tables + Cards
   ============================================== */

/* ===== MAIN CONTENT ===== */
.page-content {
    flex: 1;
    padding: var(--space-6);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
    display: block;
}

/* ===== BUTTON BASE - CONSOLIDATED ===== */
.btn-base,
.btn,
.vtpx-btn,
.proxy-action-button,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled,
.vtpx-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* Button Variants */
.btn-primary,
.vtpx-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover,
.vtpx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary,
.vtpx-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover,
.vtpx-btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* Copy Button - Specific */
.copy-btn {
    padding: var(--space-1) var(--space-2);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.copy-btn.copied {
    background: var(--success);
}

/* Action Buttons - Neumorphism Style */
.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f0f0f3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--gray-700);
    box-shadow: 
        5px 5px 10px rgba(0, 0, 0, 0.1),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:active {
    box-shadow: 
        inset 5px 5px 10px rgba(0, 0, 0, 0.1),
        inset -5px -5px 10px rgba(255, 255, 255, 0.8);
    transform: scale(0.98);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    filter: drop-shadow(0 0 8px currentColor);
}

/* Action Button Variants */
.action-btn.btn-view {
    color: #3b82f6;
}
.action-btn.btn-view:hover {
    background: #e8efff;
}

.action-btn.btn-copy {
    color: #10b981;
}
.action-btn.btn-copy:hover {
    background: #e6f7f1;
}

.action-btn.btn-refresh {
    color: #f59e0b;
}
.action-btn.btn-refresh:hover {
    background: #fef3e2;
}

.action-btn.btn-renew {
    color: #8b5cf6;
}
.action-btn.btn-renew:hover {
    background: #f3efff;
}

/* ===== FORM COMPONENTS - CONSOLIDATED ===== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control,
.vtpx-select,
.vtpx-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.form-control:focus,
.vtpx-select:focus,
.vtpx-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

/* Specific Form Elements */
.vtpx-textarea {
    min-height: 150px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: none;
}

.vtpx-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: var(--text-sm);
    cursor: pointer;
}

.form-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

/* ===== CARD COMPONENTS - CONSOLIDATED ===== */
.card-base,
.card,
.package-card,
.stat-card,
.chart-card,
.activity-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover,
.package-card:hover,
.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title h3 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--space-6);
}

/* ===== BADGE COMPONENTS - CONSOLIDATED ===== */
.badge-base,
.badge,
.status-badge,
.vtpx-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Badge Variants */
.badge-primary,
.vtpx-badge-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.badge-success,
.vtpx-badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-danger,
.vtpx-badge-danger {
    background: var(--danger);
    color: var(--white);
}

.badge-http {
    background-color: #f59e0b !important;
    color: white !important;
    font-weight: 600;
}

.badge-socks5 {
    background-color: #3b82f6 !important;
    color: white !important;
    font-weight: 600;
}

/* Status Badges */
.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.expiring {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transform: skewX(-20deg);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    right: -30%;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: var(--gradient-primary);
}

.stat-icon.bg-success {
    background: var(--gradient-success);
}

.stat-icon.bg-warning {
    background: var(--gradient-warning);
}

.stat-icon.bg-info {
    background: var(--gradient-info);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--space-1);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* ===== CHARTS GRID ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.chart-card .card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.chart-card .card-header h3 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
}

.chart-card .card-body {
    padding: var(--space-6);
    height: 300px;
    position: relative;
}

/* ===== ACTIVITY SECTION ===== */
.activity-list {
    padding: var(--space-4);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.activity-item:hover {
    background: var(--gray-50);
    margin: 0 calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.activity-icon.deposit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon.purchase {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.activity-icon.renewal {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.activity-icon.withdrawal {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.activity-time {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.activity-amount {
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== TABLE COMPONENTS - CONSOLIDATED ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    color: var(--gray-600);
    white-space: nowrap;
    padding: var(--space-4);
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: var(--space-4);
    vertical-align: middle;
    border-bottom: 1px solid #d1d5db;
}

.table tbody tr {
    transition: var(--transition-base);
    border-bottom: 1px solid #d1d5db;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Proxy Specific Table Elements */
.proxy-endpoint {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    background-color: #f9fafb;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: inline-block;
    min-width: 200px;
    word-break: break-all;
}

.proxy-credentials {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.credential-text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--gray-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.proxy-actions {
    display: flex;
    gap: var(--space-2);
}

/* ===== TRANSACTION COMPONENTS ===== */
.transaction-type {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type.deposit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.transaction-type.purchase {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.transaction-type.renewal {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.transaction-type.withdrawal {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.transaction-amount {
    font-weight: 600;
    font-family: var(--font-mono);
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* ===== PACKAGE SELECTION ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.package-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
    transition: var(--transition-base);
}

/* Package Type Colors */
.package-card[onclick*="7days"]::after {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.package-card[onclick*="15days"]::after {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.package-card[onclick*="30days"]:not([onclick*="vip"])::after {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.package-card[onclick*="30days_vip"]:not([onclick*="vip1"]):not([onclick*="vip2"]):not([onclick*="vip3"])::after {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.package-card[onclick*="vip1"]::after {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.package-card[onclick*="vip2"]::after {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.package-card[onclick*="vip3"]::after {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.package-card.selected {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.package-card.selected::before {
    content: '✓';
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    animation: checkScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.package-name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.package-card[onclick*="vip"] .package-name::after {
    content: 'VIP';
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
}

.package-price {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.package-features {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.8;
}

.package-features div {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    padding-left: 24px;
}

.package-features i {
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 14px;
    background: rgba(16, 185, 129, 0.1);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.package-features div:last-child {
    font-weight: 600;
    color: var(--primary);
}

.package-features div:last-child i {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkScale {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Package Animation Delays */
.package-card:nth-child(1) { animation-delay: 0.1s; }
.package-card:nth-child(2) { animation-delay: 0.2s; }
.package-card:nth-child(3) { animation-delay: 0.3s; }
.package-card:nth-child(4) { animation-delay: 0.4s; }
.package-card:nth-child(5) { animation-delay: 0.5s; }
.package-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .page-content {
        padding: var(--space-4);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card {
        padding: var(--space-4);
    }
    
    .package-name {
        font-size: calc(var(--text-lg) - 2px);
    }
    
    .package-price {
        font-size: calc(var(--text-2xl) - 2px);
    }
    
    .package-features {
        font-size: calc(var(--text-sm) - 1px);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .proxy-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ==============================================
   CSS PHẦN 3 - TỐI ƯU HÓA 
   Advanced Components + Modals + Mobile + Utilities
   ============================================== */

/* ===== PROXY TAB SYSTEM ===== */
.proxy-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-6);
    padding: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.proxy-tab {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Thêm cờ thật từ CDN vào proxy tabs */

.proxy-tab::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 16px;
    margin-right: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cờ Nhật Bản cho PROXY JAPAN UNLIMITED */
.proxy-tab[data-country="japan"]::before {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/jp.svg');
}

/* Cờ Nhật Bản cho PROXY JAPAN XOAY (GB) */
.proxy-tab[data-country="vietnam"]::before {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/jp.svg');
}

/* Cờ Việt Nam cho PROXY DCOM 5G */
.proxy-tab[data-country="dcom5g"]::before {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/jp.svg');
}

/* Hover effect cho cờ */
.proxy-tab:hover::before {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Active state cho cờ */
.proxy-tab.active::before {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .proxy-tab::before {
        width: 20px;
        height: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .proxy-tab::before {
        width: 18px;
        height: 12px;
        margin-right: 4px;
    }
}

/* Fallback nếu CDN không load được */
.proxy-tab::before {
    background-color: #f3f4f6;
}

.proxy-tab[data-country="japan"]::before,
.proxy-tab[data-country="vietnam"]::before {
    background-color: #fff;
}

.proxy-tab[data-country="dcom5g"]::before {
    background-color: #da251d;
}

.proxy-tab:hover {
    color: #475569;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px -5px rgba(99, 102, 241, 0.25),
        0 4px 6px -2px rgba(99, 102, 241, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.proxy-tab:hover::before {
    left: 100%;
}

.proxy-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #ffffff;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 
        0 10px 20px rgba(99, 102, 241, 0.4),
        0 6px 6px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.proxy-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 8px rgba(16, 185, 129, 0.4),
        0 0 12px rgba(16, 185, 129, 0.2);
}

.proxy-tab:hover::after {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.2);
    box-shadow: 
        0 0 12px rgba(16, 185, 129, 0.6),
        0 0 20px rgba(16, 185, 129, 0.3),
        0 0 8px rgba(16, 185, 129, 0.8);
}

.proxy-tab.active::after {
    background: #22d3ee;
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
    box-shadow: 
        0 0 15px rgba(34, 211, 238, 0.8),
        0 0 25px rgba(34, 211, 238, 0.4),
        0 0 10px rgba(34, 211, 238, 1);
}

.proxy-tab:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
}

.coming-soon-content i {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.coming-soon-content h3 {
    color: var(--gray-700);
    margin-bottom: 10px;
}

.coming-soon-content p {
    color: var(--gray-500);
}

/* ===== BUY PROXY CONTAINER ===== */
.buy-proxy-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-6);
}

.package-selection h3 {
    margin-bottom: var(--space-6);
}

.order-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.custom-credentials {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.credentials-inputs {
    margin-top: var(--space-4);
}

.order-summary {
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.order-summary h4 {
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.summary-row.total {
    border-top: 2px solid var(--gray-200);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 700;
}

/* ===== PROTOCOL SELECTION ===== */
.protocol-selection {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.protocol-selection .form-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 16px;
}

.protocol-options {
    display: flex;
    gap: 20px;
}

.protocol-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.protocol-option:hover {
    border-color: #6366f1;
    background: #f8f9ff;
}

.protocol-option input[type="radio"] {
    margin-right: 10px;
}

.protocol-option input[type="radio"]:checked + span {
    color: #6366f1;
}

.protocol-option:has(input:checked) {
    border-color: #6366f1;
    background: #f8f9ff;
}

.protocol-option span {
    font-weight: 500;
    color: #374151;
}

.protocol-option span + span {
    margin-left: 5px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* ===== DEPOSIT SECTION - ENHANCED ===== */
.deposit-container {
    max-width: 600px;
    margin: 0 auto;
}

.deposit-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.deposit-form-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.deposit-form-card .card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.deposit-form-card .card-body {
    padding: 30px;
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.amount-btn {
    padding: 12px 20px;
    border: 2px solid #e0e6ed;
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.amount-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.payment-features {
    border-top: 1px solid #e0e6ed;
    padding-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #4a5568;
}

.feature-item i {
    font-size: 18px;
    width: 24px;
}

/* Bank Info Section */
.bank-info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.bank-details {
    margin-bottom: var(--space-6);
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 600;
    color: var(--gray-600);
}

.bank-value {
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.qr-code {
    text-align: center;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.qr-code img {
    max-width: 200px;
    border-radius: var(--radius-lg);
}

/* ===== PAYOS QR MODAL - ENHANCED ===== */
.payos-qr-modal {
    text-align: center;
    padding: 0;
}

.payos-qr-card {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 50%, #6BB6FF 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.4);
}

.payos-qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}

.payos-qr-card::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.4;
    z-index: 0;
    transform: rotate(15deg);
}

.qr-decoration-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.qr-decoration-circles::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.qr-decoration-circles::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -75px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

.qr-card-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.qr-code-wrapper {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    animation: qrLoad 0.5s ease-out;
}

.payment-amount-display {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.payment-amount-display .amount-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 4px;
}

.payment-amount-display .amount-value {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qr-instructions {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.qr-instructions .highlight {
    font-weight: 600;
    color: white;
}

.payment-countdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-countdown i {
    color: #ef4444;
    font-size: 18px;
}

.payment-countdown .countdown-text {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.payment-countdown .countdown-timer {
    color: #ef4444;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Monaco', 'Consolas', monospace;
    min-width: 60px;
    text-align: center;
}

.payment-status {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.payment-status i {
    font-size: 18px;
}

.payment-status.checking {
    animation: pulse 2s ease-in-out infinite;
}

.payment-status.success {
    background: rgba(72, 187, 120, 0.3);
}

.payment-status.error {
    background: rgba(245, 101, 101, 0.3);
}

.qr-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-cancel-payment {
    flex: 1;
    padding: 14px 24px;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-cancel-payment:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-cancel-payment:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-cancel-payment i {
    font-size: 16px;
}

.payos-qr-card.expired {
    filter: grayscale(50%);
    opacity: 0.8;
}

.payos-qr-card.expired .qr-code-wrapper {
    opacity: 0.5;
}

.qr-expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.qr-expired-overlay i {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
}

.qr-expired-overlay .expired-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-expired-overlay .expired-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ===== TRANSACTION HISTORY ===== */
.transaction-filters {
    display: flex;
    gap: var(--space-3);
}

/* ===== PROFILE SECTION ===== */
.profile-container {
    max-width: 800px;
}

.profile-header {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    box-shadow: var(--shadow-lg);
}

.profile-info h2 {
    margin-bottom: var(--space-2);
}

.profile-info p {
    color: var(--gray-600);
    margin: 0;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.profile-section {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.profile-section h3 {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
}

.info-label {
    color: var(--gray-600);
}

.info-value {
    font-weight: 600;
    color: var(--gray-900);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
}

/* Switch Component */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition-base);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* ===== MODAL SYSTEM - CONSOLIDATED ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal-dialog {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-height: calc(100vh - 40px);
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal.active .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: inherit;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.modal-small .modal-dialog {
    max-width: 400px;
}

.modal-medium .modal-dialog {
    max-width: 600px;
}

.modal-large .modal-dialog {
    max-width: 900px;
}

.modal-header {
    padding: var(--space-5) calc(var(--space-6) + 50px) var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0;
    color: var(--gray-900);
    flex: 1;
}

.modal-close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: var(--text-xl);
    cursor: pointer;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* SweetAlert2 Z-Index */
.swal2-container {
    z-index: 2000;
}

.swal2-popup {
    z-index: 2001;
}

/* ===== PROXY DETAILS MODAL ===== */
.proxy-details .detail-section {
    margin-bottom: var(--space-5);
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.proxy-details .detail-section:last-child {
    margin-bottom: 0;
}

.proxy-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-200);
}

.proxy-details .detail-item:last-child {
    border-bottom: none;
}

.proxy-details .detail-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    min-width: 100px;
}

.proxy-details .detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    text-align: right;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 65%;
}

.proxy-details .copy-btn {
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.usage-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.usage-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.usage-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    position: relative;
    overflow-x: auto;
}

.usage-code code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== RENEW PROXY MODAL ===== */
.renew-proxy {
    padding: 20px;
}

.renew-proxy .proxy-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.renew-proxy .proxy-info p {
    margin: 8px 0;
    font-size: 14px;
}

.renew-proxy .proxy-info strong {
    color: #333;
    margin-right: 8px;
}

.renew-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.renew-option {
    position: relative;
    display: block;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
    overflow: hidden;
}

.renew-option:hover {
    border-color: #a5a7f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.renew-option.selected {
    border-color: #6366f1;
    background: #f8f9ff;
}

.renew-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.renew-option.selected::before {
    transform: translateX(100%);
}

.renew-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.renew-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-days {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1f2937;
}

.option-price {
    display: block;
    font-size: 18px;
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.renew-option:hover .option-price {
    transform: scale(1.05);
}

.option-save {
    display: block;
    font-size: 12px;
    color: #10b981;
    margin-top: 5px;
    font-weight: 500;
}

.option-popular {
    display: block;
    font-size: 12px;
    color: #f59e0b;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.renew-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.swal2-popup .renew-proxy {
    padding: 0;
}

.swal2-html-container .form-group {
    margin-bottom: 20px;
}

.swal2-html-container .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

/* ===== BULK RENEW COMPONENTS ===== */
.bulk-renew-container {
    max-width: 100%;
    font-family: 'Inter', sans-serif;
}

.bulk-renew-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 8px;
}

.expiring-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.proxy-list-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.proxy-list-header {
    display: grid;
    grid-template-columns: 50px 80px 1fr 100px 150px 120px;
    gap: 10px;
    padding: 12px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    align-items: center;
}

.proxy-list-body {
    max-height: 300px;
    overflow-y: auto;
}

.proxy-item {
    display: grid;
    grid-template-columns: 50px 80px 1fr 100px 150px 120px;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 14px;
}

.proxy-item:hover {
    background-color: #f9fafb;
}

.proxy-item:last-child {
    border-bottom: none;
}

.item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#masterCheckbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.item-id {
    font-weight: 600;
    color: #6366f1;
    font-size: 13px;
}

.item-endpoint {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-expiry {
    font-size: 13px;
}

.item-price {
    font-weight: 600;
    color: #059669;
    font-size: 13px;
}

.renewal-options {
    margin-bottom: 20px;
}

.options-header {
    margin-bottom: 15px;
}

.options-header h4 {
    margin: 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.time-option {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.time-option:hover {
    border-color: #a5b4fc;
    background: #f8f9ff;
}

.time-option.selected {
    border-color: #6366f1;
    background: #f8f9ff;
}

.time-option input[type="radio"] {
    display: none;
}

.renewal-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.summary-header {
    margin-bottom: 15px;
}

.summary-header h4 {
    margin: 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.summary-content {
    space-y: 10px;
}

.discount-row {
    color: #10b981;
    font-weight: 500;
}

.total-row {
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
}

.bulk-renewal-results {
    max-width: 100%;
}

.results-summary {
    margin-bottom: 25px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.summary-item.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.summary-item.failed {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.summary-item.cost {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.summary-item.discount {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.summary-item i {
    font-size: 24px;
}

.summary-item.success i { color: #10b981; }
.summary-item.failed i { color: #ef4444; }
.summary-item.cost i { color: #3b82f6; }
.summary-item.discount i { color: #22c55e; }

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-number {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.failed-proxies-section {
    margin-top: 20px;
    padding: 15px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.failed-proxies-section h4 {
    margin: 0 0 15px 0;
    color: #dc2626;
    font-size: 16px;
}

.failed-proxies-list {
    space-y: 8px;
}

.failed-proxy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    font-size: 13px;
}

.proxy-id {
    font-weight: 600;
    color: #374151;
}

.error-message {
    color: #dc2626;
    font-style: italic;
}

.results-actions {
    margin-top: 20px;
    text-align: center;
}

/* ===== MOBILE PROXY CARDS ===== */
.mobile-proxy-list {
    display: none;
    padding: 0;
    margin: -8px;
}

.proxy-card-mobile {
    background: white;
    border-radius: 12px;
    margin: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.proxy-card-mobile:active {
    transform: scale(0.98);
}

.proxy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.proxy-card-id {
    font-weight: 600;
    font-size: 16px;
    color: #374151;
}

.proxy-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proxy-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.proxy-card-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.proxy-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 60%;
    word-break: break-all;
}

.proxy-card-value.endpoint {
    font-family: var(--font-mono);
    font-size: 13px;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 6px;
}

.proxy-card-value .copy-btn {
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.proxy-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.proxy-card-actions .action-btn {
    flex: 1;
    height: 36px;
    min-width: 0;
    max-width: 25%;
    font-size: 14px;
    border-radius: 6px;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
}

.proxy-card-actions .action-btn i {
    font-size: 14px;
}

.proxy-card-actions .action-btn:active {
    transform: scale(0.95);
}

.proxy-card-actions .btn-view {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.proxy-card-actions .btn-copy {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.proxy-card-actions .btn-refresh {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.proxy-card-actions .btn-renew {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.proxy-card-header .status-badge {
    padding: 4px 12px;
    font-size: 12px;
}

.proxy-card-value.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Data Usage Components */
.data-usage-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.data-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.data-text {
    font-size: 11px;
    color: #6b7280;
}

.data-usage-info {
    margin-top: 5px;
}

.data-usage-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.data-usage-progress {
    height: 100%;
    transition: width 0.3s ease;
}

.data-usage-text {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* ===== PROXY ACTION BUTTONS - DESKTOP ===== */
.proxy-actions-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    margin: 16px 0;
}

.proxy-description + .proxy-actions-group {
    margin-top: 20px;
}

.proxy-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.proxy-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.proxy-action-button i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: white !important;
    transition: transform 0.3s ease;
}

.proxy-action-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.proxy-action-button:hover::before {
    left: 100%;
}

.proxy-action-button:hover i {
    animation: iconBounce 0.6s ease;
}

.proxy-action-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.proxy-action-button.buy-more,
.proxy-action-button.export-proxy,
.proxy-action-button.export-api {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.proxy-action-button.buy-more:hover,
.proxy-action-button.export-proxy:hover,
.proxy-action-button.export-api:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.proxy-action-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.proxy-action-button.loading i {
    animation: spin 1s linear infinite;
}

.proxy-action-button.success {
    background: #10b981 !important;
    color: white !important;
}

.proxy-action-button.success i::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* ===== TOOL SUPPORT SECTION ===== */
.tool-support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.tool-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.tool-header h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.tool-header h2 i {
    color: #ffd700;
}

.tool-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
}

.tool-showcase {
    margin-bottom: var(--space-6);
}

.tool-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.tool-preview {
    text-align: center;
}

.tool-screenshot {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gray-200);
}

.tool-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-6);
}

.tool-features {
    margin-bottom: var(--space-6);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.feature-item i {
    font-size: 20px;
}

.tool-stats {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.stat-item i {
    color: var(--primary);
}

.btn-download {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-download:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-download i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-download:hover i {
    animation: downloadBounce 0.6s ease;
}

.tool-instructions {
    margin-top: var(--space-8);
}

.instruction-list {
    font-size: var(--text-base);
    line-height: 2;
    padding-left: var(--space-6);
}

.instruction-list li {
    margin-bottom: var(--space-3);
}

.instruction-list code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-family: var(--font-mono);
}

/* ===== LOADING & EMPTY STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

.table-loading {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.table-loading i {
    font-size: var(--text-3xl);
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
    display: block;
}

.empty-state {
    text-align: center;
    padding: var(--space-12);
}

.empty-state-icon {
    font-size: var(--text-5xl);
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-4) 0;
}

.dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    margin: 0 2px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--text-sm);
    line-height: 1;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    cursor: default;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    padding: var(--space-2) var(--space-2);
    cursor: default;
}

.pagination-btn {
    padding: var(--space-2) var(--space-3);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
}

.pagination-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_length select {
    padding: 6px 30px 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.dataTables_length select:focus {
    outline: none;
    border-color: #6366f1;
}

.dataTables_filter input {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    transition: var(--transition-base);
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dataTables_wrapper {
    padding: 0;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 997;
    padding: 0;
    border-top: 1px solid var(--gray-200);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 0;
    flex: 1;
    transition: all var(--transition-base);
    position: relative;
    min-width: 0;
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
    transition: all var(--transition-base);
}

.bottom-nav-item span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px;
    text-align: center;
}

.bottom-nav-item:hover {
    color: var(--primary);
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 2px 4px currentColor);
    transform: scale(1.1);
}

.bottom-nav-item.active::before {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
}

.bottom-nav-item:hover i {
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.bottom-nav-item:active {
    animation: navItemPress 0.2s ease;
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: 15%;
    background: var(--danger);
    color: var(--white);
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

/* Bottom Nav Item Colors */
.bottom-nav-item[data-tab="overview"] i {
    color: #3b82f6;
}

.bottom-nav-item[data-tab="proxies"] i {
    color: #8b5cf6;
}

.bottom-nav-item[data-tab="buy"] i {
    color: #10b981;
}

.bottom-nav-item[data-tab="profile"] i {
    color: #f59e0b;
}

.bottom-nav-item.active[data-tab="overview"] i {
    color: #2563eb;
}

.bottom-nav-item.active[data-tab="proxies"] i {
    color: #7c3aed;
}

.bottom-nav-item.active[data-tab="buy"] i {
    color: #059669;
}

.bottom-nav-item.active[data-tab="profile"] i {
    color: #d97706;
}

.bottom-nav-item[data-tab="overview"]:hover {
    background: rgba(59, 130, 246, 0.05);
}

.bottom-nav-item[data-tab="proxies"]:hover {
    background: rgba(139, 92, 246, 0.05);
}

.bottom-nav-item[data-tab="buy"]:hover {
    background: rgba(16, 185, 129, 0.05);
}

.bottom-nav-item[data-tab="profile"]:hover {
    background: rgba(245, 158, 11, 0.05);
}

/* ===== UTILITY CLASSES - CONSOLIDATED ===== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: var(--white) !important; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.m-0 { margin: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }

.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.w-100 { width: 100% !important; }

.dynamic-limit {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.progress-container {
    padding: 20px 0;
}

.progress-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.progress-bar-wrapper {
    width: 100%;
    height: 20px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.progress-percentage {
    text-align: center;
    font-size: 16px;
    color: var(--gray-600);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-dark);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
}

.sidebar-overlay.active {
    display: block;
}

/* ===== ANIMATIONS - CONSOLIDATED ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes qrLoad {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes navItemPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ===== RESPONSIVE BREAKPOINTS - CONSOLIDATED ===== */
@media (max-width: 1024px) {
    .announcement-marquee-container {
        max-width: calc(100% - 150px);
    }
    
    .buy-proxy-container {
        grid-template-columns: 1fr;
    }
    
    .order-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        display: none !important;
    }
    
    .mobile-proxy-list {
        display: block !important;
    }
    
    .dataTables_wrapper {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
    
    .page-content {
        padding-bottom: 80px !important;
    }
    
    .modal-dialog {
        max-height: calc(100vh - 60px);
        margin-bottom: 60px;
    }
    
    .table-responsive {
        max-height: calc(100vh - 200px);
    }
    
    .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
    }
    
    .modal-header {
        padding: var(--space-4) calc(var(--space-5) + 40px) var(--space-4) var(--space-5);
    }
    
    .modal-close {
        right: var(--space-3);
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .modal-body {
        padding: var(--space-5);
    }
    
    .modal-footer {
        padding: var(--space-3) var(--space-5);
    }
    
    .deposit-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .payos-qr-card {
        padding: 24px;
        border-radius: 16px;
        margin: 0 10px;
    }
    
    .qr-card-title {
        font-size: 18px;
    }
    
    .qr-code-wrapper {
        padding: 16px;
    }
    
    .qr-code-wrapper img {
        width: 180px;
        height: 180px;
    }
    
    .payment-amount-display .amount-value {
        font-size: 24px;
    }
    
    .qr-instructions {
        font-size: 13px;
    }
    
    .payment-countdown {
        padding: 10px 16px;
        border-radius: 10px;
    }
    
    .payment-countdown .countdown-text {
        font-size: 13px;
    }
    
    .payment-countdown .countdown-timer {
        font-size: 16px;
        min-width: 55px;
    }
    
    .btn-cancel-payment {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: var(--space-2) var(--space-2);
        font-size: var(--text-xs);
        margin: 0 1px;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):not(.previous):not(.next):not(:first-child):not(:last-child) {
        display: none;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        padding: var(--space-3) 0;
    }
    
    .proxy-tabs {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }
    
    .proxy-tab {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 10px;
        border-width: 1px;
    }
    
    .proxy-tab:hover {
        transform: translateY(-1px);
    }
    
    .proxy-tab.active {
        transform: translateY(0);
    }
    
    .proxy-tab::after {
        right: 8px;
        width: 6px;
        height: 6px;
        box-shadow: 
            0 0 6px rgba(16, 185, 129, 0.5),
            0 0 10px rgba(16, 185, 129, 0.2);
    }
    
    .proxy-tab:hover::after {
        box-shadow: 
            0 0 8px rgba(16, 185, 129, 0.7),
            0 0 15px rgba(16, 185, 129, 0.3);
    }
    
    .proxy-tab.active::after {
        box-shadow: 
            0 0 10px rgba(34, 211, 238, 0.8),
            0 0 18px rgba(34, 211, 238, 0.4);
    }
    
    .coming-soon {
        padding: 40px 15px;
    }
    
    .coming-soon-content i {
        font-size: 36px;
    }
    
    .proxy-actions-group {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        background: transparent;
        border-radius: 12px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .proxy-action-button {
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .proxy-action-button i {
        font-size: 16px;
    }
    
    .proxy-card-actions .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .proxy-card-actions .detail-label {
        min-width: auto;
        font-weight: 600;
    }
    
    .proxy-card-actions .detail-value {
        text-align: left;
        justify-content: flex-start;
        max-width: 100%;
        width: 100%;
    }
    
    .bulk-renew-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .proxy-list-header,
    .proxy-item {
        grid-template-columns: 40px 60px 1fr 80px;
        font-size: 12px;
    }

    .header-expiry,
    .header-price,
    .item-expiry,
    .item-price {
        display: none;
    }

    .time-options {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .failed-proxy-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tool-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .tool-header h2 {
        font-size: var(--text-2xl);
    }
    
    .tool-subtitle {
        font-size: var(--text-base);
    }
    
    .tool-stats {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .tool-screenshot {
        max-width: 100%;
    }
    
    .btn-download {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-base);
    }
    
    .btn-download i {
        font-size: 18px;
    }
    
    .protocol-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .protocol-option {
        width: 100%;
    }
    
    .empty-state {
        padding: 40px 20px;
        text-align: center;
    }
    
    .empty-state-icon {
        font-size: 48px;
        color: #e5e7eb;
        margin-bottom: 16px;
    }
    
    .empty-state-title {
        font-size: 18px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
    }
    
    .empty-state-text {
        font-size: 14px;
        color: #6b7280;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .proxy-actions-group {
        margin: 8px 0;
        border-radius: 10px;
        gap: 4px;
    }
    
    .proxy-action-button {
        font-size: 13px;
        padding: 10px 14px;
    }
}

@media (max-width: 375px) {
    .bottom-nav-item {
        font-size: 10px;
        padding: 5px 0;
    }
    
    .bottom-nav-item i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .bottom-nav-item span {
        max-width: 55px;
    }
    
    .modal-header {
        padding: var(--space-3) calc(var(--space-4) + 36px) var(--space-3) var(--space-4);
    }
    
    .modal-close {
        right: var(--space-2);
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .modal-body {
        padding: var(--space-4);
    }
    
    .payos-qr-card {
        padding: 20px;
        margin: 0 5px;
    }
    
    .qr-code-wrapper img {
        width: 160px;
        height: 160px;
    }
    
    .payment-amount-display .amount-value {
        font-size: 22px;
    }
}

@media (max-width: 320px) {
    .proxy-actions-group {
        flex-direction: row;
        gap: 4px;
        padding: 8px;
    }
    
    .proxy-action-button {
        padding: 10px;
        flex: 1;
        width: auto;
    }
    
    .proxy-action-button span {
        display: none;
    }
    
    .proxy-action-button i {
        margin: 0;
        font-size: 20px;
    }
    
    .proxy-action-button {
        position: relative;
    }
    
    .proxy-action-button::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1f2937;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        margin-bottom: 4px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    
    .proxy-action-button:active::after {
        opacity: 1;
    }
    
    .proxy-card-actions {
        gap: 2px;
    }
    
    .proxy-card-actions .action-btn {
        height: 32px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .proxy-card-actions .action-btn i {
        font-size: 12px;
    }
    
    .mobile-bottom-nav {
        height: 50px;
    }
    
    .bottom-nav-item span {
        font-size: 9px;
        max-width: 45px;
    }
    
    .bottom-nav-item i {
        font-size: 14px;
    }
    
    .page-content {
        padding-bottom: 70px !important;
    }
    
    .proxy-card-actions .action-btn {
        height: 34px !important;
        font-size: 13px !important;
    }
    
    .proxy-card-actions .action-btn i {
        font-size: 13px !important;
    }
}

@media (min-width: 769px) {
    .mobile-proxy-list {
        display: none !important;
    }
    
    .table-responsive {
        display: block !important;
    }
}

/* ===== VTPX PROXY CHECKER - COMPLETE STYLES ===== */
.vtpx-proxy-checker-wrapper {
    padding: 0;
    background: #f6f8fa;
    min-height: calc(100vh - 100px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vtpx-pchecker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px 20px;
    border-radius: 0;
    text-align: center;
    margin-bottom: 20px;
}

.vtpx-pchecker-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.2;
}

.vtpx-pchecker-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

.vtpx-pchecker-main {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 3px;
    height: auto;
    min-height: 500px;
}

.vtpx-pchecker-left {
    display: flex;
    flex-direction: column;
}

.vtpx-input-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #bae6fd;
}

.vtpx-panel-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 20px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.vtpx-panel-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 0 12px 12px;
}

.vtpx-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.vtpx-control-group {
    display: flex;
    flex-direction: column;
}

.vtpx-control-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.vtpx-select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #2d3748;
    transition: border-color 0.2s ease;
}

.vtpx-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.vtpx-textarea-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.vtpx-textarea-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.vtpx-textarea {
    flex: 1;
    min-height: 150px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    background: white;
    color: #2d3748;
    transition: border-color 0.2s ease;
}

.vtpx-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.vtpx-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.vtpx-textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.vtpx-count {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
}

.vtpx-btn-clear {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.vtpx-btn-clear:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.vtpx-btn-clear:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.vtpx-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.vtpx-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    min-width: 0;
}

.vtpx-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.vtpx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.vtpx-btn-secondary {
    background: #718096;
    color: white;
}

.vtpx-btn-secondary:hover {
    background: #4a5568;
}

.vtpx-pchecker-right {
    display: flex;
    flex-direction: column;
}

.vtpx-results-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #bae6fd;
}

.vtpx-results-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.vtpx-results-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtpx-progress-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vtpx-progress-bar {
    width: 180px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.vtpx-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38a169, #48bb78);
    width: 0%;
    transition: width 0.3s ease;
}

.vtpx-progress-text {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 60px;
    color: white;
}

.vtpx-stats-summary {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #475569;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vtpx-stat-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}

.vtpx-stat-item:hover {
    transform: translateY(-2px);
}

.vtpx-stat-total { border-left-color: #667eea; }
.vtpx-stat-live { border-left-color: #38a169; }
.vtpx-stat-die { border-left-color: #e53e3e; }
.vtpx-stat-rate { border-left-color: #d69e2e; }

.vtpx-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.vtpx-stat-label {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
    font-weight: 500;
}

.vtpx-tables-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 550px;
    max-height: 550px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.vtpx-table-section {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.vtpx-die-section {
    border-right: none;
}

.vtpx-table-header {
    padding: 16px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vtpx-live-header {
    background: linear-gradient(90deg, #f0fff4, #c6f6d5);
}

.vtpx-die-header {
    background: linear-gradient(90deg, #fffaf0, #fed7d7);
}

.vtpx-table-title {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.vtpx-table-content {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    min-height: 450px;
    background: white;
}

.vtpx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.vtpx-table th {
    background: #f7fafc;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.vtpx-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #2d3748;
    background: white;
}

.vtpx-table tbody tr:hover {
    background: #f7fafc;
    color: #1a202c;
}

.vtpx-table code {
    background: #f1f5f9;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.vtpx-export-actions {
    padding: 20px;
    background: white;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #e2e8f0;
}

.vtpx-export-actions .vtpx-btn-export {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.vtpx-export-actions .vtpx-btn-live {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.vtpx-export-actions .vtpx-btn-die {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.vtpx-export-actions .vtpx-btn-export:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.vtpx-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.vtpx-badge-success {
    background: #38a169;
    color: white;
}

.vtpx-badge-primary {
    background: #667eea;
    color: white;
}

.vtpx-badge-danger {
    background: #e53e3e;
    color: white;
}

.vtpx-table-content::-webkit-scrollbar {
    width: 8px;
}

.vtpx-table-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vtpx-table-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.vtpx-table-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* VTPX Responsive Design */
@media (max-width: 1200px) {
    .vtpx-pchecker-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .vtpx-pchecker-right {
        margin-top: 20px;
    }
    
    .vtpx-results-panel {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .vtpx-controls-row {
        grid-template-columns: 1fr;
    }
    
    .vtpx-stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vtpx-tables-container {
        grid-template-columns: 1fr;
    }
    
    .vtpx-table-section {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-height: 250px;
    }
    
    .vtpx-die-section {
        border-bottom: none;
    }
    
    .vtpx-actions {
        flex-direction: column;
    }
    
    .vtpx-export-actions {
        flex-direction: column;
    }
    
    .vtpx-export-actions .vtpx-btn-export {
        max-width: none;
    }
}

/* ===== FINAL BROWSER COMPATIBILITY ===== */
html {
    font-size: 14px;
}

.dark .marquee-wrapper::before {
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.dark .marquee-wrapper::after {
    background: linear-gradient(to left, var(--bg-color), transparent);
}

