:root {
    /* "Prism" Premium Light Palette */
    --bg-body: #fafafa;
    /* Porcelain */
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --text-tertiary: #94a3b8;

    /* Iridescent Accents */
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-gradient: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
    /* Prism Gradient */
    --accent-glow: rgba(99, 102, 241, 0.15);

    --border-light: rgba(0, 0, 0, 0.04);
    --border-hover: rgba(0, 0, 0, 0.08);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    /* Super Soft */
    --radius-pill: 9999px;

    /* Soft Depth Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.08);
    --shadow-colored: 0 20px 48px -12px rgba(99, 102, 241, 0.15);
    /* Indigo Shadow */

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    /* Subtle Prism Light Leaks */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1320px;
    /* Wide, airy layout */
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Buttons (Soft Pill) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #000;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Header ("Ice Bar") --- */
.site-header {
    position: sticky;
    top: 24px;
    z-index: 100;
    padding: 0;
    pointer-events: none;
}

.header-bg {
    display: none;
}

.header-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 960px;
    margin: 0 auto;

    /* Frosted Ice */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    padding: 8px 12px 8px 28px;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

/* Nav */
.main-nav {
    display: none;
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
        /* Force hide on desktop */
    }

    .main-nav {
        /* Desktop: Static Flex Flow */
        display: flex;
        gap: 4px;
        align-items: center;

        position: static;
        /* Removed fixed positioning */
        transform: none;
        height: auto;
        width: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0;
        z-index: auto;

        /* Centering logic handled by parent flex (space-between) or auto margins */
        margin: 0 auto;
    }

    .main-nav a {
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-secondary);
        padding: 8px 16px;
        border-radius: var(--radius-pill);
        letter-spacing: normal;
        transition: all 0.2s;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(0, 0, 0, 0.03);
        color: var(--text-primary);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    padding: 8px;
    cursor: pointer;
    display: block;
    /* Visible on mobile by default */
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
}

/* --- Hero --- */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.text-blue {
    /* Prism Text */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 4px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Soft Search */
.search-container {
    max-width: 560px;
    margin: 0 auto;
}

/* --- Search Fixes --- */
.search-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    background: #fff;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
}

#searchInput {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    padding: 16px 16px 16px 52px;
    /* Ensure padding for icon */
    border-radius: var(--radius-pill);
    outline: none;
}

/* --- Mobile Toggle Fix --- */
.nav-close-btn {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 768px) {
    .nav-close-btn {
        display: flex;
        /* Visible only on mobile */
        /* ... existing mobile styles will apply if matched ... */
    }
}

.btn-search {
    padding: 14px 28px;
}


/* --- Filters --- */
.filters {
    padding: 20px 0 60px;
    background: transparent;
}

.filter-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    justify-content: center;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #fff;
    border: 1px solid transparent;
    /* No visible border initially */
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}


/* --- Prompts Grid --- */
.prompts-section {
    padding-bottom: 120px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.view-all {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
    text-underline-offset: 4px;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* --- Card Styles (Modern Image Overlay) --- */
.prompt-card {
    position: relative;
    border-radius: var(--radius-md);
    /* 20px */
    overflow: hidden;
    aspect-ratio: 4/5;
    /* Portrait aspect ratio */
    background: #1e1e24;
    /* Fallback dark bg */
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    isolation: isolate;
    /* Create stacking context */
}

.prompt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* 1. Background Image */
.card-image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.prompt-card:hover .card-image-bg {
    transform: scale(1.08);
}

/* 2. Dark Overlay Gradient */
.card-overlay {
    position: absolute;
    inset: 0;
    /* Gradient from bottom to top: Solid Black -> Transparent */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 3. Content Container */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

/* Top Meta (Like count, etc) - Optional placement */
.card-header-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.meta-badge {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-preview {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* Copy Button */
.copy-btn {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.copy-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    font-size: 1.1rem;
}


.load-more-container {
    text-align: center;
    padding-top: 60px;
}

/* --- How it works --- */
.how-it-works {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.guide-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Prism border top */
.guide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}


/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .header-inner {
        margin: 0 16px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .filter-scroll {
        justify-content: flex-start;
        padding-left: 24px;
        padding-right: 24px;
    }

    .search-container {
        margin: 0 16px;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }

    /* --- Full Screen Mobile Overlay --- */
    .main-nav {
        display: flex;
        /* Always flex, visibility handled by opacity/visibility */
        position: fixed;
        inset: 0;
        /* Full screen top/bottom/left/right */
        width: 100vw;
        height: 100vh;
        background-color: #ffffff;
        /* Solid White */
        z-index: 10000;
        /* Highest priority */

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 40px;

        /* Animation State: Closed */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        /* Prevent clicks when closed */
        transform: scale(0.95);
        /* Subtle zoom effect */
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .main-nav.open {
        /* Animation State: Open */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1);
    }

    .main-nav a {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        /* Larger text */
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.04em;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--accent-primary);
        /* Highlight color */
        background: transparent;
        /* Remove pill bg */
    }

    /* Close Button Positioning */
    .nav-close-btn {
        position: absolute;
        top: 24px;
        right: 24px;
        background: #f1f5f9;
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .nav-close-btn:active {
        transform: scale(0.9);
    }
}


/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 100px 0 40px;
    background: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 80px;
    margin-bottom: 60px;
}

@media(max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-col a {
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.copyright {
    text-align: center;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    font-size: 0.85rem;
}

/* --- Prompt Preview Page (SPA) --- */
.preview-page {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 2000;
    overflow-y: auto;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-page.active {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Header */
.preview-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.back-btn {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-primary);
}

/* Content */
.preview-content {
    flex: 1;
    padding: 32px 24px 100px;
    /* Bottom padding for mobile fab/actions */
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.preview-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Image */
.preview-image-container {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-surface-hover);
    border-radius: 24px;
    overflow: hidden;
    /* Optional: minimal shadow */
    box-shadow: var(--shadow-sm);
}

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details */
.preview-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.preview-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.dot {
    opacity: 0.5;
}

/* Prompt Card Box */
.prompt-text-card {
    background: var(--bg-surface-hover);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#previewPromptText {
    font-family: 'DM Mono', monospace;
    /* Use a monospace or clean font */
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    line-height: 1.7;
    margin: 0;
    background: transparent;
    border: none;
    overflow-x: auto;
}

/* Actions */
.copy-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.copy-action-btn.primary {
    background: #0f172a;
    color: #fff;
    box-shadow: var(--shadow-colored);
}

.copy-action-btn.primary:active {
    transform: scale(0.98);
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    background: transparent;
}

.action-btn.secondary {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* Desktop Polish & Split Layout */
@media (min-width: 1024px) {
    .preview-content {
        max-width: 1100px;
        padding-top: 48px;
    }

    .preview-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 64px;
    }

    .preview-image-container {
        width: 100%;
        position: sticky;
        top: 100px;
        /* Ensure aspect ratio is maintained but max-height doesn't break it */
        max-height: 80vh;
        aspect-ratio: 4/5;
    }

    .preview-details {
        padding-top: 16px;
    }

    .preview-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   NEW MULTI-PAGE STYLES
   ========================================================================== */

/* --- Page Header (Prompts/Categories Pages) --- */
.page-main {
    padding-top: 120px;
    /* Offset for fixed header */
    padding-bottom: 60px;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-container.full-width {
    max-width: 550px;
    margin: 30px auto 0;
}

.search-container.full-width .search-input-wrapper {
    width: 100%;
}

/* --- Hero Pills --- */
.hero-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pill-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-pill:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--card-bg);
    padding: 45px 30px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Categories Page Grid --- */
.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.category-card-large {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.category-card-large:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cat-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 8px;
}

.cat-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cat-card-count {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 5px 14px;
    border-radius: 14px;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

/* Fix for Category Search Input */
#categorySearchInput {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0;
}

/* Clear Filter Button (on Prompts page when filtering by category) */
.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.clear-filter-btn i {
    font-size: 1rem;
}

/* =====================================================
   10-MINUTE AD UNLOCK GATE (CENTERED MODAL CARD)
   ===================================================== */

.unlock-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.unlock-gate {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 48px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.unlock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlock-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.unlock-gate-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.unlock-gate-desc {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 32px;
}

.btn-unlock-gate {
    background: #f5f5f5;
    color: #1a1a1a;
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.btn-unlock-gate:hover {
    background: #ebebeb;
    border-color: #d5d5d5;
}

.btn-unlock-gate:active {
    transform: scale(0.98);
}

.btn-unlock-gate i {
    font-size: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
}

.unlock-gate-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .unlock-gate {
        padding: 40px 24px 28px;
        max-width: 360px;
    }

    .unlock-gate-title {
        font-size: 1.35rem;
    }

    .unlock-gate-desc {
        font-size: 0.9rem;
    }

    .btn-unlock-gate {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
}