@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f4f7f6; color: #1e293b; display: flex; height: 100vh; overflow: hidden; }

.sidebar { width: 260px; background-color: #0f172a; color: white; display: flex; flex-direction: column; transition: width 0.3s ease; z-index: 1000; box-shadow: 2px 0 10px rgba(0,0,0,0.1); overflow-x: hidden; white-space: nowrap; }
.sidebar.collapsed { width: 75px; }

.brand { padding: 20px; font-size: 20px; font-weight: bold; color: #38bdf8; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s;}
.sidebar.collapsed .brand span.text { display: none; }
.sidebar.collapsed .brand { font-size: 24px; padding: 20px 0; }

.menu-list { list-style: none; padding: 15px 0; flex-grow: 1; overflow-y: auto; overflow-x: hidden;}
.menu-item { padding: 12px 25px; display: flex; align-items: center; cursor: pointer; color: #94a3b8; transition: 0.2s; font-size: 14px; border-left: 4px solid transparent; margin-bottom: 5px; font-weight:500;}
.menu-item i { width: 25px; font-size: 18px; transition: 0.3s;}
.menu-item:hover { background-color: rgba(255,255,255,0.05); color: #fff; }
.menu-item.active { background-color: rgba(56, 189, 248, 0.1); color: #38bdf8; border-left-color: #38bdf8; }

.sidebar.collapsed .menu-item { justify-content: center; padding: 15px 0; }
.sidebar.collapsed .menu-item span.text { display: none; }
.sidebar.collapsed .menu-item i { margin-right: 0; text-align: center; width: 100%;}

.nav-header { margin: 12px 20px 4px 20px; font-size: 11px; color: #64748b; text-transform: uppercase; font-weight:bold; }
.sidebar.collapsed .nav-header { display: none; }

.user-widget { padding: 15px 20px 25px 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; background: #0b1120; margin-top: auto; }
.sidebar.collapsed .user-widget { display: none; }
.wallet-badge { background: #0ea5e9; color: white; padding: 8px 15px; border-radius: 20px; font-size: 14px; font-weight: bold; display: inline-block; margin-top: 10px; width: 100%; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }
.btn-sidebar-logout { display: block; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; padding: 8px 15px; border-radius: 8px; font-weight: bold; font-size: 13px; text-decoration: none; margin-top: 15px; transition: 0.3s; }
.btn-sidebar-logout:hover { background: #ef4444; color: white; }

.main-content { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; background: #f8fafc; width: 100%; transition: 0.3s ease;}
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; backdrop-filter: blur(2px); }

.topbar { height: 70px; background: white; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 998;}
.topbar-left { display: flex; align-items: center; gap: 15px; }
.menu-toggle { font-size: 22px; cursor: pointer; color: #1e293b; display: block; padding: 5px; transition: 0.2s;}
.menu-toggle:hover { color: #38bdf8; }

.topbar-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.auth-btn { background: #ef4444; color: white; border: none; padding: 8px 15px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 14px; transition:0.2s;}

.content-body { padding: 20px; flex: 1 0 auto; }

.dashboard-footer { background-color: #0f172a; color: #cbd5e1; padding: 20px 20px 12px; border-top: 2px solid #38bdf8; flex-shrink: 0; width: 100%; margin-top: auto; display: block;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 15px; }
.footer-brand { font-size: 17px; font-weight: bold; color: white; margin-bottom: 8px; }
.footer-desc { font-size: 12px; line-height: 1.5; margin-bottom: 10px; color: #94a3b8;}
.social-links a { color: white; font-size: 18px; margin-right: 12px; text-decoration: none; transition: 0.2s; display: inline-block;}
.social-links a:hover { color: #38bdf8; transform: translateY(-2px);}
.footer-title { font-size: 14px; font-weight: bold; color: white; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 12px; display: flex; align-items: center; gap: 8px; transition: 0.2s; cursor:pointer;}
.footer-links a:hover { color: white; padding-left: 3px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; color: #94a3b8;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; text-align: center; font-size: 11px; color: #64748b;}

.view-section { display: none; animation: fadeIn 0.3s; }
.view-section.active { display: block; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #1e293b; border-left: 4px solid #38bdf8; padding-left: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 20px; }

.pkg-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; display: flex; flex-direction: column; transition: all 0.3s ease;}
.pkg-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15); border-color: #93c5fd; }
.card-img { width: 100%; height: 180px; object-fit: contain; background: #fff; border-bottom: 1px solid #f1f5f9; cursor: zoom-in; transition: 0.3s; padding: 5px;}
.card-img:hover { opacity: 0.85; transform: scale(1.02); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex-grow: 1;}

.card-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: #1e293b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}

.card-price { font-size: 24px; color: #0ea5e9; font-weight: 900; margin-bottom: 5px; }
.card-expiry { font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 15px;}

.btn-details { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 6px; width: 100%; cursor: pointer; font-weight: bold; font-size: 13px; margin-bottom: 15px; transition: 0.2s;}
.btn-details:hover { background: #e2e8f0; color: #1e293b; }

.btn-buy { background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); color: white; border: none; padding: 12px; border-radius: 8px; width: 100%; cursor: pointer; font-weight: bold; font-size: 14px; margin-top: auto; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); transition: all 0.3s ease; }
.btn-buy:hover { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); transform: translateY(-2px);}

.btn-video { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fee2e2; color: #ef4444; border: 1px solid #fca5a5; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: 0.2s; margin-bottom: 15px; width: fit-content; }
.btn-video:hover { background: #ef4444; color: white; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); }

#lightbox-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
#lightbox-modal.show { display: flex; opacity: 1; }
#lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); object-fit: contain; }
#lightbox-modal.show #lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 25px; right: 35px; color: white; font-size: 40px; cursor: pointer; font-weight: 300; transition: 0.2s; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.lightbox-close:hover { color: #ef4444; transform: scale(1.1); }

.sw-card { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-radius: 16px; padding: 25px; color: white; box-shadow: 0 10px 30px rgba(30,27,75,0.4); display: flex; flex-direction: column; position: relative; overflow: hidden;}
.sw-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.sw-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; margin-bottom: 15px; font-size: 13px; font-weight: 600; color: #a5b4fc;}
.sw-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; line-height: 1.4; color: #ffffff;}
.sw-details { font-size: 13px; line-height: 2; margin-bottom: 25px; color: #c7d2fe;}
.sw-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; transition: 0.3s; text-align: center; width: 100%; backdrop-filter: blur(5px);}
.sw-btn:hover { background: white; color: #312e81; box-shadow: 0 5px 15px rgba(255,255,255,0.2);}

.vpn-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px;}
.vpn-tab { font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; padding: 6px 12px; border-radius: 8px; display:flex; align-items:center; gap:6px; transition:0.2s;}
.vpn-tab.active { color: #0f172a; background: #e2e8f0; }
.vpn-tab span { background: #ef4444; color: white; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.vpn-tab.active span { background: #10b981; }
.badge-online { background: #10b981; color: white; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700;}
.badge-offline { background: #ef4444; color: white; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700;}

.switch { position: relative; display: inline-block; width: 32px; height: 18px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 18px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%;}
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(14px); }

.order-card { background: #fff; max-width: 550px; margin: 0 auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e2e8f0;}
.order-header { padding: 15px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: 16px; color: #1e293b;}
.order-body { padding: 20px; }
.total-box { background: #f0f9ff; border: 1px solid #bae6fd; padding: 12px 15px; border-radius: 8px; display: flex; justify-content: space-between; font-weight: bold; font-size: 15px; margin-bottom: 15px; color:#0369a1;}
.btn-order { width: 100%; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; margin-top: 5px; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); transition: 0.2s;}
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.45); }
.btn-apply-promo { background: #1e293b; color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-weight: bold;}

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.8); z-index: 2000; justify-content: center; align-items: center; padding: 15px; backdrop-filter: blur(4px); overflow-y:auto;}

.checkout-wrapper { background: #f4f5f8; width: 100%; max-width: 900px; border-radius: 12px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); padding: 20px; display:flex; flex-wrap: wrap; gap: 20px;}
.checkout-left, .checkout-right { display: flex; flex-direction: column; gap: 20px; }
.checkout-left { flex: 1.5; min-width: 300px; }
.checkout-right { flex: 1; min-width: 300px; }

.checkout-section { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #e5e7eb;}
.checkout-section h3 { font-size: 16px; font-weight: 800; color: #111827; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f3f4f6; padding-bottom: 10px;}

.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-group.half { flex: 1; min-width: 140px; }
.checkout-section .form-group { margin-bottom: 12px; }
.checkout-section label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; display: block;}
.checkout-section input, .checkout-section select, .checkout-section textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #f9fafb; outline:none; transition:0.2s;}
.checkout-section input:focus, .checkout-section select:focus, .checkout-section textarea:focus { border-color: #3b82f6; background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

.radio-option { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 10px; cursor: pointer; transition:0.2s;}
.radio-option:hover { background: #f9fafb; border-color:#d1d5db; }
.radio-option input { width: 16px; height: 16px; accent-color: #ef4444; }
.radio-option span { font-size: 14px; font-weight: 600; color: #1f2937; }

.product-summary { display: flex; justify-content: space-between; font-size: 14px; color: #4b5563; line-height: 1.5;}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #4b5563; margin-bottom: 8px;}
.summary-row.total { font-size: 18px; font-weight: 800; color: #ef4444; margin-top: 10px; }

.tc-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #6b7280; margin: 15px 0;}
.tc-checkbox a { color: #ef4444; text-decoration: none; font-weight: 600; }

.btn-checkout { background: #3730a3; color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 800; font-size: 16px; width: 100%; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 12px rgba(55, 48, 163, 0.3); }
.btn-checkout:hover { background: #312e81; transform: translateY(-2px); }

.auth-card { background: #fff; width: 100%; max-width: 400px; border-radius: 14px; padding: 25px 20px; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.2); margin: auto;}
.close-btn { position: absolute; top: 12px; right: 15px; cursor: pointer; font-size: 20px; color: #94a3b8; transition:0.2s; z-index:10;}
.close-btn:hover { color: #ef4444;}
.auth-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #0f172a; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #475569; }
.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; font-size: 14px; background: #f8fafc; transition:0.2s;}
.form-control:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); background:#fff;}
.pass-wrapper { position: relative; }
.pass-wrapper i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #9ca3af;}
.btn-primary-auth { width: 100%; background: #0ea5e9; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; margin-top: 10px; transition:0.2s;}
.auth-links { text-align: center; font-size: 13px; margin-top: 15px; color: #64748b;}
.auth-links a { color: #0ea5e9; cursor: pointer; font-weight: 700; text-decoration: none;}

.floating-whatsapp { position: fixed; bottom: 20px; right: 20px; background-color: #25D366; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 9999; text-decoration: none; transition: transform 0.3s ease;}
.floating-whatsapp:hover { transform: scale(1.1); }
.empty-state { text-align: center; padding: 40px; background: white; border-radius: 10px; border: 1px dashed #dee2e6; color: #6c757d; }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; width: 260px !important; top: 0; height: 100%; z-index: 1001; }
    .sidebar.mobile-active { left: 0; }
    .sidebar.collapsed { width: 260px; } 
    
    .sidebar .brand span.text { display: inline-block; }
    .sidebar .menu-item span.text { display: inline-block; }
    .sidebar .nav-header { display: block; }
    .sidebar .user-widget { display: block; }
    .sidebar .menu-item i { margin-right: 10px; text-align: left; width: 25px;}
    .sidebar .menu-item { justify-content: flex-start; padding: 12px 25px; }

    .sidebar-overlay.active { display: block; }
    .floating-whatsapp { bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 28px;}
    .checkout-left, .checkout-right { min-width: 100%; flex: 1; }
}