/* Design System */
:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #a78bfa; /* Brightened for better contrast on dark bg */
    --primary-light: #c4b5fd;
    --primary-dark: #8b5cf6;
    --secondary: #f472b6; /* Brightened pink */
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --accent-glow: rgba(167, 139, 250, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0; /* Lightened */
    --text-muted: #cbd5e1; /* Lightened for accessibility contrast */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --font-main: 'Outfit', sans-serif;
    --sidebar-width: 260px;
}

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

img, video, canvas {
    max-width: 100%;
    height: auto;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typography & Layout */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.btn-primary {
    color: white;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff; /* Improved visibility with white text on vibrant gradient */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Practical Steps Section */
.steps {
    padding: 80px 0;
}

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

.step-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: 10px;
    color: var(--primary);
    opacity: 0.4;
}

.step-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.step-card p {
    color: var(--text-secondary);
}

/* Features Grid */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Dashboard Layout */
.dashboard-layout {
    display: block;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12000;
    height: 100vh;
    pointer-events: auto !important;
}

.sidebar.collapsed {
    padding: 2rem 0.5rem;
    align-items: center;
    width: 80px;
}

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.nav-link i {
    margin-right: 1rem;
}

.main-content {
    margin-left: 280px;
    padding: 3rem;
    height: 100vh;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent);
    transition: margin-left 0.3s ease;
}

.dashboard-layout.sidebar-collapsed .sidebar {
    width: 80px;
}

.dashboard-layout.sidebar-collapsed .main-content {
    margin-left: 80px;
}

/* Glassmorphism & Cards */
.glass {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Dashboard Header & Search */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

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

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary);
}

.notification-btn .dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

/* Floating Action Button */
.action-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    user-select: none;
}

.action-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

.fab-menu {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 8499;
}

.fab-menu.active {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0);
}

.fab-item {
    background: #1e293b;
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.fab-item:hover {
    background: #334155;
    transform: translateX(-5px);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
}

.kanban-header h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.kanban-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.kanban-card {
    background: #1e293b;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: grab;
    transition: all 0.2s;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.kanban-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: 0.2s;
}

.kanban-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Calendar View */
.calendar-container {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    padding: 1.5rem;
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
}

.calendar-day-head {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calendar-day {
    background: #0f172a;
    min-height: 120px;
    padding: 0.5rem;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.02);
}

.calendar-day.today {
    background: rgba(139, 92, 246, 0.05);
}

.calendar-day-num {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.calendar-event {
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 2rem;
}

/* Onboarding */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none !important; /* Allow clicking sidebar around the card */
}

.onboarding-overlay.active {
    display: flex !important;
    /* Do NOT set pointer-events here, let it stay none for overlay */
}

.onboarding-card {
    background: #1e293b;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--card-border);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.step-dot.active {
    width: 30px;
    background: var(--primary);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Dashboard Widgets */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

#notification-tray {
    z-index: 13000; /* Above sidebar */
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    padding: 1.5rem !important;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    pointer-events: auto;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.close-modal-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    z-index: 100;
}

.close-modal-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-trend {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.trend-up { color: #10b981; }

.stat-account {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

/* Forms & Data Tables */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #a855f7;
}

.form-control option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.form-control option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Mobile Dashboard */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Add a toggle menu for mobile later */
    }
}

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .sidebar, .dashboard-header, .print-hide, nav, button {
        display: none !important;
    }
    .dashboard-layout {
        display: block;
    }
    .main-content {
        padding: 0 !important;
        background: none !important;
    }
    .view-section {
        display: none !important;
    }
    #section-mediakit {
        display: block !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
    }
    .stat-card {
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        color: black !important;
    }
    .stat-label {
        color: #666 !important;
    }
    .text-secondary {
        color: #666 !important;
    }
    .account-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.badge-pinterest { background: #E60023; color: white; }
.badge-x { background: #000000; color: white; border: 1px solid #ffffff; }
.badge-facebook { background: #1877F2; color: white; }
.badge-quora { background: #B92B27; color: white; }
.badge-reddit { background: #FF4500; color: white; }
.badge-medium { background: #000000; color: white; border: 1px solid #ffffff; }
.badge-custom { background: #334155; color: white; }
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

/* Mobile Optimizations for Visibility */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem !important;
    }

    .dashboard-header {
        margin-bottom: 1.5rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem !important;
    }

    .stats-row {
        margin-bottom: 1.5rem !important;
        gap: 1rem !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.4rem !important;
    }

    .card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .view-section h1 {
        font-size: 1.5rem !important;
    }

    .view-section p {
        font-size: 0.85rem !important;
    }

    /* Financial Dashboard Specific Grid */
    #section-financials > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr !important;
    }
}

/* Fix for Browser Date Picker Icons in Dark Mode */
input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.btn-edit-profile {
    background: #1e293b !important;
    border: 1px solid #8b5cf6 !important;
    color: #ffffff !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1) !important;
}

.btn-edit-profile:hover {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

/* Media Kit Professional Preview (Premium Dark Theme) */
#media-kit-preview {
    background: #020617 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    font-family: 'Outfit', sans-serif !important;
}

#media-kit-preview h1, 
#media-kit-preview h2, 
#media-kit-preview h3,
#media-kit-preview h4 {
    color: #ffffff !important;
}

#media-kit-preview p#mk-bio,
#media-kit-preview #mk-contact-info {
    color: #94a3b8 !important;
}

#media-kit-preview .stat-card {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    padding: 2rem !important;
}

#media-kit-preview .stat-label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.75rem !important;
}

#media-kit-preview .stat-value {
    color: #ffffff !important;
    font-weight: 800 !important;
}

#media-kit-preview .feature-item.card,
#media-kit-preview .card.glass {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    color: #f8fafc !important;
}

#media-kit-preview .data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    color: #f8fafc !important;
    background: transparent !important;
}

#media-kit-preview .data-table th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#media-kit-preview .data-table td {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}

#media-kit-preview .account-badge {
    box-shadow: 0 0 10px rgba(0,0,0,0.2) !important;
}

/* Ensure images/icons are visible */
#media-kit-preview [style*="background: rgba(255,255,255,0.05)"] {
    background: #f1f5f9 !important;
}

#media-kit-preview .pdf-hide {
    display: none !important;
}

@media print {
    .dashboard-layout {
        background: white !important;
    }
    .sidebar, .fab, .main-fab, .fab-menu {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Copy Button Styles */
.copy-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

.copy-btn.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.copy-btn i {
    font-style: normal;
    font-size: 0.9rem;
}

/* View Switcher Styles */
.view-btn {
    background: transparent;
    border: none;
    color: #94a3b8; /* Increased contrast from muted */
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem; /* Slightly larger */
    font-weight: 700; /* Bolder */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    letter-spacing: 0.02em;
}

.view-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.lab-card-list {
    transition: all 0.2s;
}

.lab-card-list:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.lab-tab.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--primary) !important;
}

.lab-tab:hover {
    color: var(--text-primary) !important;
}

.handle-badge {
    background: rgba(139, 92, 246, 0.4);
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.handle-badge:hover {
    background: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

/* RESPONSIVE */
.mobile-nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1100; }
@media (max-width: 1024px) {
    .sidebar { left: -280px !important; transition: all 0.3s ease; display: flex !important; }
    .sidebar.mobile-active { left: 0 !important; }
    .main-content { margin-left: 0 !important; padding: 1.5rem !important; width: 100% !important; min-width: 0 !important; }
    .mobile-nav-toggle { display: block !important; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 80px; left: 0; width: 100%; background: rgba(15, 23, 42, 0.98); flex-direction: column; padding: 2rem; gap: 1rem; display: none !important; border-bottom: 1px solid var(--card-border); backdrop-filter: blur(15px); }
    .nav-links.active { display: flex !important; }
    .nav-links a { margin: 0 !important; font-size: 1.1rem; text-align: center; width: 100%; padding: 1.2rem; background: rgba(255,255,255,0.03); border-radius: 16px; }
    
    section div[style*="display: grid"], 
    footer div[style*="display: grid"],
    .view-section div[style*="display: grid"],
    div[style*="display: grid"],
    .card[style*="display: grid"], 
    #media-kit-preview [style*="display: grid"] { 
        grid-template-columns: 1fr !important; 
        gap: 1rem !important; 
    }

    footer div[style*="display: flex"][style*="justify-content: space-between"],
    .dashboard-footer div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
        align-items: center !important;
    }

    footer .container > div:first-child,
    .dashboard-footer > div:first-child {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    footer .container > div:first-child > div,
    .dashboard-footer > div:first-child > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    footer div[style*="display: flex"][style*="gap: 1.5rem"],
    .dashboard-footer div[style*="display: flex"][style*="gap: 1.5rem"],
    .dashboard-footer div[style*="display: flex"][style*="gap: 1rem"] {
        justify-content: center !important;
        width: 100%;
    }
    
    .dashboard-header { flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 1.5rem; }
    .header-search { max-width: none; }
    .header-actions { justify-content: center; gap: 0.5rem; width: 100%; }
    .header-actions .btn-primary { flex: 1; text-align: center; }
    
    .stats-row { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
    
    .kanban-board { 
        display: flex !important; 
        overflow-x: auto !important; 
        padding-bottom: 1rem !important;
        gap: 1rem !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .kanban-column { 
        min-width: 280px !important; 
        max-width: 280px !important; 
    }
    
    .calendar-grid { font-size: 0.7rem; }
    .calendar-day { min-height: 60px !important; }
    
    section, footer, .dashboard-footer { padding: 40px 0 !important; width: 100%; overflow-x: hidden; }
    .hero { padding: 120px 0 50px !important; }
    .hero h1 { font-size: 2.1rem !important; line-height: 1.2 !important; }
    .hero p { font-size: 1rem !important; margin-bottom: 2rem !important; }

    
    /* Goal Tracker Specific Fixes */
    .view-section div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .card { width: 100% !important; max-width: 100% !important; }
    
    /* Consolidated Sidebar Mobile Fixes */
    .sidebar { 
        position: fixed !important;
        left: -280px !important; 
        top: 0 !important;
        width: 280px !important; 
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        background: #0f172a !important;
        z-index: 99999 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 1.5rem !important;
        overflow-y: auto !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5) !important;
    }
    
    .sidebar.mobile-active { 
        left: 0 !important; 
    }
    
    .sidebar .nav-text { 
        display: block !important; 
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-content { 
        margin-left: 0 !important; 
        width: 100% !important; 
        padding: 5rem 1rem 1rem !important;
    }
    
    .mobile-nav-toggle { 
        display: flex !important; 
        align-items: center;
        justify-content: center;
        z-index: 1000 !important;
    }

    .dashboard-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 0 !important;
        margin-bottom: 2rem !important;
    }

    .dashboard-header h1, .dashboard-header h2 {
        margin-left: 3.5rem !important; /* Clear the fixed toggle */
        font-size: 1.6rem !important;
        margin-top: 0;
        margin-bottom: 0.2rem;
    }

    .dashboard-header p {
        margin-left: 3.5rem !important;
        font-size: 0.85rem !important;
    }

    .header-search {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .header-actions {
        width: 100% !important;
        display: flex !important;
        gap: 0.5rem !important;
    }

    .sidebar-mobile-trigger {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(139, 92, 246, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border-radius: 12px !important;
        font-size: 1.2rem !important;
        z-index: 10000 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; align-items: center; justify-content: center; }

    /* Calendar Mobile Fix */
    .calendar-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 1rem !important;
    }
    .calendar-grid {
        min-width: 700px !important;
    }
    .calendar-day {
        min-height: 80px !important;
    }

    /* Kanban Mobile Fix */
    .kanban-board {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .kanban-column {
        min-width: 280px !important;
        flex-shrink: 0 !important;
    }

    /* Backdrop */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.7);
        z-index: 99998;
        display: none;
        backdrop-filter: blur(4px);
    }
    .sidebar-overlay.active { display: block; }
}

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

@media (max-width: 600px) {
    .vault-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Pricing Modal Grid Fix */
.pricing-modal-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .pricing-modal-grid {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .pricing-card {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 480px) { 
    .main-content { padding: 1rem !important; }
    .stats-row { grid-template-columns: 1fr !important; } 
    .btn-primary { width: 100%; text-align: center; } 
    .header-actions button { flex: 1; }
    .dashboard-header h1, .dashboard-header h2 { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
    
    .kanban-column { 
        min-width: 260px !important; 
        max-width: 260px !important; 
    }

    .data-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .data-table th, .data-table td {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
}