/* Core Custom Properties */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #121829;
    --bg-card: rgba(22, 30, 53, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-cyan: #06b6d4;
    --primary-purple: #a855f7;
    --primary-pink: #ec4899;
    --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.4);
    --glow-purple: 0 0 15px rgba(168, 85, 247, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --sidebar-width: 260px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1f293d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b3a58;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(18, 24, 41, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 8px 24px -4px rgba(6, 182, 212, 0.15);
}

/* Gradient Buttons */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    will-change: transform;
    transform: translateZ(0);
}
.btn-gradient:hover {
    transform: scale(1.03);
    box-shadow: var(--glow-purple), var(--glow-cyan);
    color: #fff;
    text-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--text-primary);
    text-shadow: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

/* Header / Navigation */
.main-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}
.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo span {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

/* Main Landing / Hero */
.hero-section {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    will-change: background-color, color;
}
.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
}
.stat-card-footer {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    margin-top: 8px;
}

/* Redirection (go.php) */
.redirect-wrapper {
    max-width: 600px;
    margin: 120px auto;
    padding: 40px;
    text-align: center;
}
.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(6, 182, 212, 0.15);
    border-top: 4px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    animation: rotate 1s linear infinite;
}
.countdown-number {
    animation: none;
    font-size: 2.5rem;
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
    position: absolute;
}
.ad-banner-mock-728 {
    background: rgba(6, 182, 212, 0.05);
    border: 1px dashed var(--primary-cyan);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: center;
}
.ad-banner-mock-300 {
    background: rgba(168, 85, 247, 0.05);
    border: 1px dashed var(--primary-purple);
    padding: 20px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
}

/* Beautiful Data Table */
.data-table-container {
    overflow-x: auto;
    margin-top: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    color: var(--text-primary);
}
.data-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active, .badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.badge-rejected, .badge-suspended, .badge-banned {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 32px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: block !important;
    }
    
    .sidebar {
        position: fixed !important;
        top: 70px !important;
        bottom: 0 !important;
        left: -100% !important;
        width: 260px !important;
        background: rgba(10, 14, 26, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        z-index: 1000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        border-right: 1px solid var(--border-color) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 999 !important;
    }
    
    .sidebar-overlay.active {
        display: block !important;
    }
    
    .dashboard-container {
        display: block !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    
    .main-header {
        padding: 0 20px !important;
    }
    
    /* Force code boxes to wrap or scroll safely on mobile */
    .code-box {
        max-width: 100% !important;
        word-break: break-all !important;
        white-space: pre-wrap !important;
        overflow-x: auto !important;
    }
    
    /* Ensure tables/grids fit mobile viewport */
    .data-table-container {
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    /* Adjust glass panel paddings on mobile to prevent overflow */
    div.glass-panel[style*="padding"] {
        padding: 20px !important;
    }
    
    /* Force grids to single column on mobile */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.5);
    color: #FFF !important;
    text-shadow: none;
}

/* Mobile Navigation Drawer styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 101;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        padding: 100px 30px 40px;
        gap: 30px;
        z-index: 100;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 8px;
    }
    
    /* Highlight the button link */
    .nav-links li a.btn-gradient {
        margin-top: 10px;
    }
}

/* --- Scroll Unlock & Floating Tracker styles --- */

/* Floating bar status tracker */
.floating-tracker {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    padding: 12px 20px;
    z-index: 9999;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: rgba(15, 22, 42, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Scroll height spacer to force ad views */
.scroll-spacer {
    height: 35vh; /* Adjust spacer height dynamically */
    display: block;
    width: 100%;
}

/* Locked state styles */
.download-section-locked {
    border-color: rgba(239, 68, 68, 0.2) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05) !important;
    transition: all 0.5s ease;
}

/* Unlocked state neon glows */
.download-section-unlocked-cyan {
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25) !important;
    animation: glowCyanPulse 2s infinite alternate;
    transition: all 0.5s ease;
}

.download-section-unlocked-purple {
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25) !important;
    animation: glowPurplePulse 2s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes glowCyanPulse {
    0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
    100% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); }
}

@keyframes glowPurplePulse {
    0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
    100% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); }
}

/* Bouncing arrow animation */
.bounce-arrow {
    display: inline-block;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}


