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

        body {
            background: #0f0f1a;
            color: white;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            
            overflow-y: scroll;
        }

        
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color, #aab6fb);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color-hover, #8a96db);
        }

       
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color, #aab6fb) rgba(255, 255, 255, 0.05);
        }

        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 280px;
            background: rgb(4 3 3 / 69%);
            backdrop-filter: blur(15px);
            padding: 2rem;
            z-index: 1000;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            overflow-y: auto;
        }

        .sidebar.active {
            transform: translateX(0);
        }

        .nav-button {
            padding: 1rem;
            margin: 0.5rem 0;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            display: block;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        .nav-button.active {
            background: rgba(var(--primary-color-rgb, 170, 182, 251), 0.2);
            border-color: var(--primary-color, #aab6fb);
        }

        .menu-toggle {
            position: fixed;
            top: 1rem;
            left: 1rem;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            color: white;
            padding: 1rem;
            border-radius: 8px;
            cursor: pointer;
            z-index: 1001;
            display: none;
        }

        .header {
            text-align: center;
            padding: 3rem 1rem;
            margin: 0 auto 2rem;
            position: relative;
            max-width: 800px;
            width: 90%;
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #fff, var(--primary-color, #ff6b6b));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .search-container {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            padding: 0 1rem;
        }

        .search-bar {
            display: flex;
            max-width: 600px;
            width: 100%;
            align-items: stretch;
        }

        .search-input {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 25px 0 0 25px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
            min-height: 48px;
        }

        .search-input:focus {
            background: rgba(255, 255, 255, 0.2);
        }

        .search-button {
            padding: 0 1.5rem;
            background: linear-gradient(45deg, var(--primary-color,#ff6b6b ), var(--primary-color-hover, #cc3838));
            border: none;
            border-radius: 0 25px 25px 0;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .search-button:hover {
            background: linear-gradient(45deg, var(--primary-color-hover, #6a5acd), var(--primary-color, #aab6fb));
        }

        .main-content {
            padding: 1rem;
            transition: margin-left 0.3s ease;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            padding: 0 1rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .card {
            position: relative;
            border-radius: 12px;
            overflow: visible;
            transition: transform 0.3s ease;
            aspect-ratio: 2/3;
            background: rgba(255, 255, 255, 0.05);
            margin-bottom: 40px;
        }

        .card:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .card-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            display: flex;
            justify-content: space-between;
            opacity: 1;
        }

        .action-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }

        .action-btn.favorite {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.3);
        }

        .action-btn.favorite.active {
            color: #ff4757;
            background: rgba(255, 71, 87, 0.3);
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .lightbox.active {
            opacity: 1;
            pointer-events: all;
        }

        .lightbox-content {
            position: relative;
            max-width: 85%;
            max-height: 90%;
            margin: 0 auto;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(0,0,0,0.6);
        }

        .lightbox-loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 15;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            backdrop-filter: blur(5px);
        }

        .lightbox-loader .loading-spinner {
            width: 30px;
            height: 30px;
            border: 3px solid rgba(255, 255, 255, 0.2);
            border-top-color: #aab6fb;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .lightbox-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .lightbox-prev,
        .lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            z-index: 10;
        }

        .lightbox-prev {
            left: 20px;
        }

        .lightbox-next {
            right: 20px;
        }

        .lightbox-prev:hover,
        .lightbox-next:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .lightbox-download {
            position: absolute;
            bottom: -50px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .loader {
            display: flex;
            justify-content: center;
            padding: 2rem;
            display: none;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top-color: #ff6b6b;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .skeleton {
            background: rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .skeleton::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 25%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0) 75%
            );
            animation: loading 1.5s infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes loading {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .fab {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--primary-color-hover, #cc3838));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            cursor: pointer;
            z-index: 100;
            border: none;
            transition: transform 0.3s ease;
        }

        .fab:hover {
            transform: scale(1.1) rotate(90deg);
        }

        /* Theme Modal Styles */
        .theme-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

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

        .theme-content {
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }

        .theme-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .theme-header h3 {
            color: white;
            margin: 0;
            font-size: 1.5rem;
        }

        .theme-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .theme-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

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

        .theme-section h4 {
            color: white;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .color-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.8rem;
        }

        .color-option {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            position: relative;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.active {
            border-color: white;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .style-options {
            display: flex;
            gap: 0.5rem;
        }

        .style-btn {
            padding: 0.8rem 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .style-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .style-btn.active {
            background: var(--primary-color, #aab6fb);
            border-color: var(--primary-color, #aab6fb);
        }

        #customColor {
            width: 100%;
            height: 50px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            background: none;
        }

        .theme-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .theme-btn {
            flex: 1;
            padding: 0.8rem 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .theme-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .theme-btn.primary {
            background: var(--primary-color, #aab6fb);
            border-color: var(--primary-color, #aab6fb);
        }

        .theme-btn.primary:hover {
            background: var(--primary-color-hover, #8a96db);
        }

        .empty-state {
            text-align: center;
            color: var(--primary-color, #aab6fb);
            font-size: 1.2rem;
            grid-column: 1 / -1;
            padding: 2rem;
        }

        @media (min-width: 992px) {
            .main-content {
                margin-left: 280px;
            }
            
            .sidebar {
                transform: translateX(0);
                     background: rgb(4 3 3 / 69%);
            }
            
            .menu-toggle {
                display: none;
            }
        }

        @media (max-width: 992px) {
            .menu-toggle {
                display: block;
            }
            
            .grid-container {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .search-input,
            .search-button {
                min-height: 46px;
                font-size: 0.95rem;
            }
            
            .card-info {
                bottom: -30px;
                padding: 8px 12px;
                font-size: 0.8rem;
            }
            
            .card {
                margin-bottom: 40px;
            }
            
            .lightbox-download {
                bottom: -45px;
                padding: 9px 18px;
                font-size: 0.85rem;
            }
            
            .lightbox-content {
                max-width: 80%;
            }
            
            .lightbox-loader {
                width: 50px;
                height: 50px;
            }
            
            .lightbox-loader .loading-spinner {
                width: 25px;
                height: 25px;
                border-width: 2px;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .lightbox-prev {
                left: 15px;
            }
            
            .lightbox-next {
                right: 15px;
            }
        }

        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 1rem;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .header p {
                font-size: 1rem;
            }
            
            .search-input,
            .search-button {
                min-height: 44px;
                font-size: 0.9rem;
            }
            
            .search-input {
                padding: 0.7rem 0.9rem;
            }
            
            .search-button {
                padding: 0 1.3rem;
            }
            
            .fab {
                width: 50px;
                height: 50px;
                bottom: 1.5rem;
                right: 1.5rem;
            }
            
            .card-info {
                bottom: -28px;
                padding: 7px 10px;
                font-size: 0.75rem;
            }
            
            .card {
                margin-bottom: 35px;
            }
            
            .lightbox-download {
                bottom: -40px;
                padding: 8px 16px;
                font-size: 0.8rem;
                gap: 6px;
            }
            
            .lightbox-content {
                max-width: 75%;
            }
            
            .lightbox-loader {
                width: 45px;
                height: 45px;
            }
            
            .lightbox-loader .loading-spinner {
                width: 22px;
                height: 22px;
                border-width: 2px;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .lightbox-prev {
                left: 10px;
            }
            
            .lightbox-next {
                right: 10px;
            }
        }

        @media (max-width: 480px) {
            .grid-container {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
            
            .header h1 {
                font-size: 1.5rem;
            }
            
            .search-input,
            .search-button {
                min-height: 42px;
                font-size: 0.85rem;
            }
            
            .search-input {
                padding: 0.6rem 0.8rem;
            }
            
            .search-button {
                padding: 0 1.1rem;
            }
            
            .card-actions {
                padding: 0.5rem;
            }
            
            .action-btn {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }
            
            .card-info {
                bottom: -25px;
                padding: 6px 8px;
                font-size: 0.7rem;
                border-radius: 0 0 8px 8px;
            }
            
            .card {
                margin-bottom: 30px;
            }
            
            .lightbox-download {
                bottom: -35px;
                padding: 6px 12px;
                font-size: 0.7rem;
                gap: 4px;
                border-radius: 20px;
            }
            
            .lightbox-content {
                max-width: 70%;
            }
            
            .lightbox-loader {
                width: 40px;
                height: 40px;
            }
            
            .lightbox-loader .loading-spinner {
                width: 20px;
                height: 20px;
                border-width: 2px;
            }
            
            .lightbox-close {
                width: 25px;
                height: 25px;
                top: -30px;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }
            
            .lightbox-prev {
                left: 8px;
            }
            
            .lightbox-next {
                right: 8px;
            }
        }

        @media (max-width: 360px) {
            .grid-container {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 0.8rem;
                padding: 0 0.5rem;
            }
            
            .header {
                padding: 2rem 0.5rem;
                margin-bottom: 1rem;
            }
            
            .header h1 {
                font-size: 1.3rem;
                margin-bottom: 0.8rem;
            }
            
            .header p {
                font-size: 0.9rem;
                line-height: 1.4;
            }
            
            .search-container {
                margin-bottom: 1.5rem;
                padding: 0 0.5rem;
            }
            
            .search-input,
            .search-button {
                min-height: 40px;
                font-size: 0.8rem;
            }
            
            .search-input {
                padding: 0.6rem 0.7rem;
            }
            
            .search-button {
                padding: 0 1rem;
            }
            
            .card {
                margin-bottom: 25px;
                border-radius: 8px;
            }
            
            .card-actions {
                padding: 0.4rem;
            }
            
            .action-btn {
                width: 28px;
                height: 28px;
                font-size: 0.7rem;
            }
            
            .card-info {
                bottom: -22px;
                padding: 5px 6px;
                font-size: 0.65rem;
                border-radius: 0 0 6px 6px;
            }
            
            .fab {
                width: 45px;
                height: 45px;
                bottom: 1rem;
                right: 1rem;
                font-size: 1.2rem;
            }
            
            .lightbox-content {
                max-width: 65%;
            }
            
            .lightbox-loader {
                width: 35px;
                height: 35px;
            }
            
            .lightbox-loader .loading-spinner {
                width: 18px;
                height: 18px;
                border-width: 2px;
            }
            
            .lightbox-download {
                bottom: -30px;
                padding: 5px 10px;
                font-size: 0.65rem;
                gap: 3px;
                border-radius: 15px;
            }
            
            .lightbox-close {
                width: 22px;
                height: 22px;
                top: -25px;
                font-size: 0.7rem;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 25px;
                height: 25px;
                font-size: 0.7rem;
            }
            
            .lightbox-prev {
                left: 5px;
            }
            
            .lightbox-next {
                right: 5px;
            }
            
            .sidebar {
                width: 250px;
                padding: 1.5rem;
            }
            
            .nav-button {
                padding: 0.8rem;
                margin: 0.4rem 0;
                font-size: 0.9rem;
            }
            
            .support-btn {
                padding: 0.8rem;
                font-size: 0.9rem;
            }
        }

        .support-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 1rem;
        }

        .support-btn {
            padding: 1rem;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;
        }

        .support-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: translateX(5px);
        }

        .support-btn i {
            font-size: 1.2rem;
        }

        .skeleton.retrying {
            animation: pulse 1.5s infinite;
            background: rgba(255,255,255,0.1);
        }

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

        .empty-state {
            text-align: center;
            color: #aab6fb;
            font-size: 1.2rem;
            grid-column: 1 / -1;
            padding: 2rem;
        }

        .refresh-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .failed-card:hover .refresh-overlay {
            opacity: 1;
        }

        .refresh-button {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }

        .refresh-button:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(180deg);
        }

        .failed-text {
            color: white;
            text-align: center;
            padding: 0 1rem;
        }
        
        .card-info {
            position: absolute;
            bottom: -30px;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            padding: 8px 12px;
            border-radius: 0 0 12px 12px;
            font-size: 0.8rem;
            color: white;
            text-align: center;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .card:hover .card-info {
            opacity: 1;
            transform: translateY(0);
        }
        
        .search-history {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 0 0 25px 25px;
            max-height: 200px;
            overflow-y: auto;
            display: none;
            z-index: 100;
        }
        
        .search-history-item {
            padding: 0.5rem 1rem;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .search-history-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .search-container {
            position: relative;
        }
        
        .search-history.active {
            display: block;
        }
