@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Vibrant Palette */
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent: #f43f5e;

    --background: #f1f5f9;
    --surface: #ffffff;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 8px 10px -6px rgba(79, 70, 229, 0.1);

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    /* Subtle background mesh/gradient */
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding-top: 80px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.nav-btn:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

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

.nav-btn.primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* --- Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* --- Controls Bar --- */
.controls-bar {
    display: flex;

    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 15px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
}

.search-form {
    display: flex;
    flex-grow: 1;

    gap: 12px;
}

.input-styled {
    padding: 12px 18px;
    border: 2px solid #f1f5f9;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: #f8fafc;
}

.input-styled:focus {
    border-color: #cbd5e1;
    background: white;
}

.btn-icon {
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* --- Layout Container --- */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
    align-items: start;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Filter Sidebar (Premium) --- */
/* --- Filter Bar V2 (Eye-Catching Premium) --- */
.filter-container {
    margin-bottom: 35px;
    animation: fadeInDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 50;
    padding: 0 5px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.premium-filter-bar {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    /* Strong, layered shadow for "floating" effect */
    box-shadow:
        0 20px 40px -5px rgba(25, 30, 60, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Add a subtle top accent line/gradient */
.premium-filter-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
}

/* Row 1: Search & Main Controls */
.filter-row-top {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.search-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Super Premium Search Input */
.search-input {
    width: 100%;
    padding: 16px 24px 16px 55px;
    border: 2px solid #eef2f6;
    /* Subtle border initially */
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    background: #f8fafc;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-input:focus {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 10px 20px -5px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.search-icon-abs {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 18px;
    transition: all 0.3s;
}

.search-input:focus+.search-icon-abs {
    color: #6366f1;
    transform: scale(1.1);
}

.filter-btn-search {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    letter-spacing: 0.02em;
}

.filter-btn-search:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.filter-btn-reset:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

/* Row 2: Advanced Filters (Card Style) */
.filter-row-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Date gets more space */
    gap: 15px;
    align-items: start;
}

.filter-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item:focus-within {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.filter-label-row {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label-row i {
    color: #818cf8;
}

/* Date Range Special Styling - "Big Improvement" */
.date-wrapper-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.calendar-input-box {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.calendar-icon-inside {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
    font-size: 14px;
}

.date-input-premium {
    width: 100%;
    padding: 10px 10px 10px 34px;
    /* Space for icon */
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.date-input-premium:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.date-input-premium:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.date-separator-arrow {
    color: #cbd5e1;
    font-size: 14px;
}

/* Select Styling */
.filter-select-premium {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    padding: 5px 0;
}

/* Shortcuts Bar - "Tags" */
.shortcuts-bar {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

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

/* Hide Chrome */

.shortcut-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut-chip:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(99, 102, 241, 0.15);
}

.shortcut-chip.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.shortcut-chip::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.2s;
}

.shortcut-chip:hover::before {
    background: #818cf8;
}

.shortcut-chip.active::before {
    background: #ffffff;
}


/* Responsive adjustments */
@media (max-width: 1100px) {
    .filter-row-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .filter-item {
        width: auto;
    }
}

@media (max-width: 768px) {
    .premium-filter-bar {
        padding: 15px;
        gap: 15px;
    }

    .filter-row-top {
        flex-direction: column;
    }

    .filter-btn-search {
        justify-content: center;
        width: 100%;
    }

    .filter-row-bottom {
        grid-template-columns: 1fr;
        /* Stack all column */
    }

    .date-wrapper-premium {
        flex-direction: row;
        /* Keep dates side-by-side even on mobile if space permits */
    }
}


/* --- Grid & Cards --- */
.grid {
    display: grid;
    /* Responsive auto-fit */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.card {
    background: var(--surface);
    border-radius: 24px;
    /* Rounder */
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.1);
    /* Subtle border color on hover */
}

.card-image {
    position: relative;
    height: 250px;
    background: #e2e8f0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img {
    transform: scale(1.12);
}

.badge-fav {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
    color: #94a3b8;
    z-index: 5;
}

.badge-fav:hover {
    transform: scale(1.15) rotate(5deg);
    background: white;
    color: var(--accent);
}

.badge-fav.active {
    color: var(--accent);
    background: #fff1f2;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.badge-prompt {
    position: absolute;
    top: 60px;
    /* Below the heart badge */
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
    color: #94a3b8;
    z-index: 5;
}

.badge-prompt:hover {
    transform: scale(1.15) rotate(5deg);
    background: white;
    color: var(--primary);
}

.badge-prompt.active {
    color: var(--primary);
    background: #eef2ff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* --- Card Content --- */
.card-content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.03em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    background: linear-gradient(to right, #1e293b, #1e293b);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s, color 0.3s;
}

.card:hover .card-title a {
    color: #4f46e5;
}

.copy-icon {
    font-size: 16px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.copy-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: #f8fafc;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.stat-item:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.stat-item.dark {
    background: var(--text-main);
    color: white;
}

.stat-item.dark:hover {
    background: #0f172a;
    /* Slightly darker */
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.7;
}

/* --- Details Grid --- */
.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.detail-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-badge.premium {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #78350f;
    border: none;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.detail-badge i {
    font-size: 10px;
    opacity: 0.7;
}

/* --- Meta Info --- */
.meta-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-row i {
    margin-right: 8px;
    color: #94a3b8;
}

.contributor-box {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 50px;
    /* Fully pill shaped */
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.contributor-box:hover {
    background: white;
    border-color: #e2e8f0;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- Premium Prompt Generation UI --- */

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Modal Overlay & Animation */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.premium-modal {
    background: rgba(255, 255, 255, 0.95);
    width: 95%;
    /* Mobile first */
    max-width: 800px;
    /* Wider desktop */
    min-height: 500px;
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

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

/* Modal Header */
.modal-header-premium {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #ffffff, #f8fafc);
}

.modal-title-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-pulse-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.modal-title-box h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.modal-title-box .subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.close-btn-premium {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn-premium:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

/* Modal Body split */
.modal-body-premium {
    display: flex;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-body-premium {
        flex-direction: column;
        overflow-y: auto;
    }

    .premium-modal {
        min-height: auto;
        height: 90vh;
    }
}

/* Left Column: Preview */
.preview-column {
    flex: 1;
    background: #0f172a;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.image-preview-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 300px;
}

#modal-preview-img {
    display: block;
    max-width: 100%;
    max-height: 300px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Thin line */
    background: #22c55e;
    /* Green laser look */
    box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
    opacity: 0;
}

.scanning .scan-line {
    opacity: 1;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

/* Right Column: Results */
.result-column {
    flex: 1.2;
    /* Slightly wider */
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Status Steps */
.status-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    opacity: 0.4;
    transition: all 0.3s;
}

.step-item.active {
    opacity: 1;
}

.step-item.done {
    opacity: 1;
    color: #22c55e;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.step-item.active .step-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    transform: scale(1.1);
}

.step-item.done .step-icon {
    background: #22c55e;
    color: white;
}

.step-item span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Output Box */
.prompt-output-box {
    flex: 1;
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.prompt-output-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

#generated-prompt-text {
    width: 100%;
    height: 100%;
    border: none;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    resize: none;
    background: transparent;
}

#generated-prompt-text:focus {
    outline: none;
}

/* Spinner */
.spinner-premium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.spinner-premium.hidden {
    display: none;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {

    0%,
    100% {
        transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
    }
}

/* Actions */
.modal-actions-premium {
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

.action-btn.secondary {
    background: #f1f5f9;
    color: var(--text-muted);
}

.action-btn.secondary:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* --- Keywords --- */
.keywords-area {
    margin-top: 5px;
}

.kw-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 28px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kw-list.expanded {
    max-height: 400px;
}

.kw-pill {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.kw-pill:hover {
    border-color: #6366f1;
    color: #4338ca;
    background: #eef2ff;
    transform: translateY(-1px);
}

.kw-toggle {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.2s;
}

.kw-toggle:hover {
    color: #4f46e5;
}

/* --- Pagination --- */
.pagination {
    margin-top: 70px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pagination a:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
}

.pagination a.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* --- Loading Overlay --- */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#loading-overlay.visible {
    display: flex;
    opacity: 1;
}

.loader-logo-box {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-icon {
    font-size: 40px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.3));
    animation: icon-float 2s ease-in-out infinite;
}

.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: ripple-effect 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-text {
    font-size: 18px;
    font-weight: 900;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: text-shimmer 2s ease-in-out infinite;
}
















@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes ripple-effect {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes text-shimmer {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        letter-spacing: 0.12em;
    }
}







.grid {
    grid-template-columns: repeat(3, 1fr);
}