    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        overflow-x: hidden;
    }

    .font-jakarta {
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: #c5c9d6;
        border-radius: 10px;
    }

    .dark ::-webkit-scrollbar-thumb {
        background: #3f4560;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #a8aec2;
    }

    .dark ::-webkit-scrollbar-thumb:hover {
        background: #5a6280;
    }

    /* Sidebar */
    .sidebar {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-overlay {
        transition: opacity 0.3s ease;
    }

    /* Glass */
    .glass-card {
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .dark .glass-card {
        background: rgba(30, 34, 53, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(18px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(24px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes pulse-ring {
        0% {
            transform: scale(0.8);
            opacity: 1;
        }

        100% {
            transform: scale(1.6);
            opacity: 0;
        }
    }

    .animate-fade-in-up {
        animation: fadeInUp 0.5s ease both;
    }

    .animate-fade-in {
        animation: fadeIn 0.4s ease both;
    }

    .animate-slide-in-right {
        animation: slideInRight 0.4s ease both;
    }

    .animate-scale-in {
        animation: scaleIn 0.3s ease both;
    }

    .delay-100 {
        animation-delay: 0.1s;
    }

    .delay-200 {
        animation-delay: 0.2s;
    }

    .delay-300 {
        animation-delay: 0.3s;
    }

    .delay-400 {
        animation-delay: 0.4s;
    }

    .delay-500 {
        animation-delay: 0.5s;
    }

    /* Hover lift */
    .hover-lift {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
    }

    .dark .hover-lift:hover {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    }

    /* Card shine */
    .card-shine {
        position: relative;
        overflow: hidden;
    }

    .card-shine::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
        transition: transform 0.6s ease;
        transform: translateX(-100%) rotate(0deg);
        pointer-events: none;
        z-index: 1;
    }

    .card-shine:hover::before {
        transform: translateX(100%) rotate(0deg);
    }

    /* Gradient text */
    .gradient-text {
        background: linear-gradient(135deg, #6c5ce7, #a78bfa, #6c5ce7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Bento grid */
    .bento-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(4, 1fr);
    }

    @media (max-width: 1279px) {
        .bento-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 639px) {
        .bento-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Notification & Messenger panels */
    .panel-dropdown {
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 0.5rem;
        z-index: 100;
        width: 380px;
        max-width: calc(100vw - 24px);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        transform-origin: top right;
    }

    .dark .panel-dropdown {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    @media (max-width: 639px) {
        .panel-dropdown {
            position: fixed;
            right: 12px;
            left: 12px;
            top: 60px;
            width: auto;
            max-width: calc(100vw - 24px);
        }
    }

    /* Modal overlay */
    .modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .modal-content {
        background: white;
        border-radius: 20px;
        max-width: 640px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    }

    .dark .modal-content {
        background: #1e2235;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    }

    /* Image card overlay */
    .img-card-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: inherit;
    }

    .img-card:hover .img-card-overlay {
        opacity: 1;
    }

    .img-card-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px;
        transform: translateY(8px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .img-card:hover .img-card-actions {
        transform: translateY(0);
        opacity: 1;
    }

    .img-card-top-actions {
        position: absolute;
        top: 8px;
        right: 8px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-card:hover .img-card-top-actions {
        opacity: 1;
    }

    /* Table container */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container::-webkit-scrollbar {
        height: 4px;
    }

    /* Active nav */
    .nav-item.active {
        background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.06));
        color: #6c5ce7;
        border-right: 3px solid #6c5ce7;
    }

    .dark .nav-item.active {
        background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.1));
        color: #a78bfa;
        border-right: 3px solid #a78bfa;
    }

    /* Pulse notification dot */
    .notif-dot::after {
        content: '';
        position: absolute;
        top: -1px;
        right: -1px;
        width: 10px;
        height: 10px;
        background: #ef4444;
        border-radius: 50%;
        border: 2px solid white;
    }

    .dark .notif-dot::after {
        border-color: #1e2235;
    }

    /* Status badges */
    .badge-success {
        background: #ecfdf5;
        color: #059669;
    }

    .dark .badge-success {
        background: rgba(5, 150, 105, 0.15);
        color: #34d399;
    }

    .badge-warning {
        background: #fffbeb;
        color: #d97706;
    }

    .dark .badge-warning {
        background: rgba(217, 119, 6, 0.15);
        color: #fbbf24;
    }

    .badge-error {
        background: #fef2f2;
        color: #dc2626;
    }

    .dark .badge-error {
        background: rgba(220, 38, 38, 0.15);
        color: #f87171;
    }

    .badge-info {
        background: #eff6ff;
        color: #2563eb;
    }

    .dark .badge-info {
        background: rgba(37, 99, 235, 0.15);
        color: #60a5fa;
    }

    .badge-purple {
        background: #f5f3ff;
        color: #7c3aed;
    }

    .dark .badge-purple {
        background: rgba(124, 58, 237, 0.15);
        color: #a78bfa;
    }

    /* KPI card gradient strips */
    .kpi-strip-1 {
        background: linear-gradient(135deg, #6c5ce7, #a78bfa);
    }

    .kpi-strip-2 {
        background: linear-gradient(135deg, #0891b2, #22d3ee);
    }

    .kpi-strip-3 {
        background: linear-gradient(135deg, #059669, #34d399);
    }

    .kpi-strip-4 {
        background: linear-gradient(135deg, #e11d48, #fb7185);
    }

    /* Quick generate bar */
    .quick-gen-bar {
        background: linear-gradient(135deg, #6c5ce7 0%, #8b5cf6 50%, #a78bfa 100%);
        position: relative;
        overflow: hidden;
    }

    .quick-gen-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    /* Tooltip */
    [data-tooltip] {
        position: relative;
    }

    [data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        background: #1e2235;
        color: white;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 50;
        pointer-events: none;
        animation: fadeIn 0.2s ease;
    }

    /* Progress bar animation */
    .progress-animate {
        transition: width 1s ease;
    }