* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
.brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

:root {
    /* Dark Mode Defaults */
    --bg: #05030e;
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-dropdown: rgba(15, 23, 42, 0.95);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    /* Accents */
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --secondary: #818cf8;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --danger: #fb7185;
    --success: #34d399;
    --purple: #8b5cf6;
    --accent: #f472b6;

    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.3);

    /* Layout */
    --content-width: 1280px;
    --header-height: 80px;

    /* Specific Login Visuals */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --orbit-bg: rgba(255, 255, 255, 0.07);
    --orbit-hover-bg: rgba(255, 255, 255, 0.15);
    --ring-color: rgba(255, 255, 255, 0.3);
    --particle-color: rgba(255, 255, 255, 0.3);
    --hero-gradient: linear-gradient(to right, #fff, #94a3b8);
    --icon-gradient: -webkit-linear-gradient(45deg, #fff, #cbd5e1);
    --btn-social-bg: rgba(255, 255, 255, 0.05);
    --btn-social-hover: rgba(255, 255, 255, 0.1);
    /* --success: #10b981;
    --error: #ef4444; */

    --accent-soft: rgba(240, 62, 107, .10);
    --success: #12b76a;
    --success-soft: rgba(18, 183, 106, .10);
    --warning: #f79009;
    --warning-soft: rgba(247, 144, 9, .10);
    --danger: #f04438;
    --danger-soft: rgba(240, 68, 56, .10);
    --info: #0ba5ec;
    --info-soft: rgba(11, 165, 236, .10);

    --surface: rgba(255, 255, 255, .82);
    --surface2: rgba(255, 255, 255, .60);
    --surface-border: rgba(255, 255, 255, .55);
    --surface-border2: rgba(200, 210, 240, .45);

    --text1: #0f1535;
    --text2: #4a5578;
    --text3: #8896b3;

    --shadow: 0 4px 24px rgba(15, 21, 53, .08), 0 2px 8px rgba(59, 91, 219, .06);

    --radius-lg: 0.9rem;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: #f1f5f9;
    --bg-dropdown: #ffffff;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --primary: #0ea5e9;
    --secondary: #6366f1;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);

    /* Specific Login Visuals */
    --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --orbit-bg: rgba(255, 255, 255, 0.8);
    --orbit-hover-bg: rgba(255, 255, 255, 0.95);
    --ring-color: rgba(99, 102, 241, 0.2);
    --particle-color: rgba(99, 102, 241, 0.2);
    --hero-gradient: linear-gradient(to right, #1e293b, #475569);
    --icon-gradient: -webkit-linear-gradient(45deg, #4f46e5, #818cf8);
    --btn-social-bg: rgba(255, 255, 255, 0.5);
    --btn-social-hover: rgba(255, 255, 255, 0.8);

     --surface: rgba(20, 28, 52, .90);
    --surface2: rgba(20, 28, 52, .70);
    --surface-border: rgba(255, 255, 255, .07);
    --surface-border2: rgba(255, 255, 255, .06);

    --text1: #e8edf8;
    --text2: #8896b3;
    --text3: #4a5578;

    --shadow: 0 4px 24px rgba(0, 0, 0, .30);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
.brand-font {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.validation-error {
    color: red;
    font-size: 14px;
}

.d-none {
    display: none;
}

.text-muted{
    color: var(--text-muted);
}

/* --- AMBIENT GLOW BACKGROUND --- */
.glow-bg {
    position: fixed;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.03) 50%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

[data-theme="light"] .glow-bg {
    opacity: 0.5;
    filter: blur(120px);
}

/* ── AMBIENT BACKGROUND ── */
.bg-layer {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.18;
    animation: driftOrb 18s ease-in-out infinite alternate;
}
.glow-orb.a { width: 700px; height: 700px; top: -200px; left: -150px; background: #06b6d4; animation-delay: 0s; }
.glow-orb.b { width: 600px; height: 600px; bottom: -200px; right: -100px; background: #6366f1; animation-delay: -8s; }
.glow-orb.c { width: 400px; height: 400px; top: 40%; left: 40%; background: #38bdf8; opacity: 0.08; animation-delay: -4s; }

/* =========================================
           GLOBAL HEADER
           ========================================= */
.site-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-dropdown);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: background 0.3s, border-color 0.3s;
}

.header-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--bg-input);
}

/* Nav & Dropdown */
.main-nav {
    display: flex;
    gap: 32px;
    margin-left: 40px;
    margin-right: auto;
}

.nav-item {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link {
    color: var(--text-main);
}

.nav-link i {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: -20px;
    width: 640px;
    background: var(--bg-dropdown);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .dropdown-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700;
}

.dropdown-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.2s;
    font-weight: 500;
}

.dropdown-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-col a i {
    font-size: 14px;
    opacity: 0.7;
    width: 20px;
}

/* SEARCH BAR (Freepik Style) */
.header-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.hero-search-container {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: clamp(8px, 2vw, 12px);
    padding: 4px;
    transition: 0.3s;
}

.hero-search-container:focus-within {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    transition: 0.3s;
}

.search-container:focus-within {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-select {
    background: transparent;
    border: none;
    border-right: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 13px;
    padding: 10px 16px;
    cursor: pointer;
    outline: none;
    max-width: 110px;
    font-weight: 500;
}

.search-select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    min-width: 0;
    /* fix flex overflow */
}

.search-btn {
    background: var(--primary);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    margin-right: 2px;
}

.search-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: var(--bg-dropdown);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 999;
    overflow: hidden;
    padding: 8px 0;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    transition: 0.1s;
}

.suggestion-item:hover {
    background: var(--bg-input);
    color: var(--primary);
}

.suggestion-item i {
    font-size: 14px;
    opacity: 0.6;
}

/* Right Actions */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.icon-btn:active {
    transform: scale(0.95);
}

.btn-upload {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.btn-sign-in {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
    border: var(--accent-gradient);
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sign-in:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    transition: border-color 0.3s;
}

.user-avatar:hover {
    border-color: var(--primary);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dropdown);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 24px; */
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.mobile-nav-section {
    margin-bottom: 32px;
}

.mobile-nav-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link:hover {
    background: var(--bg-input);
    color: var(--primary);
}

.mobile-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mobile-search {
    margin-bottom: 24px;
}

.mobile-search .search-container {
    width: 100%;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-actions .btn-upload {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.mobile-actions .icon-btn {
    width: 100%;
    border-radius: 8px;
    justify-content: flex-start;
    gap: 12px;
}

/* =========================================
           ADVERTISEMENT BANNER
           ========================================= */
.ad-banner-container {
    margin: 40px auto;
    max-width: var(--content-width);
    padding: 0 24px;
}

.ad-banner {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

/* Desktop Banner (728x90) */
.ad-banner-desktop {
    width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* Mobile Banner (320x50) */
.ad-banner-mobile {
    width: 320px;
    height: 50px;
    margin: 0 auto;
}

/* Ad Banner Content */
.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.ad-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ad-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.ad-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.ad-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.ad-cta {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.ad-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Ad Label */
.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* CATEGORY SECTION */
.categories {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: var(--content-width);
    margin: 0 auto;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.category-card:hover::before {
    transform: translateX(0);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    border: 1px solid var(--glass-border);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
           TRENDING SECTION
           ========================================= */
.trending {
    padding: 80px 24px;
    background: var(--bg-surface);
    position: relative;
    z-index: 1;
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.trending-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.assets-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
    gap: 24px;
    max-width: var(--content-width);
    margin: 0 auto;
}

.asset-card {
    background: var(--bg-body);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
}

.asset-card:hover {
    top: -6px;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.asset-thumb {
    height: 200px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.4s;
}

.asset-card:hover .asset-thumb img {
    transform: scale(1.1);
    opacity: 1;
}

.asset-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    opacity: 0;
    transform: translateY(-5px);
}

.asset-card:hover .asset-like-btn {
    opacity: 1;
    transform: translateY(0);
}

.asset-like-btn:hover {
    transform: scale(1.1);
}

.asset-details {
    padding: 16px;
}

.asset-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.asset-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download-sm {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Template Card */
.template-card {
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: block;
    text-decoration: none;
    border: 1px solid var(--glass-border);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.template-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: var(--bg-body);
    overflow: hidden;
}

.template-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.template-card:hover .template-image-container img {
    transform: scale(1.05);
    opacity: 1;
}

/* Image Overlay */
.template-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(to top, rgb(0 0 0 / 41%) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Template Badge */
.template-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    z-index: 10;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* Premium Badge */
.template-badge.premium {
    background: var(--danger);
    color: white;
    border: none;
    left: auto;
    right: 12px;
}

/* Free Badge */
.template-badge.free {
    background: var(--success);
    color: white;
    border: none;
    left: auto;
    right: 12px;
}

/* Download Count Badge */
.template-badge.download-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    top: auto;
    bottom: 12px;
    left: auto;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.template-badge.download-count i {
    font-size: 0.875rem;
}

/* Template Info - Hidden by default, shown on hover */
.template-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: white;
    text-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.template-card:hover .template-info {
    opacity: 1;
    transform: translateY(0);
}

.template-title {
    font-weight: 700;
    font-size: 12px;
    color: white;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.template-card:hover .template-title {
    transform: translateY(-3px);
}

.template-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    margin: 0;
    opacity: 0.9;
}

/* AD IN CONTENT  */
.ad-container {
    margin: 40px auto;
    max-width: var(--content-width);
    padding: 0 24px;
}

.ad-in-content {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    height: 250px;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.ad-in-content .ad-content {
    width: 100%;
    padding: 0 30px;
}

.ad-in-content .ad-left {
    flex: 1;
}

.ad-in-content .ad-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.ad-in-content .ad-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.ad-in-content .ad-text p {
    font-size: 14px;
}

.ad-in-content .ad-cta {
    padding: 12px 24px;
    font-size: 16px;
}

/* Ad Units */
.ad-feed-container {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    transition: 0.3s;
    overflow: hidden;
}

.ad-feed-container:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.ad-feed-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.ad-feed-content {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.ad-feed-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.ad-feed-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Featured Ad Section */
.featured-ad-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 60px 0;
    text-align: center;
}

.featured-ad-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.featured-ad-title i {
    color: var(--primary);
    font-size: 28px;
}

.featured-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.featured-ad-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: 0.3s;
    cursor: pointer;
}

.featured-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.featured-ad-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.featured-ad-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-ad-cta {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.featured-ad-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* In-Content Ad */
.in-content-ad {
    max-width: 728px;
    margin: 40px auto;
}

/* CTA SECTION  */
.cta {
    padding: 100px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.cta p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--primary);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
           NEWSLETTER SECTION
           ========================================= */
.newsletter {
    padding: 80px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.newsletter p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form-contact {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary);
    background: var(--bg-body);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.newsletter-btn {
    background: var(--accent-gradient);
    color: white;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.newsletter-terms {
    font-size: 13px;
    color: var(--text-muted);
}

.newsletter-terms a {
    color: var(--primary);
    text-decoration: none;
}

.newsletter-terms a:hover {
    text-decoration: underline;
}

/* =========================================
    FOOTER
========================================= */
.site-footer {
    background: #020617;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    margin-top: auto;
    z-index: 1;
}

.footer-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Terms And condition */
.terms-page {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.terms-header {
    text-align: center;
    margin-bottom: 48px;
}

.terms-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.terms-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.terms-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-main);
    position: relative;
    padding-left: 16px;
}

.terms-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 3px;
}

.terms-subsection-title {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 16px;
    color: var(--text-main);
}

.terms-paragraph {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.terms-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 20px;
}

.terms-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.terms-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.terms-highlight {
    background: rgba(56, 189, 248, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.terms-update {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
}

.update-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.update-text {
    font-size: 16px;
    color: var(--text-muted);
}

.social-sharing {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.social-sharing-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.share-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.terms-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Terms And condition */

/* Faq Section */
.page-wrapper {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-section {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-radius: 40px;
    margin: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feature-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- CATEGORIES SECTION --- */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.category-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.category-count {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 16px;
    display: inline-block;
}

/* --- HOW IT WORKS SECTION --- */
.how-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-radius: 40px;
    margin: 60px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.step-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-radius: 40px;
    margin: 60px 0;
}

.faq-categories {
    display: flex;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-category-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.faq-category-btn:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}

.faq-category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: 0.2s;
}

.faq-question:hover {
    background: var(--bg-input);
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.faq-question i {
    color: var(--text-muted);
    transition: 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--accent-gradient);
    border-radius: 40px;
    margin: 60px 0;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Faq Section */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* BREADCRUMB */

/* Contact Us */
.contact-hero {
    text-align: center;
    position: relative;
}

.contact-hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- CONTACT CONTENT --- */
.contact-content {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--accent-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

/* Contact Info */
.contact-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.info-title {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: start;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-details p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-details a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

.info-details a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.social-links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 18px;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    margin-top: 60px;
    background: var(--bg-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container {
    height: 300px;
    background: url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5ce?auto=format&fit=crop&w=1600&q=80') center/cover;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* --- NEWSLETTER SECTION --- */
.newsletter-contact-section {
    margin-top: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.newsletter-contact-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.newsletter-contact-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 16px;
}

.newsletter-contact-input {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
    width: 100%;
}

.newsletter-contact-input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.btn-newsletter-contact {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
    white-space: nowrap;
    width: 100%;
}

.btn-newsletter-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

/* --- TOGGLE SWITCH --- */
.toggle {
    position: relative;
    width: 52px;
    height: 28px;
    display: inline-block;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--glass-border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background: var(--accent-gradient);
    border-color: transparent;
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* Success Message */
.success-message {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--success);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 12px;
}

.success-message.show {
    display: flex;
}

/* FEEDBACK PAGE CONTENT  */
.feedback-page {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.feedback-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

/* Feedback Form Section */
.feedback-form-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.feedback-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-section-title i {
    color: var(--purple);
    font-size: 24px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.star {
    font-size: 28px;
    color: var(--glass-border);
    cursor: pointer;
    transition: 0.2s;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Submit Button */
.feedback-btn-submit {
    background: var(--purple);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.feedback-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.feedback-btn-submit:active {
    transform: translateY(0);
}

/* Testimonials Section */
.feedback-testimonials-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.feedback-testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: 0.3s;
}

.feedback-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feedback-testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feedback-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-border);
}

.feedback-testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feedback-testimonial-role {
    font-size: 14px;
    color: var(--text-muted);
}

.feedback-testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.feedback-testimonial-rating .star {
    font-size: 16px;
    cursor: default;
}

.feedback-testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
}

/* Common CSS */
.margin-bottom-24 {
    margin-bottom: 24px
}

/* Common CSS */

/* BLOG PAGE CONTENT */
.blog-page {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-list-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=80') center/cover;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.read-more:hover {
    gap: 10px;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.2s;
}

.popular-post:hover {
    color: var(--primary);
}

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.popular-post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.categories-list {
    list-style: none;
}

/* .categories-list li {
    margin-bottom: 12px;
} */

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.categories-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.category-count {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Ad Units */
.ad-unit {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, var(--bg-surface) 25%, transparent 25%, transparent 75%, var(--bg-surface) 75%, var(--bg-surface)),
        linear-gradient(45deg, var(--bg-surface) 25%, transparent 25%, transparent 75%, var(--bg-surface) 75%, var(--bg-surface));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.ad-sidebar {
    height: 250px;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination-link,
.pagination-current {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.pagination-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    pointer-events: none;
    /* Disable click on current page */
}

.pagination-ellipsis {
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BLOG DETAILS PAGE */

.blog-details-page {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.blog-details-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Blog Post Header */
.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=80') center/cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: 100%;
    max-height: 570px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Content */
.blog-content {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 32px 0 20px;
    color: var(--text-main);
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 28px 0 16px;
    color: var(--text-main);
}

.blog-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 32px 0;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
}

.blog-content blockquote p {
    font-size: 20px;
    font-style: italic;
    color: var(--text-main);
    margin: 0;
}

.blog-content ul,
.blog-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.blog-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 40px;
}

.social-sharing h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-right: auto;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}

.share-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.comments-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.comment-count {
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Comment Form */
.comment-form {
    margin-bottom: 40px;
}

.comment-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Comments List */
.comments-list {
    list-style: none;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--glass-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=80') center/cover;
}

.comment-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.comment-date {
    font-size: 14px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.comment-action:hover {
    color: var(--primary);
}

/* Related Posts */
.related-posts {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
}

.related-posts h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-main);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.related-post {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.2s;
}

.related-post:hover {
    transform: translateY(-4px);
}

.related-post-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    position: sticky;
    top: calc(var(--header-height) + 40px);
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.author-bio {
    text-align: center;
}

.author-bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=600&q=80') center/cover;
    border: 3px solid var(--glass-border);
    transition: border-color 0.3s ease;
}

.author-bio:hover .author-bio-avatar {
    border-color: var(--primary);
}

.author-bio h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.author-bio p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.author-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Product Page */
.product-page-wrapper {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.product-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-header-section {
    margin-bottom: 20px;
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    user-select: none;
}

.sort-dropdown-btn:hover {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.sort-dropdown-btn i {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.sort-dropdown.active .sort-dropdown-btn i {
    transform: rotate(180deg);
}

.sort-dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-dropdown);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
    display: none;
    z-index: 50;
    overflow: hidden;
}

.sort-dropdown.active .sort-dropdown-content {
    display: block;
}

.sort-dropdown-content a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: 0.1s;
}

.sort-dropdown-content a:hover {
    background: var(--bg-input);
    color: var(--primary);
}


/* --- FILTER BAR --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    /* Allows filters to wrap on smaller screens */
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    user-select: none;
}

.filter-btn:hover {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.filter-btn i {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.filter-dropdown.active .filter-btn i {
    transform: rotate(180deg);
}

.filter-content {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: var(--bg-dropdown);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    min-width: 240px;
    display: none;
    z-index: 50;
    overflow: hidden;
    padding: 8px 0;
}

/* Adjust width for specific filters */
.filter-dropdown:nth-child(5) .filter-content {
    /* Color filter */
    min-width: 280px;
}

.filter-dropdown.active .filter-content {
    display: block;
}

/* Show content when active class is on parent */

.filter-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: 0.1s;
}

.filter-content label:hover {
    background: var(--bg-input);
    color: var(--primary);
}

.filter-content input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    background-color: var(--bg-surface);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-content input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.filter-content input[type="checkbox"]:checked::after {
    content: "\f00c";
    /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Color Filter Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px 16px;
}

.color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.color-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
}

.color-option:hover {
    transform: scale(1.08);
}


/* --- IMAGE GRID --- */
.image-grid {
    /* Using Masonry-like grid structure for better visual flow */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: minmax(min-content, max-content);
    /* Important for dynamic heights */
    gap: 24px;
    margin-bottom: 40px;
}

.image-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
}

.image-card:hover {
    top: -6px;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.image-thumb {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.image-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.4s;
}

.image-card:hover .image-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

/* Placeholder for random height simulation */
.h-220 {
    height: 220px;
}

.h-280 {
    height: 280px;
}

.h-340 {
    height: 340px;
}

.h-400 {
    height: 400px;
}


.image-card-footer {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-card-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.image-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.image-card-actions {
    display: flex;
    gap: 8px;
}

.image-card-action-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.image-card-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Ad Units */
.ad-product-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    min-height: 90px;
}

.ad-product-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ad-product-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-product-medium-rectangle {
    width: 100%;
    max-width: 336px;
    height: 280px;
}

.ad-product-native {
    width: 100%;
    max-width: 600px;
    min-height: 300px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-product-native-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.ad-product-native-description {
    font-size: 14px;
    margin-bottom: 12px;
}

.ad-product-native-cta {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.ad-product-native-cta:hover {
    background: var(--secondary);
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-surface) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    display: flex;
    opacity: 1;
}

.login-modal-content {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    background: var(--bg-gradient);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.active .login-modal-content {
    transform: scale(1);
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    color: var(--text-main);
    z-index: 101;
}

.login-modal-close:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary);
}

.login-modal-body {
    display: flex;
    width: 100%;
    height: 100%;
}

.login-visual-side {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
}

.login-form-side {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
}

.login-form-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.8s ease-out;
    transition: background 0.5s ease, box-shadow 0.5s ease, border 0.5s ease;
}

.login-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-form-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: color 0.5s ease;
}

.login-form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.5s ease;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-field {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.login-input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--input-focus-bg);
}

.login-input-label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease;
    font-size: 1rem;
}

.login-input-field:focus~.login-input-label,
.login-input-field:not(:placeholder-shown)~.login-input-label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--card-bg);
    padding: 0 4px;
    border-radius: 4px;
}

.login-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.login-btn-primary:active {
    transform: scale(0.98);
}

.login-social-login {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn-social {
    width: 100%;
    padding: 12px;
    background: var(--btn-social-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn-social:hover {
    background: var(--btn-social-hover);
    border-color: var(--primary);
}

.login-google-icon {
    color: #ea4335;
}

.login-fb-icon {
    color: #1877f2;
}

.login-toggle-auth {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-toggle-auth a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    cursor: pointer;
}

.login-toggle-auth a:hover {
    text-decoration: underline;
    color: var(--secondary);
}

.login-hidden {
    display: none;
}

.login-scene-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.login-core-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 10;
}

.login-core-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--ring-color);
    transition: border-color 0.5s ease;
}

.login-ring-1 {
    animation: spin 20s linear infinite;
    border-color: rgba(99, 102, 241, 0.6);
}

.login-ring-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation: spinReverse 25s linear infinite;
    border-style: solid;
    border-width: 1px;
}

.login-ring-3 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: spin 10s linear infinite;
}

.login-core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff 0%, #6366f1 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary);
    animation: pulseCore 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-core-center i {
    font-size: 24px;
    color: white;
    z-index: 2;
}

.login-orbit-item {
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--orbit-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.login-orbit-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    background: var(--orbit-hover-bg);
    border-color: var(--primary);
}

.login-orbit-item i {
    font-size: 28px;
    margin-bottom: 8px;
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-orbit-item span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-pos-1 {
    top: 15%;
    left: 20%;
}

.login-pos-2 {
    top: 20%;
    right: 15%;
}

.login-pos-3 {
    bottom: 20%;
    left: 25%;
}

.login-pos-4 {
    bottom: 25%;
    right: 20%;
}

.login-connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform-origin: left center;
    opacity: 0.6;
    z-index: 2;
    overflow: hidden;
}

.login-connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    transform: translateX(-100%);
    animation: dataFlow 3s infinite;
}

.login-line-1 {
    width: 140px;
    top: 36%;
    left: 31%;
    transform: rotate(-135deg);
}

.login-line-2 {
    width: 150px;
    top: 37%;
    left: 50%;
    transform: rotate(-45deg);
}

.login-line-3 {
    width: 140px;
    top: 62%;
    left: 34%;
    transform: rotate(135deg);
}

.login-line-4 {
    width: 150px;
    top: 60%;
    left: 53%;
    transform: rotate(45deg);
}

.login-line-1::after {
    animation-delay: 0s;
}

.login-line-2::after {
    animation-delay: 1.5s;
}

.login-line-3::after {
    animation-delay: 0.8s;
}

.login-line-4::after {
    animation-delay: 2.2s;
}

.login-hero-text {
    position: absolute;
    bottom: 40px;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.login-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

.login-hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.5s ease;
}

.login-ambient-light {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.login-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.login-blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    animation-delay: 0s;
}

.login-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: -5s;
}

.login-particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.login-particle {
    position: absolute;
    background: var(--particle-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
    transition: background 0.5s ease;
}

.login-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    color: var(--text-main);
}

.login-theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulseCore {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 70px rgba(99, 102, 241, 0.7);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes dataFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* My Profile */
.my-profile-page-wrapper {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* --- SIDEBAR --- */
.account-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s;
}

.user-brief {
    text-align: center;
    margin-bottom: 32px;
}

.user-brief-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=200&q=80') center/cover;
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 3px var(--primary);
    transition: 0.3s;
}

.user-brief h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: 700;
}

.user-brief p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-input);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.acc-link:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.acc-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-color: rgba(56, 189, 248, 0.15);
}

.acc-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* --- CONTENT AREA --- */
.tab-panel {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-section-header h2 {
    font-size: 28px;
    color: var(--text-main);
    font-weight: 700;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

/* --- PROFILE VIEW VS EDIT --- */
.profile-view-mode {
    display: block;
}

.profile-edit-mode {
    display: none;
}

/* Avatar Edit - In Page */
.profile-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.avatar-edit-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-edit-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 3px solid var(--bg-surface);
    transition: 0.2s;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

/* Profile Form */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-val {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- DOWNLOADS / FAVORITES GRID --- */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.asset-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
}

.asset-card:hover {
    top: -6px;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.asset-thumb {
    height: 180px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.4s;
}

.asset-card:hover .asset-thumb img {
    transform: scale(1.1);
    opacity: 1;
}

.asset-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    opacity: 0;
    transform: translateY(-5px);
}

.asset-card:hover .asset-like-btn {
    opacity: 1;
    transform: translateY(0);
}

.asset-like-btn:hover {
    transform: scale(1.1);
}

.asset-details {
    padding: 16px;
}

.asset-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.asset-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download-sm {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- DEVICES LIST --- */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: 0.2s;
}

.device-item:hover {
    border-color: var(--glass-border);
    background: var(--bg-input);
}

.device-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-input);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    border: 1px solid var(--glass-border);
}

.device-info {
    flex: 1;
}

.device-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.device-status {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.inactive {
    background: #f59e0b;
}

.status-dot.offline {
    background: #64748b;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.btn-logout:hover {
    background: rgba(251, 113, 133, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

/* My Profile */

/* ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    flex: 1;
    padding: 0 0.75rem;
}

.col-1 {
    flex: 0 0 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333333%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
    }

    .col-md-11 {
        flex: 0 0 91.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
    }
}

/* ===== PRODUCT DETAIL ===== */
.product-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-detail-section {
    padding: 2rem 0;
}

.breadcrumb-container {
    margin-bottom: 1.5rem;
}

.product-gallery {
    margin-bottom: 1.5rem;
}

.product-main-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    background: #5a8c7a;
    /* teal/green bg like in image */
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--success);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-badge.free {
    background: var(--success);
}

.product-badge.premium {
    background: var(--danger);
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumbnail {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumbnail.active {
    border-color: var(--primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 0.5rem 2.5rem;
}

/* Category label */
.product-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Title */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Price row */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.price-free {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #fbbf24;
}

.reviews {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.product-price.free {
    color: var(--success);
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.125rem;
}

.price-discount {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.product-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== SELECT FORMAT SECTION ===== */
.select-format-section {
    margin-bottom: 1.75rem;
}

.select-format-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: block;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--bg-input);
    border: 1.5px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.format-option:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
}

.format-option.selected {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
}

.format-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.format-icon.psd {
    background: linear-gradient(135deg, #31a8ff, #0a6fcd);
}

.format-icon.ai {
    background: linear-gradient(135deg, #f9a900, #e05c00);
}

.format-icon.canva {
    background: linear-gradient(135deg, #a259ff, #6f2cc0);
}

.format-text {
    flex: 1;
}

.format-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.format-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.125rem;
}

.format-check {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.format-option.selected .format-check {
    opacity: 1;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== DOWNLOAD BUTTON ===== */
.btn-download-main {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #0ea5e9);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
    filter: brightness(1.05);
}

.btn-download-main i {
    font-size: 1.1rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Product Actions Row */
.product-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-favorite {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: var(--bg-input);
    border: 1.5px solid var(--glass-border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.125rem;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.meta-icon {
    width: 2rem;
    height: 2rem;
    background: var(--bg-input);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.meta-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.product-actions {
    /* display: flex; */
    /* gap: 1rem; */
    margin-bottom: 1.5rem;
}

/* ===== PREMIUM BADGE (Gold, top-left) ===== */
.premium-badge-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #c9942a, #f0c060, #c9942a);
    color: #3a2000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 0.4rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
    text-transform: uppercase;
}

.premium-badge-overlay i {
    font-size: 0.75rem;
}

.btn-download {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-0.125rem);
}

.btn-favorite {
    width: 3rem;
    height: 3rem;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-favorite:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-favorite.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.product-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-links {
    display: flex;
    gap: 0.75rem;
}

.share-link {
    width: 2rem;
    height: 2rem;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.share-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-0.125rem);
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tab-content p {
    margin-bottom: 1rem;
}

.tab-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-content li {
    margin-bottom: 0.5rem;
}

.license-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.license-table th,
.license-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.license-table th {
    font-weight: 600;
    color: var(--text-main);
}

/* Review Summary */
.review-summary {
    background: var(--bg-input);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-average-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.review-bars {
    margin-top: 1rem;
}

.review-bar {
    margin-bottom: 0.5rem;
}

.progress {
    height: 0.625rem;
    background: var(--bg-surface);
    border-radius: 0.3125rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 0.3125rem;
}

/* Review List */
.review-list {
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.review-rating {
    margin-bottom: 0.75rem;
}

.review-content {
    color: var(--text-main);
    line-height: 1.6;
}

.add-review-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.add-review-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Related Products */
.related-products {
    margin-top: 3rem;
}

.related-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-btn {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all-btn:hover {
    gap: 0.75rem;
}

/* ===== MODALS ===== */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
    padding: 2rem;
}

.image-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: -4rem;
}

.modal-next {
    right: -4rem;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.zoom-controls {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.zoom-btn-control {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.zoom-btn-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-thumbnails {
    position: absolute;
    bottom: -5rem;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.75rem;
    max-height: 5rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.modal-thumbnail {
    width: 100%;
    height: 5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.modal-thumbnail.active {
    border-color: var(--primary);
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.review-modal.active {
    display: flex;
}

.review-modal-content {
    background: var(--bg-surface);
    border-radius: 1rem;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.review-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.review-modal-close {
    width: 2rem;
    height: 2rem;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.review-modal-close:hover {
    background: var(--danger);
    color: white;
}

.review-form {
    padding: 1.5rem;
}

/* ===== ADSENSE CONTAINER ===== */
.adsense-container {
    margin: 1.875rem 0;
    padding: 1.25rem;
    background-color: var(--bg-surface);
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.adsense-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -2.5rem;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.view-all-btn {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all-btn:hover {
    gap: 0.75rem;
}

/* Delete Account Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(251, 113, 133, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 24px;
    margin-right: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--danger);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.btn-delete {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(251, 113, 133, 0.3);
}

.btn-delete:hover {
    background: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(251, 113, 133, 0.4);
}

/* Delete Account Modal */

/* Category Css */
.hero-category {
    min-height: clamp(320px, 50vh, 420px);
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border-radius: clamp(16px, 3vw, 24px);
    margin: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 24px);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 40px);
}

.hero-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-category-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-category h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: clamp(12px, 2vw, 20px);
    line-height: 1.2;
    background: linear-gradient(90deg, #06b6d4, #6366f1, #8b5cf6, #ec4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 6s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-category p {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto clamp(30px, 5vw, 40px);
    line-height: 1.6;
}

/* HERO-category SEARCH - ENHANCED DESIGN */
.hero-category-search {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-category-search .hero-search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(20px, 3vw, 24px);
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.hero-category-search .hero-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-category-search .hero-search-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-category-search .hero-search-container:hover::before {
    opacity: 1;
}

.hero-category-search .hero-search-select {
    padding: clamp(18px, 3vw, 22px) clamp(20px, 4vw, 24px);
    font-size: clamp(15px, 3vw, 17px);
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    max-width: clamp(160px, 20vw, 200px);
}

.hero-category-search .hero-search-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-category-search .hero-search-select option {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 12px;
}

.hero-category-search .search-input {
    flex: 1;
    padding: clamp(18px, 3vw, 22px) clamp(20px, 4vw, 24px);
    font-size: clamp(16px, 3vw, 18px);
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-category-search .search-input::placeholder {
    color: rgba(248, 250, 252, 0.7);
    font-weight: 400;
}

.hero-category-search .search-input:focus {
    background: rgba(255, 255, 255, 0.08);
}

.hero-category-search .search-btn {
    width: clamp(60px, 8vw, 70px);
    height: clamp(60px, 8vw, 70px);
    background: var(--accent-gradient);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(20px, 3vw, 24px);
    position: relative;
    overflow: hidden;
}

.hero-category-search .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.hero-category-search .search-btn:hover::before {
    transform: translateX(0);
}

.hero-category-search .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.hero-category-search .search-btn:active {
    transform: scale(0.98);
}

/* Search suggestions */
/* .category-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dropdown);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: -1px;
} */
.category-search-suggestions {
    /* position: absolute; */
    /* top: 100%;
    left: 0; */
    width: 100%;
    background: var(--bg-dropdown);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px);
    box-shadow: var(--shadow-md);
    /* z-index: 100; */
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: -1px;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary) var(--bg-dropdown);
    /* Firefox */
}

/* Webkit Browsers */
.category-search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.category-search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-search-suggestions::-webkit-scrollbar-thumb {
    background: --var(--primary);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.category-search-suggestions::-webkit-scrollbar-thumb:hover {
    background: --var(--primary);
}

/* .search-suggestions.active {
    display: block;
} */

.suggestion-item {
    padding: clamp(14px, 2.5vw, 18px) clamp(20px, 4vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 14px);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--glass-border);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-input);
}

.suggestion-item i {
    color: var(--primary);
    font-size: clamp(16px, 2.5vw, 18px);
}

.suggestion-text {
    color: var(--text-main);
    font-size: clamp(15px, 2.5vw, 16px);
    font-weight: 500;
}

.suggestion-category {
    color: var(--text-muted);
    font-size: clamp(13px, 2vw, 14px);
    margin-left: auto;
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Popular searches */
.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.5vw, 14px);
    margin-top: clamp(20px, 3vw, 24px);
    justify-content: center;
}

.popular-search-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 2.5vw, 16px);
    border-radius: 24px;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.popular-search-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.floating-element:nth-child(1) {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: clamp(100px, 15vw, 150px);
    height: clamp(100px, 15vw, 150px);
    top: 60%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: clamp(60px, 10vw, 90px);
    height: clamp(60px, 10vw, 90px);
    bottom: 15%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }
}

.category-showcase {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px) clamp(60px, 10vw, 80px);
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 60px);
}

.section-header h2 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: clamp(12px, 2.5vw, 16px);
    color: var(--text-main);
}

.section-header p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap;
    margin-bottom: clamp(30px, 6vw, 40px);
}

.filter-chip {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 3vw, 20px);
    border-radius: 30px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.filter-chip.active {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap;
    margin-bottom: clamp(30px, 6vw, 40px);
}

.filter-chip {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 3vw, 20px);
    border-radius: 30px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.filter-chip.active {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
}

/* Category Card */
.category-page-card {
    background: var(--bg-surface);
    border-radius: clamp(12px, 2.5vw, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    height: clamp(350px, 50vh, 420px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.category-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.category-image {
    position: relative;
    width: 100%;
    height: clamp(200px, 40vh, 260px);
    overflow: hidden;
    background: var(--bg-body);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-page-card:hover .category-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: clamp(12px, 2.5vw, 16px);
    left: clamp(12px, 2.5vw, 16px);
    background: var(--primary);
    color: white;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-badge.premium {
    background: var(--danger);
}

.category-badge.free {
    background: var(--success);
}

.category-content {
    padding: clamp(16px, 3vw, 24px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: clamp(8px, 2vw, 12px);
    line-height: 1.2;
}

.category-description {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: clamp(16px, 3vw, 20px);
    flex-grow: 1;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(16px, 3vw, 20px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    font-size: clamp(12px, 2vw, 14px);
    color: var(--text-muted);
}

.stat-item i {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--primary);
}

.category-action {
    display: flex;
    gap: clamp(8px, 2vw, 12px);
}

.btn-explore {
    flex: 1;
    background: var(--accent-gradient);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 20px);
    border-radius: clamp(8px, 2vw, 12px);
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.btn-preview {
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: clamp(8px, 2vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.trending {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px);
    background: var(--bg-surface);
    position: relative;
    z-index: 1;
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(30px, 6vw, 40px);
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 20px);
}

.trending-header h2 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--text-main);
}

.filter-tabs {
    display: flex;
    gap: clamp(6px, 1.5vw, 8px);
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2.5vw, 16px);
    border-radius: clamp(6px, 1.5vw, 8px);
    font-size: clamp(13px, 2.5vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Template Grid */
.category-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(30px, 6vw, 40px);
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

/* PROMOTIONAL SECTION */
.promotion-section {
    padding: 44px 24px;
    position: relative;
    z-index: 1;
    /* background: var(--bg-surface); */
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-width: var(--content-width);
    margin: 0 auto;
}

.promotion-card {
    background: var(--bg-surface);
    ;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.promotion-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 100%);
    color: white;
    z-index: 1;
    transition: all 0.3s ease;
}

.promotion-card .card-content .category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: white;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.promotion-card .card-content .category-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.home-category-title {
    position: absolute;
    top: -8px;
    left: 12px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    z-index: 10;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.promotion-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.promotion-card:hover .promotion-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.3);
}

.promotion-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 16px 8px;
    color: var(--text-main);
    text-align: center;
}

.promotion-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 16px 16px;
    text-align: center;
}

/* Login Code */

.main-container {
    display: flex;
    width: 100%;
    flex: 1;
    /* Fills space between header and footer */
    min-height: 80vh;
    /* Minimum height for visuals */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* --- LEFT SIDE (VISUALS) --- */
.visual-side {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.scene-container {
    position: relative;
    width: 600px;
    height: 600px;
}

.core-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 10;
}

.core-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--ring-color);
    transition: border-color 0.5s ease;
}

.ring-1 {
    animation: spin 20s linear infinite;
    border-color: rgba(99, 102, 241, 0.6);
}

.ring-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation: spinReverse 25s linear infinite;
    border-style: solid;
    border-width: 1px;
}

.ring-3 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: spin 10s linear infinite;
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff 0%, #6366f1 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary);
    animation: pulseCore 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-center i {
    font-size: 24px;
    color: white;
    z-index: 2;
}

.orbit-item {
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--orbit-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 15px 35px var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.orbit-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    background: var(--orbit-hover-bg);
    border-color: var(--primary);
}

.orbit-item i {
    font-size: 28px;
    margin-bottom: 8px;
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orbit-item span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pos-1 {
    top: 15%;
    left: 20%;
}

.pos-2 {
    top: 20%;
    right: 15%;
}

.pos-3 {
    bottom: 20%;
    left: 15%;
}

.pos-4 {
    bottom: 25%;
    right: 20%;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform-origin: left center;
    opacity: 0.6;
    z-index: 2;
    overflow: hidden;
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    transform: translateX(-100%);
    animation: dataFlow 3s infinite;
}

.line-1 {
    width: 140px;
    top: 36%;
    left: 31%;
    transform: rotate(-135deg);
}

.line-2 {
    width: 150px;
    top: 37%;
    left: 50%;
    transform: rotate(-45deg);
}

.line-3 {
    width: 140px;
    top: 62%;
    left: 34%;
    transform: rotate(135deg);
}

.line-4 {
    width: 150px;
    top: 60%;
    left: 53%;
    transform: rotate(45deg);
}

.line-1::after {
    animation-delay: 0s;
}

.line-2::after {
    animation-delay: 1.5s;
}

.line-3::after {
    animation-delay: 0.8s;
}

.line-4::after {
    animation-delay: 2.2s;
}

/* .hero-text {
    position: absolute;
    bottom: 15px;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    transition: all 0.5s ease;
} */

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.5s ease;
}

/* --- RIGHT SIDE (FORM) --- */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* background: rgba(0, 0, 0, 0.05); */
    backdrop-filter: blur(10px);
    padding: 40px;
}

.form-card {
    width: 400px;
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.8s ease-out;
    transition: background 0.5s ease, box-shadow 0.5s ease, border 0.5s ease;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    transform: skewX(-15deg);
}

.form-card:hover::before {
    left: 100%;
    transition: 0.7s ease-in-out;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: color 0.5s ease;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.5s ease;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--bg-surface);
}

.input-label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease;
    font-size: 1rem;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--bg-card);
    padding: 0 4px;
    border-radius: 4px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.social-login {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    background: var(--btn-social-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-social:hover {
    background: var(--btn-social-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.google-icon {
    color: #ea4335;
}

.fb-icon {
    color: #1877f2;
}

.github-icon {
    color: #333;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    padding: 0 15px;
}

.toggle-auth {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toggle-auth a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-auth a:hover {
    text-decoration: underline;
    color: var(--secondary);
}

.hidden {
    display: none;
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--particle-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
    transition: background 0.5s ease;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.input-group.error .input-field {
    border-color: var(--error);
}

.input-group.error .error-message {
    display: block;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes pulseCore {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 70px rgba(99, 102, 241, 0.7);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes dataFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.ambient-light {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 60%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    animation-delay: -10s;
}

.forgot-password {
    margin-bottom: 5px;
    color: var(--text-muted);
}

/* Login Code */

/* Responsive */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 16px;
    }

    .terms-page {
        padding: 0 16px;
    }

    .footer-inner {
        padding: 0 16px;
    }
}

@media (min-width: 769px) {
    .ad-banner-mobile {
        display: none;
    }
}

/* Max Width */
@media (max-width: 1024px) {
    .my-profile-page-wrapper {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
    }

    .header-search-wrapper {
        max-width: 300px;
    }

    .btn-upload {
        display: none;
    }

    .btn-sign-in {
        width: max-content;
        font-size: 14px;
        padding: 8px;
    }

    .category-section-header h2 {
        font-size: 36px;
    }

    .trending-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .feedback-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-title {
        font-size: 36px;
    }

    .featured-ad-grid {
        grid-template-columns: 1fr;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .ad-sidebar {
        height: 200px;
    }

    .blog-details-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        max-width: 100%;
        position: static;
        margin: 0;
    }

    .ad-unit.ad-sidebar .ad-placeholder {
        height: 250px;
    }

    .login-modal-body {
        flex-direction: column;
    }

    .login-visual-side {
        height: 40%;
    }

    .login-form-side {
        height: 60%;
        padding: 20px;
    }
}
@media (max-width: 900px) {
    .main-container { flex-direction: column; height: auto; min-height: auto; }
    .visual-side { height: 60vh; width: 100%; overflow: hidden; order:2; }
    .scene-container { transform: scale(0.7); }
}

/* Min Width */
@media (min-width: 1024px) {
    
    .contact-content {
        padding: 60px 0;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 40px;
    }

    .map-section {
        margin-top: 80px;
    }

    .newsletter-contact-section {
        margin-top: 80px;
        padding: 40px;
    }

    .site-footer {
        padding: 80px 0 40px;
    }
}

/* Max Width: */
@media (max-width: 768px) {

    .promotion-section {
        padding: 60px 20px;
    }

    .promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .promotion-image {
        height: 160px;
    }

    .ad-banner-desktop {
        display: none;
    }

    .site-header {
        padding: 0 16px;
    }

    .brand-text {
        display: none;
    }

    .header-search-wrapper {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

   

    .hero-search .search-select {
        display: none;
    }

    .categories {
        padding: 60px 20px;
    }

    .trending {
        padding: 60px 20px;
    }

    .cta {
        padding: 60px 20px;
    }

    .newsletter {
        padding: 60px 20px;
    }

    .newsletter-inner {
        padding: 40px 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ad-in-content {
        height: 200px;
    }

    .ad-in-content .ad-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .features-grid,
    .categories-grid,
    .steps-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        overflow-x: auto;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    .faq-category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .page-title {
        font-size: 32px;
    }

    .feedback-form-section,
    .feedback-testimonials-section,
    .faq-section {
        padding: 30px;
    }

    .feedback-section-title {
        font-size: 24px;
    }

    /* Ad Units Responsive */
    .in-content-ad {
        max-width: 100%;
    }

    .blog-title {
        font-size: 36px;
    }

    .blog-subtitle {
        font-size: 18px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        height: 250px;
    }

    .blog-content {
        padding: 24px;
    }

    .comments-section {
        padding: 24px;
    }

    .related-posts {
        padding: 24px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .ad-unit.ad-in-content .ad-placeholder {
        height: 250px;
    }

    .product-page-title {
        font-size: 28px;
    }

    .filter-bar {
        justify-content: flex-start;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    /* .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    } */

    .template-image-container {
        height: 200px;
    }

    .ad-product-leaderboard {
        height: 90px;
    }

    .product-page-title {
        font-size: 28px;
    }

    .filter-bar {
        justify-content: flex-start;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    /* .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    } */

    .template-image-container {
        height: 200px;
    }

    .ad-product-leaderboard {
        height: 90px;
    }

    .login-modal-content {
        width: 95%;
        height: 90vh;
        max-height: none;
    }

    .login-modal-body {
        flex-direction: column;
    }

    .login-visual-side {
        height: 30%;
    }

    .login-form-side {
        height: 70%;
        padding: 20px;
    }

    .login-form-card {
        padding: 30px 20px;
    }

    .login-hero-text h1 {
        font-size: 2rem;
    }

    .login-scene-container {
        transform: scale(0.7);
    }

    .my-profile-page-wrapper {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        margin-bottom: 32px;
        z-index: 1;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 12px;
        gap: 12px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* Hide scrollbar */
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .acc-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .profile-form-grid,
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Min Width */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-contact-form {
        flex-direction: row;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .promotion-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-info {
        padding: 0.5rem 0.5rem;
    }

    .hero p {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    .newsletter h2 {
        font-size: 24px;
    }

    .newsletter p {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .ad-in-content {
        height: 150px;
    }

    .ad-in-content .ad-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .blog-post-title {
        font-size: 28px;
    }

    .blog-content h2 {
        font-size: 24px;
    }

    .blog-content h3 {
        font-size: 20px;
    }

    .blog-content p {
        font-size: 16px;
    }

    .blog-content li {
        font-size: 16px;
    }

    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .social-sharing h3 {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .ad-in-content .ad-text h3 {
        font-size: 16px;
    }

    .ad-in-content .ad-text p {
        font-size: 12px;
    }

    .ad-in-content .ad-cta {
        padding: 8px 16px;
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .stat-label {
        font-size: 14px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .feature-card,
    .testimonial-card {
        padding: 24px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .feedback-form-section,
    .feedback-testimonials-section,
    .faq-section {
        padding: 24px;
    }

    .feedback-section-title {
        font-size: 22px;
    }

    .feedback-testimonial-header {
        flex-direction: column;
        text-align: center;
    }

    /* Form adjustments */
    .form-control,
    .feedback-btn-submit {
        font-size: 14px;
        padding: 12px 14px;
    }

    /* Star rating adjustments */
    .star {
        font-size: 24px;
    }

    /* Ad adjustments */
    .ad-feed-container {
        padding: 16px;
    }

    .featured-ad-section {
        padding: 24px;
    }

    .blog-title {
        font-size: 28px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .blog-categories {
        justify-content: center;
    }

    .ad-placeholder {
        height: 200px;
    }

    .ad-sidebar {
        height: 180px;
    }

    /* Sidebar responsive */
    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-page-wrapper {
        padding: 0 12px;
    }

    .filter-dropdown:nth-child(5) .filter-content {
        min-width: 240px;
    }

    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* .template-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    } */

    /* .template-card{
        width: max-content;
    } */

    .template-image-container {
        height: 310px;
    }

    .template-title {
        font-size: 1.2rem;
    }

    .search-results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ad-product-leaderboard {
        height: 90px;
    }

    .ad-medium-rectangle {
        height: 250px;
    }

    .login-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .login-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .login-form-card {
        padding: 20px;
    }

    .login-form-header h2 {
        font-size: 1.5rem;
    }

    .login-hero-text {
        bottom: 20px;
    }

    .login-hero-text h1 {
        font-size: 1.5rem;
    }

    .login-scene-container {
        transform: scale(0.5);
    }

    .modal {
        padding: 24px;
    }

    .modal-title {
        font-size: 20px;
    }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}