/* ========================================
   DIGITAL STACK HUB - PREMIUM ULTRA DESIGN
   Version: 5.0.0 - MOBILE OPTIMIZED
   Description: Extreme mobile-first design for 80% mobile users
   ======================================== */

/* ----------------------------------------
   1. CSS VARIABLES
   ---------------------------------------- */
:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Secondary Colors */
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;

    /* Neutral Colors */
    --dark: #0f172a;
    --dark-800: #1e293b;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-200: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #10b981, #059669);
    --gradient-3: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-4: linear-gradient(135deg, #3b82f6, #6366f1);
    --gradient-5: linear-gradient(135deg, #ec4899, #8b5cf6);
    --gradient-6: linear-gradient(135deg, #06b6d4, #3b82f6);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --container-max: 1280px;
    --container-padding: 1rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ----------------------------------------
   2. RESET & BASE
   ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-500);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { color: var(--gray-500); line-height: 1.6; }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Backgrounds - FIXED */
.features { background: #1E293B; }
.recent-resources { background: #1E293B; }
.pricing { background: #1E293B; }
.testimonials { background: #0f172a; }
.blog-section { background: #0f172a; }
.categories { background: #0f172a; }
.comprehensive-resources { background: #0f172a; }
.cta { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.light-mode .features,
.light-mode .recent-resources,
.light-mode .pricing {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.light-mode .testimonials,
.light-mode .blog-section,
.light-mode .categories,
.light-mode .comprehensive-resources {
    background: #f8fafc;
}

/* Section Spacing - FIXED */
section {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-400);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-500);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(99,102,241,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Hero Buttons - MOBILE FIXED */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .hero-buttons .btn {
        width: auto;
        min-width: 140px;
        flex: 1;
    }
}

/* Currency Badge */
.currency-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin: 1.5rem auto 0;
    font-size: 0.875rem;
    width: fit-content;
}

/* Hero Stats - MOBILE FIXED (SIDE BY SIDE) */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .stat-item h3 {
        font-size: 1.25rem;
    }
}

.stat-item p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
    white-space: nowrap;
}

/* ===== GRIDS - MOBILE FIRST ===== */
.showcase-grid,
.features-grid,
.categories-grid,
.resources-grid,
.pricing-grid,
.testimonials-grid,
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Tablet */
@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .showcase-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .showcase-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== CARDS ===== */
.showcase-card,
.feature-card,
.category-card,
.resource-card,
.testimonial-card,
.blog-card,
.pricing-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.light-mode .showcase-card,
.light-mode .feature-card,
.light-mode .category-card,
.light-mode .resource-card,
.light-mode .testimonial-card,
.light-mode .blog-card,
.light-mode .pricing-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

.showcase-card:hover,
.feature-card:hover,
.category-card:hover,
.resource-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
}

/* Card Icon */
.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .card-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }
}

/* Category Cards */
.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.category-card .card-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.light-mode .category-info h4 {
    color: #0f172a;
}

.category-info p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.category-arrow {
    color: var(--primary-500);
    opacity: 0.5;
    transition: all 0.3s;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Mobile Category Cards - FIXED */
@media (max-width: 640px) {
    .category-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }
    .category-arrow {
        transform: none;
    }
    .category-card:hover .category-arrow {
        transform: translateX(5px);
    }
}

/* Resource Cards */
.resource-image {
    height: 160px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-placeholder {
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.resource-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.resource-meta i {
    margin-right: 0.25rem;
    color: var(--primary-500);
}

/* Resource Link Button - FIXED */
.resource-link {
    display: inline-block;
    background: var(--primary-500);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 0.75rem;
}

.resource-link:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Feature Cards with Stats */
.feature-stats {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.light-mode .feature-stats {
    border-top-color: #E2E8F0;
}

.feature-stats strong {
    font-size: 1.5rem;
    color: var(--primary-500);
    line-height: 1;
}

.feature-stats span {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Featured Cards */
.feature-card.featured,
.pricing-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(#1E293B, #1E293B) padding-box,
                linear-gradient(135deg, #6366f1, #8b5cf6) border-box;
    position: relative;
    z-index: 2;
}

.light-mode .feature-card.featured,
.light-mode .pricing-card.featured {
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                linear-gradient(135deg, #6366f1, #8b5cf6) border-box;
}

.feature-badge,
.popular-badge {
    position: absolute;
    top: -0.75rem;
    right: 1.25rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pricing */
.price {
    margin: 1.25rem 0;
}

.currency-symbol {
    font-size: 1.25rem;
    color: #94a3b8;
    vertical-align: top;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #94a3b8;
}

.features-list {
    list-style: none;
    margin: 1.25rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #334155;
}

.light-mode .features-list li {
    border-bottom-color: #E2E8F0;
}

.features-list i {
    color: #10b981;
}

/* Testimonials */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0.03;
    border-radius: 50%;
    filter: blur(80px);
}

.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    font-family: serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.2;
    line-height: 1;
}

.stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.author-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.author-info p {
    font-size: 0.75rem;
    margin: 0;
}

/* Blog Cards */
.blog-image {
    height: 160px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.blog-meta i {
    margin-right: 0.25rem;
    color: var(--primary-500);
}

/* CTA Section - FIXED */
.cta {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: white;
}

.cta p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    .cta-buttons .btn {
        flex: 1;
        min-width: 140px;
    }
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-500);
}

/* CTA Features - FIXED (SIDE BY SIDE) */
.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-features {
        flex-direction: row;
        gap: 1rem;
    }
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .cta-features span {
        font-size: 0.75rem;
    }
}

.cta-features i {
    color: #10b981;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.section-footer .btn {
    display: inline-flex;
    width: auto;
    min-width: 200px;
}

@media (max-width: 480px) {
    .section-footer .btn {
        width: 100%;
    }
}

/* Utilities */
.text-center { text-align: center; }
/* ===== HOMEPAGE ONLY STYLES - PREVENT DASHBOARD LEAKS ===== */
body:not(.dashboard-page) .dashboard-container,
body:not(.dashboard-page) .mobile-header,
body:not(.dashboard-page) .mobile-tabs,
body:not(.dashboard-page) .sidebar,
body:not(.dashboard-page) .dashboard-layout,
body:not(.dashboard-page) .main-content[class*="dashboard"],
body:not(.dashboard-page) [class*="dashboard-"] {
    display: none !important;
}

/* Ensure homepage sections are visible */
body:not(.dashboard-page) section {
    display: block !important;
}

/* Fix any dashboard styles affecting homepage */
body:not(.dashboard-page) .container {
    max-width: 1280px !important;
    padding: 0 1rem !important;
}

body:not(.dashboard-page) .stats-grid,
body:not(.dashboard-page) .quick-actions,
body:not(.dashboard-page) .modern-card {
    all: revert;
}

/* Force homepage sections to be visible */
body:not(.dashboard-page) .hero,
body:not(.dashboard-page) .comprehensive-resources,
body:not(.dashboard-page) .features,
body:not(.dashboard-page) .categories,
body:not(.dashboard-page) .recent-resources,
body:not(.dashboard-page) .pricing,
body:not(.dashboard-page) .testimonials,
body:not(.dashboard-page) .blog-section,
body:not(.dashboard-page) .cta {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== FULLY RESPONSIVE STEP 1 STYLES ===== */

/* Form Sections */
.form-section {
    background: var(--bg-card, white);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border, #e2e8f0);
    color: var(--text-primary, #0f172a);
}

.title-icon {
    font-size: 20px;
}

.badge {
    background: var(--primary, #6366f1);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 10px;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

/* Niche Grid - Fully Responsive */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.niche-category {
    background: var(--bg-hover, #f8fafc);
    border-radius: 16px;
    padding: 16px;
}

.niche-category.full-width {
    grid-column: 1 / -1;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-secondary, #334155);
}

.niche-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.niche-option {
    cursor: pointer;
}

.niche-option input {
    display: none;
}

.option-content {
    display: block;
    padding: 8px 10px;
    background: var(--bg-card, white);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.niche-option input:checked + .option-content {
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    color: white;
    box-shadow: 0 4px 10px -2px rgba(99, 102, 241, 0.4);
}

/* Form Row - Responsive */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #334155);
}

/* Form Inputs */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--bg-input, white);
    color: var(--text-primary, #0f172a);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary, #6366f1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Price Input */
.price-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-input, white);
}

.price-input-group:focus-within {
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.currency-symbol {
    padding: 0 15px;
    font-size: 18px;
    font-weight: 600;
    background: var(--bg-hover, #f1f5f9);
    color: var(--text-secondary, #334155);
    line-height: 48px;
    border-right: 2px solid var(--border, #e2e8f0);
}

.price-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    font-size: 16px;
    font-weight: 500;
}

.price-input:focus {
    box-shadow: none !important;
}

/* Benefits Container */
.benefits-container {
    margin-bottom: 15px;
}

.benefit-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.benefit-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 16px;
    font-size: 14px;
    background: var(--bg-input, white);
    color: var(--text-primary, #0f172a);
    transition: all 0.2s;
}

.benefit-input:focus {
    border-color: var(--primary, #6366f1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.remove-benefit {
    width: 44px;
    height: 44px;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 16px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-benefit:hover {
    background: #ef4444;
    color: white;
}

.add-benefit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px dashed var(--border, #e2e8f0);
    border-radius: 40px;
    background: none;
    color: var(--primary, #6366f1);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}

.add-benefit-btn:hover {
    border-color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.05);
}

.plus-icon {
    font-size: 18px;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn-secondary,
.btn-primary {
    padding: 14px 28px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--bg-hover, #f1f5f9);
    color: var(--text-secondary, #334155);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.6);
}

.btn-secondary:hover {
    background: var(--border, #e2e8f0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 16px;
        flex-wrap: wrap;
    }
    
    .badge {
        margin-left: 0;
        width: 100%;
    }
    
    .niche-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .niche-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-content {
        white-space: normal;
        font-size: 11px;
        padding: 8px 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .price-input-group {
        width: 100%;
    }
    
    .benefit-row {
        flex-wrap: wrap;
    }
    
    .remove-benefit {
        width: 100%;
    }
    
    .add-benefit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }
    
    .niche-options {
        grid-template-columns: 1fr;
    }
    
    .niche-category {
        padding: 12px;
    }
    
    .option-content {
        text-align: left;
        padding: 10px 15px;
    }
    
    .benefit-input {
        font-size: 13px;
    }
    
    .currency-symbol {
        padding: 0 12px;
    }
}

/* Dark Mode Support */
.dark-mode .form-section {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .section-title {
    border-bottom-color: #334155;
    color: #f8fafc;
}

.dark-mode .niche-category {
    background: #0f172a;
}

.dark-mode .option-content {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .form-input,
.dark-mode .form-textarea,
.dark-mode .form-select,
.dark-mode .benefit-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .price-input-group {
    background: #0f172a;
    border-color: #334155;
}

.dark-mode .currency-symbol {
    background: #1e293b;
    color: #94a3b8;
    border-right-color: #334155;
}

.dark-mode .btn-secondary {
    background: #334155;
    color: #e2e8f0;
}

.dark-mode .btn-secondary:hover {
    background: #475569;
}

/**
 * Ad Styles for Digital Stack Hub
 * Add these styles to your existing main.css file
 */

/* ===== Ad Container Styles ===== */
.dsh-ad-container {
    margin: 20px 0;
    padding: 15px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dsh-ad-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dsh-ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.dsh-ad-container a {
    text-decoration: none;
    display: inline-block;
}

/* ===== Position Styles ===== */
.dsh-ad-container.dsh-ad-position-left {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 300px;
}

.dsh-ad-container.dsh-ad-position-right {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
}

.dsh-ad-container.dsh-ad-position-center {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.dsh-ad-container.dsh-ad-position-top {
    margin-top: 0;
}

.dsh-ad-container.dsh-ad-position-bottom {
    margin-bottom: 0;
}

.dsh-ad-container.dsh-ad-position-middle {
    margin: 30px auto;
}

/* ===== Ad Type Specific Styles ===== */
.dsh-ad-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.dsh-ad-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    animation: dshPopupFadeIn 0.3s ease;
}

@keyframes dshPopupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.dsh-ad-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.dsh-ad-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsh-ad-code {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.dsh-ad-text {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #4F46E5;
    border-radius: 4px;
    text-align: left;
}

.dsh-ad-text p {
    margin: 0 0 10px 0;
    color: #4a5568;
    line-height: 1.6;
}

.dsh-ad-text p:last-child {
    margin-bottom: 0;
}

/* ===== Ad Description ===== */
.dsh-ad-description {
    font-size: 13px;
    color: #718096;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

/* ===== Sidebar Ad Styles ===== */
.widget-area .dsh-ad-container {
    margin: 0 0 25px 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.widget-area .dsh-ad-container img {
    width: 100%;
    border-radius: 8px;
}

/* ===== Header Ad Styles ===== */
.site-header .dsh-ad-container {
    margin: 0;
    padding: 10px 0;
    background: transparent;
    box-shadow: none;
}

.dsh-ad-header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    text-align: center;
}

.dsh-ad-header-top .dsh-ad-description {
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* ===== Footer Ad Styles ===== */
.site-footer .dsh-ad-container {
    margin: 0;
    padding: 15px 0;
    background: transparent;
    box-shadow: none;
}

.site-footer .dsh-ad-container img {
    max-width: 100%;
    border-radius: 6px;
}

/* ===== Floating Ad Styles ===== */
.dsh-ad-floating-left,
.dsh-ad-floating-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    max-width: 200px;
    animation: dshFloatingPulse 2s infinite;
}

.dsh-ad-floating-left {
    left: 20px;
}

.dsh-ad-floating-right {
    right: 20px;
}

@keyframes dshFloatingPulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.dsh-ad-floating-left:hover,
.dsh-ad-floating-right:hover {
    animation: none;
    transform: translateY(-50%) scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== Between Posts Ad Styles ===== */
.dsh-ad-between-posts {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f6f5ff 0%, #f0f0ff 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e7ff;
}

.dsh-ad-between-posts .dsh-ad-title {
    font-size: 18px;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 15px;
}

/* ===== In-Content Ad Styles ===== */
.dsh-ad-in-content {
    margin: 30px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .dsh-ad-floating-left,
    .dsh-ad-floating-right {
        max-width: 150px;
    }
    
    .dsh-ad-floating-left {
        left: 10px;
    }
    
    .dsh-ad-floating-right {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .dsh-ad-container.dsh-ad-position-left,
    .dsh-ad-container.dsh-ad-position-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .dsh-ad-floating-left,
    .dsh-ad-floating-right {
        display: none; /* Hide floating ads on mobile */
    }
    
    .dsh-ad-popup {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dsh-ad-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    .dsh-ad-video {
        padding-bottom: 75%; /* 4:3 for mobile */
    }
}

/* ===== Loading States ===== */
.dsh-ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: dshShimmer 1.5s infinite;
    min-height: 100px;
    border-radius: 8px;
}

@keyframes dshShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Error States ===== */
.dsh-ad-error {
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #fecaca;
}

/* ===== Print Styles ===== */
@media print {
    .dsh-ad-container,
    .dsh-ad-floating-left,
    .dsh-ad-floating-right,
    .dsh-ad-popup {
        display: none !important;
    }
}

/* ========================================
   SIDEBAR STYLES - PREMIUM DESIGN
   ======================================== */

/* Sidebar Layout */
.premium-sidebar {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .premium-sidebar {
        margin-left: 30px;
    }
}

.sidebar-inner {
    position: relative;
    z-index: 1;
}

/* Sidebar Widgets Container */
.sidebar-widgets,
.sidebar-widgets-sticky {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Modern Widget Card */
.modern-widget {
    background: var(--bg-card, #1E293B);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-xl, 1.5rem);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.light-mode .modern-widget {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.modern-widget:hover {
    transform: translateY(-2px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15);
}

/* Widget Title */
.modern-widget .widget-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    color: var(--text-primary, #f8fafc);
}

.light-mode .modern-widget .widget-title {
    color: var(--dark);
}

.modern-widget .widget-title .title-bg {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.modern-widget .widget-title .title-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
}

/* Sticky Widget */
.sticky-widget {
    position: sticky;
    top: 100px;
}

/* Widget Content */
.modern-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #334155);
}

.light-mode .modern-widget li {
    border-bottom-color: #E2E8F0;
}

.modern-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modern-widget a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-widget a:hover {
    color: var(--primary-500);
    transform: translateX(5px);
}

.modern-widget a i {
    color: var(--primary-500);
    font-size: 0.875rem;
}

/* Search Widget */
.modern-widget .search-form {
    display: flex;
    gap: 10px;
}

.modern-widget .search-form label {
    flex: 1;
}

.modern-widget .search-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input, #0f172a);
    border: 2px solid var(--border-color, #334155);
    border-radius: var(--radius-full);
    color: var(--text-primary, #f8fafc);
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.light-mode .modern-widget .search-field {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: var(--dark);
}

.modern-widget .search-field:focus {
    border-color: var(--primary-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-widget .search-submit {
    padding: 12px 24px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-widget .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Category Widget */
.modern-widget .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-widget .cat-item a {
    flex: 1;
}

.modern-widget .cat-count {
    background: var(--bg-hover, #334155);
    color: var(--text-secondary, #94a3b8);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.light-mode .modern-widget .cat-count {
    background: #F1F5F9;
    color: #64748B;
}

/* Tag Cloud */
.modern-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-widget .tag-cloud-link {
    background: var(--bg-hover, #334155);
    color: var(--text-secondary, #94a3b8);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem !important;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.light-mode .modern-widget .tag-cloud-link {
    background: #F1F5F9;
    color: #475569;
}

.modern-widget .tag-cloud-link:hover {
    background: var(--gradient-1);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Recent Posts */
.modern-widget .recent-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-widget .recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #334155);
}

.light-mode .modern-widget .recent-post-item {
    border-bottom-color: #E2E8F0;
}

.modern-widget .recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.modern-widget .recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.modern-widget .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-widget .recent-post-content {
    flex: 1;
}

.modern-widget .recent-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary, #f8fafc);
    line-height: 1.4;
}

.light-mode .modern-widget .recent-post-title {
    color: var(--dark);
}

.modern-widget .recent-post-meta {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

.modern-widget .recent-post-meta i {
    margin-right: 4px;
    color: var(--primary-500);
}

/* Newsletter Widget */
.modern-widget .newsletter-form {
    margin-top: 15px;
}

.modern-widget .newsletter-form p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.modern-widget .newsletter-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input, #0f172a);
    border: 2px solid var(--border-color, #334155);
    border-radius: var(--radius-full);
    color: var(--text-primary, #f8fafc);
    font-size: 0.9375rem;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.light-mode .modern-widget .newsletter-input {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: var(--dark);
}

.modern-widget .newsletter-input:focus {
    border-color: var(--primary-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-widget .newsletter-button {
    width: 100%;
    padding: 12px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modern-widget .newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Social Links Widget */
.modern-widget .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modern-widget .social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-hover, #334155);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #94a3b8);
    font-size: 1.125rem;
    transition: all 0.3s;
}

.light-mode .modern-widget .social-link {
    background: #F1F5F9;
}

.modern-widget .social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Call to Action Widget */
.modern-widget .cta-widget {
    text-align: center;
}

.modern-widget .cta-widget h4 {
    color: var(--text-primary, #f8fafc);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.light-mode .modern-widget .cta-widget h4 {
    color: var(--dark);
}

.modern-widget .cta-widget p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.modern-widget .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-1);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.modern-widget .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Advertisement Widget (Custom) */
.modern-widget .ad-widget {
    text-align: center;
}

.modern-widget .ad-widget img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.modern-widget .ad-widget img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modern-widget .ad-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Stats Widget */
.modern-widget .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.modern-widget .stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-hover, #334155);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.light-mode .modern-widget .stat-item {
    background: #F1F5F9;
}

.modern-widget .stat-item:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.modern-widget .stat-item:hover .stat-number,
.modern-widget .stat-item:hover .stat-label {
    color: white;
}

.modern-widget .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 5px;
    line-height: 1;
}

.modern-widget .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Ads Integration */
.widget-area .dsh-ad-container {
    background: var(--bg-card, #1E293B);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-xl, 1.5rem);
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.light-mode .widget-area .dsh-ad-container {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

.widget-area .dsh-ad-container:hover {
    border-color: var(--primary-500);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15);
}

.widget-area .dsh-ad-image {
    width: 100%;
    border-radius: var(--radius-lg);
}

.widget-area .dsh-ad-description {
    color: var(--text-secondary, #94a3b8);
    border-top-color: var(--border-color, #334155);
}

/* Sidebar Toggle for Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .premium-sidebar {
        max-width: 100%;
        margin: 40px 0 0;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .premium-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-card, #1E293B);
        z-index: 9999;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        margin: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .light-mode .premium-sidebar {
        background: #FFFFFF;
    }
    
    .premium-sidebar.active {
        right: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .premium-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modern-widget {
        padding: 20px;
    }
    
    .modern-widget .recent-post-item {
        flex-direction: column;
    }
    
    .modern-widget .recent-post-thumb {
        width: 100%;
        height: 120px;
    }
    
    .modern-widget .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* Content Layout */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.site-main {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

@media (min-width: 992px) {
    .site-main {
        flex: 0 1 calc(100% - 410px);
    }
}
/* ===== COVERING ISSUE FIX - ADD TO YOUR EXISTING CSS ===== */

/* 1. Reset any problematic positioning */
.dash-body,
.dashboard-layout,
.main-content,
.gallery-dashboard,
.chroma-dashboard,
.ascension-dashboard {
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 2. Kill any fixed overlays */
.fixed-overlay,
.modal-backdrop,
.overlay,
[class*="overlay"],
[class*="modal"]:not([class*="open"]) {
    display: none !important;
}

/* 3. Fix bottom nav spacing */
@media (max-width: 768px) {
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        height: auto;
        min-height: 70px;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Add safe area for content above bottom nav */
    .dashboard-content,
    .main-content,
    [class*="dashboard"] > *:last-child {
        margin-bottom: 80px !important;
        padding-bottom: 20px !important;
    }
}

/* 4. Emergency overlay killer */
.emergency-kill {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    display: block !important;
}

/* 5. Force all content to be visible */
body > *:not(script):not(style):not(link) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}