* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Green Theme - Fresh & Modern */
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-light: #D1FAE5;
    --primary-dark: #047857;

    /* Social Platform Colors */
    --facebook: #1877F2;
    --instagram: #E4405F;
    --twitter: #1DA1F2;
    --linkedin: #0A66C2;
    --tiktok: #000000;
    --youtube: #FF0000;

    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-hover: #F1F5F9;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Hide old gradient background */
.background-animation {
    display: none;
}

/* Navigation - Minimal Sidebar */
.navbar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70px;
    background: #FFFFFF;
    border-left: 1px solid #E0E0E0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.06);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.navbar:hover {
    width: 200px;
}

.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    padding: 1rem;
    border-bottom: 1px solid #E0E0E0;
    min-height: 70px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo span {
    display: none !important;
    white-space: nowrap;
}

.navbar:hover .logo {
    justify-content: flex-start;
    padding-left: 1rem;
}

.navbar:hover .logo span {
    display: inline-block !important;
}

.navbar:hover .logo svg {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    flex: 1;
}

.nav-link {
    color: #5F6368;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 8px;
    min-height: 44px;
}

.navbar:hover .nav-link {
    justify-content: flex-start;
    padding: 0.625rem 0.875rem;
}

.nav-link svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link span {
    display: none !important;
    white-space: nowrap;
}

.navbar:hover .nav-link span {
    display: inline-block !important;
}

.nav-link:hover {
    background: #F1F3F4;
    color: #202124;
    transform: translateX(-2px);
}

.nav-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-link.active svg {
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.user-profile {
    display: none;
}

/* Container */
body {
    padding-right: 70px;
    transition: padding-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ai-badge svg {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

/* AI Insights Banner */
.ai-insights-banner {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    animation: slideInUp 0.6s ease-out;
}

.ai-icon-large {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-insights-content {
    flex: 1;
}

.ai-insights-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ai-insights-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ai-insights-text strong {
    font-weight: 700;
    color: var(--primary);
}

.ai-timestamp {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.platform-filter, .time-filter {
    padding: 0.5rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.platform-filter:hover, .time-filter:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.platform-filter:focus, .time-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.15s ease;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.stat-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.25rem 0;
    letter-spacing: -0.02em;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 13px;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.change-icon {
    font-size: 14px;
}

.change-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-xs);
}

.chart-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.chart-card.large {
    grid-column: span 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    height: 280px;
}

/* Platform Breakdown */
.platform-breakdown {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.platform-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.15s ease;
    position: relative;
}

.platform-card:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.platform-icon.facebook {
    background: var(--facebook);
}

.platform-icon.instagram {
    background: var(--instagram);
}

.platform-icon.linkedin {
    background: var(--linkedin);
}

.platform-icon.tiktok {
    background: var(--tiktok);
}

.platform-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-stat .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.platform-stat .stat-value {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    font-weight: 600;
}

/* FOMO Elements */
.fomo-banner {
    background: linear-gradient(135deg, var(--warning-light) 0%, #FEF9E7 100%);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
}

.fomo-icon {
    width: 40px;
    height: 40px;
    background: var(--warning);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.fomo-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.fomo-content strong {
    color: var(--warning);
    font-weight: 700;
}

.fomo-action {
    padding: 0.5rem 1.25rem;
    background: var(--warning);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fomo-action:hover {
    background: #D97706;
    transform: scale(1.05);
}

/* Competitive Insights */
.competitive-insights {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.insights-grid-competitive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.insight-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.insight-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.insight-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-weight: 600;
    color: var(--text-primary);
}

.insight-value.highlight-warning {
    color: var(--warning);
}

.insight-value.highlight-success {
    color: var(--success);
}

.insight-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.comparison-your {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.comparison-your.warning {
    background: var(--warning);
}

.comparison-your.success {
    background: var(--success);
}

.comparison-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Demographics */
.demographics-section {
    margin-bottom: 1.5rem;
}

.demographics-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.demographic-chart {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
}

.demographic-chart canvas {
    max-height: 280px !important;
    height: 280px !important;
    width: 100% !important;
}

.demographic-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmerGlow {
    0% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }
}

/* Apply animations to elements */
.dashboard-header {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-insights-banner {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.stat-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.chart-card {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.platform-card {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:nth-child(1) { animation-delay: 0.5s; }
.platform-card:nth-child(2) { animation-delay: 0.6s; }
.platform-card:nth-child(3) { animation-delay: 0.7s; }
.platform-card:nth-child(4) { animation-delay: 0.8s; }

.platform-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.fomo-banner {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.competitive-insights {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

.demographics-card {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s backwards;
}

/* Stat value number animation */
.stat-value {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
    color: var(--primary);
}

/* Button animations */
.btn-primary, .btn-ghost {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-ghost::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before, .btn-ghost:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-ghost:hover {
    transform: translateY(-2px);
}

/* Platform icon pulse on hover */
.platform-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
    animation: shimmerGlow 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    body {
        padding-right: 0;
        padding-bottom: 65px;
    }

    .navbar {
        width: 100%;
        height: 65px;
        top: auto;
        bottom: 0;
        border-left: none;
        border-top: 1px solid #E0E0E0;
        flex-direction: row;
    }

    .navbar:hover {
        width: 100%;
    }

    .nav-container {
        flex-direction: row;
        padding: 0;
    }

    .logo {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        padding: 0.5rem;
        flex: 1;
        justify-content: space-around;
        gap: 0;
    }

    .nav-link {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 11px;
        border-radius: 8px;
    }

    .navbar:hover .nav-link {
        flex-direction: column;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }

    .nav-link svg {
        width: 22px;
        height: 22px;
    }

    .nav-link span {
        display: inline;
    }

    .navbar:hover .nav-link span {
        display: inline;
    }

    .user-profile {
        display: none;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .platform-filter, .btn-primary {
        width: 100%;
    }

    .ai-insights-banner {
        flex-direction: column;
        padding: 1.25rem;
    }

    .ai-insights-title {
        font-size: 1rem;
    }

    .ai-insights-text {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Analytics & Reports Page Styles */
.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.metrics-section, .content-performance, .audience-insights,
.quick-generate, .recent-reports, .scheduled-reports {
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-xs);
}

.metric-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.metric-trend.up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.metric-trend.down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.metric-chart {
    height: 60px;
    position: relative;
}

/* Content Performance */
.content-performance {
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.content-item {
    background: var(--bg-card);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.content-preview {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.content-type {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.content-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.content-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.content-stat svg {
    opacity: 0.6;
}

.content-platform {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-platform.instagram {
    background: linear-gradient(45deg, #f09433 0%, #dc2743 100%);
    color: white;
}

.content-platform.facebook {
    background: #1877f2;
    color: white;
}

.content-platform.linkedin {
    background: #0077b5;
    color: white;
}

/* Audience Insights */
.audience-insights {
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.insight-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.insight-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.geo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.geo-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    gap: 1rem;
    align-items: center;
}

.geo-country {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.geo-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.geo-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.geo-percent {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .geo-item {
        grid-template-columns: 100px 1fr 45px;
        gap: 0.75rem;
    }
}

/* Reports Page Styles */
.quick-generate {
    margin-bottom: 3rem;
}

.report-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.template-info {
    flex: 1;
}

.template-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.template-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-template {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-template:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.recent-reports, .scheduled-reports {
    margin-bottom: 3rem;
}

.reports-list, .schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-item, .schedule-item {
    background: var(--bg-card);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.report-item:hover, .schedule-item:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-sm);
}

.report-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.report-details, .schedule-info {
    flex: 1;
}

.report-name, .schedule-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.report-meta, .schedule-frequency {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.report-separator {
    color: var(--text-muted);
}

.report-date, .report-size, .report-format {
    white-space: nowrap;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.schedule-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status.active {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.schedule-status.paused {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

@media (max-width: 768px) {
    .report-templates {
        grid-template-columns: 1fr;
    }

    .report-item, .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Viral Content Section - FOMO-Inducing Design */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 0.25rem;
}

.content-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--border-medium);
    background: var(--bg-secondary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.viral-content-grid {
    display: grid;
    gap: 1.5rem;
}

.viral-post-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.viral-post-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.viral-post-card.viral-winner {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.viral-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: badge-pop 0.5s ease-out;
}

@keyframes badge-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.viral-badge.success {
    background: rgba(99, 102, 241, 0.95);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.viral-badge.info {
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.post-preview {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instagram-gradient {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.facebook-gradient {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.linkedin-gradient {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.post-type-icon {
    opacity: 0.2;
    transform: scale(1.5);
    transition: all 0.3s ease;
}

.viral-post-card:hover .post-type-icon {
    opacity: 0.3;
    transform: scale(1.7);
}

.post-overlay-stats {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
}

.overlay-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.post-content {
    padding: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.post-meta {
    flex: 1;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.post-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.viral-metrics {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.viral-score {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-label {
    display: flex;
    flex-direction: column;
}

.score-label strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.score-label span {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
}

.metric-pill svg {
    opacity: 0.6;
}

.metric-pill.engagement {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.metric-pill.reach {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light);
}

.metric-pill.velocity {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light);
}

.metric-pill.shares {
    border-color: var(--info);
    color: var(--info);
    background: var(--info-light);
}

.metric-pill.comments {
    border-color: var(--linkedin);
    color: var(--linkedin);
    background: #EFF8FF;
}

.competitive-insight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F0F9FF 100%);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 13px;
    color: var(--text-primary);
}

.competitive-insight svg {
    color: var(--primary);
    flex-shrink: 0;
}

.competitive-insight strong {
    font-weight: 700;
    color: var(--primary);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.action-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.action-btn.primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.action-btn.secondary:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.action-btn.icon-only {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.625rem;
}

.action-btn.icon-only:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

/* Settings Page Styles */
.settings-content {
    max-width: 900px;
}

.settings-section {
    margin-bottom: 3rem;
}

.settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.settings-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
}

.settings-card:hover {
    box-shadow: var(--shadow-sm);
}

.settings-card.danger-card {
    border-color: var(--danger);
    background: #FFF5F5;
}

.settings-item {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.settings-item-info {
    flex: 1;
}

.settings-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.settings-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.settings-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.settings-btn.danger {
    color: var(--danger);
    border-color: var(--danger);
}

.settings-btn.danger:hover {
    background: var(--danger);
    color: white;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .viral-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .content-filters {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .post-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
    }

    .action-btn.icon-only {
        flex: 0;
    }

    .metric-pills {
        justify-content: flex-start;
    }

    .overlay-stat {
        font-size: 12px;
        padding: 0.375rem 0.625rem;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-info {
        width: 100%;
    }

    .settings-btn {
        width: 100%;
    }
}

/* ========== ENHANCED REPORTS PAGE STYLES ========== */

/* Enhanced Template Cards */
.report-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.template-card-enhanced {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.template-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.template-badge.success {
    background: #6366F1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.template-badge.warning {
    background: var(--warning);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.template-card-enhanced .template-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.template-card-enhanced:hover .template-icon {
    transform: scale(1.1) rotate(-5deg);
}

.template-info-enhanced {
    flex: 1;
}

.template-info-enhanced .template-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.template-info-enhanced .template-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.template-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.template-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.template-stat svg {
    opacity: 0.6;
}

.btn-template-enhanced {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-template-enhanced:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Report Library Section */
.report-library {
    margin-bottom: 3rem;
}

.library-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    flex: 1;
    max-width: 400px;
    transition: all 0.15s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-dropdown {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
}

.filter-dropdown:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.view-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.view-toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.report-card-visual {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.report-card-visual:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.report-thumbnail {
    position: relative;
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.report-preview-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.report-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--text-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.report-type-badge.success {
    background: var(--success);
}

.report-card-content {
    padding: 1.5rem;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.report-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.report-date-badge {
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.report-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.report-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.report-metric {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.report-metric svg {
    opacity: 0.6;
}

.report-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Scheduled Reports */
.scheduled-reports-enhanced {
    margin-bottom: 3rem;
}

.schedule-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.schedule-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.schedule-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.schedule-card.paused-card {
    opacity: 0.7;
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-info-main {
    flex: 1;
}

.schedule-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.schedule-frequency-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.schedule-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.schedule-status-badge.active {
    background: var(--success-light);
    color: var(--success);
}

.schedule-status-badge.paused {
    background: var(--danger-light);
    color: var(--danger);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.schedule-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.schedule-countdown svg {
    color: var(--primary);
    flex-shrink: 0;
}

.schedule-countdown.paused svg {
    color: var(--text-muted);
}

.countdown-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-text strong {
    color: var(--primary);
    font-weight: 600;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.schedule-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.detail-value.success-rate {
    color: var(--success);
    font-weight: 600;
}

.schedule-actions-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.schedule-action-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.schedule-action-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.schedule-action-btn.primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.schedule-action-btn.danger {
    color: var(--danger);
    border-color: var(--danger);
}

.schedule-action-btn.danger:hover {
    background: var(--danger);
    color: white;
}

/* Responsive Design for Enhanced Reports */
@media (max-width: 1024px) {
    .report-templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .library-controls {
        flex-wrap: wrap;
    }
    
    .search-box {
        max-width: none;
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .report-templates-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .library-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-dropdown,
    .view-toggle-btn {
        width: 100%;
    }
    
    .schedule-card-header {
        flex-direction: column;
    }
    
    .schedule-status-badge {
        align-self: flex-start;
    }
    
    .schedule-actions-bar {
        flex-direction: column;
    }
    
    .schedule-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== FACEBOOK LEAD GENERATION STYLES ========== */

.facebook-leads-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease-out;
}

.fb-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.fb-lead-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
    position: relative;
}

.fb-lead-card:hover {
    background: var(--bg-primary);
    border-color: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.15);
    transform: translateY(-3px);
}

.fb-lead-card.highlight {
    background: linear-gradient(135deg, #EBF4FF 0%, #E8F1FF 100%);
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
}

.fb-lead-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.fb-lead-card:hover .fb-lead-icon {
    transform: scale(1.1) rotate(-5deg);
}

.fb-lead-content {
    flex: 1;
    min-width: 0;
}

.fb-lead-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fb-lead-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.25rem 0;
    letter-spacing: -0.02em;
}

/* Campaign List Styles */
.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.campaign-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.campaign-item:hover {
    background: var(--bg-primary);
    transform: translateX(4px);
}

.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campaign-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.campaign-meta {
    display: flex;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.campaign-leads {
    color: var(--primary);
    font-weight: 600;
}

.campaign-cpl {
    color: var(--success);
    font-weight: 600;
}

.campaign-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.campaign-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

/* Responsive adjustments for Facebook widgets */
@media (max-width: 1024px) {
    .fb-leads-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .fb-leads-grid {
        grid-template-columns: 1fr;
    }

    .fb-lead-card {
        flex-direction: row;
        align-items: center;
    }

    .campaign-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ========== CUSTOMIZATION MODAL STYLES ========== */

.customize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.customize-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.customize-panel {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.customize-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.customize-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.customize-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.customize-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.customize-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.customize-section {
    margin-bottom: 1.5rem;
}

.customize-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.widget-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.widget-toggle-item:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.widget-toggle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-toggle-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-toggle-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.customize-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for customization modal */
@media (max-width: 768px) {
    .customize-panel {
        width: 95%;
        max-height: 95vh;
    }

    .customize-header {
        padding: 1.25rem;
    }

    .customize-content {
        padding: 1.25rem;
    }

    .customize-footer {
        flex-direction: column-reverse;
        padding: 1rem 1.25rem;
    }

    .customize-footer .btn-primary,
    .customize-footer .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .widget-toggle-item {
        padding: 0.875rem;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}
