#calculator .card, .curtain-label, .navbar.scrolled {
    backdrop-filter: blur(10px)
}

.accordion-item, .after-image, .before-image, .btn-upload, .card, .compare-half, .cta-hero, .curtain-compare-card, .curtain-container, .showcase-card, .upload-area, .user-dropdown {
    overflow: hidden
}

.btn-try-free, .cta-btn, a:hover {
    text-decoration: none
}

#generateBtn, .compare-label, .ghibli-stats-eyebrow {
    text-transform: uppercase
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #009688;
    --light-bg: #F1F8E9;
    --dark-bg: #1B5E20;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --page-bg: var(--light-bg);
    --page-gradient: linear-gradient(135deg, #f1f8e9 0%, #e8f4f8 100%);
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --light-accent: #E8F5E9;
    --medium-accent: #C8E6C9
}

.fw-700 {
    font-weight: 700
}

.fw-800 {
    font-weight: 800
}

.fs-3rem {
    font-size: 3rem
}

.fs-1rem {
    font-size: 1rem
}

.text-green-34c {
    color: #34c38f !important
}

.text-brand-green {
    color: #28a745 !important
}

.benefits-gradient, .bg-light, .faq-bg, .footer-gradient, .ghibli-examples-bg, .ghibli-stats-bg, .how-to-use-bg, .key-features-bg, .pricing-bg, header.topbar-gradient {
    background: inherit !important
}

.user-sidebar, body {
    background: var(--page-gradient)
}

.fs-2rem {
    font-size: 2rem
}

.text-slate-500 {
    color: #6b7280 !important
}

.text-slate-900 {
    color: #0f172a !important
}

.max-w-520 {
    max-width: 520px
}

.max-w-600 {
    max-width: 600px
}

.user-sidebar {
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, .2)
}

.user-sidebar .sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    margin-bottom: .5rem
}

.user-sidebar .sidebar-title {
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    opacity: .8
}

.user-sidebar .nav {
    padding: .5rem 1rem
}

.user-sidebar .nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin-bottom: .5rem;
    border-radius: 8px;
    transition: .15s;
    font-weight: 500;
    background: 0 0;
    border: none;
    opacity: .75;
    font-size: .95rem;
    white-space: nowrap
}

.user-sidebar .nav-link:hover {
    color: var(--dark-bg);
    background: rgba(255, 255, 255, .4);
    opacity: 1
}

.user-sidebar .nav-link.active {
    color: var(--dark-bg);
    background: rgba(255, 255, 255, .6);
    font-weight: 600;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.navbar-light .navbar-nav .nav-link, body, footer, footer h5 {
    color: var(--text-color)
}

.user-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    margin-right: 10px;
    font-size: .95rem
}

@media (max-width: 768px) {
    .user-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2)
    }

    .user-sidebar .sidebar-header {
        padding: 1.5rem 1rem 1rem
    }

    .user-sidebar .sidebar-title {
        font-size: 1rem;
        text-align: left
    }

    .user-sidebar .nav {
        padding: .5rem;
        display: flex;
        overflow-x: auto;
        gap: .5rem
    }

    .user-sidebar .nav-link {
        padding: .75rem 1.25rem;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
        font-size: .9rem
    }
}

.btn-outline-primary, .btn-primary, .btn-success {
    border-color: var(--primary-color)
}

@media (max-width: 992px) and (min-width: 769px) {
    .user-sidebar .nav-link {
        padding: .875rem 1rem;
        font-size: .95rem
    }

    .user-sidebar .nav-link i {
        margin-right: 8px
    }
}

.branding-title, .showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333
}

.branding-subtitle, .showcase-subtitle {
    color: #6c757d;
    font-size: 1.1rem
}

.branding-logo {
    transition: transform .3s;
    opacity: .7
}

.benefit-card, .showcase-card {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    border-radius: 12px
}

.branding-logo:hover {
    transform: scale(1.1);
    opacity: 1
}

.feature1-section, .feature2-section, .feature3-section, .showcase-section {
    padding: 80px 0
}

.feature1-title, .feature2-title, .feature3-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem
}

.feature1-description, .feature2-subtitle, .feature3-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem
}

.benefit-title, .step-title {
    margin-bottom: 1rem;
    font-weight: 600
}

.feature1-list {
    list-style: none;
    padding: 0
}

.feature1-item {
    padding: 8px 0;
    font-size: 1.1rem
}

.benefit-card {
    padding: 2rem
}

.benefit-card:hover, .showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.benefit-icon {
    color: #0d6efd
}

.benefit-title {
    font-size: 1.5rem;
    color: #333
}

.benefit-description, .step-description {
    color: #6c757d;
    line-height: 1.6
}

.blog-card .card-body, .showcase-card .card-body, .usage-step {
    padding: 1.5rem
}

.step-number .badge {
    font-size: 1.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s
}

.step-title {
    font-size: 1.3rem;
    color: #333
}

#simulation-results, .branding-section .examples-grid .example-item img, .card, .feature-icon i, .feature-item, .hero-section .btn-light, .hero-section .btn-outline-light, .navbar, .navbar-brand, .usage-step, a {
    transition: .3s
}

.stats-section {
    background: inherit !important;
    color: inherit;
    padding: 80px 0
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700
}

.stats-subtitle {
    opacity: .9;
    font-size: 1.1rem
}

.stat-item {
    padding: 1rem
}

.stat-number h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.stat-label p {
    font-size: 1.1rem;
    opacity: .9
}

.smooth-scroll, html {
    scroll-behavior: smooth
}

body {
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    background-attachment: fixed
}

.navbar-brand, h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, sans-serif
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-bg)
}

.btn-outline-primary, a {
    color: var(--primary-color)
}

a:hover {
    color: var(--accent-color)
}

.btn-primary, .btn-success {
    background-color: var(--primary-color)
}

.btn-primary:focus, .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color)
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white)
}

.feature-section .text-success, .text-primary {
    color: var(--primary-color) !important
}

.bg-primary {
    background-color: var(--primary-color) !important;
    position: relative
}

.bg-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    opacity: .3
}

.bg-primary.text-white {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.border-primary {
    border-color: var(--primary-color) !important
}

.accordion-button, .navbar {
    background-color: var(--white)
}

#calculator, .hero-section, footer {
    background: inherit !important
}

.navbar-brand {
    color: var(--primary-color)
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    padding: .5rem
}

.dropdown-item {
    padding: .5rem 1rem;
    border-radius: 4px
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: rgba(76, 175, 80, .1);
    color: var(--primary-color)
}

.hero-section {
    padding: 5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    position: relative
}

.btn-light, .hero-section .btn-light:hover {
    background-color: var(--white);
    color: var(--primary-color)
}

.hero-section:not(.hero-soft) {
    color: var(--white)
}

.hero-section:not(.hero-soft)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    pointer-events: none
}

.hero-section:not(.hero-soft) h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 0 30px rgba(255, 255, 255, .2);
    font-weight: 700;
    letter-spacing: .5px;
    position: relative;
    z-index: 2
}

.hero-section:not(.hero-soft) p {
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 0 20px rgba(255, 255, 255, .1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    z-index: 2
}

.btn-light {
    border-color: var(--white);
    font-weight: 500
}

.blog-card .text-primary i, .btn-light:hover, .card-header {
    background-color: var(--light-accent)
}

.btn-light:hover {
    color: var(--dark-bg);
    border-color: var(--light-accent)
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white)
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, .15);
    color: var(--white);
    border-color: var(--white)
}

.hero-section .btn-light {
    background-color: rgba(255, 255, 255, .95);
    color: var(--dark-bg);
    border-color: rgba(255, 255, 255, .95);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    position: relative;
    z-index: 2
}

.hero-section .btn-light:hover {
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2)
}

.hero-section .btn-outline-light {
    color: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .7);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    position: relative;
    z-index: 2
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, .15);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .15)
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05)
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    transform: translateY(-5px)
}

.card-header {
    font-weight: 600;
    border-bottom: none
}

.mention-card {
    border-left: 4px solid var(--primary-color);
    background-color: var(--white)
}

.mention-card:hover {
    border-left: 4px solid var(--accent-color)
}

.blog-card .text-primary i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.calculator-section {
    background-color: var(--light-bg);
    padding: 4rem 0
}

#results-details tbody tr:hover, #results-details thead th, .results-summary {
    background-color: var(--light-accent)
}

.form-control, .form-select {
    border-radius: 6px;
    padding: .6rem 1rem;
    border: 1px solid #dee2e6
}

.chart-container, .results-summary, .table-container {
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .25rem rgba(76, 175, 80, .25)
}

.results-summary {
    border-radius: 8px;
    margin-bottom: 2rem
}

#results-details tfoot, .chart-container, .table-container, .testimonial {
    background-color: var(--white)
}

.results-summary h4 {
    color: var(--dark-bg);
    margin-bottom: 1rem
}

.results-summary .total-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0
}

.chart-container {
    position: relative;
    height: 400px;
    border-radius: 8px
}

.table-container {
    border-radius: 8px
}

.table-container h5 {
    color: var(--dark-bg);
    font-weight: 600
}

#results-details {
    max-height: 400px;
    overflow-y: auto
}

#results-details table, .api-keys-table-container .table, .credits-table-container .table, .orders-table-container .table {
    margin-bottom: 0
}

#results-details thead th {
    position: sticky;
    top: 0;
    z-index: 1
}

#results-details tfoot {
    position: sticky;
    bottom: 0;
    z-index: 1
}

.testimonial {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05)
}

.testimonial .rounded-circle {
    background-color: var(--primary-color) !important
}

.accordion-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

footer {
    padding: 4rem 0 2rem;
    position: relative
}

footer::before {
    content: none !important
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem
}

footer .text-secondary {
    color: var(--text-light) !important
}

footer .text-secondary:hover {
    color: var(--text-color) !important
}

.bg-white {
    background-color: var(--white) !important
}

.accordion-button, .navbar, .testimonial-item {
    background-color: var(--white)
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    padding: .8rem 1rem
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    background-color: var(--page-bg)
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color)
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 4px;
    margin: 0 .2rem;
    transition: .3s;
    position: relative
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, .1)
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px
}

section {
    scroll-margin-top: 80px
}

.faq-section, .feature-section, .testimonial-section {
    opacity: 0;
    transform: translateY(30px);
    transition: .6s
}

.faq-section.animate-in, .feature-section.animate-in, .testimonial-section.animate-in {
    opacity: 1;
    transform: translateY(0)
}

#calculator {
    position: relative
}

#calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%234CAF50" fill-opacity="0.03"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    pointer-events: none
}

#calculator .card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(76, 175, 80, .1)
}

.feature-item:hover {
    transform: translateY(-5px)
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--accent-color) !important
}

.usage-step:hover {
    transform: translateY(-10px)
}

.usage-step:hover .step-number .badge {
    transform: scale(1.2);
    background-color: var(--accent-color) !important
}

.testimonial-item {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: .3s;
    height: 100%;
    border: 1px solid rgba(76, 175, 80, .1)
}

.testimonial-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    transform: translateY(-5px);
    border-color: var(--primary-color)
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-color);
    margin: 1rem 0;
    position: relative
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: Georgia, serif
}

.testimonial-rating .fa-star {
    margin-right: 2px
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: .3s
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12)
}

.accordion-button {
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-accent);
    color: var(--primary-color);
    box-shadow: none
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(76, 175, 80, .5)
}

.accordion-body {
    padding: 1.5rem;
    background-color: rgba(241, 248, 233, .3)
}

.curtain-compare-card {
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    background: #fff;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    isolation: isolate
}

.curtain-compare-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15) !important
}

.curtain-container {
    position: relative;
    height: 280px;
    user-select: none;
    contain: layout style
}

.curtain-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%
}

.curtain-after-img, .curtain-before-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.curtain-before-img {
    z-index: 1
}

.curtain-after-img {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path
}

.curtain-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(76, 175, 80, .9) 0, rgba(76, 175, 80, .7) 50%, rgba(76, 175, 80, .9) 100%);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(76, 175, 80, .4);
    will-change: left, transform;
    transform: translateX(-50%)
}

.curtain-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(76, 175, 80, .3);
    transition: .3s
}

.curtain-handle:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(76, 175, 80, .4)
}

.curtain-handle-icon {
    font-size: 11px;
    color: var(--primary-color);
    transition: color .3s
}

.curtain-handle:hover .curtain-handle-icon {
    color: #fff
}

.curtain-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5
}

.curtain-label {
    position: absolute;
    top: 12px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: .65rem;
    padding: .25rem .6rem;
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid rgba(255, 255, 255, .2)
}

.curtain-before-label {
    left: 12px;
    background: rgba(108, 117, 125, .9)
}

.curtain-after-label {
    right: 12px;
    background: rgba(76, 175, 80, .9)
}

.curtain-compare-card:first-child .curtain-container {
    height: 280px
}

.curtain-compare-card:nth-child(2) .curtain-container {
    height: 220px
}

.curtain-compare-card:nth-child(3) .curtain-container {
    height: 300px
}

.curtain-compare-card:nth-child(4) .curtain-container {
    height: 240px
}

.curtain-compare-card:nth-child(5) .curtain-container {
    height: 260px
}

.curtain-compare-card:nth-child(6) .curtain-container {
    height: 290px
}

.compare-card:hover .compare-half img, .curtain-compare-card:hover .curtain-after-img, .curtain-compare-card:hover .curtain-before-img, .gallery-item:hover .gallery-image, .ghibli-card:hover .ghibli-example-img {
    transform: scale(1.05)
}

.compare-card {
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    background: #fff;
    margin-bottom: 1.5rem
}

.compare-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15) !important
}

.compare-inner {
    height: 100%
}

.compare-half {
    flex: 1 1 50%
}

.compare-half img {
    object-fit: cover;
    transition: transform .35s;
    width: 100%
}

.compare-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: 6px;
    letter-spacing: .03em;
    font-weight: 600;
    z-index: 2
}

.gallery-image, .gallery-overlay {
    border-radius: 12px;
    transition: .3s
}

.compare-before {
    background: #6c757d !important
}

.compare-after {
    background: #198754 !important
}

.gallery-item {
    transition: .3s;
    cursor: pointer
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15) !important
}

.cta-btn-primary:hover, .cta-btn-secondary:hover {
    transform: translateY(-2px)
}

.gallery-image {
    object-fit: cover;
    height: 250px
}

.gallery-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, .3)
}

.branding-section .style-selector.active .style-name, .branding-section .style-selector.selected .style-name, .branding-section .style-selector:hover .style-name, .gallery-item:hover .gallery-overlay, .generation-notification .btn-close:hover, .protected-content.authenticated, .sign-in-modal .btn-close:hover {
    opacity: 1
}

.feature-section .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 500;
    font-size: .875rem;
    padding: .5rem 1rem
}

.feature-section .display-4 {
    font-weight: 700;
    color: var(--dark-bg)
}

.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem
}

@media (max-width: 991.98px) {
    .chart-container, .table-container {
        margin-bottom: 1.5rem
    }

    .chart-container {
        height: 350px
    }

    .compare-card:first-child .compare-half img, .compare-card:first-child .compare-inner, .curtain-compare-card:first-child .curtain-container {
        height: 240px
    }

    .compare-card:nth-child(2) .compare-half img, .compare-card:nth-child(2) .compare-inner, .curtain-compare-card:nth-child(2) .curtain-container {
        height: 180px
    }

    .compare-card:nth-child(3) .compare-half img, .compare-card:nth-child(3) .compare-inner, .curtain-compare-card:nth-child(3) .curtain-container {
        height: 260px
    }

    .compare-card:nth-child(4) .compare-half img, .compare-card:nth-child(4) .compare-inner, .curtain-compare-card:nth-child(4) .curtain-container, .gallery-image {
        height: 200px
    }

    .compare-card:nth-child(5) .compare-half img, .compare-card:nth-child(5) .compare-inner, .curtain-compare-card:nth-child(5) .curtain-container {
        height: 220px
    }

    .compare-card:nth-child(6) .compare-half img, .compare-card:nth-child(6) .compare-inner, .curtain-compare-card:nth-child(6) .curtain-container {
        height: 250px
    }

    .curtain-handle {
        width: 28px;
        height: 28px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 2px 10px rgba(76, 175, 80, .25)
    }

    .curtain-handle:hover {
        box-shadow: 0 3px 14px rgba(76, 175, 80, .35)
    }

    .curtain-handle-icon {
        font-size: 10px
    }
}

@media (max-width: 767.98px) {
    .calculator-section, .hero-section {
        padding: 3rem 0
    }

    .navbar-collapse {
        background-color: var(--page-bg);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
        margin-top: 1rem
    }

    .chart-container {
        height: 300px
    }

    .feature-section .display-4, .results-summary .total-score {
        font-size: 2rem
    }

    #results-details {
        max-height: 300px
    }

    .curtain-compare-card:first-child .curtain-container, .curtain-compare-card:nth-child(5) .curtain-container {
        height: 350px
    }

    .curtain-compare-card:nth-child(2) .curtain-container {
        height: 320px
    }

    .curtain-compare-card:nth-child(3) .curtain-container {
        height: 380px
    }

    .curtain-compare-card:nth-child(4) .curtain-container {
        height: 340px
    }

    .curtain-compare-card:nth-child(6) .curtain-container {
        height: 370px
    }

    .curtain-handle {
        width: 26px;
        height: 26px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 2px 8px rgba(76, 175, 80, .2)
    }

    .curtain-handle:hover {
        box-shadow: 0 3px 12px rgba(76, 175, 80, .3)
    }

    .curtain-handle-icon {
        font-size: 9px
    }

    .curtain-label {
        top: 8px;
        font-size: .6rem;
        padding: .2rem .5rem;
        border-radius: 12px
    }

    .curtain-before-label {
        left: 8px
    }

    .curtain-after-label {
        right: 8px
    }

    .curtain-compare-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
    }

    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1.25rem
    }

    .gallery-image {
        height: 180px
    }
}

@media (max-width: 767.98px) {
    .compare-card:first-child .compare-half img, .compare-card:nth-child(5) .compare-half img {
        height: 180px
    }

    .compare-card:nth-child(2) .compare-half img {
        height: 160px
    }

    .compare-card:nth-child(3) .compare-half img {
        height: 200px
    }

    .compare-card:nth-child(4) .compare-half img {
        height: 170px
    }

    .compare-card:nth-child(6) .compare-half img {
        height: 190px
    }

    .compare-inner {
        flex-direction: row !important;
        min-height: auto !important
    }

    .compare-half {
        flex: 1 1 50% !important;
        margin-bottom: 0
    }

    .compare-label {
        top: 6px;
        left: 6px;
        font-size: .6rem;
        padding: .15rem .35rem;
        border-radius: 4px
    }

    .compare-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
    }
}

.after-image, .before-image {
    left: 15px;
    right: 15px
}

.navbar.custom-nav {
    background: 0 0;
    padding: 12px 0;
    box-shadow: none
}

.brand-icon-img, .navbar.custom-nav .navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08)
}

.navbar.custom-nav .brand-gradient {
    background: linear-gradient(90deg, #22c55e 0, #16a34a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700
}

.navbar.custom-nav .nav-link {
    color: #6b7280;
    font-weight: 500;
    margin-right: 18px;
    white-space: nowrap;
    padding-left: .5rem;
    padding-right: .5rem
}

.navbar.custom-nav .nav-link.active, .navbar.custom-nav .nav-link:hover {
    color: #0f172a
}

.navbar.custom-nav .nav-link .small-icon {
    font-size: .9rem;
    opacity: .9
}

.icon-square {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.icon-square i {
    font-size: .65rem;
    line-height: 1
}

.appstore-badge {
    display: block;
    height: 32px
}

.language-btn {
    color: #6b7280;
    font-weight: 500
}

.language-btn:hover {
    color: #0f172a;
    background: #fff
}

.dropdown-menu {
    border-radius: 12px
}

.btn-success.btn-pill {
    background-color: #2ea37e;
    border-color: #2ea37e
}

.btn-success.btn-pill:hover {
    background-color: #278a6a;
    border-color: #278a6a
}

.user-dropdown {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    min-width: 220px
}

.user-dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    background-color: #f9fafb
}

.user-dropdown .dropdown-item {
    padding: 10px 15px;
    color: #374151;
    font-weight: 500;
    border-radius: 0
}

.user-dropdown .dropdown-item:hover {
    background-color: #f3f4f6
}

.user-dropdown .dropdown-divider {
    margin: .5rem 0;
    border-top: 1px solid rgba(0, 0, 0, .05)
}

.user-profile-btn {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 6px 14px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: .3s
}

.user-profile-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

.user-profile-btn .avatar {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
    color: #4b5563
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-right: 6px
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.2
}

.user-email {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2
}

.navbar.scrolled {
    box-shadow: none;
    backdrop-filter: saturate(180%) blur(6px);
    background-color: var(--page-bg)
}

.btn-try-free, .feature-glass-item, .floating-actions, .generation-notification {
    backdrop-filter: blur(10px)
}

.cta-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    text-align: center;
    background: inherit !important
}

.cta-hero::after, .cta-hero::before {
    content: none !important;
    display: none !important
}

.cta-hero::before {
    left: -22%;
    background: repeating-radial-gradient(ellipse at right center, rgba(99, 116, 139, .25) 0, rgba(99, 116, 139, .25) 1px, rgba(99, 116, 139, 0) 1px, rgba(99, 116, 139, 0) 34px)
}

.cta-hero::after {
    right: -22%;
    background: repeating-radial-gradient(ellipse at left center, rgba(99, 116, 139, .22) 0, rgba(99, 116, 139, .22) 1px, rgba(99, 116, 139, 0) 1px, rgba(99, 116, 139, 0) 34px)
}

.cta-title {
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -.02em
}

.btn-upload, .cta-btn, .label-text, .upload-title {
    font-weight: 600
}

.cta-desc {
    margin: 0 auto 28px;
    max-width: 720px;
    font-size: 16px;
    color: #6b7280
}

.cta-actions {
    display: inline-flex;
    gap: 14px;
    align-items: center
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    transition: transform .15s, box-shadow .15s, background-color .2s;
    cursor: pointer
}

.cta-btn-primary {
    background-color: #39b17b;
    color: #fff;
    box-shadow: 0 6px 16px rgba(57, 177, 123, .35)
}

.cta-btn-secondary {
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db
}

.cta-btn-secondary:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06)
}

.branding-section {
    background: inherit !important;
    min-height: auto;
    position: relative;
    transform: scale(.8);
    transform-origin: top center;
    margin-bottom: -10%
}

/* Fix for high resolution displays */
@media (min-width: 1920px) {
    .branding-section {
        transform: scale(0.9);
        margin-bottom: -5%;
    }
}

@media (min-width: 2560px) {
    .branding-section {
        transform: scale(1);
        margin-bottom: 0;
        padding-bottom: 2rem;
    }
}

.comparison-slider, .slider-line {
    transform: translateX(-50%);
    position: absolute
}

.min-vh-75 {
    min-height: 25vh
}

.comparison-container, .image-comparison-container, .upload-section {
    max-width: 100%;
    margin: 0 auto
}

.comparison-wrapper {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, .15);
    background: linear-gradient(135deg, #fff 0, #f8fff8 100%);
    padding: 15px;
    height: 200px;
    user-select: none;
    border: 2px solid rgba(76, 175, 80, .1)
}

.after-image, .before-image {
    position: absolute;
    top: 15px;
    width: auto;
    height: 170px;
    border-radius: 10px
}

.after-image {
    clip-path: inset(0 0 0 100%)
}

.after-image img, .before-image img, .comparison-image-side {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.image-label {
    position: absolute;
    top: 10px;
    z-index: 10
}

.before-label {
    left: 10px
}

.after-label {
    right: 10px
}

.label-text {
    background: linear-gradient(135deg, rgba(76, 175, 80, .9) 0, rgba(56, 142, 60, .9) 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, .3)
}

.comparison-slider {
    top: 15px;
    bottom: 15px;
    left: 100%;
    width: 3px;
    z-index: 20;
    cursor: ew-resize;
    min-width: 3px;
    max-width: 3px
}

.slider-line {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, #4caf50 0, #66bb6a 50%, #4caf50 100%);
    box-shadow: 0 0 10px rgba(76, 175, 80, .6);
    border-radius: 1px
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4caf50 0, #66bb6a 100%);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(76, 175, 80, .4);
    cursor: ew-resize;
    transform: translate(-50%, -50%);
    transition: .3s
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(76, 175, 80, .6);
    background: linear-gradient(135deg, #66bb6a 0, #4caf50 100%)
}

.slider-button i {
    color: #fff;
    font-size: 14px;
    font-weight: 700
}

.upload-area {
    background: linear-gradient(135deg, #f0fff4 0, #e8f5e9 100%);
    border: 2px dashed #4caf50;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: .3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, .1);
    position: relative;
    margin-top: 10px;
}

.btn-upload, .upload-icon-circle {
    background: linear-gradient(135deg, #4caf50 0, #66bb6a 100%);
    position: relative
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(40, 167, 69, .04) 0, transparent 50%), radial-gradient(circle at 75% 75%, rgba(40, 167, 69, .04) 0, transparent 50%), radial-gradient(circle at 50% 50%, rgba(40, 167, 69, .02) 0, transparent 70%), linear-gradient(45deg, transparent 48%, rgba(40, 167, 69, .01) 49%, rgba(40, 167, 69, .01) 51%, transparent 52%);
    background-size: 200px 200px, 150px 150px, 300px 300px, 20px 20px;
    pointer-events: none;
    z-index: 1;
    opacity: .6
}

.upload-area::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px dashed transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, #28a745, #20c997, #28a745) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    z-index: 0
}

.upload-area:hover::after {
    opacity: .3
}

.upload-area.dragover::after {
    opacity: .6;
    animation: 1s ease-in-out infinite alternate borderPulse
}

@keyframes borderPulse {
    0% {
        opacity: .6
    }
    100% {
        opacity: .9
    }
}

.upload-area > * {
    position: relative;
    z-index: 2
}

.upload-area:hover {
    border-color: #2e7d32;
    background: linear-gradient(135deg, #e8f5e9 0, #f0fff4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .2);
}

.upload-area.dragover {
    border-color: #20c997;
    border-width: 4px;
    background: linear-gradient(135deg, #e8f5e9 0, #d4edda 30%, #e8f5e9 70%, #f0fff4 100%);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 16px 50px rgba(40, 167, 69, .25), 0 8px 30px rgba(32, 201, 151, .15), inset 0 2px 0 rgba(255, 255, 255, .9);
    animation-duration: 2s
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.upload-icon {
    width: 40px;
    height: 40px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.upload-icon i {
    color: #fff;
    font-size: 18px;
}

.upload-title {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.btn-upload, .btn-upload i {
    font-size: 14px
}

.btn-upload {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-try-free::before, .btn-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .6s
}

.btn-try-free:hover::before, .btn-upload:hover::before {
    left: 100%
}

.btn-upload:hover {
    background: #2e7d32;
    transform: translateY(-1px);
}

.upload-text {
    color: #6c757d;
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.generated-result {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    border: 2px solid #e8f5e8
}

.generated-result-section {
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-top: 2rem;
    margin-bottom: 2rem
}

.result-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
    border: 2px solid #e8f5e8;
    max-width: 1200px;
    margin: 0 auto
}

.comparison-image-wrapper, .result-image-wrapper {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s
}

.comparison-image-wrapper-full:hover, .comparison-image-wrapper-side:hover, .comparison-image-wrapper:hover, .result-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15)
}

.comparison-image-full, .result-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block
}

.upload-success {
    border-radius: 15px
}

.upload-success .btn-outline-primary {
    background: #fff;
    border: 1px solid #4caf50;
    color: #4caf50;
    transition: .3s
}

.upload-success .btn-outline-primary:hover {
    background: #4caf50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .3)
}

.fullscreen-result {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

.result-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100
}

.split-screen-container {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 120px);
    overflow: visible
}

.split-left, .split-right {
    flex: 1;
    position: relative;
    overflow: hidden
}

.split-left {
    background: #f8f9fa;
    border-right: 2px solid #e9ecef
}

.split-right {
    background: #f0f8f0
}

.split-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    cursor: default;
    user-select: none
}

.image-label-center {
    margin-bottom: 20px
}

.split-image-wrapper {
    max-width: 90%;
    max-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    background: #fff
}

.split-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none
}

.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2)
}

.comparison-image-wrapper-full, .comparison-image-wrapper-side {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s;
    background: #fff;
    overflow: hidden
}

.comparison-image-wrapper-side {
    height: 280px
}

.comparison-image-row {
    width: 100%
}

.comparison-image-wrapper-full {
    margin: 0 auto;
    max-width: 600px
}

.comparison-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block
}

.image-label-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10
}

.image-label-top .badge {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

.branding-section .examples-section, .examples-section {
    text-align: center;
    margin-top: 20px
}

.branding-section .examples-title, .examples-title {
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 500
}

.branding-section .examples-grid, .examples-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto
}

.branding-section .example-item, .example-item {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    position: relative;
    border: 2px solid transparent;
    background: #fff
}

.branding-section .example-item:hover, .example-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    border-color: #007bff
}

.branding-section .example-thumb, .example-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: .25s
}

.branding-section .example-item:hover .example-thumb, .branding-section .examples-grid .example-item:hover img, .example-item:hover .example-thumb {
    filter: brightness(1.1)
}

@media (max-width: 576px) {
    .examples-grid {
        gap: 8px;
        max-width: 320px
    }

    .example-item {
        width: 55px;
        height: 55px
    }

    .examples-title {
        font-size: 14px
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .comparison-wrapper {
        min-height: 400px;
        height: 100%;
        width: 100%;
    }
    
    .upload-section {
        height: 100%;
        min-height: 400px;
    }

    .after-image, .before-image {
        height: calc(100% - 30px);
        width: calc(100% - 30px);
    }

    .upload-area {
        min-height: 110px
    }
}

@media (min-width: 1200px) {
    .upload-section {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto
    }

    .comparison-container {
        padding: 0 20px
    }

    .comparison-wrapper {
        min-height: 520px;
        height: 100%;
    }
    
    .upload-section {
        height: 100%;
        min-height: 520px;
    }

    .after-image, .before-image {
        height: calc(100% - 30px)
    }

    .upload-area {
        min-height: 120px
    }

    .examples-grid {
        gap: 6px;
        max-width: 360px
    }

    .example-item {
        width: 55px;
        height: 55px
    }
}

@media (min-width: 1400px) {
    .upload-section {
        max-width: 450px
    }

    .comparison-container {
        padding: 0;
        width: 100%;
    }

    .comparison-wrapper {
        min-height: 560px;
        height: 100%;
        width: 100%;
    }
    
    .upload-section {
        height: 100%;
        min-height: 560px;
    }

    .after-image, .before-image {
        height: calc(100% - 30px);
        width: calc(100% - 30px);
    }

    .upload-area {
        min-height: 130px
    }

    .examples-grid {
        gap: 8px;
        max-width: 400px
    }

    .example-item {
        width: 58px;
        height: 58px
    }
}

@media (max-width: 991px) {
    .navbar.custom-nav .nav-link {
        margin-right: 15px;
        font-size: .95rem
    }

    .branding-section {
        padding: .75rem 0 .5rem;
        transform: none;
        margin-bottom: 0
    }

    .comparison-wrapper {
        margin-bottom: 20px;
        height: 350px !important
    }

    .after-image, .before-image {
        height: 320px !important
    }

    .upload-area {
        padding: 15px 12px;
        min-height: 100px
    }

    .upload-icon {
        width: 35px;
        height: 35px
    }

    .upload-icon i {
        font-size: 16px
    }

    .upload-title {
        font-size: 13px
    }

    .examples-grid {
        gap: 6px
    }

    .example-item {
        width: 40px;
        height: 40px
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .comparison-wrapper {
        height: 380px
    }

    .after-image, .before-image {
        height: 350px
    }

    .upload-area {
        min-height: 380px
    }
}

.ghibli-examples-section .ghibli-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .12)
}

.footer-divider {
    opacity: .15
}

.h-400 {
    height: 400px
}

.h-500 {
    height: 500px
}

.object-cover {
    object-fit: cover
}

.rounded-10 {
    border-radius: 10px !important
}

.rounded-top-14 {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden
}

.img-filter-soft {
    filter: saturate(95%) contrast(95%)
}

.hero-soft {
    background: inherit !important;
    padding: 60px 0 24px !important;
    min-height: 380px !important
}

.hero-section.hero-soft {
    box-shadow: none !important
}

.badge-new-green {
    background-color: #28a745 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px
}

.hero-subline {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500
}

.hero-title-primary {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2
}

.hero-description-primary {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6
}

.benefits-badge {
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600
}

.benefits-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1)
}

.benefits-image {
    object-fit: cover
}

.benefits-title, .ghibli-title, .section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2
}

.benefits-description, .section-description {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.6
}

.benefit-accordion .accordion-item {
    background: 0 0;
    border: none
}

.benefit-accordion .accordion-item:not(:last-child) {
    border-bottom: 1px solid #dce1e6
}

.benefit-accordion .accordion-button {
    background: 0 0;
    box-shadow: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px 0
}

.benefit-accordion .accordion-body {
    padding: 0 0 20px 40px;
    color: #5a6c7d
}

.ghibli-info-bg {
    background: inherit !important;
    min-height: 500px
}

.image-compare-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    background: 0 0
}

.image-compare-frame img {
    width: 85% !important;
    max-width: 85%;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1)
}

.ghibli-description {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem
}

.feature-glass-item {
    padding: 20px;
    background: rgba(255, 255, 255, .6);
    border-radius: 15px
}

.feature-icon-24 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px
}

.ghibli-examples-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700
}

.ghibli-card {
    width: 260px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08)
}

.ghibli-image-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    border-radius: 14px 14px 0 0;
    overflow: hidden
}

.ghibli-example-img {
    height: auto;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 14px 14px 0 0;
    transition: transform .3s
}

@media (max-width: 991.98px) {
    .ghibli-image-container {
        height: 240px
    }
}

@media (max-width: 767.98px) {
    .ghibli-image-container {
        height: 220px
    }

    .ghibli-card {
        width: 220px
    }

    .ghibli-example-img {
        object-position: center 25%
    }

    .ghibli-examples-section h2 {
        font-size: 1.6rem !important
    }
}

@media (max-width: 575.98px) {
    .curtain-compare-card:first-child .curtain-container, .curtain-compare-card:nth-child(5) .curtain-container {
        height: 320px
    }

    .curtain-compare-card:nth-child(2) .curtain-container {
        height: 300px
    }

    .curtain-compare-card:nth-child(3) .curtain-container {
        height: 350px
    }

    .curtain-compare-card:nth-child(4) .curtain-container {
        height: 310px
    }

    .curtain-compare-card:nth-child(6) .curtain-container {
        height: 340px
    }

    .curtain-handle {
        width: 24px;
        height: 24px;
        border: 1px solid var(--primary-color);
        box-shadow: 0 1px 6px rgba(76, 175, 80, .2)
    }

    .curtain-handle:hover {
        box-shadow: 0 2px 10px rgba(76, 175, 80, .25)
    }

    .curtain-handle-icon {
        font-size: 8px
    }

    .curtain-label {
        font-size: .55rem;
        padding: .15rem .4rem;
        border-radius: 10px;
        top: 6px
    }

    .curtain-before-label {
        left: 6px
    }

    .curtain-after-label {
        right: 6px
    }

    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1.25rem
    }

    .compare-card, .curtain-compare-card {
        margin-bottom: 1.5rem
    }

    .compare-card:first-child .compare-half img, .compare-card:nth-child(5) .compare-half img {
        height: 140px
    }

    .compare-card:nth-child(2) .compare-half img {
        height: 120px
    }

    .compare-card:nth-child(3) .compare-half img {
        height: 160px
    }

    .compare-card:nth-child(4) .compare-half img {
        height: 130px
    }

    .compare-card:nth-child(6) .compare-half img {
        height: 150px
    }

    .compare-label {
        font-size: .6rem;
        padding: .15rem .35rem
    }

    .ghibli-image-container {
        height: 200px
    }

    .ghibli-card {
        width: 200px
    }

    .ghibli-example-img {
        object-position: center 30%
    }
}

.faq-heading-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.2rem
}

.faq-num-badge {
    width: 32px;
    height: 32px;
    font-weight: 700;
    font-size: 1rem;
    background-color: #eaf7f0;
    color: #34a853;
    border-radius: 50%
}

.faq-question {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem
}

.faq-answer {
    line-height: 1.6;
    font-size: .95rem
}

.how-to-use-section .step-card, .key-features-section .feature-card {
    background: rgba(255, 255, 255, .8);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: none;
    transition: .3s;
    backdrop-filter: blur(10px)
}

.ghibli-stats-eyebrow {
    color: #34c38f;
    font-weight: 600;
    letter-spacing: .08em;
    font-size: .9rem
}

.ghibli-stat-subtitle {
    color: #6b7280;
    font-size: 1rem
}

.ghibli-stat-number {
    color: #34c38f;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1
}

.ghibli-stat-unit {
    color: #6b7280;
    font-size: .95rem
}

.key-features-section .feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(76, 175, 80, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(76, 175, 80, .2)
}

.feature-title-sm {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px
}

.feature-description-sm {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.5
}

.key-features-section .feature-icon-box i {
    color: #4caf50;
    font-size: 1.5rem
}

.step-number-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4 0, #44a08d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem
}

.icon-1_5rem {
    font-size: 1.5rem
}

#ghibliScroller::-webkit-scrollbar {
    height: 10px;
    display: none
}

#ghibliScroller::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 10px
}

.how-to-use-section .step-card:hover, .key-features-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1)
}

.how-to-use-section .step-number {
    box-shadow: 0 8px 20px rgba(78, 205, 196, .3)
}

.key-features-section .feature-icon {
    box-shadow: 0 8px 20px rgba(76, 175, 80, .2)
}

#testimonials.testimonials-mock {
    padding: 88px 0 76px;
    background: inherit !important
}

#testimonials .eyebrow {
    color: #22c55e;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    margin-bottom: 10px
}

#testimonials h2 {
    color: #0f172a;
    font-weight: 800;
    font-size: 2.1rem;
    margin-bottom: 10px
}

#testimonials .subtitle {
    color: #64748b;
    max-width: 860px;
    margin: 0 auto 38px;
    font-size: 1.02rem
}

.t-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
    padding: 18px 18px 20px;
    height: 100%;
    position: relative
}

.t-card .t-header {
    display: flex;
    align-items: center;
    gap: 12px
}

.t-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(100% 100% at 50% 0, #fff 0, #eef2f7 100%);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #111827;
    overflow: hidden
}

.t-card .avatar i {
    font-size: 1.5rem;
    opacity: .9
}

.t-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.t-card .meta .name {
    font-weight: 700;
    color: #0f172a
}

.t-card .meta .role {
    margin-top: 2px;
    font-size: .9rem;
    color: #94a3b8
}

.t-card .stars {
    margin-left: auto;
    color: #f59e0b
}

.t-card .stars i {
    margin-left: 2px
}

.t-card .quote {
    margin: 16px 4px 2px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.7
}

.t-card.with-fade::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(224, 242, 254, .85) 65%, rgba(209, 250, 229, .85) 100%);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px
}

@media (min-width: 992px) {
    #testimonials h2 {
        font-size: 2.25rem
    }
}

footer .container, header .container, main .container {
    max-width: 1080px
}

.branding-section .container-fluid > .row {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto
}

@media (min-width: 1600px) {
    .branding-section .container-fluid > .row, footer .container, header .container, main .container {
        max-width: 1160px
    }
}

#ghibliScroller {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.sign-in-modal {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

.sign-in-modal .modal-header {
    padding: 1rem 1rem 0
}

.sign-in-modal .btn-close {
    margin: 0;
    padding: .5rem;
    opacity: .6;
    font-size: 1.2rem
}

.sign-in-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: .5rem
}

.sign-in-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem
}

.github-signin-btn, .google-signin-btn {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s
}

.github-signin-btn:hover, .google-signin-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1)
}

.github-signin-btn:focus, .google-signin-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    border-color: #3b82f6
}

.github-icon, .google-icon {
    flex-shrink: 0
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, .4)
}

.sign-in-modal .modal-dialog {
    max-width: 400px;
    margin: 3rem auto
}

.user-profile-btn .avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600
}

.language-btn:hover, .user-profile-btn .dropdown-item:hover {
    background-color: var(--light-accent);
    color: var(--primary-color)
}

.user-profile-btn .dropdown-toggle {
    border: 1px solid #e0e0e0;
    transition: .3s
}

.user-profile-btn .dropdown-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(76, 175, 80, .2)
}

.user-profile-btn .dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
    border-radius: 8px;
    padding: .5rem 0;
    min-width: 220px
}

.user-profile-btn .dropdown-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: .5rem
}

.user-profile-btn .dropdown-item {
    padding: .5rem 1rem;
    transition: .3s;
    color: var(--text-color)
}

.user-profile-btn .dropdown-item i {
    width: 16px;
    text-align: center
}

.position-fixed {
    position: fixed !important
}

.branding-section .upload-section, .btn-try-free {
    position: relative
}

.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404
}

.alert-success {
    background-color: #d1f2eb;
    color: #0c5460
}

.language-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--text-color);
    padding: .375rem .75rem;
    border-radius: 6px;
    transition: .3s
}

.language-btn:hover {
    border-color: var(--primary-color)
}

.auth-container {
    display: flex;
    align-items: center
}

.btn-pill {
    border-radius: 50px;
    padding: .5rem 1.5rem;
    font-weight: 500;
    transition: .3s
}

.btn-success:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .3)
}

.btn-try-free {
    background: linear-gradient(135deg, #4caf50 0, #45a049 100%);
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    transition: .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    letter-spacing: .5px;
    min-width: 140px
}

.btn-try-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, .35);
    background: linear-gradient(135deg, #45a049 0, #4caf50 100%);
    color: #fff;
    border-radius: 18px
}

.btn-try-free:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(76, 175, 80, .3)
}

.btn-try-free .btn-sparkle {
    font-size: 14px;
    margin-left: 6px;
    animation: 3s ease-in-out infinite sparkleFloat;
    display: inline-block;
    opacity: .9
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: .9;
        transform: translateY(0) rotate(0) scale(1)
    }
    25% {
        opacity: 1;
        transform: translateY(-1px) rotate(3deg) scale(1.05)
    }
    50% {
        opacity: .95;
        transform: translateY(-2px) rotate(-2deg) scale(1.1)
    }
    75% {
        opacity: 1;
        transform: translateY(-1px) rotate(1deg) scale(1.05)
    }
}

@media (max-width: 768px) {
    .navbar.custom-nav .nav-link {
        margin-right: 12px;
        font-size: .9rem;
        padding: .4rem .5rem
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center
    }

    .cta-title {
        font-size: 32px
    }

    .cta-desc {
        font-size: 15px;
        margin-bottom: 22px
    }

    .cta-actions {
        gap: 10px;
        flex-wrap: wrap
    }

    .cta-btn {
        width: 100%;
        max-width: 320px
    }

    .result-container {
        padding: 25px 20px
    }

    .comparison-image-full, .result-image {
        max-height: 300px
    }

    .generated-result-section {
        padding: 30px 0
    }

    .comparison-image, .comparison-image-side {
        height: 220px
    }

    .comparison-image-wrapper-side {
        height: 220px;
        margin-bottom: 20px
    }

    .generated-result {
        padding: 20px;
        margin: 0 10px
    }

    .comparison-image-wrapper-full {
        max-width: 100%
    }

    .image-comparison-container .row {
        gap: 15px
    }

    .image-comparison-container .col-md-6:first-child {
        margin-bottom: 15px
    }

    .how-to-use-section .section-title, .key-features-section .section-title {
        font-size: 2rem !important
    }

    .how-to-use-section .step-card, .key-features-section .feature-card {
        padding: 25px 20px !important
    }

    .btn-try-free {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 14px;
        min-width: 120px
    }

    .btn-try-free .btn-sparkle {
        font-size: 12px;
        margin-left: 4px
    }
}

@media (max-width: 480px) {
    .btn-try-free {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 12px;
        min-width: 100px
    }

    .btn-try-free .btn-sparkle {
        font-size: 11px
    }
}

html.authenticated .auth-container .btn[data-bs-target="#signInModal"], html.authenticated .auth-container .unauthenticated-text, html.unauthenticated .auth-container .authenticated-text, html.unauthenticated .user-profile-btn {
    display: none
}

html.authenticated .user-profile-btn {
    display: block
}

html.authenticated .auth-container .authenticated-text, html.unauthenticated .auth-container .unauthenticated-text {
    display: inline
}

.generation-interface {
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #dee2e6;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    transition: .3s
}

#generationProgress, .generated-image-result, .generation-controls, .uploaded-image-preview {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

.generation-interface:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    border-color: var(--primary-color)
}

.generated-image-result, .uploaded-image-preview {
    padding: 20px;
    border-radius: 12px
}

.generated-image-container img, .uploaded-image-preview img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e9ecef;
    transition: .3s
}

.generated-image-container img:hover, .uploaded-image-preview img:hover {
    border-color: var(--primary-color);
    transform: scale(1.02)
}

.generation-controls {
    padding: 25px;
    border-radius: 12px;
    height: fit-content
}

.generation-controls h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem
}

.generation-controls .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px
}

.generation-controls .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: .95rem;
    transition: .3s
}

.generation-controls .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(76, 175, 80, .25)
}

#generateBtn {
    background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%);
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: .3s;
    letter-spacing: .5px
}

#generateBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, .3)
}

#generateBtn:disabled {
    opacity: .7;
    cursor: not-allowed
}

#generationProgress {
    padding: 20px;
    border-radius: 10px
}

#generationProgress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden
}

#generationProgress .progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%);
    animation: 1.5s infinite progress-shimmer
}

@keyframes progress-shimmer {
    0% {
        background-position: -100% 0
    }
    100% {
        background-position: 100% 0
    }
}

.result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px
}

.result-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .95rem;
    transition: .3s;
    min-width: 150px
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2)
}

#downloadBtn {
    background: linear-gradient(135deg, #28a745 0, #20c997 100%);
    border: none
}

#saveBtn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color)
}

#saveBtn:hover {
    background: var(--primary-color);
    color: #fff
}

#generateAgainBtn {
    background: #6c757d;
    border: none;
    color: #fff
}

#generateAgainBtn:hover {
    background: #5a6268
}

.generation-notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    border: none;
    border-radius: 10px
}

.generation-notification .btn-close {
    background: 0 0;
    border: none;
    opacity: .6;
    transition: opacity .3s
}

@media (max-width: 768px) {
    .generation-interface {
        padding: 20px;
        margin-top: 20px
    }

    .generated-image-result, .generation-controls, .uploaded-image-preview {
        margin-bottom: 20px
    }

    .result-actions {
        flex-direction: column;
        align-items: center
    }

    .result-actions .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px
    }

    .generated-image-container img, .uploaded-image-preview img {
        max-height: 250px
    }
}

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

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

.fade-in-up {
    animation: .6s ease-out fadeInUp
}

.branding-section .examples-grid .example-item {
    cursor: pointer;
    transition: .3s;
    border-radius: 8px;
    overflow: hidden
}

.branding-section .examples-grid .example-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15)
}

.branding-section .style-selector {
    position: relative;
    cursor: pointer;
    transition: .3s;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden
}

.branding-section .style-selector:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, .3)
}

.branding-section .style-selector.active, .branding-section .style-selector.selected {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, .4);
    transform: scale(1.02)
}

.branding-section .style-selector .style-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: #fff;
    padding: 20px 8px 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity .3s
}

.branding-section .style-selector::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: .3s
}

.branding-section .style-selector.active::after, .branding-section .style-selector.selected::after {
    opacity: 1;
    transform: scale(1)
}

.branding-section .style-selector.active::before, .branding-section .style-selector.selected::before {
    content: '✓';
    position: absolute;
    top: 11px;
    right: 11px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    z-index: 2
}

@media (max-width: 576px) {
    .branding-section {
        padding: .5rem 0 .25rem;
        transform: none;
        margin-bottom: 0
    }

    .comparison-wrapper {
        height: 300px
    }

    .after-image, .before-image {
        height: 270px
    }

    .upload-area {
        padding: 12px 10px;
        min-height: 90px
    }

    .upload-icon {
        width: 30px;
        height: 30px
    }

    .upload-icon i {
        font-size: 14px
    }

    .upload-title {
        font-size: 12px;
        line-height: 1.3
    }

    .btn-upload, .slider-button i {
        font-size: 10px
    }

    .btn-upload {
        padding: 6px 10px
    }

    .upload-content {
        gap: 6px
    }

    .upload-text {
        font-size: 9px
    }

    .slider-button {
        width: 28px;
        height: 28px
    }

    .sign-in-modal .modal-dialog {
        margin: 1rem;
        max-width: none
    }

    .sign-in-modal .modal-body {
        padding: 1.5rem 1rem 2rem
    }

    .generation-interface {
        padding: 15px;
        border-radius: 10px
    }

    .generation-controls {
        padding: 15px
    }

    #generateBtn {
        padding: 12px 20px;
        font-size: 1rem
    }

    .branding-section .examples-grid {
        gap: 8px;
        max-width: 320px
    }

    .branding-section .example-item {
        width: 55px;
        height: 55px
    }

    .branding-section .examples-title {
        font-size: 14px
    }
}

.protected-content {
    opacity: 0;
    transition: opacity .3s
}

.auth-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999
}

.api-keys-page, .my-credits-page, .my-orders-page {
    min-height: 100vh;
    padding-top: 2rem;
    background: var(--page-gradient);
    background-attachment: fixed
}

.api-keys-page .main-content, .my-credits-page .main-content, .my-orders-page .main-content {
    background: 0 0;
    min-height: 100vh
}

.api-keys-title, .credits-title, .orders-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: .5rem
}

.api-keys-subtitle, .credits-subtitle, .empty-state p, .loading-state p, .orders-subtitle {
    font-size: 1rem;
    color: #6c757d
}

.action-buttons .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: .2s
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057
}

.action-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745
}

.action-buttons .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34
}

.api-keys-table-container, .credits-table-container, .orders-table-container {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden
}

.api-keys-table-container .table thead th, .credits-table-container .table thead th, .orders-table-container .table thead th {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    font-weight: 600;
    font-size: .875rem;
    color: #6c757d;
    background-color: #f8f9fa
}

.api-keys-table-container .table tbody td, .credits-table-container .table tbody td, .orders-table-container .table tbody td {
    padding: 20px;
    border-bottom: none;
    color: #495057
}

.credits-table-container .table tbody td.fw-medium {
    font-weight: 500;
    color: #212529
}

.auth-error-state, .empty-state, .error-state, .loading-state {
    padding: 60px 20px
}

.restoration-example-card {
    cursor: pointer
}

.restoration-example-card .restoration-before {
    opacity: 0 !important
}

.restoration-example-card:hover .restoration-before {
    opacity: 1 !important
}

.restoration-example-card:hover .restoration-label {
    background-color: #dc3545 !important
}

.restoration-indicator {
    z-index: 10
}

.comparison-wrapper {
    position: relative;
    overflow: hidden
}

.after-image, .before-image, .comparison-slider {
    transition: none
}

.curtain-animation .after-image {
    transition: clip-path 1.8s ease-in-out
}

.curtain-animation .comparison-slider {
    transition: left 1.8s ease-in-out
}

.comparison-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .1) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: opacity .5s
}

.curtain-animation .comparison-wrapper::before {
    opacity: 1;
    animation: 1.8s ease-in-out curtainShine
}

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

.language-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #00d4aa 0, #00b894 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    animation: .3s ease-out slideDown
}

.language-banner-content {
    display: flex;
    align-items: center;
    gap: 15px
}

.language-banner-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0
}

.language-banner-text {
    margin: 0
}

.language-banner-switch {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: .2s
}

.language-banner-switch:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-1px)
}

.language-banner-close {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color .2s
}

.language-banner-close:hover {
    background: rgba(255, 255, 255, .2)
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

body.has-language-banner {
    padding-top: 60px
}

@media (max-width: 768px) {
    .api-keys-page .main-content, .my-credits-page .main-content, .my-orders-page .main-content {
        padding: 20px
    }

    .api-keys-title, .credits-title, .orders-title {
        font-size: 1.5rem
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px
    }

    .action-buttons .btn {
        width: 100%
    }

    .language-banner {
        padding: 10px 15px;
        font-size: 13px;
        flex-direction: column;
        gap: 8px;
        text-align: center
    }

    .language-banner-content {
        flex-direction: column;
        gap: 8px
    }

    body.has-language-banner {
        padding-top: 80px
    }
}

.curtain-container, .curtain-container *, .curtain-handle, .curtain-slider {
    border: none !important;
    outline: 0 !important;
    box-sizing: border-box
}

.curtain-slider:focus {
    border: none !important;
    outline: 0 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, .6) !important
}

.curtain-handle:focus {
    border: 3px solid var(--primary-color) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, .3), 0 4px 15px rgba(76, 175, 80, .3) !important
}

.curtain-handle::after, .curtain-handle::before, .curtain-slider::after, .curtain-slider::before {
    display: none !important
}

.curtain-slider {
    transform: translateX(-50%) !important
}

/* Style and Function Selection Styles */
.selection-section {
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(76, 175, 80, .1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
}

.selection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    text-align: center;
}

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

.style-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.style-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.function-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
}

.function-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.function-select option {
    padding: 8px;
    font-weight: 500;
}

.style-option {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.style-option:hover {
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .2);
}

.style-option.selected {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e9 0, #f0fff4 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .3);
}

.style-preview {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4caf50 0, #66bb6a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.style-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.style-option.selected .style-preview {
    background: linear-gradient(135deg, #2e7d32 0, #4caf50 100%);
    transform: scale(1.1);
    border: 2px solid #4caf50;
}

.style-preview i {
    color: #fff;
    font-size: 14px;
}

.style-name {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    display: block;
    line-height: 1.2;
}

.style-option.selected .style-name {
    color: #2e7d32;
    font-weight: 600;
}

/* Selection indicator */
.style-option.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .selection-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .style-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .style-option {
        padding: 10px 6px;
    }
    
    .style-preview {
        width: 28px;
        height: 28px;
    }
    
    .style-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .style-preview i {
        font-size: 12px;
    }
    
    .style-name {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .selection-section {
        padding: 12px;
    }
    
    .selection-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .style-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .style-option {
        padding: 8px 4px;
    }
    
    .style-preview {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .style-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .style-preview i {
        font-size: 10px;
    }
    
    .style-name {
        font-size: 9px;
    }
}

/* Animation for selection */
@keyframes selectionPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.style-option.selected {
    animation: selectionPulse 0.3s ease-out;
}

/* Pricing page styles (migrated from templates/pricing.html) */
.pricing-page-hero {
    background: inherit !important;
    color: #1f2937;
    padding: 2.75rem 0 2.75rem 0;
    margin-bottom: 0;
}
.pricing-page-hero .badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.25) !important;
    color: #198754 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.pricing-page-hero h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.pricing-page-hero .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}
.pricing-section-wrapper {
    padding: 3rem 0 5rem 0;
}
.tab-content {
    padding: 1.5rem 0 0;
    background: inherit !important;
}
.pricing-tabs {
    margin: 1rem 0 0;
    padding: 0;
    background: inherit !important;
    text-align: center;
}
.pricing-tabs .nav-tabs {
    border: none;
    justify-content: center;
}
.pricing-tabs .nav-link {
    border: none;
    background: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    margin: 0 0.4rem;
    border-radius: 50px;
    color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pricing-tabs .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.10);
    color: #495057;
}
.pricing-tabs .nav-link.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.35);
}
/* Segmented pill tabs (competitor style) */
.pricing-tabs .nav-tabs.segmented {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pricing-tabs .nav-tabs.segmented .nav-link {
    border-radius: 999px;
    margin: 0;
    padding: 0.55rem 1.1rem;
    color: #6b7280;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}
.pricing-tabs .nav-tabs.segmented .nav-link i {
    opacity: 0.9;
    margin-right: 0.35rem;
}
.pricing-tabs .nav-tabs.segmented .nav-link:hover {
    color: #374151;
    transform: translateY(-1px);
}
.pricing-tabs .nav-tabs.segmented .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    max-width: 100%;
    margin: 0 auto;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.pricing-card.featured {
    border: 2px solid #11998e;
    box-shadow: 0 18px 36px rgba(17, 153, 142, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f3fffa 100%);
    transform: translateY(-2px);
}
.pricing-card.featured::before {
    content: none;
}
.price-display {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
}
/* Highlight price on featured card */
.pricing-card.featured .price-display {
    color: #0f766e;
    font-size: 2.35rem;
}
/* Featured ribbon badge */
.pricing-card.featured::after {
    content: 'Popular';
    position: absolute;
    top: -10px;
    left: 12px;
    background: linear-gradient(135deg, #0f766e, #10b981);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}
/* Featured hover refinement */
.pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(17, 153, 142, 0.25);
}
/* Featured badge color tweak */
.pricing-card.featured .badge-custom {
    background: linear-gradient(135deg, #0f766e, #10b981);
}
.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #a0aec0;
}
.badge-custom {
    position: static;
    align-self: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}
.feature-icon {
    color: #11998e;
    margin-right: 0.75rem;
    width: 20px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
}
.pricing-card .feature-icon {
    color: #11998e !important;
    margin-right: 0.75rem !important;
    width: auto !important;
    font-size: 14px;
}
.cta-button {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
    color: white;
    background: linear-gradient(135deg, #0d7a6f 0%, #2dd165 100%);
}
.cta-button.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.cta-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
}
.faq-section {
    padding: 3rem 0;
    background: inherit !important;
}
.faq-item {
    background: #fff;
    border: 1px solid #edf2f7;
    padding: 1rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}
.faq-question {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.faq-answer {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}
@media (max-width: 768px) {
    .pricing-page-hero {
        padding: 3rem 0 3rem 0;
    }
    .pricing-page-hero h1 {
        font-size: 2rem;
    }
    .pricing-tabs .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin: 0 0.25rem;
    }
    .pricing-card.featured {
        transform: none;
    }
    .price-display {
        font-size: 2rem;
    }
}


/* ========================================
   AI Book Cover Generator Styles
   ======================================== */

/* Hero Section Enhancements */
.badge-new-green {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title-primary {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--dark-bg);
}

.hero-description-primary {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-title-primary {
        font-size: 2rem;
    }
    
    .hero-description-primary {
        font-size: 1.1rem;
    }
}

/* Tool Generator Section */
.tool-input-section .form-label {
    color: var(--dark-bg);
    font-size: 0.95rem;
}

.tool-input-section .form-control,
.tool-input-section .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.tool-input-section .form-control:focus,
.tool-input-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

#generateCoverBtn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#generateCoverBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.preview-canvas {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

#generatedCover {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Pricing Cards Enhancement */
.pricing-price {
    position: relative;
}

.pricing-price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Comparison Table Styles */
.comparison-table {
    font-size: 1rem;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

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

/* Gallery Cards */
.gallery-card {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Technical Specs Icons */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Accordion Enhancements */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-button {
    font-size: 1.05rem;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-accent);
    color: var(--primary-color);
}

.accordion-button::after {
    background-size: 1.25rem;
}

/* CTA Bottom Section */
#cta-bottom {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    position: relative;
    overflow: hidden;
}

#cta-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    pointer-events: none;
}

/* Authentication States */
.authenticated-text {
    display: none;
}

.unauthenticated-text {
    display: inline;
}

html.authenticated .authenticated-text {
    display: inline !important;
}

html.authenticated .unauthenticated-text {
    display: none !important;
}

/* Button Sparkle Animation */
.btn-sparkle {
    display: inline-block;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Loading State */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .tool-input-section,
    .tool-preview-section {
        margin-bottom: 2rem;
    }
    
    .preview-canvas {
        min-height: 400px !important;
    }
}

@media (max-width: 768px) {
    .hero-title-primary {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .preview-canvas {
        min-height: 300px !important;
    }
    
    #generateCoverBtn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Utility Classes */
.text-brand-green {
    color: var(--primary-color) !important;
}

.bg-brand-green {
    background-color: var(--primary-color) !important;
}

.border-brand-green {
    border-color: var(--primary-color) !important;
}

/* Card Hover Effects */
.card.hover-lift {
    transition: all 0.3s ease;
}

.card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Nav Pills for Gallery */
.nav-pills .nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}


/* Placeholder Boxes for Images */
.placeholder-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: var(--primary-color);
}

.feature-image-wrapper .placeholder-box:hover i {
    color: var(--primary-color) !important;
    opacity: 0.5 !important;
}


/* Genre Button Styles */
.genre-btn {
    border-radius: 12px;
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.genre-btn i {
    font-size: 1.5rem;
    display: block;
}

.genre-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(76, 175, 80, 0.1);
}

.genre-btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Character Counter */
#charCount {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Example Button Styles */
.example-btn {
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.example-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Form Control Large */
.form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* Preview Canvas Enhanced */
.preview-canvas {
    transition: all 0.3s ease;
}

.preview-canvas:hover {
    border-color: var(--primary-color) !important;
}


/* ========================================
   Image Text Editor Specific Styles
   ======================================== */

/* Upload Area Styles */
.upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
    border-style: dashed !important;
}

.upload-area:hover {
    background-color: rgba(76, 175, 80, 0.05) !important;
    border-color: #4CAF50 !important;
}

.upload-area.dragover {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: #2e7d32 !important;
    transform: scale(1.02);
}

/* Tool Section Styles */
.tool-upload-section,
.tool-preview-section {
    height: 100%;
}

.preview-canvas {
    min-height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Feature Cards */
.feature-card,
.use-case-card,
.trust-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover,
.use-case-card:hover,
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.feature-card:hover .icon-circle,
.use-case-card:hover .icon-circle {
    background-color: rgba(76, 175, 80, 0.2) !important;
    transform: scale(1.1);
}

.icon-circle {
    transition: all 0.3s ease;
}

/* Example Cards */
.example-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.comparison-container {
    position: relative;
    overflow: hidden;
}

.comparison-container img {
    transition: transform 0.3s ease;
}

.example-card:hover .comparison-container img {
    transform: scale(1.05);
}

.before-half,
.after-half {
    position: relative;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* CTA Section */
.bg-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%) !important;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .tool-upload-section,
    .tool-preview-section {
        margin-bottom: 2rem;
    }
    
    .preview-canvas {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .upload-area {
        min-height: 300px !important;
    }
    
    .preview-canvas {
        min-height: 250px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Badge Styles */
.badge-new-green {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Hero Section Adjustments */
.hero-section.hero-soft {
    background: inherit !important;
    color: var(--text-color);
}

.hero-section.hero-soft h1 {
    color: var(--dark-bg);
}

.hero-section.hero-soft p {
    color: var(--text-color);
}

/* Accordion Improvements */
.accordion-button:not(.collapsed) {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

/* Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Credit Counter Styles */
#creditCounter {
    font-size: 0.9rem;
}

#creditCount {
    font-size: 1.1rem;
}

/* Example Button Styles */
.example-btn {
    transition: all 0.3s ease;
}

.example-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* ========================================
   Image Selection Canvas Styles
   ======================================== */

#imageCanvas {
    position: relative;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#imageCanvas.selecting {
    cursor: crosshair !important;
}

#selectionCanvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto !important;
    z-index: 100 !important;
    cursor: crosshair;
}

#uploadedImage {
    display: block;
    max-width: 100%;
    height: auto;
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 1;
}

/* Clear Selection Button */
#clearSelectionBtn {
    transition: all 0.3s ease;
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#clearSelectionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    background-color: #c82333;
    border-color: #bd2130;
}

/* Selection Info Text */
.selection-info {
    background: rgba(255, 77, 77, 0.1);
    border-left: 3px solid #FF4D4D;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    color: #dc3545;
    font-weight: 500;
}

.selection-info i {
    color: #FF4D4D;
}

/* Responsive adjustments for canvas */
@media (max-width: 767.98px) {
    #imageCanvas {
        max-width: 100%;
    }
    
    #uploadedImage {
        max-height: 300px;
    }
}


/* ========================================
   Before/After Comparison Slider
   ======================================== */

.comparison-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: 100%;
}

.comparison-slider .before-image {
    z-index: 1;
}

.comparison-slider .after-image {
    z-index: 2;
    transition: width 0.1s ease-out;
}

.comparison-slider .after-image img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider-divider {
    z-index: 5;
    pointer-events: none;
}

.slider-handle {
    cursor: ew-resize;
    z-index: 10;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.slider-handle .rounded-circle {
    pointer-events: all;
    cursor: ew-resize;
}

.slider-handle:hover {
    transform: translateX(-50%) scale(1.05) !important;
}

.slider-handle:active {
    transform: translateX(-50%) scale(0.95) !important;
}

.slider-handle .rounded-circle {
    transition: box-shadow 0.3s ease;
}

.slider-handle:hover .rounded-circle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Example Comparison Container */
#exampleComparison {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .comparison-slider {
        height: 250px !important;
        max-width: 100% !important;
    }
    
    .slider-handle .rounded-circle {
        width: 32px !important;
        height: 32px !important;
    }
}
