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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FAFAFA;
    color: #1C1917;
    line-height: 1.6;
    padding-top: 73px; /* Account for fixed navigation height */
}

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

/* Navigation */
.top-nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1C1917;
}

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

.nav-link {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #06aeed;
}

.nav-link.active {
    color: #06aeed;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 2px;
    background: #06aeed;
}

.user-menu-container {
    position: relative;
    flex-shrink: 0;
}

.login-btn {
    background: #06aeed;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.login-btn:hover {
    background: #0599d4;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1C1917;
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background 0.2s;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: #F9FAFB;
}

.user-dropdown-item span:first-child {
    font-size: 16px;
}

.user-dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 4px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #06aeed, transparent);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1C1917;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .hero-blue {
    color: #06aeed;
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 60px;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #E5E7EB;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
}

/* Left side: 2 columns × 3 rows = 6 images (columns 1-2) */
.gallery-pos-s1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.gallery-pos-s2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.gallery-pos-s3 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-pos-s4 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-pos-s5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-pos-s6 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

/* Right side: 2 columns × 3 rows = 6 images (columns 5-6) */
.gallery-pos-n1 {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
}

.gallery-pos-n2 {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}

.gallery-pos-n3 {
    grid-column: 5 / 6;
    grid-row: 3 / 4;
}

.gallery-pos-n6 {
    grid-column: 6 / 7;
    grid-row: 1 / 2;
}

/* Original - centered, large - always in the middle */
.gallery-item-original {
    grid-column: 3 / 5 !important;
    grid-row: 1 / 4 !important;
    border: 1px solid rgba(6, 174, 237, 0.3);
    box-shadow: 0 0 0 1px rgba(6, 174, 237, 0.15);
    z-index: 2;
    order: 0;
}

/* Lifestyle images - right side (columns 5-6, rows 1-3) */
.gallery-pos-l1 {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}

.gallery-pos-l2 {
    grid-column: 6 / 7;
    grid-row: 3 / 4;
}

.gallery-pos-l3 {
    grid-column: 6 / 7;
    grid-row: 1 / 2;
}

/* Bottom row: 6 images spanning full width (row 4, columns 1-6) - mixed */
.gallery-pos-n4 {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.gallery-pos-l4 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

.gallery-pos-n5 {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
}

.gallery-pos-u1 {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

.gallery-pos-u2 {
    grid-column: 5 / 6;
    grid-row: 4 / 5;
}

.gallery-pos-n6 {
    grid-column: 6 / 7;
    grid-row: 4 / 5;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Add slight rotations to break symmetry - alternating pattern */
.gallery-pos-s1,
.gallery-pos-s3,
.gallery-pos-s5,
.gallery-pos-n1,
.gallery-pos-n3,
.gallery-pos-n5,
.gallery-pos-l1,
.gallery-pos-l3,
.gallery-pos-u1 {
    transform: rotate(-0.8deg);
}

.gallery-pos-s1:hover,
.gallery-pos-s3:hover,
.gallery-pos-s5:hover,
.gallery-pos-n1:hover,
.gallery-pos-n3:hover,
.gallery-pos-n5:hover,
.gallery-pos-l1:hover,
.gallery-pos-l3:hover,
.gallery-pos-u1:hover {
    transform: rotate(-0.8deg) translateY(-4px) scale(1.02);
}

.gallery-pos-s2,
.gallery-pos-s4,
.gallery-pos-s6,
.gallery-pos-n2,
.gallery-pos-n4,
.gallery-pos-n6,
.gallery-pos-l2,
.gallery-pos-l4,
.gallery-pos-u2 {
    transform: rotate(0.8deg);
}

.gallery-pos-s2:hover,
.gallery-pos-s4:hover,
.gallery-pos-s6:hover,
.gallery-pos-n2:hover,
.gallery-pos-n4:hover,
.gallery-pos-n6:hover,
.gallery-pos-l2:hover,
.gallery-pos-l4:hover,
.gallery-pos-u2:hover {
    transform: rotate(0.8deg) translateY(-4px) scale(1.02);
}

.placeholder-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
}

.gallery-item:first-child .placeholder-label {
    background: #06aeed;
    color: white;
}

/* Main Content */
main {
    padding: 24px 0 40px 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 24px 0;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #F9FAFB;
}

.upload-area:hover {
    border-color: #06aeed;
    background: #F0F9FF;
}

.upload-area.dragover {
    border-color: #06aeed;
    background: #F0F9FF;
    border-style: solid;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-text {
    color: #1C1917;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-subtext {
    color: #6B7280;
    font-size: 0.875rem;
}

#fileInput {
    display: none;
}

/* Preview */
.preview-container {
    margin: 24px 0;
    text-align: center;
    display: none;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #E5E7EB;
}

.remove-image-btn {
    margin-top: 16px;
    padding: 10px 20px;
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: #DC2626;
}

/* Style Options */
.options-section {
    margin: 0;
}

.section-title {
    font-size: 0.875rem;
    color: #1C1917;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #06aeed;
    border-radius: 2px;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.style-option {
    padding: 24px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #FAFAFA;
}

.style-option:hover {
    border-color: #06aeed;
    background: #F0F9FF;
}

.style-option.selected {
    border-color: #06aeed;
    background: #F0F9FF;
    box-shadow: 0 0 0 3px rgba(6, 174, 237, 0.1);
}

.style-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.style-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1C1917;
}

.style-option.selected .style-name {
    color: #06aeed;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 10px 24px;
    background: #06aeed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(6, 174, 237, 0.3);
    margin-top: 24px;
}

.generate-btn:hover:not(:disabled) {
    background: #0599d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 174, 237, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid #06aeed;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    display: none;
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upgrade-icon {
    font-size: 2rem;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #1C1917;
}

.upgrade-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #6B7280;
}

.upgrade-btn {
    background: #06aeed;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.upgrade-btn:hover {
    background: #0599d4;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    color: #1C1917;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: #06aeed;
    color: #06aeed;
    background: #F0F9FF;
}

/* Results Section */
.results-section {
    display: none;
    margin-top: 40px;
}

.prompt-card {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.prompt-card:hover {
    border-color: #06aeed;
    box-shadow: 0 4px 12px rgba(6, 174, 237, 0.1);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prompt-number {
    font-weight: 600;
    color: #06aeed;
    font-size: 0.875rem;
}

.copy-btn {
    padding: 8px 16px;
    background: white;
    color: #06aeed;
    border: 2px solid #06aeed;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 600;
}

.copy-btn:hover {
    background: #06aeed;
    color: white;
}

.copy-btn.copied {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.prompt-text {
    color: #374151;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    border: 3px solid #E5E7EB;
    border-top: 3px solid #06aeed;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    display: none;
    background: #FEE2E2;
    color: #DC2626;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #FECACA;
    font-size: 0.875rem;
}

.error-message.show {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    color: #9CA3AF;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #E5E7EB;
    font-size: 0.875rem;
}

/* Legacy support for old navigation structure */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Pricing Page */
.pricing-section {
    padding: 36px 0 40px 0;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #1C1917;
    margin-bottom: 12px;
}

.pricing-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pricing-card.popular-card {
    border: 2px solid #06aeed;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #06aeed;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.pricing-badge.popular {
    background: #06aeed;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1C1917;
    margin-bottom: 12px;
    margin-top: 0;
}

.price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #06aeed;
}

.price-period {
    font-size: 0.875rem;
    color: #6B7280;
    margin-left: 4px;
}

.credits-text {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 16px;
    text-align: center;
}

.value-badge {
    background: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    margin-bottom: 0;
    margin-top: 16px;
}

.features-list li {
    padding: 6px 0;
    color: #374151;
    font-size: 0.875rem;
    position: relative;
    padding-left: 24px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #06aeed;
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    padding: 10px 24px;
    background: #06aeed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0;
    margin-bottom: 0;
}

.pricing-btn:hover {
    background: #0599d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 174, 237, 0.3);
}

.pricing-btn.free-btn {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    color: #1C1917;
}

.pricing-btn.free-btn:hover {
    background: #F3F4F6;
    border-color: #06aeed;
    color: #06aeed;
}

.pricing-faq {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.pricing-faq h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C1917;
    margin-bottom: 32px;
}

.pricing-faq .faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 0;
}

.pricing-faq .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pricing-faq .faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1C1917;
    margin-bottom: 8px;
}

.pricing-faq .faq-item p {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Page Headers */
header {
    padding-top: 60px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1C1917;
    margin-bottom: 12px;
    text-align: center;
}

header .subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Blog Page */
.blog-section {
    padding: 0 0 24px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-date {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1C1917;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-read-more {
    color: #06aeed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: #0599d4;
}

/* Showcase Page */
.showcase-section {
    padding: 0 0 40px 0;
}

.showcase-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    color: #6B7280;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #06aeed;
    color: #06aeed;
}

.filter-btn.active {
    background: #06aeed;
    border-color: #06aeed;
    color: white;
}

.showcase-sets {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.showcase-set {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.showcase-set-header {
    margin-bottom: 32px;
}

.showcase-set-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C1917;
}

.showcase-images-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.showcase-original {
    flex: 0 0 auto;
    max-width: 70%;
    margin: 0 auto;
}

/* Alternate rotation directions for original images */
.showcase-set:nth-child(odd) .showcase-original {
    transform: rotate(-2deg);
}

.showcase-set:nth-child(even) .showcase-original {
    transform: rotate(2deg);
}

.showcase-original .showcase-image {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(6, 174, 237, 0.2);
    box-shadow: 0 0 0 1px rgba(6, 174, 237, 0.1);
}

.transformation-arrow {
    font-size: 2rem;
    color: #06aeed;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    font-size: 2rem;
    color: #06aeed;
}

.showcase-transformed {
    flex: 1;
    min-width: 0;
}

.transformed-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    flex: 1;
}

.transformed-image {
    position: relative;
    min-width: 0;
}

.showcase-image {
    width: 100%;
    height: 200px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9CA3AF;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* Page wrapper for legacy support */
.page-wrapper {
    min-height: 100vh;
}

/* About Page */
.about-section {
    padding: 0 0 40px 0;
}

.about-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C1917;
    margin-top: 40px;
    margin-bottom: 16px;
}

.about-content h2:first-of-type {
    margin-top: 0;
}

.about-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.about-list li {
    padding: 8px 0;
    color: #374151;
    font-size: 1rem;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.about-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #06aeed;
    font-weight: 700;
    font-size: 1.2rem;
}

.about-email {
    color: #06aeed;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.about-email:hover {
    color: #0599d4;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Account for mobile nav height */
    }

    .nav-content {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-brand {
        flex-shrink: 0;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
    }

    .nav-title {
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 8px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out, box-shadow 0.3s ease-out;
        z-index: 99;
        gap: 0;
        border: none;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.mobile-open {
        max-height: 400px;
        padding: 16px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #E5E7EB;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        display: block;
        padding: 12px 24px;
        font-size: 0.9375rem;
        border-bottom: 1px solid #F3F4F6;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: #F0F9FF;
        color: #06aeed;
        font-weight: 600;
    }

    .user-menu-container {
        flex-shrink: 0;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        max-width: 100%;
    }

    .gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
        min-height: 150px;
    }

    .gallery-item.gallery-item-original {
        grid-column: 1 / 3 !important;
        grid-row: auto !important;
    }

    .gallery-item:hover {
        transform: translateY(-4px) scale(1.02) !important;
    }

    .card {
        padding: 24px;
    }

    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .showcase-images-row {
        flex-direction: column;
    }

    .transformed-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .transformation-arrow {
        transform: rotate(90deg);
    }

    .about-content {
        padding: 24px;
    }

    .about-content h2 {
        font-size: 1.25rem;
    }

    .blog-post,
    .faq-section {
        padding: 24px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }
}

/* Blog Post Styles */
.blog-post {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.blog-post-meta {
    color: #6B7280;
    font-size: 1rem;
    margin-top: 8px;
}

.blog-post-content {
    line-height: 1.8;
    color: #374151;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1C1917;
    margin-top: 40px;
    margin-bottom: 16px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C1917;
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.blog-post-content a {
    color: #06aeed;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 32px;
}

.blog-post-content li {
    margin-bottom: 12px;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related-post-card {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
}

.related-post-card:hover {
    border-color: #06aeed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-card h3 {
    color: #06aeed;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.related-post-card p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
}

/* FAQ Styles */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    max-width: 900px;
    margin: 0 auto;
}

.faq-search {
    margin-bottom: 32px;
}

.faq-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.faq-search-input:focus {
    outline: none;
    border-color: #06aeed;
}

.faq-toc {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.faq-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.faq-toc ul {
    list-style: none;
    padding: 0;
}

.faq-toc li {
    margin-bottom: 8px;
}

.faq-toc a {
    color: #06aeed;
    text-decoration: none;
    font-weight: 500;
}

.faq-toc a:hover {
    text-decoration: underline;
}

.faq-category {
    margin-bottom: 48px;
}

.faq-category h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #06aeed;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1C1917;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #F9FAFB;
}

.faq-icon {
    font-size: 1.5rem;
    color: #06aeed;
    font-weight: 300;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #F9FAFB;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: #374151;
    line-height: 1.7;
}

.faq-cta {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid #06aeed;
}

.faq-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.faq-cta p {
    color: #6B7280;
    margin-bottom: 24px;
}

.faq-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary {
    background: #06aeed;
    color: white;
}

.btn-primary:hover {
    background: #0599d4;
}

.btn-secondary {
    background: white;
    color: #06aeed;
    border: 2px solid #06aeed;
}

.btn-secondary:hover {
    background: #F0F9FF;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 24px;
    z-index: 1000;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    color: #374151;
    font-size: 0.9375rem;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a {
    color: #06aeed;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-banner-btn-accept {
    background: #06aeed;
    color: white;
}

.cookie-banner-btn-accept:hover {
    background: #0599d4;
}

.cookie-banner-btn-reject {
    background: #F3F4F6;
    color: #374151;
}

.cookie-banner-btn-reject:hover {
    background: #E5E7EB;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-banner-btn {
        flex: 1;
    }
}

/* Ad Container Styles */
.ad-container {
    margin: 32px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Leaderboard: 728x90 (Desktop) / 320x50 (Mobile) */
.ad-container.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: block;
}

/* Responsive Ad - Better than fixed rectangle */
.ad-container.ad-responsive {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 24px auto;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ad-placeholder {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

/* Responsive Ad Sizes */
@media (max-width: 768px) {
    .ad-container.ad-leaderboard {
        max-width: 320px;
        height: 50px;
    }

    .ad-container.ad-responsive {
        max-width: 100%;
        min-height: 50px;
    }
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: 300;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #374151;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.auth-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.auth-tab:hover {
    color: #374151;
}

.auth-tab.active {
    color: #06aeed;
    border-bottom-color: #06aeed;
}

.auth-form h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1C1917;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #06aeed;
    box-shadow: 0 0 0 3px rgba(6, 174, 237, 0.1);
}

.auth-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-submit-btn {
    width: 100%;
    padding: 10px 24px;
    background: #06aeed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.auth-submit-btn:hover {
    background: #0599d4;
}

.auth-submit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    color: #6B7280;
    font-size: 14px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #E5E7EB;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
}

.auth-google-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .auth-form h2 {
        font-size: 20px;
    }
}

/* Saved Prompts Table Styles */
.saved-prompts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.saved-prompts-table thead {
    background: #F9FAFB;
}

.saved-prompts-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid #E5E7EB;
}

.saved-prompts-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.2s;
}

.saved-prompts-table tbody tr:hover {
    background: #F9FAFB;
}

.saved-prompts-table td {
    padding: 16px;
    vertical-align: top;
}

.expand-btn {
    background: none;
    border: none;
    color: #06aeed;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.expand-btn:hover {
    transform: scale(1.1);
}

.expand-btn.expanded {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .saved-prompts-table {
        font-size: 14px;
    }
    
    .saved-prompts-table th,
    .saved-prompts-table td {
        padding: 12px;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Mobile First - Base styles are for mobile */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 56px; /* Reduced for smaller nav */
    }

    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .top-nav {
        padding: 0;
    }

    .nav-content {
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .nav-brand {
        gap: 6px;
        flex-shrink: 0;
        flex: 1;
        min-width: 0;
    }

    .nav-logo {
        width: 24px;
        height: 24px;
    }

    .nav-title {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .nav-links {
        top: 56px;
        padding: 12px 0;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .user-menu-container {
        flex-shrink: 0;
    }

    .login-btn {
        padding: 10px 18px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    /* Hero Section */
    .hero-section {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 16px;
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 16px;
        margin-bottom: 32px;
    }

    .hero-gallery {
        gap: 8px;
        padding: 16px;
        margin: 0 auto;
    }

    .gallery-item {
        min-height: 120px;
        border-radius: 8px;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 8px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    /* Style Options */
    .style-options {
        gap: 12px;
    }

    .style-option {
        padding: 16px;
    }

    .style-option-label {
        font-size: 0.875rem;
    }

    /* Buttons */
    .generate-btn,
    .upload-btn {
        padding: 10px 24px;
        font-size: 0.9375rem;
        width: 100%;
    }

    /* Forms */
    .upload-area {
        padding: 40px 20px;
        min-height: 200px;
    }

    .upload-area-text {
        font-size: 0.9375rem;
    }

    /* Results */
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prompt-card {
        padding: 16px;
    }

    /* Showcase */
    .showcase-set {
        margin-bottom: 32px;
    }

    .showcase-images-row {
        gap: 8px;
    }

    .showcase-image {
        border-radius: 8px;
    }

    /* Blog */
    .blog-card {
        padding: 20px;
    }

    .blog-card h2 {
        font-size: 1.25rem;
    }

    /* Tables */
    .saved-prompts-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .saved-prompts-table th,
    .saved-prompts-table td {
        padding: 8px;
        white-space: nowrap;
    }

    /* Preview Container */
    .preview-container {
        margin: 16px 0;
    }

    .preview-image {
        max-height: 300px;
    }

    /* Results Section */
    .results-section {
        margin-top: 32px;
    }

    .prompt-card {
        padding: 16px;
    }

    .prompt-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .copy-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
        width: 100%;
        margin-top: 8px;
    }

    /* Auth Modal */
    .auth-modal-content {
        padding: 20px;
        width: 95%;
        margin: 20px;
    }

    .auth-form h2 {
        font-size: 1.25rem;
    }

    .auth-tabs {
        gap: 4px;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 0.9375rem;
    }

    /* Footer */
    footer {
        padding: 32px 16px;
        text-align: center;
    }

    footer p {
        font-size: 0.875rem;
    }

    /* About */
    .about-content {
        padding: 20px;
    }

    .about-content h2 {
        font-size: 1.125rem;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }

    .faq-answer {
        padding: 16px;
    }

    /* Ad Containers */
    .ad-container {
        margin: 20px auto;
    }

    .ad-container.ad-leaderboard {
        max-width: 100%;
        min-height: 50px;
    }

    /* Showcase */
    .showcase-set {
        margin-bottom: 24px;
    }

    .showcase-images-row {
        flex-direction: column;
        gap: 12px;
    }

    .showcase-image {
        width: 100%;
    }

    /* Loading */
    .loading {
        padding: 32px 20px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }

    /* Footer */
    footer {
        padding: 32px 16px;
        margin-top: 60px;
    }

    footer p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-content {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-gallery {
        gap: 12px;
        padding: 24px;
    }

    .style-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .showcase-images-row {
        flex-wrap: wrap;
    }

    .showcase-image {
        flex: 1 1 calc(50% - 8px);
        min-width: 150px;
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-gallery {
        gap: 16px;
    }

    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .hero-gallery {
        max-width: 1100px;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .nav-title {
        font-size: 0.75rem;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.8125rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .card {
        padding: 16px;
    }

    .style-option {
        padding: 12px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-content {
        padding: 12px 20px;
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .login-btn,
    .style-option,
    .generate-btn,
    .upload-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .expand-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}