    * {
        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;
    }

    /* Global UI Elements (From Index) */
    .sidebar {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-overlay {
        transition: opacity 0.3s ease;
    }

    .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 {
        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);
    }

    .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;
    }

    .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;
    }

    /* 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 shimmer {
        0% {
            background-position: -1000px 0;
        }

        100% {
            background-position: 1000px 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;
    }

    /* Generation Specific Styles */

    /* Custom Range Slider */
    input[type=range] {
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 16px;
        width: 16px;
        border-radius: 50%;
        background: #6c5ce7;
        cursor: pointer;
        margin-top: -6px;
        box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
        transition: all 0.2s ease;
    }

    input[type=range]::-webkit-slider-thumb:hover {
        transform: scale(1.2);
    }

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #d5d9e5;
        border-radius: 4px;
    }

    .dark input[type=range]::-webkit-slider-runnable-track {
        background: #3f4560;
    }

    /* Radio Button Cards (Hidden input, styled label) */
    .radio-card-input:checked+.radio-card-label {
        border-color: #6c5ce7;
        background: rgba(108, 92, 231, 0.05);
        color: #6c5ce7;
    }

    .dark .radio-card-input:checked+.radio-card-label {
        border-color: #a78bfa;
        background: rgba(167, 139, 250, 0.1);
        color: #a78bfa;
    }

    /* 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;
    }

    /* Image card hover */
    .img-card-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
        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: 16px;
        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: 12px;
        right: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-card:hover .img-card-top-actions {
        opacity: 1;
    }

    /* Skeleton Loading */
    .skeleton {
        background: #e8ebf2;
        background-image: linear-gradient(to right, #e8ebf2 0%, #f1f3f8 20%, #e8ebf2 40%, #e8ebf2 100%);
        background-repeat: no-repeat;
        background-size: 1000px 100%;
        animation: shimmer 2s infinite linear forwards;
    }

    .dark .skeleton {
        background: #1e2235;
        background-image: linear-gradient(to right, #1e2235 0%, #3f4560 20%, #1e2235 40%, #1e2235 100%);
    }

    .generate-btn-glow {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
        transition: all 0.3s ease;
    }

    .generate-btn-glow:hover {
        box-shadow: 0 0 30px rgba(108, 92, 231, 0.6);
        transform: translateY(-2px);
    }

    /* Accordion transition */
    .accordion-content {
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        overflow: hidden;
    }