  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        :root {
            --primary: #0A84FF;
            --primary-dark: #0066CC;
            --secondary: #5E5CE6;
            --text: #FFFFFF;
            --text-light: #8E8E93;
            --text-lighter: #636366;
            --background: #000000;
            --card-bg: #1c1c1e73;
            --card-bg-light: #1c1c1e73;
            --border: #38383a33;
            --border-light: #48484A;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            --radius: 4px;
            --radius-sm: 10px;
            --radius-lg: 24px;
        }

        [data-theme="light"] {
            --primary: #007AFF;
            --primary-dark: #0056CC;
            --secondary: #5856D6;
            --text: #1D1D1F;
            --text-light: #86868B;
            --text-lighter: #AEAEB2;
            --background: #ffffffc9;
            --card-bg: #FFFFFF;
            --card-bg-light: #f5f5f74a;
            --border: #d2d2d759;
            --border-light: #E5E5EA;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.055);
        }

        body {
            background-color: var(--background);
            color: var(--text);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Header Styles */
        header {
            background-color: var(--card-bg);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            padding: 0.8rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }
        

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

       /* .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text);
            flex-shrink: 0;
        }

        .logo-icon {
            color: var(--primary);
        }*/

        .search-bar {
            flex: 1;
            max-width: 400px;
            margin: 0 1rem;
            position: relative;
        }

        .search-bar input {
            width: 100%;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 30px;
            border: 1px solid var(--border);
            background-color: var(--card-bg-light);
            font-size: 0.9rem;
            transition: all 0.3s ease;
            color: var(--text);
        }

        .search-bar input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
        }

        .search-bar input::placeholder {
            color: var(--text-lighter);
        }

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

        .nav-links {
            display: flex;
            gap: 1.2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: 0.9rem;
            transition: color 0.2s ease;
            white-space: nowrap;
        }

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

        .nav-actions {
            display: flex;
            gap: 0.8rem;
            align-items: center;
            flex-shrink: 0;
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: var(--text);
            background-color: var(--card-bg-light);
        }

        .theme-toggle:hover {
            background-color: var(--border-light);
            transform: scale(1.05);
        }

        .theme-toggle .fa-sun {
            display: none;
        }

        [data-theme="light"] .theme-toggle .fa-sun {
            display: block;
        }

        [data-theme="light"] .theme-toggle .fa-moon {
            display: none;
        }

        .btn {
            padding: 0.5rem 1rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            white-space: nowrap;
        }

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

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

        .btn-outline {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .btn-outline:hover {
            background-color: rgba(10, 132, 255, 0.1);
        }

        /* Hero Section */
        .hero {
            max-width: 1400px;
            margin: 1.5rem auto;
            padding: 0 1.5rem;
        }

        .hero-content {
    overflow: hidden;
   /* background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);*/
    border-radius: var(--radius);
    color: white;
    display: flex
;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.hero-image-new {
    width: 100%;
}

        .hero-text {
            max-width: 600px;
        }

        .hero-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .hero-description {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            opacity: 0.9;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
        }

        .hero-image {
            width: 250px;
            height: 200px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            backdrop-filter: blur(10px);
        }

        /* Main Content */
        main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem 2rem;
        }

        /* Compact Filter Section */
        .filters-container {
            margin-bottom: 2rem;
        }

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

        .filter-title {
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-title i {
            color: var(--primary);
        }

        .filter-reset {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            transition: all 0.2s ease;
        }

        .filter-reset:hover {
            color: var(--primary-dark);
        }

        .filters-island {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.2rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-group label {
            font-size: 0.85rem;
            color: var(--text-light);
            font-weight: 500;
            white-space: nowrap;
        }

        .filter-select {
            padding: 0.5rem 0.8rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background-color: var(--card-bg-light);
            font-size: 0.85rem;
            color: var(--text);
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 120px;
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .filter-tag {
            padding: 0.4rem 0.8rem;
            background-color: var(--card-bg-light);
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--border);
            white-space: nowrap;
        }

        .filter-tag:hover {
            background-color: rgba(10, 132, 255, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }

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

        /* Templates Grid */
        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin: 2rem 0 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-title i {
            color: var(--primary);
        }

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

        .template-card {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid var(--border);
            max-width: 84mm;
            position: relative;
        }

        .template-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--primary);
        }
        .template-card-description-bg {
  pointer-events: none;
}

        
.template-image {
    width: 84mm;
    height: 118.8mm;
    background-color: var(--card-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.template-preview {
    background: linear-gradient(135deg, var(--card-bg-light) 0%, var(--border-light) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
        border-bottom: 1px solid #95959547;
}
        .template-preview-image {
            width: 100%;
        }

        /* Loading Animation */
        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        .shimmer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            animation: shimmer 2s infinite;
            z-index: 1;
        }

        [data-theme="light"] .shimmer {
            background: linear-gradient(
                90deg,
                transparent,
                rgba(0, 0, 0, 0.1),
                transparent
            );
        }

        .template-header {
            height: 10px;
            background-color: var(--primary);
            border-radius: 6px;
            margin-bottom: 0.8rem;
            position: relative;
            overflow: hidden;
        }

        .template-content {
            flex: 1;
            display: flex;
            gap: 0.8rem;
        }

        .template-sidebar {
            width: 30%;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .template-sidebar div {
            height: 6px;
            background-color: var(--text-light);
            border-radius: 4px;
            opacity: 0.5;
            position: relative;
            overflow: hidden;
        }

        .template-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .template-main div {
            height: 6px;
            background-color: var(--text);
            border-radius: 4px;
            opacity: 0.7;
            position: relative;
            overflow: hidden;
        }

        .template-main div:nth-child(2) {
            width: 80%;
        }

        .template-main div:nth-child(3) {
            width: 60%;
        }

        /* Add shimmer effect to template elements */
        .template-header::after,
        .template-sidebar div::after,
        .template-main div::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.4),
                transparent
            );
            animation: shimmer 2s infinite;
        }

        [data-theme="light"] .template-header::after,
        [data-theme="light"] .template-sidebar div::after,
        [data-theme="light"] .template-main div::after {
            background: linear-gradient(
                90deg,
                transparent,
                rgba(0, 0, 0, 0.2),
                transparent
            );
        }

        /* Stagger the animations for a more dynamic effect */
        .template-header::after { animation-delay: 0s; }
        .template-sidebar div:nth-child(1)::after { animation-delay: 0.2s; }
        .template-sidebar div:nth-child(2)::after { animation-delay: 0.4s; }
        .template-sidebar div:nth-child(3)::after { animation-delay: 0.6s; }
        .template-sidebar div:nth-child(4)::after { animation-delay: 0.8s; }
        .template-main div:nth-child(1)::after { animation-delay: 0.3s; }
        .template-main div:nth-child(2)::after { animation-delay: 0.5s; }
        .template-main div:nth-child(3)::after { animation-delay: 0.7s; }
        .template-main div:nth-child(4)::after { animation-delay: 0.9s; }
        .template-main div:nth-child(5)::after { animation-delay: 1.1s; }

        .template-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 0.25rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            z-index: 2;
        }

        .premium-badge {
            background-color: #FFD700;
            color: #8B7500;
        }

        .free-badge {
            background-color: var(--primary);
            color: white;
        }

        .template-info {
            padding: 1.2rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .template-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
        }

        .template-description {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 0.8rem;
            flex: 1;
        }

        .template-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .template-price {
            font-weight: 700;
            font-size: 1rem;
        }

        .template-actions {
            display: flex;
            gap: 0.4rem;
        }

        /* Ad Section */
        .ad-section {
            margin: 2.5rem 0;
            background: linear-gradient(135deg, #FF2D92 0%, #FF6B35 100%);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .ad-content {
            padding: 2rem;
            text-align: center;
            color: white;
        }

        .ad-title {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
            font-weight: 700;
        }

        .ad-description {
            margin-bottom: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-size: 0.95rem;
        }

        .ad-cta {
            display: inline-block;
            padding: 0.7rem 1.5rem;
            background-color: white;
            color: #FF2D92;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .ad-cta:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Footer */
        footer {
            background-color: var(--card-bg);
            padding: 2.5rem 1.5rem 1.5rem;
            margin-top: 2.5rem;
            border-top: 1px solid var(--border);
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            font-size: 1rem;
            font-weight: 600;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section li {
            margin-bottom: 0.6rem;
        }

        .footer-section a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.85rem;
            transition: color 0.2s ease;
        }

        .footer-section a:hover {
            color: var(--primary);
        }

        .social-links {
            display: flex;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background-color: var(--card-bg-light);
            border-radius: 50%;
            color: var(--text);
            transition: all 0.2s ease;
        }

        .social-links a:hover {
            background-color: var(--primary);
            color: white;
        }

        .copyright {
            text-align: center;
            margin-top: 2rem;
            color: var(--text-light);
            font-size: 0.85rem;
            padding-top: 1.2rem;
            border-top: 1px solid var(--border);
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.2rem;
            cursor: pointer;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-image {
                width: 200px;
                height: 160px;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 0.7rem 1rem;
            }

            .header-content {
                flex-wrap: wrap;
            }

            .logo {
                font-size: 1.2rem;
            }

            .search-bar {
                order: 3;
                margin: 0.5rem 0 0;
                max-width: 100%;
            }

            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .hero {
                margin: 1rem auto;
                padding: 0 1rem;
            }

            .hero-content {
                padding: 1.5rem;
            }

            .hero-title {
                font-size: 1.8rem;
            }

            .hero-description {
                font-size: 0.95rem;
            }

            .hero-image {
                display: none;
            }

            main {
                padding: 0 1rem 1.5rem;
            }

            .filters-island {
                flex-direction: column;
                align-items: stretch;
                gap: 0.8rem;
            }

            .filter-group {
                justify-content: space-between;
            }

            .filter-select {
                min-width: auto;
                flex: 1;
                margin-left: 0.5rem;
            }

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

            .footer-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .nav-actions {
                gap: 0.5rem;
            }

            .btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            .theme-toggle {
                width: 32px;
                height: 32px;
            }

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

            .hero-actions {
                flex-direction: column;
                gap: 0.8rem;
            }

            .hero-actions .btn {
                width: 100%;
            }
        }





.logo-wrapper {
    display: flex
;
    justify-content: center;
    align-items: center;
    gap: 18px;
}



.logo {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: linear-gradient(135deg, #007aff, #1b60c4);
    /*box-shadow: 0 6px 18px rgba(47, 128, 237, 0.26);*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-img {
    width: 75%;
}

.ad-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}


.t-preview {
    width: 100%;
}