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

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme colors: Dark Mode Premium Space Black */
    --bg-main: #030712;
    --bg-card: rgba(17, 24, 39, 0.45);
    --bg-glass: rgba(11, 17, 30, 0.6);
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(99, 102, 241, 0.15);

    --primary: #6366F1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --primary-grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --secondary: #EC4899; /* Pink */
    --accent: #10B981; /* Emerald green */
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 45px rgba(99, 102, 241, 0.18);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Decorative Background Glows */
.bg-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, rgba(236,72,153,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFF;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #818CF8;
}

/* Header & Navigation */
header {
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: #FFF;
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #FFF;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-grad);
    color: #FFF;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFF;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, #818CF8, #EC4899, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, rgba(99,102,241,0) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Auth Cards */
.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 4rem auto;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #F87171;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard & Workspaces */
.dashboard-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

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

/* Sidebar Generator Card */
.generator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info .username {
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFF;
}

.user-info .role {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.credit-pill {
    background: var(--primary-grad);
    color: #FFF;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.model-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.model-option {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-option:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.03);
}

.model-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.model-meta {
    display: flex;
    flex-direction: column;
}

.model-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFF;
}

.model-slug {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition-fast);
}

.model-option.active .radio-dot {
    border-color: var(--primary);
}

.model-option.active .radio-dot::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

/* Gallery Workspace */
.workspace-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.section-header h2 {
    font-size: 1.8rem;
}

/* Generation Output Showcase */
.output-showcase {
    background: rgba(17, 24, 39, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.output-showcase.has-image {
    border-style: solid;
    border-color: var(--border-color);
    padding: 0;
}

.output-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    object-fit: contain;
    transition: var(--transition-slow);
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
    max-width: 320px;
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.gallery-card:hover {
    transform: scale(1.03);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
    background: #000;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-info {
    padding: 1rem;
}

.gallery-prompt {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.gallery-model {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

/* Admin Dashboard CSS */
.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: #FFF;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Admin Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #FFF;
}

.modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    max-width: 450px;
}

.toast.success {
    border-left-color: var(--accent);
}

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

/* Settings Form Grid */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

/* Footer styling */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Table scrollbar styling */
.table-container::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.table-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Mobile Responsiveness & Premium Styling */
@media (max-width: 968px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .generator-card {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-links {
        display: none !important; /* Hide landing page links on mobile to save space */
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem !important; /* Override inline styles */
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    #showcase-meta {
        position: static !important;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 1rem !important;
    }
    
    #showcase-meta div {
        max-width: 100% !important;
    }
    
    #showcase-meta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    
    .table-container {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gallery-info {
        padding: 0.5rem;
    }
    
    .gallery-prompt {
        font-size: 0.75rem;
    }
    
    .gallery-model {
        font-size: 0.65rem;
    }
    
    .status-badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .settings-form {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* SVG Icon Utility */
.svg-icon {
    display: inline-flex;
    align-self: center;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
}

/* Site section styling */
.site-section {
    padding: 7rem 1.5rem 5rem;
    border-top: 1px solid var(--border-color);
}

/* Mockup graphic layout */
.mockup-wrapper {
    margin-top: 5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0.5rem;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8), var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.mockup-container {
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 500px;
    text-align: left;
}

.mockup-sidebar {
    width: 250px;
    background: #070a13;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-body {
    flex: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

/* Grids responsiveness */
.feature-row-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.feature-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mini Cards for Credits modal */
.pricing-card-mini:hover {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.04) !important;
    transform: translateY(-2px);
}

/* Media Queries for enhanced responsiveness */
@media (max-width: 968px) {
    .feature-row-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-section {
        padding: 4rem 1rem 3rem;
    }
    
    .mockup-container {
        aspect-ratio: auto;
        height: auto;
        min-height: 300px;
    }
    
    .mockup-sidebar {
        display: none;
    }
    
    .mockup-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .feature-badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .generator-card {
        padding: 1.25rem;
    }
    .output-showcase {
        min-height: 280px;
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
}

/* Before/After Image Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #FFF;
    z-index: 5;
}

.slider-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    max-width: none;
    pointer-events: none;
}

.before-after-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
}

/* Enhancer Roadmap Timeline Styling */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.05);
    transform: translateX(-50%);
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
    border: 4px solid var(--bg-main);
    z-index: 2;
}

.roadmap-item {
    display: flex;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
}

.roadmap-item.left {
    justify-content: flex-start;
}

.roadmap-item.right {
    justify-content: flex-end;
}

.roadmap-card {
    width: 45%;
    margin: 0 !important;
}

/* Media query for timeline mobile layout */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }
    
    .timeline-node {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .roadmap-item {
        justify-content: flex-end !important;
        padding-left: 45px;
    }
    
    .roadmap-card {
        width: 100%;
    }
}
