/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #475569;
    
    --gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #c026d3 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-bg-hover: rgba(30, 41, 59, 0.9);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Inter', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* ===== NAVIGATION ===== */
.main-nav {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--light);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.nav-link.active:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    transform: translateY(-2px);
}

.nav-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-stats .stat i {
    color: var(--secondary);
    font-size: 1rem;
}

.nav-stats .stat i.on-hold {
    color: #f59e0b;
}

.nav-stats .stat i.unavailable {
    color: #ef4444;
}

.nav-stats .btn-primary {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
}

.nav-stats .btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.nav-stats .btn-primary.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Generator limit info */
.generator-limit-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.limit-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.limit-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.limit-progress {
    margin: 1rem 0;
}

.limit-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.limit-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.limit-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
}

.limit-stats strong {
    color: var(--light);
}

.next-generation-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.next-generation-info.ready {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.next-generation-info i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .limit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .limit-badge {
        align-self: flex-start;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-like {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    width: 100%;
}

.btn-like:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.btn-like.liked,
.btn-like .fas {
    color: #ef4444;
    border-color: #ef4444;
}

.art-overlay .btn-like {
    flex: 1;
    width: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff 30%, var(--gray) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-preview {
    position: relative;
}

.hero-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    font-weight: 600;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.art-preview {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.art-preview:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}

.art-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-preview:hover img {
    transform: scale(1.1);
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.art-preview:hover .art-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-like.small,
.btn-view {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-like.small:hover,
.btn-view:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

/* ===== SECTIONS ===== */
.popular-arts,
.recent-arts,
.generator,
.how-it-works {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header.col {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background: var(--gradient);
    border-radius: 3px;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.see-all:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

/* ===== ART GRID EXPANDED ===== */
.art-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.art-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.art-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: var(--card-bg-hover);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--card-shadow-hover);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.art-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 0% 40%;
    transition: transform 0.5s ease;
}

.art-card:hover img {
    transform: scale(1.05);
}

.art-card-info {
    padding: 1.5rem;
}

.art-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.art-style {
    color: var(--primary);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.art-likes {
    color: #f59e0b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.art-prompt {
    color: var(--light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== GENERATOR ===== */
.generator-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.prompt-input textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    resize: vertical;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.prompt-input textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.prompt-input textarea::placeholder {
    color: var(--gray-dark);
}

.prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.style-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.style-options h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.style-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.style-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.style-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.style-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

#generation-result {
    margin: 2rem 0;
    min-height: 300px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#generation-result:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.result-placeholder {
    text-align: center;
    color: var(--gray);
    padding: 3rem;
}

.result-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.result-placeholder p {
    font-size: 1.1rem;
}

/* ===== LIMITS INFO ===== */
.limits-info {
    background: rgba(15, 23, 42, 0.9);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.limits-info h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.limit-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

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

.limit-status {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-10px);
    background: var(--card-bg-hover);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.step p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(2, 6, 23, 0.98);
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.footer-section p {
    color: var(--gray);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--gray);
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ===== LOADING & ANIMATIONS ===== */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Generator success actions */
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.generation-success .generated-image {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.generated-art {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.image-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.image-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.image-info strong {
    color: var(--gray);
    min-width: 100px;
    display: inline-block;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-info {
    border-left-color: #3b82f6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.25rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-stats {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .art-grid-expanded {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .generator-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .art-grid-expanded {
        grid-template-columns: 1fr;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .prompt-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .style-buttons {
        justify-content: center;
    }
}

/* ===== LIKED STATE ===== */
/* Like button states */
.btn-like.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-like.liked i {
    color: #ef4444;
}

.btn-modal {
    font-size: 12px;
}

.btn-modal.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-modal.liked i {
    color: #ef4444;
}

/* ===== GENERATOR IMPROVEMENTS ===== */

/* Progress bar improvements */
.progress-container {
    width: 100%;
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

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

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Mobile improvements for generator */
@media (max-width: 768px) {
    .generator-container {
        padding: 1.5rem !important;
    }
    
    .prompt-input textarea {
        min-height: 120px;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .style-buttons {
        gap: 0.5rem;
    }
    
    .style-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1 0 calc(50% - 0.5rem);
        text-align: center;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .prompt-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .generated-image img {
        max-height: 300px !important;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Generated image improvements */
.generated-image {
    margin: 2rem 0;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.generated-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--primary);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.generated-image img.loaded {
    opacity: 1;
    transform: scale(1.02);
}

.image-info {
    background: rgba(15, 23, 42, 0.8);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-info p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.image-info strong {
    color: var(--primary);
    min-width: 80px;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots span {
    animation: dots 1.5s infinite;
    opacity: 0;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

.lightbox-info {
    background: rgba(15, 23, 42, 0.9);
    padding: 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -5px;
    backdrop-filter: blur(10px);
}

 .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(10px);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
        opacity: 1;
        align-items: center;
        justify-content: center;
    }

    .modal-container {
        width: 90%;
        max-width: 1200px;
        max-height: 90vh;
        background: var(--card-bg);
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

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

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .modal-content {
        padding: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Art Details Layout */
    .art-details-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: 600px;
    }

    .art-image-column {
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        position: relative;
        overflow: hidden;
    }

    .art-image-full {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
        border-radius: var(--border-radius);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .art-info-column {
        padding: 3rem;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.03);
    }

    .art-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .art-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--light);
        line-height: 1.4;
    }

    .art-meta-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .meta-item {
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .meta-label {
        font-size: 0.85rem;
        color: var(--gray);
        margin-bottom: 0.5rem;
        display: block;
    }

    .meta-value {
        color: var(--light);
        font-weight: 500;
    }

    .art-prompt-full {
        flex: 1;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 2rem;
    }

    .prompt-label {
        font-size: 0.9rem;
        color: var(--gray);
        margin-bottom: 1rem;
        display: block;
    }

    .prompt-text {
        color: var(--light);
        line-height: 1.6;
        font-size: 1.1rem;
    }

    .art-actions {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn-modal {
        padding: 0.8rem 1.5rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
        font-family: 'Raleway', sans-serif;
    }

    .btn-modal:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .btn-modal.primary {
        background: var(--primary);
        border-color: var(--primary);
    }

    .btn-modal.primary:hover {
        background: var(--primary-dark);
    }

    .loading-spinner {
        text-align: center;
        padding: 4rem;
        color: var(--gray);
    }

    .loading-spinner i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    @media (max-width: 992px) {
        .art-details-container {
            grid-template-columns: 1fr;
            max-height: 80vh;
        }

        .art-image-column {
            padding: 2rem;
            max-height: 40vh;
        }

        .art-image-full {
            max-height: 35vh;
        }

        .art-info-column {
            padding: 2rem;
            max-height: 40vh;
            overflow-y: auto;
        }
    }

    @media (max-width: 576px) {
        .modal-container {
            width: 95%;
            max-height: 95vh;
        }

        .art-meta-grid {
            grid-template-columns: 1fr;
        }

        .art-actions {
            flex-direction: column;
        }

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