/* ======================================
   EDITORIAL DESIGN SYSTEM
   ====================================== */

:root {
    /* Colors - Editorial Palette */
    --bg-cream: #FAF7F4;
    --surface-white: #FFFFFF;
    
    /* Pastels */
    --pastel-blush: #F8E7E9;
    --pastel-lavender: #EAE2FA;
    --pastel-mint: #E6F7EF;
    --pastel-peach: #FBE9D5;
    
    /* Accents */
    --accent-rose: #D8A48F;
    --accent-lavender: #BCA7FF;
    --accent-rose-hover: #C99280;
    
    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    
    /* Effects */
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lifted: 0 12px 32px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================
   BASE STYLES
   ====================================== */

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    width: 100%;
    max-width: 100vw;
}

* {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

.background-editorial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(180deg, 
        var(--bg-cream) 0%, 
        rgba(248, 231, 233, 0.3) 50%,
        var(--bg-cream) 100%
    );
}

/* ======================================
   HEADER
   ====================================== */

.editorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 60px;
    background: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 999; /* High z-index to stay above all page content */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-editorial {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above the menu overlay */
    position: relative;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Credits (hidden on desktop, shown in mobile menu) */
.mobile-menu-credits {
    display: none !important;
}

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

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

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


.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
}

.header-nav a:hover {
    color: var(--accent-rose);
    background: rgba(248, 231, 233, 0.5);
}

/* ======================================
   HERO SECTION
   ====================================== */

.editorial-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.hero-editorial {
    padding: 80px 0 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-headline {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-headline em {
    font-style: italic;
    color: var(--accent-rose);
}

.hero-subheadline {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-primary {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 36px;
    background: var(--accent-rose);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.cta-primary:hover {
    background: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-secondary {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.cta-secondary:hover {
    color: var(--accent-rose);
}

/* Before/After Comparison */
.comparison-block {
    display: flex;
    gap: 24px;
    align-items: center;
}

.comparison-frame {
    position: relative;
    background: white;
    border-radius: var(--border-radius-md);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    flex: 1;
}

.comparison-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lifted);
}

.frame-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.frame-placeholder {
    aspect-ratio: 3/4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-placeholder {
    background: linear-gradient(135deg, var(--pastel-blush), var(--pastel-peach));
}

.after-placeholder {
    background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-mint));
}

.placeholder-icon {
    color: rgba(0, 0, 0, 0.2);
}

.placeholder-icon.sparkle {
    color: rgba(0, 0, 0, 0.25);
}

/* ======================================
   HOW IT WORKS
   ====================================== */

.how-it-works-editorial {
    padding: 80px 0;
}

.section-heading {
    font-size: clamp(36px, 4vw, 48px);
    text-align: center;
    margin-bottom: 56px;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    padding: 48px 32px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.step-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.pastel-blush { background: var(--pastel-blush); }
.pastel-lavender { background: var(--pastel-lavender); }
.pastel-mint { background: var(--pastel-mint); }
.pastel-peach { background: var(--pastel-peach); }

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.7;
}

.step-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ======================================
   USE CASES
   ====================================== */

.use-cases-section {
    padding: 80px 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(234, 226, 250, 0.15) 50%,
        transparent 100%
    );
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: -36px;
    margin-bottom: 56px;
    font-style: italic;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.use-case-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.use-case-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--text-primary);
    opacity: 0.8;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.use-case-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.use-case-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ======================================
   STYLE SHOWCASE
   ====================================== */

.style-showcase {
    padding: 80px 0;
}

/* Carousel wrapper with arrows */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--pastel-blush);
    color: var(--accent-rose);
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Mobile: Move arrows below carousel */
@media (max-width: 768px) {
    .carousel-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .styles-carousel {
        width: 100%;
        order: 1;
    }
    
    .carousel-arrow {
        display: none; /* Hide side arrows on mobile */
    }
    
    /* Create a navigation indicator row below */
    .carousel-wrapper::after {
        content: '← Swipe to see more →';
        order: 2;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 13px;
        color: var(--text-tertiary);
        padding: 8px 0;
    }
}

.styles-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    margin-bottom: -16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-rose) transparent;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.styles-carousel::-webkit-scrollbar {
    height: 6px;
}

.styles-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.styles-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-rose);
    border-radius: 3px;
}

.styles-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-rose-hover);
}

.showcase-card {
    text-align: center;
    flex: 0 0 220px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.showcase-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.showcase-image {
    aspect-ratio: 3/4;
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-card:hover .showcase-image {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.custom-image {
    background: white;
    border: 2px dashed var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.pastel-mixed {
    background: linear-gradient(135deg, var(--pastel-blush), var(--pastel-lavender));
}

.showcase-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Style Categories */
.style-category {
    margin-bottom: 56px;
    position: relative;
}

.style-category:last-child {
    margin-bottom: 0;
}

.category-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-left: 4px;
}

/* Placeholder Cards (Coming Soon) */
.placeholder-card {
    opacity: 0.6;
    pointer-events: none;
}

.placeholder-card .showcase-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.05));
}

.coming-soon {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================================
   TESTIMONIALS
   ====================================== */

.testimonials-section {
    padding: 80px 0;
}

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

.testimonial-card {
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.testimonial-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.testimonial-quote::before {
    content: '"';
    font-size: 48px;
    line-height: 0;
    position: absolute;
    top: 32px;
    left: 32px;
    opacity: 0.15;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-soft);
}

/* ======================================
   PRICING
   ====================================== */

.pricing-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-cream) 0%, white 100%);
}

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

.pricing-content {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* Free Card */
.pricing-card.free-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.pricing-ribbon {
    position: absolute;
    top: -1px;
    left: -1px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 18px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Card */
.pricing-card.featured-card {
    border-color: var(--accent-rose);
    background: linear-gradient(135deg, #fdf2f8 0%, var(--pastel-blush) 100%);
    transform: scale(1.02);
}

.pricing-card.featured-card:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-rose) 0%, #e879a9 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(236, 152, 175, 0.4);
}

.pricing-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.pricing-plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-credits {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 18px;
    color: var(--accent-rose);
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-card.free-card .pricing-price {
    color: #16a34a;
    font-size: 15px;
}

.pricing-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.pricing-features li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
}

.pricing-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'DM Sans', sans-serif;
    background: var(--pastel-lavender);
    color: var(--text-primary);
}

.pricing-cta:hover {
    background: var(--pastel-blush);
    transform: translateY(-2px);
}

.pricing-cta.free-cta {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.pricing-cta.free-cta:hover {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.pricing-cta.featured-cta {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #e879a9 100%);
    color: white;
}

.pricing-cta.featured-cta:hover {
    box-shadow: 0 8px 24px rgba(236, 152, 175, 0.4);
}

.pricing-footer {
    text-align: center;
    padding-top: 24px;
}

.pricing-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Pricing Grid */
@media (max-width: 1280px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured-card {
        transform: scale(1);
    }
    
    .pricing-card.featured-card:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 28px 20px;
    }
}

/* ======================================
   FOOTER
   ====================================== */

.editorial-footer {
    background: var(--bg-cream);
    padding: 60px 60px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--accent-rose);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ======================================
   ANIMATIONS
   ====================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card:nth-child(1).fade-in { animation: fadeInUp 0.6s ease-out 0.1s both; }
.step-card:nth-child(2).fade-in { animation: fadeInUp 0.6s ease-out 0.2s both; }
.step-card:nth-child(3).fade-in { animation: fadeInUp 0.6s ease-out 0.3s both; }

.showcase-card:nth-child(1).fade-in { animation: fadeInUp 0.6s ease-out 0.1s both; }
.showcase-card:nth-child(2).fade-in { animation: fadeInUp 0.6s ease-out 0.15s both; }
.showcase-card:nth-child(3).fade-in { animation: fadeInUp 0.6s ease-out 0.2s both; }
.showcase-card:nth-child(4).fade-in { animation: fadeInUp 0.6s ease-out 0.25s both; }
.showcase-card:nth-child(5).fade-in { animation: fadeInUp 0.6s ease-out 0.3s both; }
.showcase-card:nth-child(6).fade-in { animation: fadeInUp 0.6s ease-out 0.35s both; }

.use-case-card:nth-child(1).fade-in { animation: fadeInUp 0.6s ease-out 0.1s both; }
.use-case-card:nth-child(2).fade-in { animation: fadeInUp 0.6s ease-out 0.15s both; }
.use-case-card:nth-child(3).fade-in { animation: fadeInUp 0.6s ease-out 0.2s both; }
.use-case-card:nth-child(4).fade-in { animation: fadeInUp 0.6s ease-out 0.25s both; }
.use-case-card:nth-child(5).fade-in { animation: fadeInUp 0.6s ease-out 0.3s both; }
.use-case-card:nth-child(6).fade-in { animation: fadeInUp 0.6s ease-out 0.35s both; }

.testimonial-card:nth-child(1).fade-in { animation: fadeInUp 0.6s ease-out 0.1s both; }
.testimonial-card:nth-child(2).fade-in { animation: fadeInUp 0.6s ease-out 0.2s both; }
.testimonial-card:nth-child(3).fade-in { animation: fadeInUp 0.6s ease-out 0.3s both; }
.testimonial-card:nth-child(4).fade-in { animation: fadeInUp 0.6s ease-out 0.4s both; }

/* ======================================
   RESPONSIVE
   ====================================== */

/* Tablet optimizations */
@media (max-width: 1200px) {
    .editorial-header,
    .editorial-main,
    .editorial-footer {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Tablet-specific layout adjustments - Keep single column for styles on all mobile/tablet */
@media (max-width: 768px) and (min-width: 641px) {
    .chatbot-container-editorial {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
    
    .chatbot-sidebar-editorial {
        padding: 20px;
    }
    
    /* Result page single image centered */
    .result-image-wrapper-editorial {
        max-width: 600px;
    }
}

/* Very small phones (< 375px) */
@media (max-width: 374px) {
    .hero-headline {
        font-size: 28px;
    }
    
    .section-heading-app,
    .result-title-editorial {
        font-size: 24px;
    }
    
    .editorial-header {
        padding: 14px 16px;
    }
    
    .editorial-main {
        padding: 0 16px;
    }
    
    .logo-editorial {
        font-size: 20px;
    }
    
    .cta-primary,
    .generate-btn-editorial {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Landscape mode on mobile phones */
@media (max-height: 600px) and (orientation: landscape) {
    .editorial-header {
        padding: 12px 20px;
    }
    
    .hero-editorial {
        padding: 24px 0 32px;
    }
    
    .app-main-editorial,
    .result-main-editorial,
    .chatbot-main-editorial {
        padding: 20px 16px 32px;
    }
    
    /* In landscape, make image section more compact or collapsible */
    .chatbot-sidebar-editorial {
        padding: 12px;
    }
    
    .current-image-preview-editorial {
        max-height: 200px;
    }
    
    .current-image-preview-editorial img {
        max-height: 200px;
    }
    
    .chatbot-container-editorial {
        gap: 12px;
    }
    
    .upload-placeholder-editorial {
        padding: 30px 20px;
    }
    
    .section-heading-app,
    .result-title-editorial {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

/* Safari-specific iOS fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS Safari bottom bar overlap */
    .chatbot-main-editorial {
        padding-bottom: env(safe-area-inset-bottom, 60px);
    }
    
    .chat-input-area-editorial {
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
}

/* ======================================
   AUTHENTICATION PAGES
   ====================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lifted);
    border: 2px solid var(--pastel-blush);
    animation: fadeInUp 0.5s ease-out;
}

.auth-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Google Button */
.auth-btn-google {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-btn-google:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.auth-btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider */
.auth-divider {
    margin: 28px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #E5E7EB;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-tertiary);
    position: relative;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-rose);
    box-shadow: 0 0 0 3px rgba(216, 164, 143, 0.1);
}

.input-hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 4px;
}

.forgot-password {
    font-size: 14px;
    color: var(--accent-rose);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Primary Button */
.auth-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-rose) 0%, #BCA7FF 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Messages */
.error-message {
    padding: 12px 16px;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: var(--border-radius-sm);
    color: #991B1B;
    font-size: 14px;
    line-height: 1.5;
}

.success-message {
    padding: 12px 16px;
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    border-radius: var(--border-radius-sm);
    color: #065F46;
    font-size: 14px;
    line-height: 1.5;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-rose);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Terms */
.auth-terms {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--accent-rose);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 15px;
    }
}

/* ======================================
   USER MENU & PROFILE
   ====================================== */

.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--pastel-lavender);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-left: 16px;
    position: relative;
}

.credits-display::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
}

.credits-icon {
    font-size: 14px;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--pastel-blush);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-menu-btn:hover {
    background: var(--pastel-lavender);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-lavender) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lifted);
    border: none;
    padding: 8px;
    z-index: 1000;
    animation: fadeInUp 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--pastel-blush);
    color: var(--accent-rose);
}

.dropdown-item.active {
    background: var(--pastel-blush);
    color: var(--accent-rose);
}

.dropdown-item svg {
    flex-shrink: 0;
}

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

/* Profile Page */
.profile-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--pastel-blush);
}

.profile-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.card-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-blush) 100%);
    border-radius: 50px;
}

.credits-icon-large {
    font-size: 24px;
}

.credits-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--accent-rose);
}

.info-group {
    margin-bottom: 20px;
}

.info-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    box-sizing: border-box;
}

.info-group input:disabled {
    background: #F9FAFB;
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

.btn-small {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-rose) 0%, #BCA7FF 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    padding: 14px 24px;
    background: white;
    border: 2px solid var(--accent-rose);
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-rose);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--accent-rose);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.danger-card {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #DC2626;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile adjustments for profile */
@media (max-width: 640px) {
    .profile-title {
        font-size: 32px;
    }
    
    .profile-card {
        padding: 24px 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .credits-display {
        display: none; /* Hide on mobile to save space */
    }
    
    .user-menu-btn span {
        display: none; /* Hide username on mobile */
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .editorial-header {
        padding: 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        position: relative;
        overflow-x: hidden;
        backdrop-filter: none; /* Remove backdrop-filter on mobile to prevent stacking context issues */
        background: rgba(250, 247, 244, 1); /* Solid background instead */
    }
    
    .logo-editorial {
        font-size: 20px;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }
    
    /* Mobile menu backdrop overlay */
    .menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998; /* Below menu but above content */
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-backdrop.active {
        display: block;
        opacity: 1;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ensure user menu doesn't cause overflow */
    .user-menu {
        flex-shrink: 0;
        max-width: fit-content;
    }
    
    .user-menu-btn {
        flex-shrink: 0;
    }
    
    /* Mobile menu credits (inside hamburger menu) */
    .mobile-menu-credits {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 16px 20px;
        background: linear-gradient(135deg, rgba(248, 231, 233, 0.8), rgba(234, 226, 250, 0.8));
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
        border: 2px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-menu-credits .credits-icon {
        font-size: 20px;
    }
    
    /* Hide desktop credits and adjust header nav for mobile */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FAF7F4;
        padding: 80px 24px 24px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 24px;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000; /* Increased to ensure above all content */
        overflow-y: auto;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-nav a,
    .header-nav .auth-link {
        font-size: 18px;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Hide desktop credits display on mobile */
    .header-nav .credits-display {
        display: none !important;
    }
    
    /* User menu in mobile */
    /* Simplify user menu for mobile - show as flat list */
    .header-nav .user-menu {
        width: 100%;
        position: static; /* Remove relative positioning */
    }
    
    .header-nav .user-menu-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border: none; /* Remove border */
        border-radius: 0; /* Remove rounded corners */
        background: transparent; /* Remove white background */
    }
    
    .header-nav .user-menu-btn:hover {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    /* Show dropdown items inline on mobile, not as dropdown */
    .header-nav .user-dropdown {
        position: static !important; /* Override absolute positioning */
        display: block !important; /* Always show on mobile */
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        animation: none;
    }
    
    .header-nav .dropdown-item {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Hide the dropdown arrow on mobile */
    .header-nav .user-menu-btn svg {
        display: none;
    }
    
    /* Show username in mobile menu */
    .header-nav .user-menu-btn span {
        display: inline !important;
        font-size: 16px;
        font-weight: 600;
    }

    .editorial-main {
        padding: 0 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .hero-editorial {
        padding: 32px 0 48px;
    }

    .hero-headline {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-subheadline {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Make CTAs more touch-friendly */
    .cta-primary {
        width: 100%;
        padding: 16px 28px;
        font-size: 16px;
        min-height: 52px;
        justify-content: center;
    }
    
    .cta-secondary {
        font-size: 15px;
        padding: 14px 0;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .comparison-block {
        flex-direction: column;
        gap: 16px;
    }
    
    .comparison-frame {
        min-height: 280px;
    }
    
    .comparison-frame img {
        max-height: 240px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .use-case-card {
        padding: 20px;
    }

    .styles-carousel {
        gap: 16px;
    }
    
    .showcase-card {
        flex: 0 0 180px;
    }
    
    .style-sample-card {
        padding: 20px;
    }

    .header-nav {
        gap: 16px;
    }

    .header-nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Section titles */
    .section-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 24px;
    }
    
    /* Pricing cards */
    .pricing-card {
        padding: 32px 24px;
    }
    
    .price {
        font-size: 40px;
    }
    
    /* Footer */
    .editorial-footer {
        padding: 40px 20px;
    }
}

/* ======================================
   APP PAGE - UPLOAD & STYLE SELECTION
   ====================================== */

.app-main-editorial {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 60px 100px;
}

.app-container-editorial {
    animation: fadeInUp 0.6s ease-out;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.app-section-heading {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 12px;
}

.app-section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Upload Section */
.upload-section-editorial {
    margin-bottom: 80px;
}

.upload-area-editorial {
    max-width: 700px;
    margin: 0 auto 32px;
}

.upload-placeholder-editorial {
    background: white;
    border: 3px dashed var(--pastel-blush);
    border-radius: var(--border-radius-md);
    padding: 80px 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-placeholder-editorial:hover {
    border-color: var(--accent-rose);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.upload-icon {
    color: var(--accent-rose);
    opacity: 0.6;
    margin-bottom: 24px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-tertiary);
}

.upload-preview-editorial {
    position: relative;
    background: white;
    border: 3px solid var(--accent-rose);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.upload-preview-editorial img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.change-image-btn-editorial {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--accent-rose);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.change-image-btn-editorial:hover {
    background: var(--accent-rose);
    color: white;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.upload-tips {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.tip-good {
    background: var(--pastel-mint);
    color: var(--text-primary);
}

.tip-bad {
    background: var(--pastel-peach);
    color: var(--text-primary);
}

/* Style Selection */
.style-section-editorial {
    margin-top: 80px;
}

.styles-grid-editorial {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop only - 3 columns */
@media (min-width: 969px) {
    .styles-grid-editorial {
        grid-template-columns: repeat(3, 1fr);
    }
}

.style-card-editorial {
    position: relative; /* For the checkmark */
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 3px solid transparent;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.style-card-editorial:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--pastel-lavender);
}

.style-card-editorial.selected {
    border-color: var(--accent-rose);
    border-width: 3px;
    background: linear-gradient(135deg, var(--pastel-blush) 0%, white 100%);
    box-shadow: 0 8px 24px rgba(229, 99, 153, 0.25);
    transform: translateY(-4px);
}

.style-card-editorial.selected .style-name-editorial {
    color: var(--accent-rose);
    font-weight: 600;
}

.style-card-editorial.selected::before {
    content: "✓";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--accent-rose);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(229, 99, 153, 0.4);
}

.style-preview-editorial {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.style-preview-editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop: Slightly smaller cards for better layout */
@media (min-width: 969px) {
    .app-main-editorial .styles-grid-editorial {
        grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
        max-width: 1100px;
        margin: 0 auto;
        justify-content: center;
    }

    .app-main-editorial .style-card-editorial {
        padding: 18px;
    }
}

.style-1 { background: linear-gradient(135deg, var(--pastel-blush), var(--pastel-peach)); }
.style-2 { background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-mint)); }
.style-3 { background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-blush)); }
.style-4 { background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-lavender)); }
.style-5 { background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-peach)); }

.custom-preview-editorial {
    background: white;
    border: 2px dashed var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.style-name-editorial {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.style-desc-editorial {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Color Toggle for Styles */
.color-toggle {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.color-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: var(--accent-rose);
    color: var(--text-primary);
}

.color-option.active {
    background: linear-gradient(135deg, var(--pastel-blush), var(--pastel-lavender));
    border-color: var(--accent-rose);
    color: var(--text-primary);
}

.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
}

.bw-preview {
    background: linear-gradient(90deg, black 0%, black 50%, white 50%, white 100%);
}

.color-preview-icon {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #ffd93d);
}

/* Style Categories for App Page */
.style-category-app {
    margin-bottom: 48px;
}

.style-category-app:last-child {
    margin-bottom: 40px;
}

.category-heading-app {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Category Toggle Button (hidden on desktop) */
.category-toggle-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.category-toggle-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.category-toggle-btn svg {
    transition: transform 0.3s ease;
}

.style-category-app.collapsed .category-toggle-btn svg {
    transform: rotate(-90deg);
}

/* Category Content */
.category-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Mobile: Show toggle buttons and enable collapse */
@media (max-width: 968px) {
    .category-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .style-category-app.collapsed .category-content {
        max-height: 0 !important;
        opacity: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
    
    .style-category-app:not(.collapsed) .category-content {
        max-height: none; /* Allow natural height for horizontal scroll */
        opacity: 1;
        overflow-x: auto; /* Enable horizontal scroll */
        overflow-y: visible;
    }
    
    .style-category-app {
        margin-bottom: 24px;
    }
    
    .category-heading-app {
        margin-bottom: 16px;
        cursor: pointer;
        user-select: none;
        padding: 12px;
        margin: 0 -12px 16px -12px;
        border-radius: 12px;
        transition: background 0.2s ease;
    }
    
    .category-heading-app:active {
        background: rgba(0,0,0,0.03);
    }
}

/* Placeholder Cards (Coming Soon) for App Page */
.placeholder-card-editorial {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.placeholder-card-editorial:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.placeholder-card-editorial .style-preview-editorial {
    background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-app {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* Custom Prompt */
.custom-prompt-area-editorial {
    margin: 40px 0;
    animation: fadeInUp 0.4s ease-out;
}

.custom-prompt-area-editorial label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.custom-prompt-area-editorial textarea {
    width: 100%;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: var(--border-radius-md);
    padding: 18px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition-smooth);
}

.custom-prompt-area-editorial textarea:focus {
    outline: none;
    border-color: var(--accent-rose);
    box-shadow: var(--shadow-soft);
}

.custom-prompt-area-editorial textarea::placeholder {
    color: var(--text-tertiary);
}

/* Results Count */
.results-count-editorial {
    margin: 40px 0;
    text-align: center;
}

.results-count-editorial label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
}

.count-selector-editorial {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.count-btn-editorial {
    padding: 14px 40px;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.count-btn-editorial:hover {
    border-color: var(--accent-rose);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.count-btn-editorial.active {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: white;
    box-shadow: var(--shadow-soft);
}

/* Generate Button */
.generate-btn-editorial {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 48px auto 0;
    padding: 20px;
    background: var(--accent-rose);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
}

.generate-btn-editorial:hover:not(:disabled) {
    background: var(--accent-rose-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lifted);
}

.generate-btn-editorial:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ======================================
   RESULT PAGE
   ====================================== */

.result-main-editorial {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 60px 100px;
}

.result-container-editorial {
    animation: fadeInUp 0.6s ease-out;
}

.result-title-editorial {
    font-size: clamp(36px, 4vw, 48px);
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    font-style: italic;
}

.result-images-editorial {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 56px 0;
}

.result-image-wrapper-editorial {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    background: white;
    padding: 20px;
    max-width: 500px;
    width: 100%;
}

.result-image-wrapper-editorial img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.result-actions-editorial {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn-editorial {
    padding: 16px 36px;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.action-btn-editorial:hover {
    transform: translateY(-2px);
    border-color: var(--accent-rose);
    box-shadow: var(--shadow-soft);
}

.action-btn-editorial.primary {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: white;
    box-shadow: var(--shadow-soft);
}

.action-btn-editorial.primary:hover {
    background: var(--accent-rose-hover);
    box-shadow: var(--shadow-medium);
}

.result-info-editorial {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    background: var(--pastel-mint);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

/* ======================================
   CHATBOT PAGE
   ====================================== */

.credits-counter-editorial {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--pastel-lavender);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.credits-counter-editorial #creditsRemaining {
    color: var(--accent-rose);
    font-size: 20px;
    font-family: 'Playfair Display', serif;
}

.chatbot-main-editorial {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 60px;
    height: calc(100vh - 140px);
}

.chatbot-container-editorial {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
    height: 100%;
}

.chatbot-sidebar-editorial {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--pastel-blush);
}

.sidebar-label {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-image-preview-editorial {
    width: 100%;
    aspect-ratio: 3/4; /* Portrait aspect ratio for selfies */
    background: var(--pastel-blush);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.current-image-preview-editorial img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    background: white;
}

.chatbot-content-editorial {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--pastel-blush);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-messages-editorial {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-message-editorial,
.user-message-editorial,
.assistant-message-editorial {
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.system-message-editorial {
    background: var(--pastel-mint);
    align-self: center;
    text-align: center;
    max-width: 100%;
}

.message-hint-editorial {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.user-message-editorial {
    background: var(--accent-rose);
    align-self: flex-end;
    color: white;
    box-shadow: var(--shadow-soft);
}

.assistant-message-editorial {
    background: var(--pastel-lavender);
    align-self: flex-start;
}

.chat-input-area-editorial {
    padding: 24px;
    border-top: 2px solid var(--pastel-blush);
}

.input-wrapper-editorial {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-wrapper-editorial textarea {
    flex: 1;
    background: var(--bg-cream);
    border: 2px solid var(--pastel-blush);
    border-radius: var(--border-radius-md);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    max-height: 150px;
    transition: var(--transition-smooth);
}

.input-wrapper-editorial textarea:focus {
    outline: none;
    border-color: var(--accent-rose);
}

.input-wrapper-editorial textarea::placeholder {
    color: var(--text-tertiary);
}

.send-btn-editorial {
    width: 52px;
    height: 52px;
    background: var(--accent-rose);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.send-btn-editorial:hover:not(:disabled) {
    background: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.send-btn-editorial:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-blocked-editorial {
    position: absolute;
    inset: 0;
    background: rgba(250, 247, 244, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
}

.blocked-message-editorial {
    text-align: center;
    max-width: 400px;
    padding: 48px;
}

.blocked-message-editorial h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.blocked-message-editorial p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ======================================
   RESPONSIVE - APP PAGES
   ====================================== */

@media (max-width: 1200px) {
    .app-main-editorial,
    .result-main-editorial {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .chatbot-main-editorial {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Mobile-specific touch improvements */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for mobile devices */
    .style-card-editorial {
        min-height: 140px;
        padding: 24px;
    }
    
    .count-btn-editorial {
        min-width: 60px;
        min-height: 48px;
        font-size: 18px;
    }
    
    .action-btn-editorial,
    .generate-btn-editorial,
    .cta-primary {
        min-height: 52px;
        padding: 16px 28px;
    }
    
    /* Remove hover effects on touch devices */
    .style-card-editorial:hover,
    .cta-primary:hover,
    .action-btn-editorial:hover {
        transform: none;
    }
    
    /* But keep active/pressed state */
    .style-card-editorial:active {
        transform: scale(0.98);
    }
    
    .cta-primary:active,
    .action-btn-editorial:active,
    .generate-btn-editorial:active {
        transform: scale(0.97);
    }
}

@media (max-width: 968px) {
    /* Single column for style cards on mobile/tablet */
    .styles-grid-editorial {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .result-images-editorial {
        margin: 32px 0;
    }
    
    /* MOBILE CHATBOT: Stack vertically with CHAT on top, image below */
    .chatbot-container-editorial {
        display: flex !important; /* Override grid */
        flex-direction: column !important;
        grid-template-columns: unset;
        gap: 20px;
    }
    
    .chatbot-content-editorial {
        /* Chat comes first in mobile */
        order: 1;
        width: 100%;
    }
    
    .chatbot-sidebar-editorial {
        /* Image comes second - below the chat */
        order: 2;
        padding: 16px;
        width: 100%;
    }
    
    .current-image-preview-editorial {
        max-height: 300px;
    }
    
    .current-image-preview-editorial img {
        max-height: 300px;
    }
    
    .download-btn-editorial {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 640px) {
    .app-main-editorial,
    .result-main-editorial,
    .chatbot-main-editorial {
        padding: 24px 16px 40px;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* MOBILE: Horizontal scrolling for style cards */
    .styles-grid-editorial {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 16px;
        padding: 8px 4px 16px;
        width: calc(100% + 32px);
        margin-left: -16px;
        padding-left: 16px;
        padding-right: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .styles-grid-editorial::-webkit-scrollbar {
        display: none;
    }
    
    .style-card-editorial {
        flex: 0 0 auto !important;
        width: 200px !important;
        min-width: 200px !important;
        scroll-snap-align: start;
    }
    
    /* Make style cards more touch-friendly */
    .style-card-editorial {
        min-height: 240px;
        padding: 16px;
    }
    
    .style-card-editorial h3 {
        font-size: 15px;
    }
    
    .style-card-editorial p {
        font-size: 12px;
    }
    
    .style-preview-editorial {
        height: 140px;
    }
    
    .style-preview-editorial img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    /* Add swipe hint for style categories */
    .style-category-app .category-heading-app::after {
        content: ' →';
        color: var(--text-tertiary);
        font-size: 14px;
    }
    
    .result-actions-editorial {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-btn-editorial {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        min-height: 48px; /* Touch-friendly */
    }
    
    .upload-tips {
        flex-direction: column;
    }
    
    /* Upload area - reduce padding on mobile */
    .upload-placeholder-editorial {
        padding: 40px 20px;
    }
    
    .upload-placeholder-editorial svg {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .upload-placeholder-editorial p {
        font-size: 16px;
    }
    
    /* Generate button - make it bigger for mobile */
    .generate-btn-editorial {
        padding: 18px 32px;
        font-size: 17px;
        min-height: 56px; /* Easy to tap */
    }
    
    /* Section headings */
    .section-heading-app {
        font-size: 28px;
    }
    
    /* Chatbot input - MUCH LARGER for mobile */
    .chat-input-area-editorial {
        padding: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid var(--pastel-blush);
    }
    
    .input-wrapper-editorial {
        padding: 0;
        flex-direction: row;
        align-items: stretch;
    }
    
    .input-wrapper-editorial textarea {
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 80px !important;
        max-height: 120px;
        padding: 16px;
        border-radius: 16px;
    }
    
    .input-wrapper-editorial textarea::placeholder {
        font-size: 15px;
    }
    
    .send-btn-editorial {
        min-width: 56px;
        min-height: 56px;
        width: 56px;
        height: 56px;
        align-self: flex-end;
        border-radius: 16px;
    }
    
    .send-btn-editorial svg {
        width: 24px;
        height: 24px;
    }
    
    /* Credits counter - make more compact on mobile */
    .credits-counter-editorial {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* Chat messages area - ensure proper height on mobile */
    .chat-messages-editorial {
        min-height: 300px;
        max-height: 50vh; /* Don't take up whole screen */
    }
    
    /* Upload tips - better mobile spacing */
    .upload-tips-editorial {
        gap: 12px;
        margin-top: 24px;
    }
    
    .tip-card-editorial {
        padding: 16px;
        font-size: 14px;
    }
    
    /* Custom prompt area */
    .custom-prompt-area-editorial textarea {
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 100px;
    }
    
    /* Results count selector */
    .results-count-editorial {
        padding: 20px;
    }
    
    .results-count-editorial label {
        font-size: 15px;
    }
    
    /* Image preview in upload */
    .upload-preview-editorial img {
        max-height: 400px;
    }
    
    .change-image-btn-editorial {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Result images - optimize for mobile */
    .result-images-editorial {
        gap: 20px;
    }
    
    .result-image-wrapper-editorial {
        margin-bottom: 0;
    }
    
    .result-version-label {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    /* Image action buttons on result page */
    .image-actions-editorial {
        gap: 10px;
        padding: 16px;
    }
    
    .image-action-btn-editorial {
        font-size: 14px;
        padding: 12px 20px;
        min-height: 44px;
    }
    
    /* Result title and subtitle */
    .result-title-editorial {
        font-size: 32px;
    }
    
    .result-subtitle {
        font-size: 15px;
    }
    
    /* Chat messages - better mobile readability */
    .user-message-editorial,
    .assistant-message-editorial {
        max-width: 85%;
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .system-message-editorial {
        padding: 20px;
        font-size: 15px;
    }
    
    /* Version label in chatbot */
    .version-label-editorial {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Carousel buttons in chatbot */
    .carousel-btn-editorial {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-editorial svg {
        width: 20px;
        height: 20px;
    }
}


/* ======================================
   APP PAGE - EDITORIAL STYLE
   ====================================== */

.app-main-editorial {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 60px 100px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.app-container-editorial {
    animation: fadeInUp 0.6s ease-out;
}

.section-heading-app {
    font-size: 36px;
    margin-bottom: 12px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Upload Section */
.upload-section-editorial {
    margin-bottom: 60px;
}

.upload-area-editorial {
    margin-top: 32px;
}

.upload-placeholder-editorial {
    background: white;
    border: 3px dashed var(--pastel-blush);
    border-radius: var(--border-radius-md);
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-placeholder-editorial:hover {
    border-color: var(--accent-rose);
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
}

.upload-placeholder-editorial svg {
    color: var(--accent-rose);
    margin-bottom: 24px;
    opacity: 0.6;
}

.upload-placeholder-editorial p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    color: var(--text-tertiary);
    font-size: 14px;
}

.upload-preview-editorial {
    position: relative;
    background: white;
    border: 3px solid var(--accent-rose);
    border-radius: var(--border-radius-md);
    padding: 16px;
    box-shadow: var(--shadow-medium);
}

.upload-preview-editorial img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.change-image-btn-editorial {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--accent-rose);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.change-image-btn-editorial:hover {
    background: var(--accent-rose);
    color: white;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Style Selection */
.style-section-editorial {
    margin-top: 60px;
}

/* Duplicate removed - defined at line ~1162 */

.style-card-editorial {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
}

.style-card-editorial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--pastel-blush);
}

/* Selected state defined earlier in file - removed duplicate */

.style-preview-editorial {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.style-preview-editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-1-editorial { background: linear-gradient(135deg, var(--pastel-blush), var(--pastel-peach)); }
.style-2-editorial { background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-mint)); }
.style-3-editorial { background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-blush)); }
.style-4-editorial { background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-lavender)); }
.style-5-editorial { background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-peach)); }

.custom-preview-editorial {
    background: white;
    border: 2px dashed var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.style-name-editorial {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.style-desc-editorial {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Custom Prompt */
.custom-prompt-area-editorial {
    margin: 32px 0;
    animation: fadeInUp 0.4s ease-out;
}

.custom-prompt-area-editorial label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.custom-prompt-area-editorial textarea {
    width: 100%;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition-smooth);
}

.custom-prompt-area-editorial textarea:focus {
    outline: none;
    border-color: var(--accent-rose);
    box-shadow: var(--shadow-soft);
}

.custom-prompt-area-editorial textarea::placeholder {
    color: var(--text-tertiary);
}

/* Results Count */
.results-count-editorial {
    margin: 32px 0;
}

.results-count-editorial label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.count-selector-editorial {
    display: flex;
    gap: 12px;
}

.count-btn-editorial {
    padding: 14px 36px;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.count-btn-editorial:hover {
    border-color: var(--accent-rose);
    transform: translateY(-2px);
}

.count-btn-editorial.active {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: white;
    box-shadow: var(--shadow-soft);
}

/* Generate Button */
.generate-btn-editorial {
    width: 100%;
    padding: 20px;
    background: var(--accent-rose);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    margin-top: 32px;
}

.generate-btn-editorial:hover:not(:disabled) {
    background: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
}

.generate-btn-editorial:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.generate-btn-editorial.loading {
    pointer-events: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ======================================
   RESULT PAGE - EDITORIAL STYLE
   ====================================== */

.result-main-editorial {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 60px 100px;
}

.result-container-editorial {
    animation: fadeInUp 0.6s ease-out;
}

.result-title-editorial {
    text-align: center;
    font-size: 42px;
    margin-bottom: 8px;
}

.result-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    font-style: italic;
    margin-bottom: 48px;
}

.result-images-editorial {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.result-image-wrapper-editorial {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-medium);
    animation: scaleIn 0.6s ease-out backwards;
    max-width: 500px;
    width: 100%;
}

.result-image-wrapper-editorial:nth-child(1) { animation-delay: 0.1s; }
.result-image-wrapper-editorial:nth-child(2) { animation-delay: 0.2s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-image-wrapper-editorial img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.result-actions-editorial {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn-editorial {
    padding: 16px 32px;
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.action-btn-editorial:hover {
    transform: translateY(-2px);
    border-color: var(--accent-rose);
    box-shadow: var(--shadow-soft);
}

.download-btn-editorial,
.edit-btn-editorial {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: white;
    box-shadow: var(--shadow-soft);
}

.download-btn-editorial:hover,
.edit-btn-editorial:hover {
    background: var(--accent-rose-hover);
    box-shadow: var(--shadow-medium);
}

.secondary-btn-editorial {
    background: white;
}

.result-info-editorial {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: var(--pastel-lavender);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

/* ======================================
   CHATBOT PAGE - EDITORIAL STYLE
   ====================================== */

/* Duplicate removed - defined above */

.chatbot-main-editorial {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 60px 60px;
    height: calc(100vh - 120px);
}

/* Duplicate removed - defined at line ~1487 */

/* Duplicate removed - defined earlier in file */

.chatbot-content-editorial {
    background: white;
    border: 2px solid var(--pastel-blush);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-messages-editorial {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-message-editorial,
.user-message-editorial,
.assistant-message-editorial {
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.system-message-editorial {
    background: var(--pastel-lavender);
    align-self: center;
    text-align: center;
    max-width: 100%;
    border: 2px solid rgba(188, 167, 255, 0.3);
}

.message-hint-editorial {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
    font-style: italic;
}

.user-message-editorial {
    background: var(--accent-rose);
    align-self: flex-end;
    color: white;
    box-shadow: var(--shadow-soft);
}

.assistant-message-editorial {
    background: var(--pastel-blush);
    border: 2px solid rgba(248, 231, 233, 0.5);
    align-self: flex-start;
}

.chat-input-area-editorial {
    padding: 24px;
    border-top: 2px solid var(--pastel-blush);
}

.input-wrapper-editorial {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-wrapper-editorial textarea {
    flex: 1;
    background: var(--bg-cream);
    border: 2px solid var(--pastel-blush);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    max-height: 150px;
    transition: var(--transition-smooth);
}

.input-wrapper-editorial textarea:focus {
    outline: none;
    border-color: var(--accent-rose);
    background: white;
}

.input-wrapper-editorial textarea::placeholder {
    color: var(--text-tertiary);
}

.send-btn-editorial {
    width: 52px;
    height: 52px;
    background: var(--accent-rose);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.send-btn-editorial:hover:not(:disabled) {
    background: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.send-btn-editorial:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-blocked-editorial {
    position: absolute;
    inset: 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
}

.blocked-message-editorial {
    text-align: center;
    max-width: 400px;
    padding: 48px;
}

.blocked-message-editorial h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.blocked-message-editorial p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Upload Tips */
.upload-tips-editorial {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tip-card-editorial {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid;
    transition: var(--transition-smooth);
}

.tip-card-editorial:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.good-tip-editorial {
    background: var(--pastel-mint);
    border-color: rgba(230, 247, 239, 0.5);
    color: var(--text-primary);
}

.bad-tip-editorial {
    background: var(--pastel-peach);
    border-color: rgba(251, 233, 213, 0.5);
    color: var(--text-primary);
}

.tip-card-editorial svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-content-editorial {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.tip-content-editorial strong {
    font-weight: 600;
}

@media (max-width: 640px) {
    .upload-tips-editorial {
        grid-template-columns: 1fr;
    }
}
/* Version Carousel Styles */
.version-label-editorial {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-carousel-editorial {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-btn-editorial {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--accent-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--accent-rose);
}

.carousel-btn-editorial:hover:not(:disabled) {
    background: var(--accent-rose);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 99, 153, 0.3);
}

.carousel-btn-editorial:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--text-tertiary);
    color: var(--text-tertiary);
}

.prev-btn-editorial {
    left: -20px;
}

.next-btn-editorial {
    right: -20px;
}

.download-btn-editorial {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-rose) 0%, #d87093 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(229, 99, 153, 0.3);
}

.download-btn-editorial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 99, 153, 0.4);
}

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

.download-btn-editorial svg {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prev-btn-editorial {
        left: -10px;
    }
    
    .next-btn-editorial {
        right: -10px;
    }
    
    .carousel-btn-editorial {
        width: 36px;
        height: 36px;
    }
}


/* Loading Message Styles */
.loading-message-editorial {
    padding: 16px 20px !important;
    background: linear-gradient(135deg, var(--pastel-blush) 0%, var(--pastel-lavender) 100%) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(229, 99, 153, 0.2);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 4px 16px rgba(229, 99, 153, 0.3);
    }
}

.loading-content-editorial {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-spinner-editorial {
    display: flex;
    gap: 6px;
    align-items: center;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-rose);
    border-radius: 50%;
    animation: bounce-dots 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-text-editorial {
    color: var(--accent-rose);
    font-weight: 500;
    font-size: 15px;
}

/* Comparison Frame Images */
.frame-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-cream);
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Result Version Labels */
.result-version-label {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--accent-rose);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(229, 99, 153, 0.4);
}

/* Better grid for multiple results */
@media (min-width: 768px) {
    /* Result page single image on desktop */
    .result-image-wrapper-editorial {
        max-width: 550px;
    }
}

/* Image Action Buttons (Per Image) */
.image-actions-editorial {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--pastel-blush);
}

.image-action-btn-editorial {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-image-btn {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #d87093 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 99, 153, 0.3);
}

.download-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 99, 153, 0.4);
}

.edit-image-btn {
    background: white;
    color: var(--accent-rose);
    border: 2px solid var(--accent-rose);
}

.edit-image-btn:hover {
    background: var(--pastel-blush);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 99, 153, 0.2);
}

.image-action-btn-editorial svg {
    flex-shrink: 0;
}

/* Update result-image-wrapper to accommodate buttons */
.result-image-wrapper-editorial {
    display: flex;
    flex-direction: column;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .image-actions-editorial {
        flex-direction: column;
    }
    
    .image-action-btn-editorial {
        width: 100%;
    }
}
