/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    --background: #0f0f0f;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border: #333333;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #e17055;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b35, #fd79a8);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-accent: linear-gradient(135deg, #fd79a8, #fdcb6e);
    --gradient-dark: linear-gradient(135deg, #2d3436, #636e72);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

/* Credit Display */
.credit-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-icon {
    color: #fd79a8;
    font-size: 16px;
}

.credit-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

#credit-amount {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.credit-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.guest-credits {
    background: rgba(253, 121, 168, 0.2);
    border-color: rgba(253, 121, 168, 0.4);
}

.guest-credits .credit-icon {
    color: #fd79a8;
}

.guest-credits .credit-info span:first-child {
    color: #fd79a8;
    font-weight: 500;
    font-size: 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.user-dropdown a:hover {
    background: var(--surface-light);
    color: var(--text);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
}

.nav-brand i {
    color: var(--primary);
    font-size: var(--font-size-2xl);
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-base);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    top: 40%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.hero-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-2xl);
    color: var(--secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.hero-notice i {
    font-size: var(--font-size-base);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Create Section */
.create-section {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.create-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--text);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.create-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

.input-section,
.output-section {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border);
}

.input-section h3,
.output-section h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.suggestion-btn {
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.suggestion-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.prompt-input {
    width: 100%;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    resize: vertical;
    transition: border-color var(--transition-base);
}

.prompt-input:focus {
    outline: none;
    border-color: var(--primary);
}

.prompt-input::placeholder {
    color: var(--text-muted);
}

.generation-controls {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.control-group {
    flex: 1;
}

.control-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.style-select {
    width: 100%;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    color: var(--text);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.style-select:focus {
    outline: none;
    border-color: var(--primary);
}

.generate-btn {
    width: 100%;
    margin-top: var(--space-md);
    font-size: var(--font-size-lg);
    padding: var(--space-md) var(--space-lg);
}

.output-area {
    min-height: 300px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: auto;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.placeholder i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.output-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.generated-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text);
}



/* Gallery Section */
.gallery-section {
    padding: var(--space-2xl) 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn.active {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: white;
}

.filter-btn:hover:not(.active) {
    border-color: var(--secondary);
    color: var(--text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.gallery-item-image {
    width: 100%;
    height: 200px;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--font-size-3xl);
}

.gallery-item-content {
    padding: var(--space-lg);
}

.gallery-item-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.gallery-item-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.gallery-item-type {
    background: var(--gradient-accent);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.gallery-item-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.gallery-empty i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.gallery-empty h3 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.gallery-empty .fa-spinner {
    color: var(--primary);
    opacity: 1;
}

.gallery-item-info {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.gallery-item-stats {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.gallery-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.gallery-stat-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.gallery-stat-btn:hover {
    background: var(--surface-light);
    color: var(--text);
}

.gallery-stat-btn[data-liked="true"] i {
    color: var(--error);
}

.gallery-item-author {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* About Section */
.about-section {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
}

.about-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature {
    text-align: center;
}

.feature i {
    font-size: var(--font-size-3xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.feature h3 {
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lotus-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.lotus-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.petal {
    position: absolute;
    width: 40px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin: 20px 80px;
}

.petal-1 { transform: rotate(0deg); }
.petal-2 { transform: rotate(60deg); }
.petal-3 { transform: rotate(120deg); }
.petal-4 { transform: rotate(180deg); }
.petal-5 { transform: rotate(240deg); }
.petal-6 { transform: rotate(300deg); }

.lotus-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(253, 121, 168, 0.5);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.footer-brand i {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-light);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--surface-light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .create-interface {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .generation-controls {
        flex-direction: column;
    }
    
    .create-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .input-section,
    .output-section {
        padding: var(--space-lg);
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .prompt-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus styles */
.btn:focus,
.prompt-input:focus,
.style-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Authentication Modals */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* General Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* General Modal Content */
.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.auth-modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
}

.auth-overlay.active .auth-modal {
    transform: scale(1);
    opacity: 1;
}

/* Responsive Modal Sizing */
.auth-modal {
    max-width: 480px; /* Default for small screens */
}

@media (min-width: 640px) {
    .auth-modal {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .auth-modal {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .auth-modal {
        max-width: 680px;
    }
}

@media (min-width: 1280px) {
    .auth-modal {
        max-width: 720px;
    }
}

/* Special Modal Sizes */
.profile-modal {
    max-width: 600px;
}

@media (min-width: 768px) {
    .profile-modal {
        max-width: 700px;
    }
}

@media (min-width: 1024px) {
    .profile-modal {
        max-width: 800px;
    }
}

.settings-modal {
    max-width: 600px;
}

@media (min-width: 768px) {
    .settings-modal {
        max-width: 700px;
    }
}

@media (min-width: 1024px) {
    .settings-modal {
        max-width: 800px;
    }
}

/* Admin Panel Modal */
.admin-panel-modal {
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    height: 800px;
    overflow: hidden;
}

.admin-nav-tabs {
    display: flex;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.admin-tab-btn:hover {
    color: #3b82f6;
}

.admin-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.admin-tab-content {
    display: none;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content .info-text {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
    margin: 16px 0;
}

.admin-tab-content .info-text i {
    color: #4a90e2;
    margin-right: 8px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.users-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.users-controls input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.users-table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.users-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
}

.user-id {
    font-size: 0.75rem;
    color: #6b7280;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-badge.user { background: #e5e7eb; color: #374151; }
.role-badge.moderator { background: #fef3c7; color: #92400e; }
.role-badge.admin { background: #dbeafe; color: #1e40af; }
.role-badge.super_admin { background: #fce7f3; color: #be185d; }

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.promote {
    background: #10b981;
    color: white;
}

.action-btn.ban {
    background: #ef4444;
    color: white;
}

.action-btn.unban {
    background: #f59e0b;
    color: white;
}

.action-btn.credits {
    background: #8b5cf6;
    color: white;
}

.settings-form {
    max-width: 600px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.settings-form small {
    color: #6b7280;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Credit Modal */
.credit-modal {
    max-width: 800px;
    max-height: 90vh;
}

.credit-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group h4 {
    margin-bottom: 10px;
    color: #374151;
}

.quick-credit-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-credit-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-credit-btn:hover {
    background: #f8fafc;
}

.quick-credit-btn.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.custom-credit-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-credit-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.input-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.user-selection {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.selection-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #f8fafc;
}

.user-checkbox {
    margin: 0;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.user-details .user-email {
    font-size: 0.875rem;
    color: #6b7280;
}

.user-details .user-credits {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-message i {
    margin-right: 10px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-header h2 i {
    color: var(--primary);
    font-size: var(--font-size-xl);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.close-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-light);
    border-radius: 50%;
    transform: scale(0);
    transition: transform var(--transition-base);
}

.close-modal:hover {
    color: var(--text);
}

.close-modal:hover::before {
    transform: scale(1);
}

.close-modal i {
    position: relative;
    z-index: 1;
}

.auth-form {
    padding: var(--space-xl);
    background: var(--surface);
}

/* Modal Content Areas */
.settings-content,
.profile-content,
.admin-content {
    padding: var(--space-xl);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    background: var(--surface);
}

/* Custom Scrollbar for Modal Content */
.settings-content::-webkit-scrollbar,
.profile-content::-webkit-scrollbar,
.admin-content::-webkit-scrollbar,
.auth-modal::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-track,
.profile-content::-webkit-scrollbar-track,
.admin-content::-webkit-scrollbar-track,
.auth-modal::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: var(--radius-full);
}

.settings-content::-webkit-scrollbar-thumb,
.profile-content::-webkit-scrollbar-thumb,
.admin-content::-webkit-scrollbar-thumb,
.auth-modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.settings-content::-webkit-scrollbar-thumb:hover,
.profile-content::-webkit-scrollbar-thumb:hover,
.admin-content::-webkit-scrollbar-thumb:hover,
.auth-modal::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Google Sign-In Styles */
.google-signin-container {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-lg) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--surface);
    padding: 0 var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: white;
    color: #333;
    border: 2px solid #dadce0;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c1c7cd;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Settings Modal Specific Styles */
.settings-content {
    padding: var(--space-xl);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Profile Modal Specific Styles */
.profile-content {
    padding: var(--space-xl);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Admin Panel Specific Styles */
.admin-content {
    padding: var(--space-xl);
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.settings-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    color: var(--text);
    margin-bottom: var(--space-md);
}

.settings-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.api-key-input {
    position: relative;
}

.toggle-visibility {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.toggle-visibility:hover {
    background: var(--surface-light);
    color: var(--text);
}

.help-text {
    display: block;
    margin-top: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.help-text a {
    color: var(--primary);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.user-info {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.info-item span {
    color: var(--text);
}

/* API Status Indicators */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: var(--space-sm);
}

.api-status.connected {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.api-status.disconnected {
    background: rgba(225, 112, 85, 0.1);
    color: var(--error);
}

.api-status.testing {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning);
}

/* Responsive Auth Modals */
@media (max-width: 640px) {
    .auth-overlay {
        padding: var(--space-sm);
    }
    
    .auth-modal {
        margin: 0;
        max-width: none;
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }
    
    .auth-header {
        padding: var(--space-lg);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .auth-form,
    .settings-content,
    .profile-content,
    .admin-content {
        padding: var(--space-lg);
        max-height: calc(95vh - 100px);
    }
    
    .auth-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .close-modal {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 768px) {
    .nav-auth {
        display: none;
    }
    
    .nav-auth.mobile-visible {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        flex-direction: column;
        min-width: 150px;
        box-shadow: var(--shadow-lg);
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-modal {
        max-height: 98vh;
    }
    
    .auth-header {
        padding: var(--space-md) var(--space-xl);
    }
    
    .auth-form,
    .settings-content,
    .profile-content,
    .admin-content {
        padding: var(--space-md) var(--space-xl);
        max-height: calc(98vh - 80px);
    }
}

/* Generate Button Container with AI Service Overlay */
.generate-button-container {
    position: relative;
    width: 100%;
}

.generate-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.generate-btn .btn-text {
    display: block;
    transition: all var(--transition-base);
}

.generate-btn .btn-service {
    display: none;
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.generate-btn .btn-selected {
    display: block;
    font-size: var(--font-size-xs);
    opacity: 0.7;
    font-weight: 400;
    margin-top: 2px;
}

.generate-btn:hover .btn-text {
    transform: translateY(-2px);
}

.generate-btn:hover .btn-service {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}



/* Modal Accessibility and UX Improvements */
.auth-modal:focus {
    outline: none;
}

.auth-modal:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Modal Loading States */
.auth-modal.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-modal.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modal Backdrop Click to Close */
.auth-overlay {
    cursor: pointer;
}

.auth-modal {
    cursor: default;
}

/* Prevent Modal Close on Content Click */
.auth-modal * {
    cursor: default;
}

.auth-modal button,
.auth-modal input,
.auth-modal select,
.auth-modal textarea,
.auth-modal a {
    cursor: pointer;
}



/* Credit Purchase Modal */
.credit-purchase-modal {
    max-width: 600px;
    width: 90%;
}

.credit-balance {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    border-radius: var(--radius-lg);
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.balance-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.credit-package {
    position: relative;
    padding: var(--space-lg);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.credit-package:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.credit-package.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-bg), var(--surface));
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.package-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
}

.package-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

.package-credits {
    margin-bottom: var(--space-sm);
}

.credits-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.credits-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-left: 4px;
}

.package-bonus {
    background: var(--success-bg);
    color: var(--success);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.package-features {
    text-align: left;
    margin-bottom: var(--space-md);
}

.feature {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.package-value {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.auth-modal input[type="text"],
.auth-modal input[type="email"],
.auth-modal input[type="password"],
.auth-modal input[type="url"],
.auth-modal textarea {
    cursor: text;
}

/* Credit Selector Modal Styles */
.credit-selector-modal {
    max-width: 600px;
    z-index: 10001;
}

#credit-selector-overlay {
    z-index: 10000;
}

#credit-selector-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.generation-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.generation-option {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.generation-option:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.generation-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--surface);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.option-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
}

.option-cost {
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    background: var(--primary-bg);
    color: var(--primary);
}

.option-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.option-unavailable {
    font-size: var(--font-size-sm);
    color: var(--error);
    font-weight: 500;
}

.selector-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.selector-actions .btn {
    min-width: 120px;
}

/* API Key Manager Styles */
.api-key-manager-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.api-key-services {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.api-service-card {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
}

.api-service-card.valid {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--surface-light) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.api-service-card.invalid {
    border-color: var(--error);
    background: linear-gradient(135deg, var(--surface-light) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.api-service-card.none {
    border-color: var(--border);
    background: var(--surface-light);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
}

.service-info p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.service-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    background: var(--surface);
}

.api-service-card.valid .service-status {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.api-service-card.invalid .service-status {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.api-service-card.none .service-status {
    color: var(--text-secondary);
    background: var(--surface);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
}

.key-format {
    color: var(--text-secondary);
}

.last-tested {
    color: var(--text-secondary);
    font-style: italic;
}

.service-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.service-actions .btn {
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
    min-width: auto;
}

.api-key-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.platform-provided {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface);
    border-radius: var(--radius);
}

/* API Key Status Display */
.api-key-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
}

.api-key-status.valid {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.api-key-status.invalid {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.api-key-status.none {
    color: var(--text-secondary);
    background: var(--surface);
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-key-manager-modal {
        max-width: 95vw;
        margin: var(--space-md);
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .service-status {
        align-self: flex-start;
    }
    
    .service-actions {
        justify-content: flex-start;
    }
    
    .api-key-actions {
        flex-direction: column;
    }
}

/* Chat Interface Styles */
.chat-modal {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.chat-service-info {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 60vh;
    min-height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-welcome {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.chat-welcome i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.chat-welcome h4 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
    animation: messageSlideIn 0.3s ease;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    word-wrap: break-word;
    line-height: 1.5;
}

.message-bubble.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.message-bubble.ai {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-sm);
}

.message-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-align: right;
}

.chat-input-container {
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    background: var(--surface);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
    margin-bottom: var(--space-sm);
}

.chat-input {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    color: var(--text);
    font-family: inherit;
    font-size: var(--font-size-base);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: border-color var(--transition-base);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.chat-credits {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
}

.chat-credits i {
    color: var(--primary);
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive chat design */
@media (max-width: 768px) {
    .chat-modal {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .chat-container {
        height: 50vh;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-service-info {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* Chat Interface Styles */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--surface-light);
    border-bottom: 1px solid var(--border);
}

.chat-header-info h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text);
}

.chat-header-info i {
    color: var(--primary);
    margin-right: var(--space-xs);
}

.chat-service-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.chat-controls {
    display: flex;
    gap: var(--space-xs);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-welcome {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.chat-welcome h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.chat-welcome p {
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.chat-suggestions .suggestion-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.chat-suggestions .suggestion-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-message {
    display: flex;
    margin-bottom: var(--space-md);
    animation: messageSlideIn 0.3s ease-out;
}

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    position: relative;
}

.user-message .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.ai-message .message-bubble {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-sm);
}

.message-content {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-time {
    font-size: var(--font-size-xs);
    opacity: 0.7;
    margin-top: var(--space-xs);
    text-align: right;
}

.chat-input-container {
    padding: var(--space-md);
    background: var(--surface-light);
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: var(--font-size-base);
    resize: none;
    outline: none;
    min-height: 20px;
    max-height: 120px;
    line-height: 1.5;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-actions {
    margin-top: var(--space-sm);
    text-align: center;
}

.chat-actions .btn {
    width: 100%;
    max-width: 200px;
}

/* Typing indicator */
.typing-indicator .message-bubble {
    background: var(--surface-light);
    border: 1px solid var(--border);
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Window Styles */
.chat-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chat-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.chat-window-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.chat-window-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.chat-window-controls {
    display: flex;
    gap: 0.5rem;
}

.chat-window-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    background: var(--surface-light);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chat-history {
    padding: 1.5rem;
    flex: 1;
}

.chat-history h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-history-item {
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.chat-history-item:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.chat-history-item.active {
    background: var(--primary);
    color: white;
}

.chat-history-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.chat-history-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

.chat-messages-full {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.chat-welcome-full {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
}

.welcome-icon-full {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.welcome-icon-full i {
    font-size: 2rem;
    color: white;
}

.chat-welcome-full h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.chat-welcome-full p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.chat-suggestions-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.suggestion-btn-full {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    text-align: left;
}

.suggestion-btn-full:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-input-full-container {
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.chat-input-full-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-input-full {
    flex: 1;
    min-height: 50px;
    max-height: 200px;
    padding: 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: var(--transition-base);
}

.chat-input-full:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.chat-send-btn-full {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.chat-send-btn-full:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn-full:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Demo Modal Styles */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.demo-modal.active {
    display: flex;
}

.demo-modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.demo-modal-header h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin: 0;
}

.demo-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

.demo-video {
    margin-bottom: 2rem;
}

.demo-placeholder {
    width: 100%;
    height: 200px;
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    cursor: pointer;
    transition: var(--transition-base);
}

.demo-placeholder:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.demo-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.demo-placeholder p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.demo-steps {
    display: grid;
    gap: 1.5rem;
}

.demo-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.demo-step:hover {
    background: var(--surface);
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.demo-modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Responsive Design for Chat Window */
@media (max-width: 768px) {
    .chat-sidebar {
        width: 250px;
    }
    
    .chat-window-header {
        padding: 1rem;
    }
    
    .chat-messages-full {
        padding: 1rem;
    }
    
    .chat-input-full-container {
        padding: 1rem;
    }
    
    .chat-welcome-full h2 {
        font-size: 1.5rem;
    }
    
    .chat-suggestions-full {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chat-sidebar {
        display: none;
    }
    
    .chat-window-controls {
        gap: 0.25rem;
    }
    
    .chat-window-controls .btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .demo-modal {
        padding: 1rem;
    }
    
    .demo-modal-content {
        max-height: 95vh;
    }
    
    .demo-modal-header,
    .demo-modal-body,
    .demo-modal-footer {
        padding: 1rem;
    }
}

/* Chat Message Styles for Full Window */
.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-user {
    flex-direction: row-reverse;
}

.chat-message-user .message-content {
    align-items: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.message-avatar.ai-avatar {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.message-avatar i {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.message-avatar.ai-avatar i {
    color: white;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.chat-message-user .message-content {
    align-items: flex-end;
}

.message-text {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--text);
    line-height: 1.6;
    word-wrap: break-word;
    border: 1px solid var(--border);
}

.chat-message-user .message-text {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}

.chat-message-user .message-time {
    text-align: right;
}

/* Typing Indicator */
.typing-indicator .message-text {
    background: var(--surface-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Chat Window */
