/* ========================================
   CSS VARIABLES - COMBINED
======================================== */
:root {
    /* Theme Colors */
    --primary-color: #4B5EAA;
    --primary-dark: #3A477F;
    --primary-light: #6B82D6;
    --secondary-color: #1f3e59;
    --secondary-dark: #5B21B6;
    --secondary-light: #A78BFA;
    --accent-color: #F472B6;
    --accent-dark: #DB2777;
    --accent-light: #F9A8D4;
    --dark: #1F2937;
    --dark-gray: #374151;
    --medium-gray: #6B7280;
    --light-gray: #D1D5DB;
    --off-white: #F3F4F6;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Header Specific */
    --header-bg: #ffffff;
    --header-border: #e5e7eb;
    --header-text: #111827;
    --header-text-secondary: #6b7280;
    --header-accent: #0d9e00;
    --header-accent-dark: #0b8a00;
    --header-accent-light: #10b981;
    --top-bar-bg: #111827;
    --top-bar-text: #d1d5db;
    --top-bar-hover: #ffffff;
    --search-bg: #f9fafb;
    --search-border: #e5e7eb;
    --search-focus: #0d9e00;
    --favorites-badge-bg: #ef4444;
    --contact-badge-bg: #3b82f6;
    
    /* Compact Header Heights */
    --header-height: 50px;
    --top-bar-height: 32px;
}

.ad-placement iframe,.ad-placement img {
    max-width: 100%;
    max-height: 100%;
    padding: 1px;
    display: block;
    margin: 0 auto
}
/* ========================================
   TOP BAR - COMPACT PREMIUM STYLE
======================================== */
.dl-top-bar {
    background: linear-gradient(135deg, var(--top-bar-bg) 0%, #1a202c 100%);
    color: var(--top-bar-text);
    font-size: 11px;
    padding: 0;
    height: var(--top-bar-height);
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-top-left,
.dl-top-right {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.dl-top-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 6px;
}

.dl-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--top-bar-text);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    font-size: 11px;
    height: 24px;
    position: relative;
}

.dl-top-link:hover {
    color: var(--top-bar-hover);
    background: rgba(255, 255, 255, 0.08);
}

.dl-top-link svg {
    flex-shrink: 0;
    opacity: 0.8;
    width: 12px;
    height: 12px;
}

.dl-top-link:hover svg {
    opacity: 1;
}

/* Free Files Badge */
.dl-top-free {
    color: #10b981;
}

.dl-top-free:hover {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

/* Join/Register Button - Compact */
.dl-top-join {
    background: linear-gradient(135deg, var(--header-accent), var(--header-accent-dark));
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 158, 0, 0.25);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    gap: 8px;
}

.dl-top-join:hover {
    background: linear-gradient(135deg, var(--header-accent-dark), #065f46);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(13, 158, 0, 0.35);
    transform: translateY(-1px);
}

.dl-join-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Login Button */
.dl-top-login {
    color: #fbbf24 !important;
    font-weight: 600;
}

.dl-top-login:hover {
    color: #fcd34d !important;
    background: rgba(251, 191, 36, 0.1);
}

/* Help Link */
.dl-top-help {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd !important;
    border-radius: var(--radius-full);
}

.dl-top-help:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe !important;
}

/* Desktop Only Elements */
.dl-desktop-only {
    display: none;
}

@media (min-width: 1025px) {
    .dl-desktop-only {
        display: inline-flex;
    }
}

/* ========================================
   CONTACT WIDGET - TOP BAR BELL ICON COMPACT
======================================== */
.dl-top-contact {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 8px;
}

.dl-top-contact .contact-widget-btn,
.dl-top-contact .sg-contact-btn,
.dl-top-contact > a,
.dl-top-contact button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--top-bar-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.dl-top-contact .contact-widget-btn:hover,
.dl-top-contact .sg-contact-btn:hover,
.dl-top-contact > a:hover,
.dl-top-contact button:hover {
    color: var(--top-bar-hover);
    background: rgba(255,255,255,0.08);
}

.dl-top-contact svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.dl-top-contact .contact-badge,
.dl-top-contact .sg-contact-badge,
.dl-top-contact .message-count,
.dl-top-contact .unread-count,
.dl-contact-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    background: var(--contact-badge-bg);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dl-contact-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--top-bar-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.dl-contact-bell-btn:hover {
    color: var(--top-bar-hover);
    background: rgba(255,255,255,0.08);
}

.dl-contact-bell-btn svg {
    width: 13px;
    height: 13px;
}

/* ========================================
   MAIN HEADER - COMPACT PREMIUM STYLE
======================================== */
.dl-main-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: var(--header-height);
}

.dl-top-container,
.dl-header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

/* ========================================
   LOGO AREA - COMPACT
======================================== */
.dl-logo-area {
    flex-shrink: 0;
}

.dl-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.dl-logo-link:hover {
    transform: scale(1.02);
}

.dl-logo-area img,
.dl-logo-area .custom-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.dl-site-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--header-text);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--header-accent), var(--header-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SEARCH CONTAINER - COMPACT ENHANCED
======================================== */
.dl-search-container {
    flex: 1;
    max-width: 580px;
}

.dl-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.dl-search-icon {
    position: absolute;
    left: 12px;
    color: var(--header-text-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.6;
    z-index: 1;
}

.dl-search-input {
    flex: 1;
    padding: 10px 45px 10px 38px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--header-text);
    outline: none;
    width: 100%;
    font-weight: 500;
}

.dl-search-btn {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--header-accent), var(--header-accent-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(13, 158, 0, 0.2);
}

.dl-search-btn:hover {
    transform: scale(1.02);
}

/* ========================================
   HEADER ACTIONS - COMPACT
======================================== */
.dl-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.dl-mobile-menu-btn,
.dl-mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--header-text-secondary);
    background: transparent;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.dl-mobile-menu-btn:hover,
.dl-mobile-search-btn:hover {
    color: var(--header-accent);
    background: rgba(13, 158, 0, 0.06);
}

.dl-mobile-contact {
    display: none;
}

/* ========================================
   THEME TOGGLE - COMPACT
======================================== */
.dl-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--header-text-secondary);
    background: transparent;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dl-theme-btn:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.dl-theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Light Mode - Show Moon (dark color) */
.dl-theme-btn .moon-icon {
    display: block;
    color: #374151;
}

.dl-theme-btn .sun-icon {
    display: none;
}

/* Dark Mode - Show Sun (yellow/bright color) */
.dark-mode .dl-theme-btn .moon-icon {
    display: none;
}

.dark-mode .dl-theme-btn .sun-icon {
    display: block;
    color: #fbbf24;
}

/* ========================================
   USER MENU WITH NAME - COMPACT ENHANCED
======================================== */
.dl-user-menu {
    position: relative;
}

.dl-user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 3px;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.dl-user-menu-btn:hover {
    border-color: var(--header-accent);
    background: var(--header-bg);
}

.dl-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--header-accent);
    flex-shrink: 0;
}

.dl-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--header-text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-user-chevron {
    color: var(--header-text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.dl-user-menu.is-open .dl-user-chevron {
    transform: rotate(180deg);
}

/* User Dropdown */
.dl-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dl-user-menu.is-open .dl-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dl-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(13, 158, 0, 0.05), rgba(13, 158, 0, 0.02));
    border-bottom: 1px solid var(--header-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dl-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--header-accent);
}

.dl-dropdown-info {
    flex: 1;
    min-width: 0;
}

.dl-dropdown-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-dropdown-email {
    display: block;
    font-size: 12px;
    color: var(--header-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dl-dropdown-links {
    padding: 8px;
}

.dl-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--header-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.dl-dropdown-link:hover {
    background: var(--search-bg);
    color: var(--header-accent);
}

.dl-dropdown-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    width: 18px;
    height: 18px;
}

.dl-dropdown-link:hover svg {
    opacity: 1;
}

.dl-dropdown-divider {
    height: 1px;
    background: var(--header-border);
    margin: 8px 0;
}

.dl-dropdown-logout {
    color: #ef4444;
}

.dl-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dark-mode .dl-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========================================
   FAVORITES LINK BUTTON - COMPACT
======================================== */
.dl-favorites-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--header-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.dl-favorites-link-btn:hover {
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.dl-favorites-link-btn.has-items {
    color: #ef4444;
}

.dl-favorites-link-btn.has-items svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.dl-favorites-link-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.dl-favorites-btn:hover,
.dl-favorites-link-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
}

.dl-favorites-btn svg,
.dl-favorites-link-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.dl-favorites-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 1px solid var(--header-bg);
}

/* ========================================
   HEADER VISITORS DISPLAY - COMPACT
======================================== */
.dl-header-visitors {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-full);
    color: #9333ea;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.dl-header-visitors svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

.dl-visitors-count {
    font-weight: 800;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dl-visitors-label {
    opacity: 0.8;
    font-size: 10px;
}

.dark-mode .dl-header-visitors {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.1));
    border-color: rgba(147, 51, 234, 0.3);
    color: #c084fc;
}

/* Top Bar Stats - Compact */
.dl-top-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--top-bar-text);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}

.dl-top-stat svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

/* ========================================
   QUICK LINKS BAR - COMPACT
======================================== */
.dl-quick-links-bar {
    padding: 6px 0;
}

.dl-quick-links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.dl-quick-links-container::-webkit-scrollbar {
    height: 0;
    display: none;
}

.dl-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: var(--radius-full);
    color: var(--header-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.dl-quick-link:hover {
    background: rgb(158 102 0 / 26%);
}

.dl-quick-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Quick link variants */
.dl-quick-link-free {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
    color: #065f46;
}

.dl-quick-link-free:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
}

.dl-quick-link-paid {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    color: #92400e;
}

.dl-quick-link-paid:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.dl-quick-link-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    color: #92400e;
}

.dl-quick-link-vip:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: #f59e0b;
    color: #78350f;
}

/* ========================================
   HEADER SPACING
======================================== */
.dl-header-spacing {
    height: 0;
}

/* ========================================
   MOBILE RESPONSIVE - COMPACT
======================================== */
@media (max-width: 1024px) {
    .dl-header-container {
        padding: 0 16px;
        gap: 12px;
    }

    .dl-search-container {
        max-width: 420px;
    }
    
    .dl-user-menu {
        display: none !important;
    }
    
    .dl-header-visitors {
        display: none;
    }
    
    .dl-top-stat {
        display: none;
    }
}

@media (max-width: 480px) {
    .dl-top-link {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .dl-top-link svg {
        display: none;
    }
    
    .dl-top-help svg,
    .dl-top-join svg {
        display: block;
    }
    
    .dl-quick-links-container {
        gap: 4px;
    }
    
    .dl-quick-link {
        padding: 4px 6px;
    }
    
    .dl-quick-count {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
    }
}

@media (min-width: 1200px) {
    .dl-quick-nav {
        display: flex;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.dl-header-container *:focus-visible {
    outline: 2px solid var(--header-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.dl-search-input:focus-visible {
    outline: none;
}

/* ========================================
   LOADING SHIMMER
======================================== */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.dl-loading {
    animation: shimmer 1.2s infinite;
    background: linear-gradient(to right, var(--search-bg) 0%, var(--search-border) 50%, var(--search-bg) 100%);
    background-size: 800px 104px;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.dl-hidden {
    display: none !important;
}

.dl-visible {
    display: block !important;
}

/* ============================================
   SKIP LINK - ACCESSIBILITY
============================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999999;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 15px 20px;
    background: #7c3aed;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 999999;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #7c3aed;
    border-radius: 4px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #fff;
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    height: auto;
    left: 10px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 10px;
    width: auto;
    z-index: 100000;
}

.dark-mode .sidebar-tabs {
    border-bottom-color: #444;
}

/* ============================================
   BASE STYLES
============================================ */
*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

a {
    color: #005670;
    text-decoration: underline;
    color: var(--primary-color);
    transition: color var(--transition-fast);
    touch-action: manipulation;
    font-weight: bold;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   SCROLLBAR STYLES
============================================ */
* {
    scrollbar-width: auto;
    scrollbar-color: #0d9e00 var(--light-gray);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   MODAL STYLES
============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 400;
}

.favorites-count-badge {
    background-color: #007bff;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.9rem;
    margin-left: 5px;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: transparent;
    border: none;
    line-height: 1;
    touch-action: manipulation;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    padding: 10px 0;
    max-height: 300px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-results li {
    padding: 5px 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results li a:hover {
    text-decoration: underline;
}

.search-results li.view-more-li {
    border-bottom: none;
    padding-top: 10px;
    text-align: center;
}

.search-results li.view-more-li a.view-more {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: inline-block;
    transition: background-color var(--transition-fast);
}

.search-results li.view-more-li a.view-more:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
    }

    .search-input {
        font-size: 16px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .close-modal {
        font-size: 20px;
    }
    .modal-body {
        max-height: 240px;
    }

    .search-results li {
        font-size: 12px;
    }

    .search-results li.view-more-li a.view-more {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 50%;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .site-title {
        font-size: 2rem;
    }
}

/* ============================================
   PAGE STYLES
============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-content {
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.4rem;
    color: #2c2f3d;
    font-weight: 700;
    margin: 0;
}

.page-body {
    max-width: 1000px;
    margin: 0 auto;
}

.page-body h2 {
    font-size: 2rem;
    color: #2c2f3d;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.page-body h3 {
    font-size: 1.8rem;
    color: #2c2f3d;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
}

.page-body p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-body ol,
.page-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-body ol li,
.page-body ul li {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.page-body ul {
    list-style-type: disc;
}

.page-body ol {
    list-style-type: decimal;
}

/* ============================================
   LEFT SIDEBAR - GREEN STYLE
============================================ */
.left-sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 250px;
    background: linear-gradient(180deg, #0d9e00 0%, #0b8a00 100%);
    height: calc(100% - 4rem);
    padding: 20px;
    box-shadow: 4px 0 20px rgba(13, 158, 0, 0.15);
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar ul li {
    margin-bottom: 4px;
}

.left-sidebar ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.left-sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.left-sidebar ul li a.active,
.left-sidebar ul li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Left Sidebar Scrollbar - Green */
.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   LEFT SIDEBAR MENU - GREEN STYLE
============================================ */
.left-sidebar .primary-menu {
    padding: 0;
}

.left-sidebar .menu-item {
    position: relative;
    margin-bottom: 4px;
}

.left-sidebar .menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 10px;
    font-weight: 500;
}

.left-sidebar .menu-item a svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    opacity: 0.9;
}

.left-sidebar .menu-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(4px);
}

.left-sidebar .menu-item a:hover svg {
    opacity: 1;
}

.left-sidebar .menu-item-has-children > a .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.left-sidebar .menu-item-has-children.active > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu - Green Style */
.left-sidebar .sub-menu {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 6px 0 0 0 !important;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out !important;
    list-style: none !important;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin-left: 12px !important;
}

.left-sidebar .menu-item-has-children.active > .sub-menu {
    max-height: 3000px !important;
    padding-left: 12px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.left-sidebar .sub-menu .sub-menu {
    background: rgba(0, 0, 0, 0.1) !important;
    margin-left: 8px !important;
    border-left-color: rgba(255, 255, 255, 0.2);
}

.left-sidebar .sub-menu .menu-item-has-children.active > .sub-menu {
    max-height: 2000px !important;
    padding-left: 10px !important;
}

.left-sidebar .sub-menu .menu-item {
    margin-bottom: 2px !important;
}

.left-sidebar .sub-menu .menu-item a {
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
}

.left-sidebar .sub-menu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.left-sidebar .sub-menu .menu-item-has-children > a .dropdown-arrow {
    margin-left: auto;
    font-size: 10px;
}

/* Active States */
.left-sidebar .menu-item.current-menu-item > a,
.left-sidebar .menu-item.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.left-sidebar .sub-menu .menu-item.current-menu-item > a {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ============================================
   LEFT SIDEBAR HEADER (Optional)
============================================ */
.left-sidebar-header {
    padding: 16px 14px;
    margin: -20px -20px 16px -20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-sidebar-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-sidebar-title svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.left-sidebar-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.left-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.left-sidebar-close svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SLIDE MENU TOGGLE - GREEN STYLE
============================================ */
.slide-menu-toggle {
    display: none;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1001;
    background: linear-gradient(135deg, #0d9e00 0%, #0b8a00 100%);
    border: none;
    padding: 12px 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 0 14px 14px 0;
    box-shadow: 4px 4px 16px rgba(13, 158, 0, 0.3);
    transition: all 0.3s ease;
}

.slide-menu-toggle svg {
    width: 22px;
    height: 22px;
    color: white;
}

.slide-menu-toggle .menu-text {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.slide-menu-toggle:hover {
    background: linear-gradient(135deg, #0b8a00 0%, #097500 100%);
    transform: translateY(-50%) translateX(4px);
    box-shadow: 6px 6px 20px rgba(13, 158, 0, 0.4);
}

/* Backdrop */
.slide-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-menu-backdrop.active {
    display: block;
    opacity: 1;
}

.toc-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
}

.toc-panel.open ~ .toc-panel-backdrop,
.toc-panel-backdrop.active {
    display: block;
}

/* Slide Menu Enabled States */
body.slide-menu-enabled .slide-menu-toggle {
    display: flex;
}

body.slide-menu-enabled .left-sidebar {
    transform: translateX(-100%);
}

body.slide-menu-enabled .left-sidebar.show {
    transform: translateX(0);
    z-index: 100001 !important;
}

body.slide-menu-enabled .left-sidebar.show ~ .slide-menu-backdrop {
    display: block;
    opacity: 1;
}

body.slide-menu-enabled .content-wrapper {
    margin-left: 0;
    width: 100%;
}
body.dark-mode {
  --dl-bg-primary: #0b1220;
  --dl-bg-secondary: #111827;
  --dl-bg-tertiary: #0f172a;
  --dl-bg-card: #111827;
  --dl-text-primary: #f9fafb;
  --dl-text-secondary: #e5e7eb;
  --dl-text-muted: #d1d5db;
  --dl-border: #1f2937;
  --dl-border-light: #243044;
    --header-bg: #1f2937;
    --header-border: #374151;
    --header-text: #f9fafb;
    --header-text-secondary: #9ca3af;
    --top-bar-bg: #0f172a;
    --top-bar-text: #9ca3af;
    --search-bg: #374151;
    --search-border: #4b5563;
}
/* ============================================
   LEFT SIDEBAR - DARK MODE GREEN
============================================ */
body.dark-mode .left-sidebar {
    background: linear-gradient(180deg, #065f00 0%, #054d00 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .left-sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .left-sidebar .sub-menu {
    background: rgba(0, 0, 0, 0.25);
    border-left-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .left-sidebar .sub-menu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .slide-menu-toggle {
    background: linear-gradient(135deg, #065f00 0%, #054d00 100%);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .slide-menu-toggle:hover {
    background: linear-gradient(135deg, #054d00 0%, #043d00 100%);
}

/* ============================================
   LEFT SIDEBAR - MOBILE RESPONSIVE
============================================ */

@media (min-width: 769px) {
    .desktop-search-container {
        display: flex;
    }

    .mobile-right-search-icon {
        display: none;
    }

    .left-sidebar {
        transform: translateX(0);
    }
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background-color: #0d9e00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
}

.progress-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.arrow-up {
    width: 2rem;
    height: 2rem;
    color: var(--white);
    z-index: 1;
}

/* ========================================
   GLOBAL SIDEBAR STYLES
   Works on Homepage, Single Post, and Archive pages
======================================== */

/* Layout */
.dl-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    padding: 10px 0;
}

.dl-content { min-width: 0; }

.dl-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sidebar Widget Base */
.dl-sidebar-widget {
  background: var(--dl-bg-card, #ffffff);
  border-radius: 16px;
  border: 1px solid var(--dl-border, #e5e7eb);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dl-widget-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--dl-border, #e5e7eb);
  background: linear-gradient(180deg, #f9fafb, #ffffff);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-widget-header-orange {
  background: linear-gradient(135deg, rgba(245,158,11,0.14) 0%, rgba(255,237,213,0.7) 100%);
  border-bottom-color: rgba(245,158,11,0.25);
}

.dl-widget-header-green {
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(209,250,229,0.7) 100%);
  border-bottom-color: rgba(16,185,129,0.25);
}

.dl-widget-header-red {
  background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(254,226,226,0.7) 100%);
  border-bottom-color: rgba(239,68,68,0.25);
}

.dl-widget-header-dark {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dl-widget-header-dark .dl-widget-title {
  color: #fff;
}

.dl-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  color: var(--dl-text-primary, #111827);
}

.dl-widget-content { padding: 10px; }

/* Favorites Widget */
.dl-favorites-widget {
  border-color: rgba(239, 68, 68, 0.3);
}

.dl-favorites-count-badge {
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  min-width: 28px;
  text-align: center;
}

.dl-favorites-content {
  padding: 10px;
  min-height: 100px;
}

.dl-favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  color: var(--dl-text-muted, #9ca3af);
}

.dl-favorites-empty svg {
  opacity: 0.4;
  margin-bottom: 12px;
}

.dl-favorites-empty p {
  margin: 0 0 4px;
    color: #374151 !important;
    font-weight: 700;
  font-size: 13px;
}

.dl-favorites-empty span {
  font-size: 11px;
  line-height: 1.4;
    color: #4b5563 !important;
}

.dl-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-favorite-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  position: relative;
}

.dl-favorite-item:hover {
  background: rgba(239, 68, 68, 0.08);
}

.dl-favorite-thumb-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.dl-favorite-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trending Widget - Placeholder Fix */
.dl-trending-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d9e00 0%, #0b8a00 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-trending-thumb-placeholder svg {
    width: 22px;
    height: 22px;
}

.dl-favorite-title {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--dl-text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-favorite-remove {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--dl-text-muted, #9ca3af);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  border-radius: 4px;
}

.dl-favorite-item:hover .dl-favorite-remove {
  opacity: 1;
}

.dl-favorite-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.dl-favorites-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dl-favorites-more-link:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.dl-favorites-more-link svg:first-child {
  fill: currentColor;
}

/* Trending Widget */
.dl-trending-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
/* ========================================
   SOFTWARE DOWNLOAD STYLE FOOTER
======================================== */
.dl-footer {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #e5e7eb;
    padding: 0;
    margin-top: 40px;
}

.dl-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Stats Bar */
.dl-footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: linear-gradient(135deg, #0d9e00 0%, #0b8a00 100%);
    margin: 0 -20px;
    padding: 24px 40px;
}

.dl-footer-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dl-footer-stat:last-child {
    border-right: none;
}

.dl-footer-stat svg {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.dl-footer-stat-content {
    display: flex;
    flex-direction: column;
}

.dl-footer-stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.dl-footer-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Footer Main Content */
.dl-footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 40px;
}

/* Brand Column */
.dl-footer-brand {
    padding-right: 30px;
}

.dl-footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.dl-footer-site-name {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0d9e00, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Social Links */
.dl-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dl-social-link:hover {
    background: #0d9e00;
    border-color: #0d9e00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 158, 0, 0.3);
}

/* Footer Links Columns */
.dl-footer-links-column {
    min-width: 0;
}

.dl-footer-heading {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d9e00;
    display: inline-block;
}

.dl-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-footer-links li {
    margin-bottom: 12px;
}

.dl-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dl-footer-links a:hover {
    color: #0d9e00;
    padding-left: 6px;
}

.dl-footer-cat-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* Footer Bottom */
.dl-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.dl-footer-copyright p + p {
    margin-top: 6px;
}

.dl-footer-developer {
    font-size: 12px;
}

.dl-footer-developer a {
    color: #0d9e00;
    text-decoration: none;
    font-weight: 600;
}

.dl-footer-developer a:hover {
    color: #10b981;
    text-decoration: underline;
}

/* Footer Badges */
.dl-footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.dl-footer-badge svg {
    flex-shrink: 0;
}

.dl-footer-badge.dl-badge-secure {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.dl-footer-badge.dl-badge-verified {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.dl-footer-badge.dl-badge-support {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .dl-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .dl-footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .dl-footer-social {
        justify-content: center;
    }
    
    .dl-footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .dl-footer-stat:nth-child(2) {
        border-right: none;
    }
}

.dl-live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: dl-pulse 1.5s infinite;
}

@keyframes dl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.dl-trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-bottom: 2px;
}

.dl-trending-item:last-child {
  margin-bottom: 0;
}

.dl-trending-item:hover {
  background: var(--dl-bg-tertiary, #f9fafb);
}

.dl-trending-rank {
  min-width: 26px;
  height: 26px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border: 1px solid var(--dl-border, #e5e7eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 900;
  color: var(--dl-text-secondary, #6b7280);
  flex-shrink: 0;
}

.dl-trending-rank.dl-rank-gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
  color: #92400e;
}

.dl-trending-rank.dl-rank-silver {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-color: #d1d5db;
  color: #6b7280;
}

.dl-trending-rank.dl-rank-bronze {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: #fb923c;
  color: #9a3412;
}

.dl-trending-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.dl-trending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.dl-trending-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dl-bg-tertiary, #f9fafb);
  border: 1px solid var(--dl-border, #e5e7eb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dl-text-muted, #9ca3af);
}

.dl-trending-price-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--dl-bg-card, #ffffff);
}

.dl-badge-paid {
  background: #fef3c7;
  color: #92400e;
}

.dl-badge-vip {
  background: #ede9fe;
  color: #6b21a8;
}

.dl-trending-info {
  flex: 1;
  min-width: 0;
}

.dl-trending-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--dl-text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.dl-trending-stats {
  display: flex;
  gap: 10px;
}

.dl-trending-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--dl-text-muted, #9ca3af);
    color: #4b5563 !important;
}
.dl-trending-stat.dl-trending-rating {
    color: #4b5563 !important;
}

.dl-trending-rating svg {
  color: #fbbf24;
}

.dl-trending-arrow {
  color: var(--dl-text-muted, #9ca3af);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.dl-trending-item:hover .dl-trending-arrow {
  opacity: 1;
}

/* What's New Widget */
.dl-whatsnew-widget {
  border-color: rgba(16, 185, 129, 0.3);
}

.dl-whatsnew-content {
  padding: 14px;
}

.dl-whatsnew-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dl-whatsnew-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border-radius: 12px;
  border: 1px solid var(--dl-border-light, #eef2f7);
}

.dl-whatsnew-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-whatsnew-stat-icon.dl-stat-new {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.dl-whatsnew-stat-icon.dl-stat-updated {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.dl-whatsnew-stat-info {
  display: flex;
  flex-direction: column;
}

.dl-whatsnew-stat-number {
  font-size: 18px;
  font-weight: 900;
  color: var(--dl-text-primary, #111827);
  line-height: 1.2;
}

.dl-whatsnew-stat-label {
  font-size: 10px;
    color: #4b5563 !important;
  font-weight: 600;
}

.dl-whatsnew-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.dl-whatsnew-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dl-whatsnew-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.dl-whatsnew-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dl-whatsnew-badge.dl-badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.dl-whatsnew-badge.dl-badge-updated {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.dl-whatsnew-badge.dl-badge-default {
  background: var(--dl-border, #e5e7eb);
  color: var(--dl-text-secondary, #6b7280);
}

.dl-whatsnew-title {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--dl-text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-whatsnew-time {
  font-size: 10px;
    color: #4b5563 !important;
  flex-shrink: 0;
}

.dl-whatsnew-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border: 1px solid var(--dl-border, #e5e7eb);
  border-radius: 12px;
  color: var(--primary-color, #5865f2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dl-whatsnew-view-all:hover {
  background: var(--primary-color, #5865f2);
  border-color: var(--primary-color, #5865f2);
  color: #fff;
}

/* Popular Tags Widget */
.dl-tags-content {
  padding: 14px;
}

.dl-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border: 1px solid var(--dl-border, #e5e7eb);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dl-text-secondary, #6b7280);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dl-tag-item:hover {
  background: var(--primary-color, #5865f2);
  border-color: var(--primary-color, #5865f2);
  color: #fff;
}

.dl-tag-item:hover .dl-tag-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.dl-tag-count {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
    background: #d1d5db;
    color: #374151 !important;
}

/* History Widget */
.dl-clear-history-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dl-clear-history-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.dl-history-list {
  max-height: 260px;
  overflow-y: auto;
}

.dl-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  color: var(--dl-text-muted, #9ca3af);
}

.dl-history-empty p {
  margin: 10px 0 4px;
    color: #374151 !important;
    font-weight: 700;
  font-size: 13px;
}

.dl-history-empty span {
  font-size: 11px;
    color: #4b5563 !important;
}

.dl-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--dl-border-light, #eef2f7);
  transition: background 0.2s ease;
}

.dl-history-item:last-child {
  border-bottom: none;
}

.dl-history-item:hover {
  background: var(--dl-bg-tertiary, #f9fafb);
}

.dl-history-num {
  width: 20px;
  height: 20px;
  background: var(--dl-bg-tertiary, #f9fafb);
  border: 1px solid var(--dl-border, #e5e7eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--dl-text-muted, #9ca3af);
  flex-shrink: 0;
}

.dl-history-info {
  flex: 1;
  min-width: 0;
}

.dl-history-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dl-text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-history-time {
  font-size: 10px;
  color: var(--dl-text-muted, #9ca3af);
}

.dl-history-arrow {
  color: var(--dl-text-muted, #9ca3af);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.dl-history-item:hover .dl-history-arrow {
  opacity: 1;
}
/* ========================================
   SIDEBAR V2 - STICKY SCROLLABLE STYLE
   Matches popular.php sidebar design
======================================== */

/* Sidebar Scrollable Container */
.dl-sidebar.dl-sidebar-scrollable {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.dl-sidebar.dl-sidebar-scrollable::-webkit-scrollbar {
    width: 6px;
}

.dl-sidebar.dl-sidebar-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.dl-sidebar.dl-sidebar-scrollable::-webkit-scrollbar-thumb {
    background: var(--pop-border-2, #d1d5db);
    border-radius: 3px;
}

.dl-sidebar.dl-sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--pop-border-1, #9ca3af);
}

.dl-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 4px;
}

/* ========================================
   SORT BY WIDGET
======================================== */
.dl-sortby-widget .dl-widget-header-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(147, 197, 253, 0.7) 100%);
    border-bottom-color: rgba(59, 130, 246, 0.25);
}

.dl-sortby-content {
    padding: 8px !important;
}

.dl-sortby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--dl-text-secondary, #6b7280);
    font-weight: 600;
    font-size: 14px;
}

.dl-sortby-item:last-child {
    margin-bottom: 0;
}

.dl-sortby-item:hover {
    background: var(--dl-bg-tertiary, #f9fafb);
    color: var(--dl-text-primary, #111827);
}

.dl-sortby-item.active {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.dl-sortby-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-sortby-left svg {
    flex-shrink: 0;
}

.dl-sortby-arrow {
    color: var(--dl-text-muted, #9ca3af);
    opacity: 0;
    transition: all 0.2s ease;
}

.dl-sortby-item:hover .dl-sortby-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.dl-sortby-item.active .dl-sortby-arrow {
    opacity: 1;
    color: #92400e;
}

/* Dark Mode Sort By */
body.dark-mode .dl-sortby-item:hover {
    background: #1f2937;
}

body.dark-mode .dl-sortby-item.active {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fef3c7;
}

/* ========================================
   TOP CATEGORIES WIDGET - SCROLLABLE
======================================== */
.dl-topcats-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--pop-border-2, #d1d5db) transparent;
}

.dl-topcats-scroll::-webkit-scrollbar {
    width: 4px;
}

.dl-topcats-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dl-topcats-scroll::-webkit-scrollbar-thumb {
    background: var(--pop-border-2, #d1d5db);
    border-radius: 2px;
}

.dl-topcat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--dl-text-secondary, #6b7280);
    font-weight: 600;
    font-size: 13px;
}

.dl-topcat-item:last-child {
    margin-bottom: 0;
}

.dl-topcat-item:hover {
    background: var(--dl-bg-tertiary, #f9fafb);
    color: var(--primary-color, #4B5EAA);
}

.dl-topcat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-topcat-left svg {
    flex-shrink: 0;
    color: var(--dl-text-muted, #9ca3af);
}

.dl-topcat-count {
    background: var(--dl-bg-tertiary, #f3f4f6);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--header-text, #111827);
    flex-shrink: 0;
}

/* ========================================
   TOP DOWNLOADS WIDGET
======================================== */


.dl-topdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
}

.dl-topdown-item:last-child {
    margin-bottom: 0;
}

.dl-topdown-item:hover {
    background: var(--dl-bg-tertiary, #f9fafb);
}

.dl-topdown-rank {
    font-size: 18px;
    width: 32px;
    text-align: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dl-topdown-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--dl-bg-tertiary, #f9fafb);
    overflow: hidden;
    flex-shrink: 0;
}

.dl-topdown-thumb img,
.dl-topdown-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dl-topdown-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dl-topdown-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-topdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dl-text-primary, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.dl-topdown-item:hover .dl-topdown-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Dark Mode Top Downloads */
body.dark-mode .dl-topdown-item:hover {
    background: #1f2937;
}
body.dark-mode .page-body h2,
body.dark-mode .page-title,
body.dark-mode .page-body p,
body.dark-mode .page-body ol li,
body.dark-mode .page-body ul li,
body.dark-mode .page-body ol li,
body.dark-mode .page-body ul li,
body.dark-mode .dl-topdown-title {
    color: #f9fafb;
}

body.dark-mode .dl-topdown-thumb {
    background: #374151;
}

/* ========================================
   WIDGET HEADER COLORS
======================================== */
.dl-widget-header-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(147, 197, 253, 0.5) 100%);
    border-bottom-color: rgba(59, 130, 246, 0.25);
}

.dl-widget-header-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(196, 181, 253, 0.5) 100%);
    border-bottom-color: rgba(139, 92, 246, 0.25);
}

body.dark-mode .dl-widget-header-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
}

body.dark-mode .dl-widget-header-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
}

body.dark-mode .dl-widget-header-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

/* ========================================
   SIDEBAR RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .dl-sidebar.dl-sidebar-scrollable {
        position: static;
        max-height: none;
        overflow: visible;
    }
    
    .dl-sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-right: 0;
    }
    
    .dl-topcats-scroll {
        max-height: 200px;
    }
}

/* Archives Content */
.dl-archives-content {
    padding: 12px;
    max-height: 350px;
    overflow-y: auto;
}

/* Year Block */
.dl-archive-year {
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.dl-archive-year:last-child {
    margin-bottom: 0;
}

/* Year Header */
.dl-archive-year-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 8px;
}

.dl-archive-year-header:hover {
    background: #f3f4f6;
}

.dl-archive-year-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.dl-archive-year-open .dl-archive-year-toggle {
    transform: rotate(180deg);
}

.dl-archive-year-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.dl-archive-year-count {
    background: #21008a;
    color: #fff;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Months Container */
.dl-archive-months {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* Month Item */
.dl-archive-month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 32px;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.dl-archive-month:last-child {
    border-bottom: none;
}

.dl-archive-month:hover {
    background: #f5f3ff;
    color: #7c3aed;
}

.dl-archive-month-name {
    font-weight: 500;
}

.dl-archive-month-count {
    background: #d1d5db;
    color: #374151 !important;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dl-archive-month:hover .dl-archive-month-count {
    background: #8b5cf6;
    color: #fff;
}

/* Scrollbar for Archives */
.dl-archives-content::-webkit-scrollbar {
    width: 4px;
}

.dl-archives-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.dl-archives-content::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 4px;
}

.dl-archives-content::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}
.dl-header-shortcode-area {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 12px 0;
}
/* Sidebar Responsive */
@media (max-width: 1024px) {
  .dl-layout { 
    grid-template-columns: 1fr; 
  }
  
  .dl-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .dl-sidebar { 
    grid-template-columns: 1fr; 
  }
  
  .dl-whatsnew-stats {
    grid-template-columns: 1fr;
  }
    .dl-sidebar-inner {
        grid-template-columns: 1fr;
    }
    .dl-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }
    
    .dl-footer-links-column {
        text-align: center;
    }
    
    .dl-footer-heading {
        display: block;
        text-align: center;
    }
    
    .dl-footer-links a:hover {
        padding-left: 0;
    }
    
    .dl-footer-stats {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }
    
    .dl-footer-stat {
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .dl-footer-stat:nth-child(3),
    .dl-footer-stat:nth-child(4) {
        border-bottom: none;
    }
    
    .dl-footer-stat svg {
        width: 28px;
        height: 28px;
    }
    
    .dl-footer-stat-number {
        font-size: 18px;
    }
    
    .dl-footer-stat-label {
        font-size: 11px;
    }
    
    .dl-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-bottom: 100px;
    }
    
    .dl-footer-badges {
        justify-content: center;
    }
    
    .dl-footer-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
    .back-to-top {
        bottom: 7rem;
        right: 1.5rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .arrow-up {
        width: 1.8rem;
        height: 1.8rem;
    }
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    .left-sidebar {
        transform: translateX(-100%);
        top: 5rem;
        height: calc(100% - 5rem - 60px);
        overflow-y: auto;
        width: 280px;
    }

    .left-sidebar.show {
        transform: translateX(0);
    }
    
    .left-sidebar-close {
        display: flex;
    }
    
    .slide-menu-toggle {
        display: none !important;
    }
    
    body.slide-menu-enabled .left-sidebar {
        transform: translateX(-100%);
    }
    
    body.slide-menu-enabled .left-sidebar.show {
        transform: translateX(0);
    }
    
    body.slide-menu-enabled .content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .page-content {
        padding: 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-body h2 {
        font-size: 1.8rem;
    }

    .page-body h3 {
        font-size: 1.6rem;
    }

    .page-body ol li,
    .page-body p,
    .page-body ul li {
        font-size: 1.4rem;
    }
	    
    .nav-menu {
        display: none;
    }

    .user-actions {
        margin-left: auto;
    }
    .dl-top-bar {
        height: auto;
        padding: 4px 0;
    }
    
    .dl-top-container {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .dl-top-left {
        flex-wrap: wrap;
    }
    
    .dl-top-divider {
        display: none;
    }
    
    .dl-join-text {
        display: none;
    }
    
    .dl-mobile-menu-btn,
    .dl-mobile-search-btn,
    .dl-mobile-contact {
        display: flex;
    }

    .dl-header-container {
        padding: 0 10px;
        gap: 6px;
    }

    .dl-search-container {
        display: none;
    }

    .dl-header-actions {
        gap: 4px;
    }

    .dl-mobile-menu-btn,
    .dl-mobile-search-btn,
    .dl-favorites-btn,
    .dl-favorites-link-btn,
    .dl-theme-btn {
        width: 34px;
        height: 34px;
    }

    .dl-logo-area img,
    .dl-logo-area .custom-logo {
        max-height: 32px;
    }

    .dl-site-title {
        font-size: 18px;
    }
    
    /* Quick Links Bar Mobile */
    .dl-quick-links-bar {
        padding: 5px 0;
    }
    
    .dl-quick-links-container {
        justify-content: flex-start;
        gap: 3px;
        padding: 0 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .dl-quick-link {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .dl-quick-link span:not(.dl-quick-badge):not(.dl-quick-count):not(.dl-favorites-count-mini):not(.dl-badge-fire) {
        display: none;
    }
    
    .dl-quick-count,
    .dl-quick-badge,
    .dl-badge-fire {
        display: inline-flex !important;
    }
    
    .dl-quick-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Keep text visible for important links */
    .dl-quick-link-free span,
    .dl-quick-link-vip span,
    .dl-quick-link-hot span,
    .dl-quick-link-favorites span {
        display: inline;
    }
    
    .dl-header-visitors {
        display: none;
    }
}

/* Dark Mode Sidebar */

body.dark-mode .page-content,
body.dark-mode .dl-sidebar-widget {
  background: #111827;
  border-color: #1f2937;
}
body.dark-mode .dl-archive-year-name,
body.dark-mode .dl-archive-month-name {
    color: #ffffff;
}
body.dark-mode .dl-archive-month:hover,
body.dark-mode .dl-archive-year-header:hover {
    background: #141946;
}

body.dark-mode .dl-archive-months,
body.dark-mode .dl-archive-year-header,
body.dark-mode .dl-widget-header {
  background: linear-gradient(180deg, #1f2937, #111827);
  border-bottom-color: #374151;
}

body.dark-mode .dl-widget-title {
  color: #f9fafb;
}

body.dark-mode .dl-trending-item:hover,
body.dark-mode .dl-whatsnew-item:hover,
body.dark-mode .dl-history-item:hover,
body.dark-mode .dl-categories-list a:hover,
body.dark-mode .dl-favorite-item:hover {
  background: #1f2937;
}

body.dark-mode .dl-trending-name,
body.dark-mode .dl-whatsnew-title,
body.dark-mode .dl-history-title,
body.dark-mode .dl-favorite-title,
body.dark-mode .dl-whatsnew-stat-number {
  color: #f9fafb;
}

body.dark-mode .dl-cat-name {
  color: #d1d5db;
}

body.dark-mode .dl-tag-item {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

body.dark-mode .dl-tag-item:hover {
  background: var(--primary-color, #5865f2);
  border-color: var(--primary-color, #5865f2);
  color: #fff;
}