/* =====================================================
   PNGStyle - Premium Design System
   Professional Glassmorphism UI v3.0
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* â”€â”€ Design Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --bg-main: #0a0a0c;
    --bg-surface: rgba(18, 18, 22, 0.72);
    --bg-surface-hover: rgba(28, 28, 34, 0.88);
    --bg-card: rgba(22, 22, 26, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.35);
    --border-focus: rgba(16, 185, 129, 0.6);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --primary-gradient-alt: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --accent: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.18);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --glow-primary: 0 0 40px rgba(16, 185, 129, 0.25);
    --glow-accent: 0 0 60px rgba(52, 211, 153, 0.2);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
    --card-shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16,185,129,0.2);

    --backdrop-blur: 20px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 72px;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-hover: rgba(255, 255, 255, 0.96);
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(16, 185, 129, 0.1);
    --border-hover: rgba(16, 185, 129, 0.3);
    --border-focus: rgba(16, 185, 129, 0.5);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #047857;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent: #059669;
    --accent-glow: rgba(16, 185, 129, 0.1);
    --card-shadow: 0 8px 32px rgba(16, 185, 129, 0.08), 0 0 0 1px rgba(16,185,129,0.06);
    --card-shadow-hover: 0 20px 50px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16,185,129,0.2);
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-normal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* â”€â”€ Animated Background â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.bg-orb-1 {
    width: 700px; height: 700px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 600px; height: 600px;
    bottom: -150px; right: -100px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    animation-delay: -4s;
}
.bg-orb-3 {
    width: 400px; height: 400px;
    top: 40%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation-delay: -8s;
}
[data-theme="light"] .bg-orb-1 { opacity: 0.4; }
[data-theme="light"] .bg-orb-2 { opacity: 0.3; }
[data-theme="light"] .bg-orb-3 { opacity: 0.2; }

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.08); }
}

/* â”€â”€ Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
main.container { padding-top: calc(var(--header-height) + 1rem); min-height: 100vh; position: relative; z-index: 1; }

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}
[data-theme="light"] header {
    background: rgba(245, 243, 255, 0.85);
}
header .container {
    height: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; flex-shrink: 0;
}
.logo-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    position: relative; overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.logo-mark::before {
    content: ''; position: absolute; inset: -1px;
    background: var(--primary-gradient-alt);
    border-radius: inherit; opacity: 0;
    transition: opacity var(--transition-fast);
}
.logo:hover .logo-img { transform: scale(1.08); filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.4)); }
.logo-mark svg { width: 20px; height: 20px; color: white; position: relative; z-index: 1; }
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 1.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.logo-badge {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
    background: var(--primary-gradient); color: white;
    padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
    align-self: flex-start; margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
    display: flex; list-style: none; gap: 0.25rem;
    flex: 1; justify-content: center;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: ''; position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px; border-radius: 1px;
    background: var(--primary-gradient);
    transition: all var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(139,92,246,0.08); }
.nav-link.active {
    color: var(--primary-light);
    background: rgba(139,92,246,0.1);
}
.nav-link.active::after { left: 20%; right: 20%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.theme-toggle-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: var(--radius-sm); cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.theme-toggle-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary-light);
    background: rgba(139,92,246,0.1);
    transform: scale(1.05);
}
.theme-toggle-btn svg { width: 16px; height: 16px; }

/* â”€â”€ Pages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Hero Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
    text-align: center;
    padding: 5rem 1rem 3rem;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary-light);
    padding: 0.4rem 1rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease;
}
.hero-eyebrow span.dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary-light);
    display: inline-block;
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(0.8); } }

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    animation: slideDown 0.6s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px; margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: slideDown 0.6s ease 0.2s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats row */
.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 2.5rem; margin-bottom: 2.5rem;
    animation: slideDown 0.6s ease 0.3s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.hero-stat .lbl {
    font-size: 0.72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 0.2rem;
}
.hero-stats .divider {
    width: 1px; height: 40px;
    background: var(--border-color);
}

/* Source Toggle */
.source-toggle {
    display: inline-flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease 0.35s both;
    backdrop-filter: blur(12px);
}
.source-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px; border: none;
    cursor: pointer;
    font-size: 0.82rem; font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.source-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(139,92,246,0.4);
}

/* â”€â”€ Search Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-container {
    max-width: 680px; margin: 0 auto 2rem;
    animation: slideDown 0.6s ease 0.4s both;
}
.search-wrapper {
    position: relative;
    display: flex; align-items: center;
}
.search-wrapper::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}
.search-wrapper:focus-within::before { opacity: 0.6; }

.search-icon {
    position: absolute; left: 1.25rem;
    width: 20px; height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
    z-index: 1;
}
.search-wrapper:focus-within .search-icon { color: var(--primary-light); }

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem 1rem 3.2rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    backdrop-filter: blur(var(--backdrop-blur));
    transition: all var(--transition-fast);
    position: relative; z-index: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 0 4px rgba(139,92,246,0.12), var(--glow-primary);
}

/* â”€â”€ Category Explorer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.category-explorer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    animation: slideDown 0.6s ease 0.45s both;
}
.cat-chip {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.cat-chip .cat-emoji { font-size: 1rem; }
.cat-chip:hover, .cat-chip.active {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.35);
    color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}

/* â”€â”€ Gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery-section { padding-bottom: 5rem; }

.gallery-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.02em;
}
.gallery-count {
    font-size: 0.82rem; font-weight: 600;
    color: var(--primary-light);
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Gallery Cards */
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(12px);
    position: relative;
    animation: cardIn 0.4s ease both;
}
@keyframes cardIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.gallery-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px) scale(1.01);
}
.gallery-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: var(--primary-gradient);
    opacity: 0; z-index: 0;
    transition: opacity var(--transition-fast);
}
.gallery-card:hover::after { opacity: 0.03; }

.card-img-wrapper {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
    overflow: hidden; position: relative;
    padding: 0.75rem;
}
.gallery-card img {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform var(--transition-normal);
    z-index: 1;
}
.gallery-card:hover img { transform: scale(1.08); }

/* Card Favorite Button */
.card-favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #a09abf;
}
.card-favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
.card-favorite-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.card-body {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--border-color);
    position: relative; z-index: 1;
}
.card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.card-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.35rem;
}
.card-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--success); flex-shrink: 0;
}

.card-download-overlay {
    position: absolute; inset: 0;
    background: rgba(139,92,246,0.85);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; z-index: 2;
    transition: opacity var(--transition-fast);
    border-radius: inherit;
}
.gallery-card:hover .card-download-overlay { opacity: 1; }
.card-download-overlay svg { width: 28px; height: 28px; color: white; }

/* â”€â”€ Loader & Warning â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery-loader {
    display: none;
    text-align: center;
    padding: 5rem 2rem;
}
.spinner-ring {
    width: 48px; height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gallery-warning {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.06);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    color: #f87171;
    margin-bottom: 2rem;
}
.gallery-warning svg { width: 48px; height: 48px; margin: 0 auto 1rem; display: block; }
.gallery-warning h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem; margin-bottom: 0.5rem;
}

/* â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pagination-container {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 3rem 0 1rem; flex-wrap: wrap;
}
.pagination-btn {
    min-width: 40px; height: 40px;
    padding: 0 0.75rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer; font-family: var(--font-body);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.pagination-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary-light);
    background: rgba(139,92,246,0.1);
}
.pagination-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(139,92,246,0.4);
}
.pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* â”€â”€ Glass Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    box-shadow: var(--card-shadow);
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal {
    position: fixed; inset: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}
.modal.open { display: flex; }

.modal-card {
    background: rgba(14, 12, 28, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 820px; width: 100%;
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,92,246,0.1);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
[data-theme="light"] .modal-card { background: rgba(245, 243, 255, 0.98); }

.modal-main-split {
    display: flex;
    gap: 2.5rem;
    width: 100%;
}
@media (max-width: 640px) {
    .modal-main-split {
        flex-direction: column;
        gap: 1.5rem;
    }
    .modal-right {
        width: 100% !important;
    }
}

/* Similar Images Styles */
.modal-similar-section {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    width: 100%;
    text-align: left;
}
.modal-similar-section h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.modal-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (max-width: 600px) {
    .modal-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.similar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .similar-card {
    background: rgba(16, 185, 129, 0.03);
}
.similar-card:hover {
    border-color: var(--primary-light);
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .similar-card:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.1);
}
.similar-card img {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.2s ease;
}
.similar-card:hover img {
    transform: scale(1.06);
}

.modal-close-btn {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-close-btn:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444; transform: scale(1.05);
}

.modal-left {
    flex: 1; min-height: 260px; max-height: 360px;
    position: relative;
    border-radius: var(--radius-lg);
    background: repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 0 0 / 24px 24px;
    overflow: hidden;
}
.modal-left img {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%; height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(139,92,246,0.25));
    transition: transform var(--transition-normal);
}
.modal-left img:hover { transform: scale(1.04); }

.modal-right {
    width: 260px; flex-shrink: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 1.5rem;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem; font-weight: 800;
    line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.modal-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    color: var(--primary-light);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
}

.modal-specs {
    display: flex; flex-direction: column; gap: 0.75rem;
    padding: 1rem 0; border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.spec-row {
    display: flex; justify-content: space-between; align-items: center;
}
.spec-label { font-size: 0.78rem; color: var(--text-muted); }
.spec-value {
    font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
}

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none; border-radius: var(--radius-md);
    padding: 0.85rem 1.6rem;
    font-size: 0.9rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer; width: 100%;
    transition: all var(--transition-fast);
    position: relative; overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0.12), transparent);
    transition: opacity var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,92,246,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: 0.6; cursor: not-allowed;
    transform: none; box-shadow: none;
}

.download-animation-container { display: flex; align-items: center; gap: 0.5rem; }

.spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* â”€â”€ Tool Pages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tool-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.tool-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.tool-hero p { color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

.tool-card {
    max-width: 760px; margin: 0 auto 3rem;
    padding: 2.5rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative; overflow: hidden;
}
.dropzone::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.dropzone:hover, .dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(139,92,246,0.05);
}
.dropzone:hover::before, .dropzone.drag-over::before { opacity: 0.04; }
.dropzone svg {
    width: 48px; height: 48px;
    color: var(--text-muted); margin-bottom: 1rem;
    display: block; margin-left: auto; margin-right: auto;
    transition: color var(--transition-fast);
    position: relative; z-index: 1;
}
.dropzone:hover svg { color: var(--primary-light); }
.dropzone p {
    font-size: 0.95rem; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 0.4rem; position: relative; z-index: 1;
}
.dropzone span {
    font-size: 0.78rem; color: var(--text-muted);
    position: relative; z-index: 1;
}
.dropzone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}

/* Preview box */
.preview-box {
    display: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: rgba(139,92,246,0.04);
    margin-bottom: 1.5rem;
}
.preview-box.visible { display: flex; align-items: center; gap: 1rem; }
.preview-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: repeating-conic-gradient(rgba(255,255,255,0.05) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
    flex-shrink: 0;
}
.preview-info .preview-name { font-weight: 600; font-size: 0.85rem; }
.preview-info .preview-size { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Control group */
.control-group { margin-bottom: 1.5rem; }
.control-label {
    display: block;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-muted); text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.text-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem; font-family: var(--font-body);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

/* Generator */
.generator-studio {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    max-width: 900px; margin: 0 auto 3rem;
    align-items: start;
}
.generator-canvas-preview {
    background: repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 0 0 / 24px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; min-height: 260px;
    backdrop-filter: blur(12px);
}
.generator-canvas-preview canvas { max-width: 100%; border-radius: var(--radius-md); }

.preset-colors {
    display: flex; gap: 0.75rem;
}
.preset-dot {
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}
.preset-dot:hover, .preset-dot.active {
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(139,92,246,0.5);
}

/* â”€â”€ About Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.about-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.about-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.about-hero p { color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem; margin-bottom: 1.25rem;
}
.about-card {
    padding: 2rem;
}
.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 0.85rem;
}
.about-card h3 svg { width: 20px; height: 20px; color: var(--primary-light); flex-shrink: 0; }
.about-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.about-icon-box {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.about-icon-box svg { width: 22px; height: 22px; color: var(--primary-light); }

.guidelines-box {
    padding: 2rem; margin-bottom: 1.25rem;
}
.guidelines-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1rem;
}
.guidelines-box h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.guidelines-list {
    list-style: none; display: flex; flex-direction: column; gap: 0.75rem;
}
.guidelines-list li {
    font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
    padding-left: 1.25rem; position: relative;
}
.guidelines-list li::before {
    content: 'â€º';
    position: absolute; left: 0;
    color: var(--primary-light); font-weight: 700;
}
.guidelines-list strong { color: var(--text-primary); }

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0;
    margin-top: 2rem;
    position: relative; z-index: 1;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem; align-items: start;
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p {
    font-size: 0.82rem; color: var(--text-muted); max-width: 320px;
    line-height: 1.6; margin-top: 0.5rem;
}
.footer-links {
    display: flex; gap: 3rem;
}
.footer-col h4 {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
    font-size: 0.82rem; color: var(--text-secondary); text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p {
    font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--primary-light); text-decoration: none; }
.footer-badges { display: flex; gap: 0.5rem; }
.footer-badge {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* â”€â”€ Utility / Animations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chip {
    padding: 0.45rem 1rem; border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 500;
    cursor: pointer; font-family: var(--font-body);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.chip:hover { border-color: var(--border-hover); color: var(--primary-light); }
.chip.active {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.35);
    color: var(--primary-light);
}

/* Upload preview container */
.upload-preview-container { display: none; }
.upload-preview-container.visible { display: block; }
.upload-preview-box {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(139,92,246,0.04);
    margin-bottom: 1.25rem;
}
.preview-img-wrapper { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-xs); overflow: hidden; }
.preview-img-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.preview-details .preview-name { font-weight: 600; font-size: 0.85rem; }
.preview-details .preview-size { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Remove BG checkbox */
.remove-bg-label {
    display: flex; align-items: center; gap: 0.6rem;
    cursor: pointer; user-select: none;
    font-size: 0.875rem; color: var(--text-secondary);
}
.remove-bg-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px; height: 16px; cursor: pointer;
}

/* Converter Studio Layout */
.converter-studio {
    max-width: 660px; margin: 0 auto 3rem;
    padding: 2.5rem;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
    .generator-studio { grid-template-columns: 1fr; }
    .modal-card { flex-direction: column; gap: 1.5rem; }
    .modal-right { width: 100%; }
}
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .nav-menu { display: none; }
    .hero { padding: 3rem 0.5rem 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { flex-wrap: wrap; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .source-toggle { flex-direction: column; }
}

/* =====================================================
   PNGTree Style Extensions - Professional Premium UI
   ===================================================== */

/* Top Campaign/Announcement Bar */
.top-announcement {
    background: linear-gradient(90deg, #ea580c 0%, #059669 50%, #10b981 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 0.6rem 2rem;
    position: relative;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--font-heading);
}
.top-announcement .promo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.top-announcement a.promo-link {
    color: white;
    text-decoration: underline;
    font-weight: 800;
    transition: opacity 0.2s;
}
.top-announcement a.promo-link:hover {
    opacity: 0.9;
}
.top-announcement .close-announcement-btn {
    position: absolute;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 800;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.top-announcement .close-announcement-btn:hover {
    opacity: 1;
}

/* Adjust header top offset if announcement is visible */
body {
    padding-top: 0;
}
header {
    position: sticky;
    top: 0;
}

/* Green Action Button */
.btn-signup-green {
    background: #00c292;
    color: white;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    border: none;
    padding: 0.55rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 194, 146, 0.3);
}
.btn-signup-green:hover {
    background: #00a87e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 194, 146, 0.45);
}
.nav-link-badge {
    position: relative;
}
.discount-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    font-family: var(--font-heading);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Mega Menu Dropdowns */
.nav-item-with-menu {
    position: relative;
}
.mega-menu-panel {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 680px;
    background: rgba(14, 12, 28, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    z-index: 1005;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(25px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
}
[data-theme="light"] .mega-menu-panel {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(109, 40, 217, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.08);
}
.nav-item-with-menu:hover .mega-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-menu-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.mega-col-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
[data-theme="light"] .mega-col-title {
    color: var(--primary-dark);
}
.mega-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.mega-link {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.mega-link:hover {
    color: var(--primary-light);
    padding-left: 4px;
}
[data-theme="light"] .mega-link:hover {
    color: var(--primary);
}
.mega-link-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.mega-link:hover .mega-link-bullet {
    background: var(--primary-light);
}

/* Mega Menu Featured Card */
.mega-menu-featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mega-featured-emoji {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.mega-featured-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.mega-featured-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}
.mega-featured-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Advanced Search Bar Styling */
.search-container {
    max-width: 820px;
    margin: 0 auto 2.5rem;
}
.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 32px;
    overflow: hidden;
    height: 62px;
    padding: 0;
    backdrop-filter: blur(var(--backdrop-blur));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), var(--card-shadow);
    transition: all var(--transition-fast);
}
.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), var(--glow-primary);
}

/* Search Dropdown Select */
.search-select-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.search-select {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 0 1.5rem;
    outline: none;
    cursor: pointer;
    height: 100%;
    transition: color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.search-select-wrapper::after {
    content: '▼';
    font-size: 0.55rem;
    color: var(--text-muted);
    position: absolute;
    right: 0.6rem;
    pointer-events: none;
}
.search-select:focus {
    color: var(--text-primary);
}
.search-select option {
    background: #0f0d1a;
    color: #f0ecff;
}
[data-theme="light"] .search-select option {
    background: #ffffff;
    color: #1a1035;
}

.search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 1.5rem 0 1.25rem !important;
    font-size: 1.05rem;
    height: 100%;
    box-shadow: none !important;
}

/* Green Search Button */
.search-submit-btn {
    height: 100%;
    background: #00c292;
    color: white;
    border: none;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-submit-btn:hover {
    background: #00a87e;
}
.search-submit-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Quick Search Tags */
.quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
    animation: slideDown 0.6s ease 0.45s both;
}
.quick-tag-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.quick-tag-link {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
}
.quick-tag-link:hover {
    color: #00c292;
    border-color: #00c292;
    background: rgba(0, 194, 146, 0.06);
    transform: translateY(-1px);
}
[data-theme="light"] .quick-tag-link {
    background: rgba(16, 185, 129, 0.04);
}

/* Left Sticky Anniversary Banner */
.anniversary-floater {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 200px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.2);
    color: white;
    padding: 1.25rem;
    z-index: 1009;
    font-family: var(--font-body);
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
    0% { opacity: 0; transform: translateY(100px) scale(0.6); }
    70% { transform: translateY(-10px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.anniversary-floater .close-floater-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 800;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}
.anniversary-floater .close-floater-btn:hover {
    opacity: 1;
}
.anniversary-floater .floater-badge {
    background: #fbbf24;
    color: #1a1035;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}
.anniversary-floater .floater-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.anniversary-floater .floater-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 0.85rem;
}
.anniversary-floater .floater-btn {
    background: white;
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.anniversary-floater .floater-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .mega-menu-panel {
        display: none !important; /* Hide mega menu on mobile */
    }
    .search-select-wrapper {
        display: none !important; /* Hide dropdown inside search bar on mobile */
    }
    .anniversary-floater {
        display: none !important; /* Hide floater banner on mobile */
    }
}

/* Search Autocomplete Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(18, 16, 32, 0.96);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1010;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(25px);
    padding: 0.5rem 0;
    text-align: left;
}
[data-theme="light"] .search-suggestions-dropdown {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 40px rgba(109, 40, 217, 0.1), 0 0 0 1px rgba(16, 185, 129, 0.08);
}
.suggestion-item {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .suggestion-item {
    border-bottom: 1px solid rgba(16, 185, 129, 0.05);
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .suggestion-item:hover {
    background: rgba(16, 185, 129, 0.06);
}
.suggestion-item-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.suggestion-item-text {
    font-weight: 500;
}
.suggestion-item-tag {
    font-size: 0.68rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
[data-theme="light"] .suggestion-item-tag {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
}
.suggestion-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Color Palette Extractor Styles */
.palette-colors {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.palette-color-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="light"] .palette-color-chip {
    background: rgba(16, 185, 129, 0.03);
}
.palette-color-chip:hover {
    transform: translateY(-1px);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
[data-theme="light"] .palette-color-chip:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.06);
}
.palette-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
}
[data-theme="light"] .palette-color-dot {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Gallery Filters Toolbar Styles */
.gallery-filters-toolbar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}
[data-theme="light"] .gallery-filters-toolbar {
    background: rgba(16, 185, 129, 0.02);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.filter-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
[data-theme="light"] .filter-select {
    background: white;
}
.filter-select:focus, .filter-select:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .filter-select:focus, [data-theme="light"] .filter-select:hover {
    border-color: var(--primary);
    background: white;
}
.filter-select option {
    background: #0f0d1a;
    color: #f0ecff;
}
[data-theme="light"] .filter-select option {
    background: white;
    color: #1a1035;
}
.filter-reset-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    font-family: var(--font-body);
}
.filter-reset-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}
@media (max-width: 600px) {
    .gallery-filters-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .filter-reset-btn {
        margin-left: 0;
        text-align: center;
    }
}

/* Pricing Page Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 2.5rem auto 3rem;
    align-items: stretch;
}
.pricing-card {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.3s ease;
    background: rgba(14, 12, 28, 0.6);
    border: 1px solid var(--border-color);
}
[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.7);
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.08);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00c292 0%, #10b981 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(0, 194, 146, 0.4);
}
.plan-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.plan-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.plan-price {
    margin: 1.75rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.price-val {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: transform 0.2s, opacity 0.2s;
}
.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    flex: 1;
    text-align: left;
}
.plan-features li {
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}
.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.45;
    text-decoration: line-through;
}
.plan-features li.disabled::before {
    content: '✗';
    color: #ef4444;
}
.pricing-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: var(--font-body);
}
[data-theme="light"] .pricing-btn {
    background: rgba(16, 185, 129, 0.04);
}
.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.pricing-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.pricing-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}


/* =====================================================
   SKELETON LOADERS & MICRO-INTERACTIONS
   ===================================================== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.skeleton-card {
    height: 280px;
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.6s infinite ease-in-out;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

@keyframes skeleton-pulse {
    0% {
        background-position: 150% 0;
    }
    100% {
        background-position: -50% 0;
    }
}

/* Preset dots hover enhancement */
.preset-dot {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.preset-dot:hover {
    transform: scale(1.18) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
    border-color: #ffffff !important;
}

/* Smooth Transitions across pages */
.page {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* =====================================================
   Mobile Responsive Enhancements (Mobil İyileştirmeler)
   ===================================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none !important; /* Hidden by default */
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 13, 28, 0.96);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        z-index: 9999;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
        margin: 0;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
        width: 100%;
        color: var(--text-primary);
        font-weight: 600;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
    }
    
    /* Hide desktop-only elements inside menu on mobile */
    .mega-menu-panel {
        display: none !important;
    }
    
    /* Navigation actions optimization */
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .nav-link, 
    .nav-actions button:not(.mobile-menu-toggle):not(.theme-toggle-btn) {
        display: none !important; /* Hide other buttons to make room for logo/theme/hamburger */
    }
    
    .nav-actions .collections-btn {
        display: flex !important; /* Keep collections visible */
        padding: 0.4rem 0.5rem;
    }
    .collections-btn span:not(.collections-badge) {
        display: none; /* Only show icon/badge on small mobile */
    }
    .collections-btn span:first-child {
        display: inline-block !important; /* Show folder icon */
    }

    /* Hero section font sizing */
    .hero {
        padding: 2rem 0.5rem 1rem;
    }
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    .hero p {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }
}

@media (max-width: 480px) {
    .converter-studio, .generator-studio, .detector-studio {
        padding: 1.25rem 0.85rem !important;
    }
    .dropzone {
        padding: 2rem 1rem !important;
    }
    .modal-card {
        padding: 1.5rem 1rem !important;
    }
}

