:root {
    /* Base Colors - Dark Theme (PromptOcean) */
    --bg-dark: #050812;
    --bg-card: rgba(10, 16, 32, 0.6);
    --bg-code: rgba(0, 0, 0, 0.3);
    --accent-primary: #00F5FF;
    --accent-secondary: #0066FF;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 245, 255, 0.12);
    --glass-bg: rgba(8, 12, 24, 0.4);
    --glass-border: rgba(0, 245, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #00F5FF 0%, #0066FF 100%);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    /* Base Colors - Light Theme (PromptOcean) */
    --bg-dark: #f0f6ff;
    --bg-card: #ffffff;
    --bg-code: rgba(0, 102, 255, 0.04);
    --accent-primary: #0066FF;
    --accent-secondary: #00D1FF;
    --text-main: #0a1a2e;
    --text-muted: #4e617d;
    --border-color: rgba(0, 102, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 102, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #0066FF 0%, #00D1FF 100%);
    --shadow-premium: 0 10px 30px rgba(0, 60, 150, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
    /* Modern way to prevent horizontal scroll without breaking sticky */
    width: 100%;
}

html {
    overflow-x: clip;
    width: 100%;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Card Styling */
.prompt-card.premium {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(to bottom right, var(--bg-card), rgba(245, 158, 11, 0.05));
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.05);
}

.prompt-card.premium:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* Header */
.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.mobile-only-btns,
.mobile-nav-header,
.mobile-nav-footer,
.mobile-menu-toggle {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- ADDED: Pricing Section --- */
.pricing {
    padding: 100px 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.05);
    transform: scale(1.05);
    box-shadow: var(--shadow-premium);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-features li i {
    width: 20px;
    height: 20px;
}

.pricing-features li i[data-lucide="check"] {
    color: #10b981;
}

.pricing-features li i[data-lucide="x"] {
    color: #ef4444;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- ADDED: Premium Badges & Locking --- */
.pro-badge {
    background: linear-gradient(90deg, #ff9d00, #ffb700);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    display: inline-block;
}

.prompt-card.premium {
    border-color: #ff9d00 !important;
}

.prompt-card.premium .prompt-preview {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.premium-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.premium-overlay i {
    color: #ff9d00;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 4;
}

.header-search-container {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 40px;
    /* Initial state: just the icon */
}

.header-search-container.active {
    width: 240px;
    padding-left: 8px;
    border-color: var(--accent-primary);
}

.header-search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    width: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-container.active .header-search-input {
    width: 100%;
    opacity: 1;
}

#header-search-toggle {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
}

.header-search-container.active #header-search-toggle {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.btn i,
.btn svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.btn-sm i,
.btn-sm svg {
    margin-right: 6px;
    width: 14px;
    height: 14px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.btn-white {
    background: white;
    color: black;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 160px;
    /* Increased bottom padding for wave */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ensure wave doesn't bleed */
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--bg-dark);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-search-wrapper {
    max-width: 700px;
    margin: 0 auto 32px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    gap: 12px;
    position: relative;
}

.search-bar i {
    color: var(--text-muted);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    flex: 1;
    font-size: 1rem;
    outline: none;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #00F5FF, #0066FF, #00D1FF, #00A3FF);
    background-size: 400% 400%;
    animation: liquidGradient 15s ease infinite;
    z-index: -1;
    opacity: 0.2;
    filter: blur(80px);
}

body.light-theme .hero-bg-glow {
    background: linear-gradient(-45deg, #00D1FF, #0066FF, #3B82F6, #60A5FA);
    opacity: 0.15;
    filter: blur(60px);
}

/* Playground Comparison Styles */
.playground-result-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.playground-result-container.comparing {
    flex-direction: row;
}

.playground-result-container.comparing .output-content {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

#playground-model-2-group.active {
    display: flex !important;
}

@media (max-width: 768px) {
    .playground-result-container.comparing {
        flex-direction: column;
    }
}

.playground-variables-section {
    background: rgba(0, 245, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.var-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.var-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.var-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.var-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.var-field {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.var-field:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 255, 0.05);
}

.potd-card .playground-variables-section {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.ocean-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Sections General */
.section-title {
    font-size: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.view-all {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.view-all:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Categories */
.categories {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1rem;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.page-num:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.05);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.page-num.active {
    background: var(--gradient-hero);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.pagination-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 600px) {
    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }

    .page-numbers {
        order: -1;
    }
}

.category-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

/* Creator Attribution Styling */
.creator-link-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 4px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    width: fit-content;
}

.creator-link-sm:hover {
    color: var(--accent-primary);
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.creator-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.creator-link-sm span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Prompt Cards */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.prompt-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.prompt-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;
    pointer-events: none;
}

body.light-theme .prompt-card::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(109, 40, 217, 0.05),
            transparent);
}

.prompt-card:hover::before {
    left: 100%;
}

.prompt-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-premium);
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prompt-tag {
    font-size: 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.prompt-card h3 {
    font-size: 1.25rem;
}

.prompt-preview {
    background: var(--bg-code);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

.prompt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.prompt-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.prompt-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-stats i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* Prompt Of The Day */
.potd-section {
    padding: 80px 0;
}

.potd-card {
    background: linear-gradient(rgba(22, 22, 26, 0.8), rgba(22, 22, 26, 0.8)), url('https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&q=80&w=1200') center/cover;
    border: 1px solid var(--accent-primary);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

body.light-theme .potd-card {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&q=80&w=1200') center/cover;
    border: 1px solid rgba(109, 40, 217, 0.1);
}

body.light-theme .potd-title {
    color: var(--accent-primary);
}

body.light-theme .potd-description {
    color: var(--text-main);
}

body.light-theme .potd-preview {
    background: var(--bg-dark);
    border-color: rgba(109, 40, 217, 0.1);
}

.potd-badge-container {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.potd-label {
    background: gold;
    color: black;
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.potd-content {
    display: flex;
    gap: 48px;
    align-items: center;
}

.potd-info {
    flex: 1;
}

.potd-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.potd-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.potd-preview {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.potd-preview code {
    display: block;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.potd-actions {
    display: flex;
    gap: 16px;
}

/* Playground */
.playground {
    padding: 80px 0;
}

.playground-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.playground-input {
    padding: 40px;
    position: sticky;
    top: 170px;
    align-self: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 24px 0 0 24px;
    z-index: 10;
}

.playground-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

body.light-theme .playground-input:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.playground-output {
    padding: 40px;
    border-left: 1px solid var(--border-color);
}

.input-header,
.output-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.badge {
    background: var(--accent-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.playground-prompt-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 24px;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

textarea:focus {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px;
}

.output-content {
    background: var(--bg-code);
    min-height: 200px;
    border-radius: 12px;
    padding: 24px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.playground-history h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.history-item .history-time {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
    display: block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Submit Section */
.submit-section {
    padding: 100px 0;
}

.submit-card {
    background: var(--gradient-hero);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.submit-card h2 {
    font-size: 3rem;
    max-width: 800px;
}

/* Newsletter */
.newsletter {
    padding-bottom: 100px;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.newsletter-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s;
}

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

.footer-links h4 {
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: none;
}

.modal-overlay.active .modal.active {
    display: block;
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-primary);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Modal Enhancements */
.social-login {
    margin-bottom: 20px;
}

.btn-google {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.modal-divider span {
    padding: 0 10px;
}

.dark-theme .btn-google {
    background: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
}

.dark-theme .btn-google:hover {
    background: #374151;
    border-color: #4b5563;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--bg-code);
    transform: rotate(15deg);
}

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

.theme-toggle .moon-icon {
    display: block;
}

body.light-theme .theme-toggle .sun-icon {
    display: block;
}

body.light-theme .theme-toggle .moon-icon {
    display: none;
}

/* Filter Bar */
.filter-bar-container {
    padding: 12px 0;
    background: var(--bg-dark);
    /* Solid background to prevent transparency overlap */
    position: sticky;
    top: 80px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 16px;
    height: 44px;
    min-width: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-search-container:focus-within {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    min-width: 320px;
}

.filter-search-container i {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 10px;
}

.filter-search-container input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.filter-search-container input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Light Theme Adjustments for Sticky Search */
body.light-theme .filter-search-container {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .filter-search-container:focus-within {
    background: white;
}

.filter-bar-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Premium Fade-out for scrolling categories */
.filter-bar-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-dark));
    pointer-events: none;
    z-index: 2;
}

.filter-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    padding-right: 60px;
    /* Space for the fade-out effect */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.sort-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

body:not(.light-theme) .sort-dropdown {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300F5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.sort-dropdown:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-premium);
}

.sort-dropdown option {
    background: var(--bg-card);
    color: var(--text-main);
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i,
.filter-btn svg {
    width: 16px;
    height: 16px;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.05);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--gradient-hero);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Base Animations (AOS-like) */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 8px;
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-premium);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(124, 58, 237, 0.1);
}

.suggestion-item h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.suggestion-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-search-container .search-suggestions {
    left: 0;
    right: 0;
    width: 300px;
}

/* Favorites Heart */
.heart-btn.active {
    color: #ef4444;
}

/* Interactive Playground Inputs */
.variable-inputs {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
}

.variable-inputs.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variable-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variable-field label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.variable-field input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
}

/* Form refinement */
select {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Playground Settings Bar */
.playground-settings {
    margin-bottom: 24px;
}

.playground-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-group label i {
    width: 14px;
    height: 14px;
}

.control-group select {
    appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.control-group select:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-code);
}

.icon-btn.small-btn {
    padding: 6px;
    border-radius: 6px;
}

#ai-settings-btn {
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

#ai-settings-btn:hover {
    opacity: 1;
    transform: rotate(30deg);
    color: var(--accent-primary);
}

/* AI Result Enhancements */
.ai-generated-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    animation: slideUp 0.4s ease-out;
}

.ai-card-header {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-card-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.alert-card {
    border-left: 4px solid var(--accent-primary);
}

/* Rating System */
.rating-stars {
    display: flex;
    gap: 2px;
    color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    align-items: center;
}

body.light-theme .rating-stars {
    color: #cbd5e1;
}

.rating-stars i {
    font-size: 0.75rem;
    width: 12px;
    height: 12px;
    transition: all 0.2s;
}

.rating-stars i.filled,
.rating-stars i.half-filled {
    color: #f59e0b;
}

.rating-stars i.half-filled {
    opacity: 0.7;
}

.rating-stars span {
    margin-left: 6px;
    font-weight: 600;
    color: #f59e0b;
}

.rating-stars i:hover {
    transform: scale(1.3);
    color: #f59e0b;
}

/* Collections Sidebar (Mock) */
.collections-sidebar {
    position: fixed;
    right: -300px;
    top: 80px;
    bottom: 0;
    width: 300px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding: 32px;
    z-index: 1200;
    transition: var(--transition-smooth);
}

.collections-sidebar.active {
    right: 0;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.collection-item:hover {
    background: rgba(124, 58, 237, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .potd-content,
    .playground-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .potd-preview {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header-actions #login-btn,
    .header-actions #signup-btn {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 60%),
            var(--bg-dark);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 70px 32px 40px;
        gap: 24px;
        z-index: 1000;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        right: 0;
    }

    .main-header .container {
        display: flex;
        justify-content: space-between;
        /* Use natural space-between */
        align-items: center;
        height: 80px;
        padding: 0 16px;
    }

    .logo {
        position: static;
        margin-right: auto;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 16px;
        margin-right: 0px;
        /* Space before hamburger */
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-search-container,
    .header-actions #login-btn,
    .header-actions #signup-btn {
        display: none !important;
    }

    .filter-bar-container {
        position: relative !important;
        top: auto !important;
        padding: 12px 0;
        z-index: 90;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: static;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--text-main);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-nav-header {
        position: absolute;
        top: 24px;
        left: 24px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-footer {
        margin-top: auto;
        padding-top: 0px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Staggered entry */
    .nav-links.active li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 60%),
            var(--bg-dark);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 100px 32px 40px;
        gap: 24px;
        z-index: 1000;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    }

    .mobile-nav-header {
        position: absolute;
        top: 24px;
        left: 24px;
        display: flex !important;
        align-items: center;
        width: calc(100% - 48px);
        justify-content: flex-start;
    }

    .mobile-nav-header .logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        right: 0;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--text-main);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-menu-toggle span:nth-child(1) {
        transform: translate(-50%, -8px);
    }

    .mobile-menu-toggle span:nth-child(2) {
        transform: translate(-50%, -50%) scaleX(1);
    }

    .mobile-menu-toggle span:nth-child(3) {
        transform: translate(-50%, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .nav-links a {
        display: inline-block;
        font-size: clamp(1.5rem, 5vh, 2rem);
        /* Dynamic font size to fit screen */
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--text-main);
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--accent-primary);
        border-radius: 2px;
        box-shadow: 0 0 15px var(--accent-primary);
    }

    .nav-links a.active {
        color: var(--accent-primary);
        background: none;
        /* Remove the boxy background */
    }

    .mobile-only-btns {
        display: none;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        transition: all 0.6s ease;
        margin-top: 20px;
        width: 100%;
        max-width: 320px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-links.active .mobile-only-btns {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        transition-delay: 0.4s;
    }

    .nav-links.active .mobile-nav-footer {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.5s;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .sort-dropdown {
        width: 100%;
    }

    .prompt-grid,
    .category-grid {
        grid-template-columns: 1fr !important;
    }

    .potd-card {
        padding: 40px 16px;
    }

    .potd-title {
        font-size: 1.75rem;
    }

    .potd-actions {
        flex-direction: column;
        width: 100%;
    }

    .potd-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .playground-input {
        padding: 30px 16px;
        position: static;
    }

    .playground-input:hover {
        transform: none;
        box-shadow: none;
    }

    .playground-output {
        padding: 30px 16px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .newsletter-card {
        padding: 40px 16px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .collections-sidebar {
        width: 100%;
        right: -100%;
    }

    .prompt-card {
        padding: 20px 16px;
    }

    .prompt-card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .prompt-stats {
        width: 100%;
        justify-content: space-between;
    }

    /* Skeleton Loading */
    .skeleton-card {
        height: 300px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }

    .skeleton-card::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        background-image: linear-gradient(90deg,
                rgba(255, 255, 255, 0) 0,
                rgba(255, 255, 255, 0.05) 20%,
                rgba(255, 255, 255, 0.1) 60%,
                rgba(255, 255, 255, 0));
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        100% {
            transform: translateX(100%);
        }
    }

    .skeleton-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .skeleton-line {
        height: 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .skeleton-line.title {
        height: 24px;
        width: 80%;
        margin-bottom: 8px;
    }

    .skeleton-line.preview {
        height: 60px;
        width: 100%;
    }

    .skeleton-line.tag {
        height: 20px;
        width: 60px;
        border-radius: 20px;
    }

    .skeleton-line.footer {
        height: 32px;
        width: 100%;
        margin-top: auto;
    }

    .main-footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        margin-bottom: 30px;
    }

    .container.footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 40px;
    }

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

    .search-bar {
        padding: 4px 4px 4px 16px;
        border-radius: 12px;
    }

    .search-bar input {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .potd-badge-container {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .submit-card {
        padding: 40px 16px;
    }

    .submit-card h2 {
        font-size: 1.8rem;
    }

    .header-search-container.active {
        width: 150px;
    }
}

/* Result Card styling */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 10px;
    animation: fadeIn 0.4s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.result-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    margin: 0;
}

/* Premium AI Output Card */
.ai-generated-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease forwards;
}

body.light-theme .ai-generated-card {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.ai-card-header {
    background: var(--bg-code);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mac-dots {
    display: flex;
    gap: 6px;
    width: 60px;
    /* To balance the space opposite to the copy button */
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dots span:nth-child(1) {
    background: #ff5f56;
}

.mac-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mac-dots span:nth-child(3) {
    background: #27c93f;
}

.ai-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.ai-card-body {
    padding: 24px;
    background: var(--bg-card);
}

.prompt-section {
    margin-bottom: 20px;
}

.prompt-section:last-child {
    margin-bottom: 0;
}

.prompt-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.prompt-section p,
.prompt-section ul {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.prompt-section ul {
    padding-left: 20px;
}

.prompt-section p.highlight {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 245, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px dashed var(--accent-primary);
    color: var(--accent-primary);
}

.prompt-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
    opacity: 0.5;
}

/* History Items */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item-info strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.history-item-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Creator Dashboard Styling --- */
.dashboard-hero {
    padding: 6rem 0 3rem;
    text-align: left;
}

.dashboard-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.dashboard-hero h1 span {
    display: inline-block;
}


.dashboard-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--text-main);
}

.dashboard-section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-glass-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow-x: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 4rem;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.premium-table th {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.premium-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    vertical-align: middle;
}

.premium-table tr:hover {
    background: rgba(0, 245, 255, 0.02);
}

.status-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pill.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-pill.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Light Theme Dashboard Overrides */
body.light-theme .stat-glass-card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.05);
}

body.light-theme .premium-table th {
    background: rgba(0, 102, 255, 0.03);
}

body.light-theme .table-glass-wrapper {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(0, 60, 150, 0.05);
}

body.light-theme .premium-table td {
    border-bottom-color: rgba(0, 102, 255, 0.04);
}

/* Creator Profile Styles */
.profile-header {
    padding: 80px 0 40px;
    position: relative;
}

.profile-banner-glass {
    background: rgba(var(--bg-card-rgb), 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

/* Unique Background Glow for Profile */
.profile-banner-glass::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: scale(1) translate(0, 0);
        opacity: 0.1;
    }

    to {
        transform: scale(1.3) translate(-10%, 10%);
        opacity: 0.2;
    }
}

.profile-avatar-container {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    /* Squircle style for uniqueness */
    border: 2px solid var(--accent-primary);
    padding: 8px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Avatar Glow */
.profile-avatar-container::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 45px;
    background: var(--accent-primary);
    filter: blur(20px);
    opacity: 0.2;
    z-index: -1;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    background: var(--bg-code);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 12px;
    background: linear-gradient(to right, var(--text-main), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.creator-bio {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.profile-badges {
    display: flex;
    gap: 16px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.badge.verified {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge.rank {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.profile-stats-grid {
    display: flex;
    gap: 48px;
    border-left: 1px solid var(--border-color);
    padding-left: 48px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.creator-link-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    margin-top: 4px;
}

.creator-link-sm:hover {
    color: var(--accent-primary);
}

.creator-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .profile-banner-glass {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats-grid {
        border-left: none;
        padding-left: 0;
        margin-top: 24px;
    }

    .profile-badges {
        justify-content: center;
    }
}

.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 5;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

.premium-overlay i {
    font-size: 2.5rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.premium-overlay span {
    font-weight: 700;
    color: white;
    font-family: 'Outfit';
    letter-spacing: 0.5px;
    font-size: 1rem;
}

/* --- Smooth Listing & Interactive Animations --- */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.animate-entrance {
    animation: cardEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.prompt-card {
    will-change: transform, opacity;
}

/* Enhanced Skeleton Shimmer */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 20%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 80%,
            transparent 100%);
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-line {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-line.tag {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-line.title {
    width: 70%;
    height: 32px;
    margin-top: 20px;
}

.skeleton-line.preview {
    width: 100%;
    height: 60px;
}

.skeleton-line.footer {
    width: 100%;
    height: 40px;
    margin-top: auto;
}

/* Loader Transitions */
#loading-indicator {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#loading-indicator.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.no-results {
    animation: cardEntrance 0.5s ease forwards;
}

/* --- Loader Ripple Animation --- */
.loader-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ripple div {
    position: absolute;
    border: 4px solid var(--accent-primary);
    opacity: 1;
    border-radius: 50%;
    animation: loader-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes loader-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.btn-copy-success {
    background: #10b981 !important;
    /* Emerald 500 */
    color: white !important;
    border-color: #10b981 !important;
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-copy-success i,
.btn-copy-success svg {
    color: white !important;
}


/* --- Custom Interactive Selects --- */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    z-index: 10;
}

.select-trigger {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 0;
    white-space: nowrap;
}

.select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-trigger:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

.custom-select.active .select-trigger {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
}

.custom-select.active .select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.select-option:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-main);
    padding-left: 20px;
}

.select-option.selected {
    background: var(--gradient-hero);
    color: white;
}

/* Modern Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 28px;
    height: 48px;
}

.toggle-switch {
    width: 44px;
    height: 22px;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#playground-compare-toggle:checked+.toggle-switch {
    background: var(--gradient-hero);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

#playground-compare-toggle:checked+.toggle-switch::after {
    left: 23px;
    background: white;
}

.toggle-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* AI Settings Button Animation */
#ai-settings-btn {
    transition: transform 0.5s ease;
}

#ai-settings-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Theme Adaptations */
.light-theme .select-menu {
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .select-option:hover {
    background: rgba(124, 58, 237, 0.05);
}