/* Global styles & Variables */
:root {
    --primary: #124df8;
    --primary-hover: #0b3cd6;
    --secondary: #f2f4f8;
    --secondary-hover: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --transition-speed: 0.25s;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(18, 77, 248, 0.08), 0 4px 6px -4px rgba(18, 77, 248, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    transition: transform var(--transition-speed);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-speed);
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item i {
    font-size: 10px;
    transition: transform var(--transition-speed);
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 60px;
    left: 24px;
    right: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 32px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.mega-menu.show-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.dropdown.show-menu i {
    transform: rotate(180deg);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-menu-column:not(:last-child) {
    border-right: 1px solid var(--border-color);
    padding-right: 32px;
}

.mega-menu-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.mega-menu-item:hover {
    background-color: rgba(90, 50, 250, 0.03);
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #F1F3F9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.mega-menu-item:hover .mega-menu-icon {
    background-color: var(--primary);
    color: #FFFFFF;
}

.mega-menu-text {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.mega-menu-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Mega Menu Banners */
.mega-menu-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    background-color: #F1EDFE;
    text-decoration: none;
    margin-top: 12px;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.mega-menu-banner:hover {
    background-color: #EAE4FD;
    transform: translateY(-1px);
}

.mega-menu-banner-content {
    display: flex;
    flex-direction: column;
}

.banner-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.banner-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.banner-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(90, 50, 250, 0.1);
    transition: transform var(--transition-speed);
}

.mega-menu-banner:hover .banner-arrow {
    transform: translateX(3px);
}

.banner-spaced {
    margin-top: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.btn-login:hover {
    color: var(--text-main);
}

.btn-contact {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.btn-contact:hover {
    background-color: var(--bg-main);
    border-color: var(--text-main);
}

.btn-start {
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    background-color: var(--secondary);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 9999px;
    transition: background-color var(--transition-speed);
}

.btn-start:hover {
    background-color: var(--secondary-hover);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    font-size: 9px;
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

/* Main Layout */
.main-content {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* Hero Section */
.hero-title-section {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-badge {
    background-color: rgba(90, 50, 250, 0.08);
    color: var(--primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero-p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
}

/* Workspace Grid Area */
.workspace-section {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

/* Dropzone (Main Box) */
.dropzone-container {
    background-color: var(--bg-card);
    border-radius: 28px;
    height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px dashed rgba(90, 50, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, border-color var(--transition-speed), box-shadow 0.25s;
}

.dropzone-container.drag-active {
    border-color: var(--primary);
    background-color: rgba(90, 50, 250, 0.02);
    transform: scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(90, 50, 250, 0.12);
}

/* Checkerboard Background */
.checkerboard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(-45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #F3F4F6 75%),
        linear-gradient(-45deg, transparent 75%, #F3F4F6 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
    opacity: 0.45;
    z-index: 1;
}

.dropzone-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px;
}

.btn-upload {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(90, 50, 250, 0.24);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color var(--transition-speed), transform 0.2s, box-shadow var(--transition-speed);
}

.btn-upload:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(90, 50, 250, 0.32);
}

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

.dropzone-p {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Floating Showcase Cards */
.showcase-card {
    height: 240px;
    width: 240px;
    background-color: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.showcase-left {
    transform: rotate(-6deg);
}

.showcase-left:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.showcase-right {
    transform: rotate(6deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-right:hover {
    transform: rotate(3deg) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Left Card Slider Style */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.image-before,
.image-after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.image-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-after {
    width: 50%;
    /* JS controlled */
    overflow: hidden;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.image-after img {
    width: 240px;
    /* Force same width as container */
    height: 240px;
    object-fit: cover;
    display: block;
    max-width: none;
    /* CSS filter trick for mockup before AI removes it, or use masked style */
    background-color: #f0f0f0;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Slider bar and button */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    /* JS controlled */
    width: 2px;
    background-color: #FFFFFF;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-tag {
    position: absolute;
    bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 4;
}

.tag-before {
    left: 12px;
    background-color: rgba(18, 19, 22, 0.7);
    color: #FFFFFF;
}

.tag-after {
    right: 12px;
    background-color: var(--primary);
    color: #FFFFFF;
}

/* Right Card Sneaker Floating */
.sneaker-bg-removed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(-45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #F3F4F6 75%),
        linear-gradient(-45deg, transparent 75%, #F3F4F6 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    padding: 16px;
}

.sneaker-img {
    width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
    animation: sneakerFloat 4s ease-in-out infinite alternate;
}

@keyframes sneakerFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Processing state styles */
.processing-state {
    width: 100%;
}

.loader-spinner {
    border: 4px solid rgba(90, 50, 250, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

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

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

.processing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 280px;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 10%;
    /* JS updated */
    background-color: var(--primary);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.processing-status {
    font-size: 14px;
    color: var(--text-muted);
}

/* Result Screen State */
.result-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.result-comparison {
    display: flex;
    gap: 20px;
    flex: 1;
    width: 100%;
    min-height: 0;
    /* allows scaling flex item */
    margin-bottom: 20px;
}

.result-box {
    flex: 1;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.result-box.checkerboard {
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(18, 19, 22, 0.7);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 5;
}

.result-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.btn-action-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
}

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

.btn-action-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
}

.btn-action-secondary:hover {
    background-color: rgba(18, 19, 22, 0.05);
}


/* Sample Section */
.samples-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.samples-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.samples-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.sample-card {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.sample-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sample-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 50, 250, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

.sample-card:hover .sample-overlay {
    opacity: 1;
}

.sample-overlay span {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

/* History Section */
.history-section {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.history-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-clear-all {
    background-color: transparent;
    color: #EF4444;
    border: 1px solid #FEE2E2;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-clear-all:hover {
    background-color: #FEF2F2;
}

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

.history-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.history-preview {
    height: 180px;
    display: flex;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.history-orig,
.history-proc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    overflow: hidden;
}

.history-proc {
    background-image:
        linear-gradient(45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(-45deg, #F3F4F6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #F3F4F6 75%),
        linear-gradient(-45deg, transparent 75%, #F3F4F6 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.history-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.history-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(18, 19, 22, 0.6);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.history-details {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.history-time {
    font-size: 12px;
    color: var(--text-muted);
}

.history-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.btn-icon-download {
    background-color: rgba(90, 50, 250, 0.08);
    color: var(--primary);
    border: none;
}

.btn-icon-download:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-icon-delete {
    background-color: transparent;
    color: #EF4444;
    border: 1px solid var(--border-color);
}

.btn-icon-delete:hover {
    background-color: #FEF2F2;
    border-color: #FCA5A5;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--bg-card);
}

/* Mobile Menu & Drawer Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-speed);
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}

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

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-speed);
}

.mobile-menu-close:hover {
    color: #ef4444;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: auto;
}

.drawer-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.drawer-item:hover {
    color: var(--primary);
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.btn-drawer-login {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: background-color var(--transition-speed);
}

.btn-drawer-login:hover {
    background-color: var(--secondary-hover);
}

.btn-drawer-signup {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary);
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(90, 50, 250, 0.2);
    transition: background-color var(--transition-speed);
}

.btn-drawer-signup:hover {
    background-color: var(--primary-hover);
}

/* Responsive design */
@media (max-width: 1100px) {
    .workspace-section {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px;
    }

    .showcase-left,
    .showcase-right {
        display: none;
        /* Hide decorative show cards on medium and smaller screens */
    }

    .dropzone-container {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .nav-menu,
    .btn-contact {
        display: none;
        /* Hide menu items and contact sales on mobile */
    }

    .hero-h1 {
        font-size: 32px;
    }

    .hero-p {
        font-size: 15px;
    }

    .dropzone-container {
        height: 320px;
    }

    .result-comparison {
        flex-direction: column;
        gap: 12px;
    }
}

/* Pricing Page Styles */
.pricing-main {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 36px;
}

.pricing-h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.1;
}

.pricing-p {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.toggle-switch {
    background-color: #F1F2F4;
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    position: relative;
    width: 290px;
    height: 52px;
    user-select: none;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9999px;
    transition: color var(--transition-speed);
}

.toggle-btn.active {
    color: var(--text-main);
}

.badge-save {
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(90, 50, 250, 0.15);
}

.toggle-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: calc(50% - 4px);
    background-color: #FFFFFF;
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
}

.price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    margin-top: 36px;
    /* Space for top badges */
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Highlighted Plan: Max */
.price-card.highlighted {
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.price-card.highlighted:hover {
    box-shadow: 0 30px 60px -10px rgba(90, 50, 250, 0.15);
}

/* Dark Plan: Enterprise */
.price-card.dark {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #FFFFFF;
}

/* Top Badge Headers absolute positioned on top margins */
.badge-top {
    position: absolute;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-100%);
}

.price-card.highlighted .badge-top.purple {
    background-color: var(--primary);
    color: #FFFFFF;
    top: -3px;
    left: -3px;
    right: -3px;
    border-top-left-radius: 21px;
    border-top-right-radius: 21px;
}

.price-card.dark .badge-top.dark {
    background-color: #F1F2F4;
    color: var(--text-main);
    top: -1px;
    left: -1px;
    right: -1px;
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
}

/* Card Header */
.price-card-header {
    margin-bottom: 24px;
}

.plan-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Price wrappers */
.price-amount-wrapper {
    margin-bottom: 28px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.price-original {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
    min-height: 20px;
}

.price-current-container {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
    line-height: 1;
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 4px;
}

.price-number {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.plan-credits {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    padding: 12px 14px;
    background-color: #F8F9FC;
    border-radius: 12px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-credits.dropdown-trigger {
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.plan-credits.dropdown-trigger:hover {
    background-color: #F1F3F9;
}

.plan-credits.dark-credits {
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-credits i {
    font-size: 10px;
    color: var(--text-muted);
}

/* Plan Button actions */
.btn-plan-action {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform 0.1s;
    margin-bottom: 32px;
}

.btn-plan-action:hover {
    background-color: #F9FAFB;
    border-color: var(--text-main);
}

.btn-plan-action.primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(90, 50, 250, 0.15);
}

.btn-plan-action.primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-plan-action.enterprise {
    background-color: #E2F952;
    border-color: #E2F952;
    color: var(--secondary);
    box-shadow: 0 8px 16px rgba(226, 249, 82, 0.15);
    border: none;
}

.btn-plan-action.enterprise:hover {
    background-color: #D3EA41;
}

/* Feature Lists */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-features li {
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.price-card.dark .plan-features li {
    color: #FFFFFF;
}

/* Checklist custom icons */
.icon-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #D1FADE;
    color: #039855;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.price-card.dark .icon-check {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.icon-lock {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #F2F4F7;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.plan-features li.locked {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Enterprise includes header */
.enterprise-includes {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #98A2B3;
    margin-bottom: 16px;
    border-top: 1px solid #344054;
    padding-top: 24px;
}

/* Footer elements */
.pricing-footer-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 48px;
}

/* Help text helpers */
.text-white {
    color: #FFFFFF !important;
}

.text-gray {
    color: #98A2B3 !important;
}

.font-custom {
    font-size: 40px !important;
}

/* Responsive adjustments for pricing page */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

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

    .pricing-h1 {
        font-size: 38px;
    }

    .price-card {
        margin-top: 36px;
    }
}

/* Crop Page Specific Styles */
.crop-workspace-section {
    max-width: 600px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
    width: 100%;
}

.crop-workspace-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 64px auto;
    animation: fadeIn 0.4s ease;
    padding: 0 24px;
}

.crop-workspace-card {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 580px;
}

.crop-canvas-panel {
    background-color: #f2f4f7;
    background-image: radial-gradient(#d0d5dd 15%, transparent 15%),
        radial-gradient(#d0d5dd 15%, transparent 15%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-right: 1px solid var(--border-color);
    position: relative;
    min-height: 500px;
}

.crop-image-wrapper {
    max-width: 100%;
    max-height: 520px;
    width: 100%;
    display: block;
}

.crop-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.crop-control-panel {
    padding: 24px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.panel-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.aspect-ratio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ratio-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.ratio-btn i {
    font-size: 16px;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.ratio-btn:hover {
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.ratio-btn.active {
    border-color: var(--primary);
    background-color: rgba(90, 50, 250, 0.05);
    color: var(--primary);
}

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

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

.tool-action-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tool-action-btn i {
    font-size: 14px;
    color: var(--text-muted);
}

.tool-action-btn:hover {
    border-color: var(--primary);
    background-color: #FFFFFF;
    transform: translateY(-1px);
}

.workspace-action-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.workspace-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.w-full {
    width: 100% !important;
}

.btn-secondary {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
}

.btn-accent {
    background-color: var(--secondary);
    color: #FFFFFF;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-accent:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.crop-status-msg {
    background-color: #D1FADE;
    color: #039855;
    border: 1px solid #A3F3BE;
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Cropper.js overrides to fit Photoroom branding */
.cropper-view-box {
    outline: 2px solid var(--primary) !important;
}

.cropper-line {
    background-color: var(--primary) !important;
}

.cropper-point {
    background-color: var(--primary) !important;
}

.cropper-point.point-se {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

.cropper-bg {
    background-image: none !important;
    background-color: transparent !important;
}

@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .crop-workspace-card {
        grid-template-columns: 1fr;
    }

    .crop-canvas-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 380px;
        padding: 16px;
    }

    .crop-control-panel {
        padding: 20px;
    }
}

/* Standalone Image Editor (Dark Mode) Styles */
.editor-body {
    background-color: #121316;
    color: #ffffff;
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.editor-container {
    display: grid;
    grid-template-columns: 72px 300px 1fr;
    grid-template-rows: 1fr 72px;
    grid-template-areas:
        "sidebar panel main"
        "bottom bottom bottom";
    height: 100vh;
    width: 100vw;
    background-color: #121316;
    overflow: hidden;
}

/* 1. Left Icon Sidebar */
.editor-sidebar {
    grid-area: sidebar;
    background-color: #0d0e12;
    border-right: 1px solid #1e2028;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
}

.editor-sidebar::-webkit-scrollbar {
    width: 3px;
}

.editor-sidebar::-webkit-scrollbar-thumb {
    background-color: #23252b;
    border-radius: 99px;
}

.sidebar-item-home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 8px;
}

.home-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-item-home:hover .home-circle {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-item {
    width: 60px;
    height: 54px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    position: relative;
}

.sidebar-item i {
    font-size: 17px;
}

.sidebar-item span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.sidebar-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.07);
}

.sidebar-item.active {
    background-color: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    box-shadow: none;
}

.sidebar-item.active i {
    color: #818cf8;
}

/* Active left border indicator */
.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 30%;
    height: 40%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background-color: #818cf8;
}

.sidebar-divider {
    height: 1px;
    width: 32px;
    background-color: #23252b;
    margin: 4px 0;
}

/* 2. Central Area & Workspace */
.editor-main {
    grid-area: main;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #0f1013;
}

/* Dropzone (Dark variant) */
.editor-dropzone {
    width: calc(100% - 64px);
    max-width: 680px;
    height: 400px;
    border: 2px dashed #344054;
    border-radius: 28px;
    background-color: #16171b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.4s ease;
}

.dropzone-content-dark {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
}

.upload-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(90, 50, 250, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dropzone-content-dark h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.dropzone-content-dark p {
    font-size: 14px;
    color: #98a2b3;
}

.btn-editor-upload {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(90, 50, 250, 0.2);
}

.btn-editor-upload:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Image & Layers Workspace */
.editor-workspace {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f1013;
}

.canvas-outer-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canvas-inner-wrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: #121316;
}

#editor-source-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

/* Text Layers overlays */
.text-layers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass to layers */
    z-index: 5;
}

.text-layer {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    /* Enable clicks */
    cursor: move;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px dashed transparent;
    border-radius: 6px;
    user-select: none;
    font-weight: 700;
    transition: border-color 0.15s, box-shadow 0.15s;
    letter-spacing: -0.5px;
}

.text-layer:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.text-layer.selected {
    border: 2px solid var(--primary);
    box-shadow: 0 0 16px rgba(90, 50, 250, 0.5);
    background-color: rgba(18, 19, 22, 0.3);
}

/* Floating widgets */
.floating-layers-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #16171b;
    border: 1px solid #23252b;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: background-color var(--transition-speed), transform 0.2s;
    z-index: 8;
}

.floating-layers-btn:hover {
    background-color: #23252b;
    transform: scale(1.05);
}

.floating-ai-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, var(--primary));
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(90, 50, 250, 0.4);
    transition: transform var(--transition-speed), box-shadow 0.2s;
    z-index: 8;
}

.floating-ai-btn:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 32px rgba(90, 50, 250, 0.5);
}

.editor-info-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(22, 23, 27, 0.85);
    border: 1px solid #23252b;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #98a2b3;
    z-index: 8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 2. Left Tool Settings Panel (second column) */
.editor-control-panel {
    grid-area: panel;
    background-color: #13141a;
    border-right: 1px solid #1e2028;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.settings-group {
    display: none;
}

.settings-group.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #23252b;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.settings-desc {
    font-size: 13px;
    color: #98a2b3;
    line-height: 1.5;
}

.tool-guide-card {
    background-color: #1f2127;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    color: #98a2b3;
    font-size: 12.5px;
    border: 1px solid #282a32;
    margin-top: 10px;
}

.tool-guide-card i {
    font-size: 24px;
    color: var(--primary);
}

/* Range Slider Styles (Dark Theme) */
.slider-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: #e4e7ec;
}

.editor-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background-color: #23252b;
    border-radius: 999px;
    outline: none;
    transition: background-color var(--transition-speed);
}

.editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    border: 2px solid var(--primary);
}

.editor-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: #f5f5f7;
}

/* Inputs styling */
.btn-editor-action {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
    text-decoration: none;
}

.btn-editor-action:hover {
    background-color: var(--primary-hover);
}

.btn-editor-danger {
    background-color: #fda29b;
    color: #b30f0f;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
    width: 100%;
    margin-top: 12px;
}

.btn-editor-danger:hover {
    background-color: #fecdca;
}

.editor-text-input {
    background-color: #23252b;
    border: 1px solid #344054;
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color var(--transition-speed);
}

.editor-text-input:focus {
    border-color: var(--primary);
}

.editor-select-input {
    background-color: #23252b;
    border: 1px solid #344054;
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-color-input {
    -webkit-appearance: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
}

.editor-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.editor-color-input::-webkit-color-swatch {
    border: 1px solid #344054;
    border-radius: 10px;
}

#lbl-text-color {
    font-size: 14px;
    font-weight: 600;
    color: #98a2b3;
}

/* AI Presets layout */
.ai-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preset-btn {
    background-color: #23252b;
    border: 1px solid #344054;
    border-radius: 12px;
    padding: 16px 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.preset-btn:hover {
    border-color: var(--primary);
    background-color: #2e3139;
}

.preset-btn span {
    display: block;
}

.vibe-gold {
    color: #fdb022;
}

.vibe-dark {
    color: #98a2b3;
}

.vibe-pop {
    color: #ec4899;
}

.vibe-cool {
    color: #06b6d4;
}

.vibe-warm {
    color: #f97316;
}

/* 4. Bottom Controls Bar */
.editor-bottom-bar {
    grid-area: bottom;
    background-color: #16171b;
    border-top: 1px solid #23252b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
}

.bottom-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #98a2b3;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.bottom-btn:hover:not(:disabled) {
    background-color: #23252b;
    color: #ffffff;
}

.bottom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-factor-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #e4e7ec;
    width: 44px;
    text-align: center;
}

.history-actions-dark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-actions-dark .bottom-btn {
    width: auto;
    padding: 0 16px;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.history-actions-dark .bottom-btn i {
    font-size: 14px;
}

.editor-actions-dark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-editor-close {
    font-size: 14.5px;
    font-weight: 600;
    color: #e4e7ec;
    background-color: #23252b;
    border: 1px solid #344054;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-editor-close:hover {
    background-color: #2e3139;
    border-color: #475467;
}

.btn-editor-save {
    background-color: #06b6d4;
    /* teal blue matching Photoroom */
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-editor-save:hover {
    background-color: #0891b2;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.text-center {
    text-align: center !important;
}

.mt-4 {
    margin-top: 16px !important;
}

@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto 1fr 64px;
        grid-template-areas:
            "sidebar sidebar"
            "panel main"
            "bottom bottom";
    }

    .editor-control-panel {
        display: none;
        /* Hide panel on small mobile */
    }
}

/* Tab Navigation inside Tool Panel */
.panel-tabs-container {
    background-color: #1a1c22;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
    width: 100%;
}

.panel-tabs {
    display: flex;
    width: 100%;
}

.panel-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #98a2b3;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.2s;
    text-align: center;
}

.panel-tab-btn:hover {
    color: #ffffff;
}

.panel-tab-btn.active {
    background-color: #2e3139;
    color: #ffffff;
}

/* Tab Content toggles */
.tab-content {
    display: none;
    flex-direction: column;
}

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

/* Accordion sections */
.accordion-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #98a2b3;
    margin: 16px 0 8px 4px;
}

.accordion-item {
    background-color: #1a1b20;
    border: 1px solid #23252b;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #23252b;
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    color: #ffffff;
}

.header-icon {
    font-size: 16px;
    color: #98a2b3;
    width: 20px;
    text-align: center;
}

.accordion-check {
    color: #06b6d4;
    /* teal check */
    font-size: 16px;
}

.accordion-arrow {
    color: #98a2b3;
    font-size: 12px;
    transition: transform 0.2s;
}

.accordion-item.expanded .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #23252b;
    background-color: #15161a;
}

.accordion-item.expanded .accordion-body {
    display: block;
}

.accordion-empty-msg {
    font-size: 12.5px;
    color: #8c93a3;
    line-height: 1.5;
    text-align: center;
    padding: 10px 0;
}

.label-help-icon {
    font-size: 12px;
    color: #667085;
    cursor: help;
    margin-left: 4px;
}

/* Sub-tabs under Basic settings */
.subtabs-container {
    display: flex;
    background-color: #1f2127;
    border-radius: 10px;
    padding: 2px;
    margin-bottom: 20px;
}

.subtab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #98a2b3;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.subtab-btn:hover {
    color: #ffffff;
}

.subtab-btn.active {
    background-color: #2e3139;
    color: #ffffff;
}

.subtab-view {
    display: none;
}

.subtab-view.active {
    display: block;
}

/* Custom Gradients Ranges and rows */
.slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.slider-label-name {
    font-size: 13px;
    font-weight: 500;
    color: #e4e7ec;
    width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-track-wrapper {
    position: relative;
    flex: 1;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #23252b;
}

.slider-track-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.slider-center-tick {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateX(-50%);
}

.editor-custom-range {
    -webkit-appearance: none;
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.editor-custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.editor-custom-range::-webkit-slider-thumb:hover {
    transform: scaleY(1.1);
}

.slider-badge-val {
    width: 38px;
    background-color: #1f2127;
    border-radius: 6px;
    padding: 4px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid #282a32;
}

/* Slider Track Gradients */
.track-auto {
    background: linear-gradient(to right, #2563eb, #3b82f6, #60a5fa);
}

.track-brightness {
    background: linear-gradient(to right, #1f2937, #4b5563, #9ca3af, #f3f4f6);
}

.track-contrast {
    background: linear-gradient(to right, #000000, #333333, #888888, #cccccc, #ffffff);
}

.track-highlights {
    background: linear-gradient(to right, #374151, #9ca3af, #ffffff);
}

.track-shadow {
    background: linear-gradient(to right, #111827, #6b7280, #d1d5db);
}

.track-fade {
    background: linear-gradient(to right, #4f46e5, #0ea5e9, #10b981, #f59e0b, #ef4444);
}

.track-saturation {
    background: linear-gradient(to right, #888888, #a8a29e, #ef4444, #b91c1c);
}

.track-temp {
    background: linear-gradient(to right, #2563eb, #60a5fa, #fef08a, #ca8a04);
}

.track-tint {
    background: linear-gradient(to right, #16a34a, #d1fae5, #fae8ff, #d946ef);
}

.track-vibrance {
    background: linear-gradient(to right, #a1a1aa, #a855f7, #ec4899);
}

.track-blur,
.track-sharpness {
    background: #23252b;
}

/* Corrected track gradients per spec */
.track-warmth {
    background: linear-gradient(to right, #4b5563, #9ca3af, #fef08a, #f59e0b);
}

.track-clarity {
    background: linear-gradient(to right, #374151, #6b7280, #9ca3af);
}

.track-sharpen {
    background: #2563eb;
}

.track-vignette {
    background: #6b7280;
}

.track-grain {
    background: #374151;
}

.track-dispersion {
    background: linear-gradient(to right, #4f46e5, #3b82f6, #10b981, #eab308, #ef4444);
}

.track-hsl-sat {
    background: linear-gradient(to right, #1f2937, #6b7280, #ec4899);
}

/* === Reset Button === */
.btn-accordion-reset {
    width: 100%;
    margin-top: 16px;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid #344054;
    background-color: #1f2127;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-accordion-reset:hover {
    background-color: #2e3139;
    border-color: #475467;
}

/* === Tonal Toggle (Highlights / Shadows & Brush / Eraser) === */
.tonal-toggle-container {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background-color: #1f2127;
    border-radius: 10px;
    padding: 3px;
}

.tonal-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #98a2b3;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tonal-btn:hover {
    color: #ffffff;
}

.tonal-btn.active {
    background-color: #2e3139;
    color: #ffffff;
}

/* === HSL Color Swatches === */
.hsl-swatches-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hsl-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    outline: none;
    flex-shrink: 0;
}

.hsl-swatch:hover {
    transform: scale(1.15);
}

.hsl-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* === Auto Mode Grid === */
.auto-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.auto-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    background-color: #23252b;
    border: 1px solid #2e3139;
    color: #98a2b3;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auto-mode-card i {
    font-size: 18px;
}

.auto-mode-card:hover {
    background-color: #2e3139;
    color: #ffffff;
}

.auto-mode-card.active {
    background-color: #2e3139;
    color: #ec4899;
    border-color: #ec4899;
}

.auto-mode-card.active i {
    color: #ec4899;
}

/* === Intensity Slider Row (Auto / Local Color Size) === */
.intensity-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.intensity-label {
    font-size: 13px;
    font-weight: 500;
    color: #e4e7ec;
    white-space: nowrap;
    min-width: 56px;
}

.intensity-range {
    flex: 1;
    height: 16px;
    -webkit-appearance: none;
    background: #374151;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

.intensity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.1s;
}

.intensity-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.intensity-spinner {
    width: 52px;
    padding: 5px 6px;
    background-color: #23252b;
    border: 1px solid #344054;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.intensity-spinner:focus {
    border-color: #ec4899;
}

/* === AI Color Grid === */
.ai-color-label {
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 12px;
}

.ai-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.ai-color-card {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    background-color: #23252b;
    outline: none;
}

.ai-color-card:hover {
    transform: scale(1.04);
}

.ai-color-card.active {
    border-color: #ec4899;
}

.ai-color-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.add-card {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9, #10b981, #f59e0b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-card-inner {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
}

.btn-ai-generate {
    width: 100%;
    padding: 12px 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #be185d, #e11d48);
    border: none;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 8px;
}

.btn-ai-generate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ai-color-actions {
    display: flex;
    gap: 8px;
}

.btn-ai-secondary {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    background-color: #23252b;
    border: 1px solid #344054;
    color: #e4e7ec;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ai-secondary:hover:not(:disabled) {
    background-color: #2e3139;
}

.btn-ai-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Local Toning — Area Lock === */
.slider-row.area-locked {
    opacity: 0.45;
    pointer-events: none;
}

.area-lock-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1f2127;
    border: 1px solid #344054;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #98a2b3;
    margin-top: 4px;
    margin-bottom: 12px;
}

.area-lock-notice i {
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
}

.area-lock-notice.unlocked {
    display: none;
}

.mb-4 {
    margin-bottom: 16px !important;
}

/* ============================================================
   FILTER GALLERY (Filters Tab)
   ============================================================ */

/* tab-content for Filters needs flex-column layout + full height */
.tab-content[data-tab-content="filters"] {
    display: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: hidden;
    height: 100%;
}

.tab-content[data-tab-content="filters"].active {
    display: flex;
}

/* ── Category Quick-Jump Bar ── */
.filter-category-jump {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 10px 14px 8px;
    background-color: #13141a;
    border-bottom: 1px solid #1e2028;
    flex-shrink: 0;
    scrollbar-width: none;
}

.filter-category-jump::-webkit-scrollbar {
    display: none;
}

.fcj-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.fcj-btn:hover {
    color: #d1d5db;
}

.fcj-btn.active {
    color: #e11d48;
    background: rgba(225, 29, 72, 0.1);
}

/* ── Gallery Scroll Container ── */
.filter-gallery {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: #2a2d35 transparent;
}

.filter-gallery::-webkit-scrollbar {
    width: 4px;
}

.filter-gallery::-webkit-scrollbar-thumb {
    background-color: #2a2d35;
    border-radius: 4px;
}

/* ── Section ── */
.fg-section {
    margin-bottom: 12px;
}

/* Section Header */
.fg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 2px 0;
}

.fg-section-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 0.2px;
}

.fg-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 5px;
    transition: all 0.15s;
}

.fg-toggle-btn:hover {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
}

.fg-toggle-btn.expanded {
    color: #9ca3af;
}

/* ── Filter Card Grid ── */
.fg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    /* Collapsed: only show first row (3 cards) */
    max-height: calc((100% / 3) + 6px);
    overflow: hidden;
}

/* When collapsed, only first row visible via max-height trick */
/* We use a fixed row height approach */
.fg-grid {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.fg-grid.expanded {
    /* large enough to show all cards — 80px card height × up to 4 rows + gaps */
    max-height: 600px;
}

/* Show first row only when NOT expanded (collapsed state) */
.fg-grid:not(.expanded) {
    max-height: 86px;
    /* ~1 row height: 80px card + 6px gap */
    overflow: hidden;
}

/* ── Filter Card ── */
.fg-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #1e2028;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: flex-end;
}

.fg-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Each card gets a unique gradient as the "preview" simulation */
.fg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2a2d38 0%, #1a1d25 100%);
    z-index: 0;
}

/* Filter-specific preview backgrounds */
.fg-card[data-preset="natural"]::before {
    background: linear-gradient(135deg, #4a7fa5, #3b6b8a);
}

.fg-card[data-preset="bw"]::before {
    background: linear-gradient(135deg, #6b6b6b, #3a3a3a);
}

.fg-card[data-preset="sharpen"]::before {
    background: linear-gradient(135deg, #5a8fc0, #2d5a80);
}

.fg-card[data-preset="desat"]::before {
    background: linear-gradient(135deg, #7a8090, #4a5060);
}

.fg-card[data-preset="teal"]::before {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.fg-card[data-preset="aicolor"]::before {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.fg-card[data-preset="fullcolor"]::before {
    background: linear-gradient(135deg, #f59e0b, #dc2626, #7c3aed);
}

.fg-card[data-preset="invert"]::before {
    background: linear-gradient(135deg, #1a0a2e, #0d0d1a);
}

.fg-card[data-preset="lovely"]::before {
    background: linear-gradient(135deg, #f472b6, #c084fc);
}

.fg-card[data-preset="woods"]::before {
    background: linear-gradient(135deg, #4d7c0f, #365314);
}

.fg-card[data-preset="coral"]::before {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.fg-card[data-preset="beige"]::before {
    background: linear-gradient(135deg, #d4a96a, #b8925a);
}

.fg-card[data-preset="cloudy"]::before {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.fg-card[data-preset="chef"]::before {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.fg-card[data-preset="midnight"]::before {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.fg-card[data-preset="bbq"]::before {
    background: linear-gradient(135deg, #c2410c, #7c2d12);
}

.fg-card[data-preset="treasures"]::before {
    background: linear-gradient(135deg, #ca8a04, #92400e);
}

.fg-card[data-preset="bagel"]::before {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.fg-card[data-preset="snacks"]::before {
    background: linear-gradient(135deg, #ea580c, #9a3412);
}

.fg-card[data-preset="grey"]::before {
    background: linear-gradient(135deg, #6b7280, #374151);
}

.fg-card[data-preset="pro100"]::before {
    background: linear-gradient(135deg, #a8a29e, #78716c);
}

.fg-card[data-preset="grainy"]::before {
    background: linear-gradient(135deg, #737373, #404040);
}

.fg-card[data-preset="fadedfilm"]::before {
    background: linear-gradient(135deg, #c4b5a0, #9d8b78);
}

.fg-card[data-preset="lightleak"]::before {
    background: linear-gradient(135deg, #fbbf24, #f97316, #ec4899);
}

.fg-card[data-preset="tungsten"]::before {
    background: linear-gradient(135deg, #92400e, #78350f);
}

.fg-card[data-preset="vintage"]::before {
    background: linear-gradient(135deg, #b45309, #92400e);
}

.fg-card[data-preset="neon"]::before {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
}

.fg-card[data-preset="hdr"]::before {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.fg-card[data-preset="classiclomo"]::before {
    background: linear-gradient(135deg, #374151, #111827);
}

.fg-card[data-preset="lteal"]::before {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.fg-card[data-preset="daydream"]::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Selected state */
.fg-card.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff22;
}

/* ── Card Label ── */
.fg-label {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4px 5px 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── SVIP Badge ── */
.fg-svip {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ── Reset Button at bottom ── */
.btn-filter-reset {
    flex-shrink: 0;
    margin: 6px 10px 10px;
    width: calc(100% - 20px);
    background-color: #1e2028;
    color: #9ca3af;
    border: 1px solid #2a2d38;
    border-radius: 10px;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.15s;
}

.btn-filter-reset:hover {
    background-color: #252830;
    color: #ffffff;
    border-color: #3a3d48;
}

/* ============================================================
   PEOPLE RETOUCH PANEL
   ============================================================ */

/* ── Auto Retouch Card ── */
.auto-retouch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e2028;
    border: 1.5px solid #2a2d38;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.auto-retouch-card:hover {
    background-color: #242732;
    border-color: #3a3d4d;
}

.auto-retouch-card.active {
    border-color: #e11d48;
    background-color: rgba(225, 29, 72, 0.05);
}

.arc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.arc-left i {
    color: #f43f5e;
}

.arc-arrow {
    color: #6b7280;
    font-size: 12px;
}

.auto-retouch-intensity-row {
    padding: 8px 10px 14px;
    border-bottom: 1px solid #1e2028;
    margin-bottom: 12px;
}

/* ── Pill Tabs ── */
.pill-tabs-container {
    display: flex;
    background-color: #17181e;
    border-radius: 8px;
    padding: 3px;
    width: 100%;
}

.pill-tab-btn {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.pill-tab-btn:hover {
    color: #ffffff;
}

.pill-tab-btn.active {
    background-color: #2e3139;
    color: #ffffff;
}

/* ── Mode Buttons Row ── */
.mode-buttons-row {
    display: flex;
    gap: 8px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #17181e;
    border: 1.5px solid #2a2d38;
    border-radius: 8px;
    padding: 8px 0;
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.mode-btn:hover {
    color: #ffffff;
    border-color: #3b3e4f;
}

.mode-btn.active {
    border-color: #e11d48;
    color: #e11d48;
    background-color: rgba(225, 29, 72, 0.05);
}

/* ── Cool/Warm Slider Gradient Track ── */
.track-cool-warm {
    background: linear-gradient(to right, #3b82f6 0%, #1e293b 50%, #f59e0b 100%) !important;
}

/* ── Skin Tone Presets ── */
.skin-tone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.skin-tone-card {
    position: relative;
    border-radius: 8px;
    border: 2px solid transparent;
    background-color: #17181e;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.skin-tone-card:hover {
    transform: scale(1.03);
}

.skin-tone-card.active {
    border-color: #ffffff;
}

.st-color {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.st-check-overlay {
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.skin-tone-card span {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
}

.skin-tone-card.active span {
    color: #ffffff;
}

.st-svip {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

/* ── Switch Toggle Row ── */
.switch-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #17181e;
    border-radius: 8px;
    padding: 8px 12px;
}

.str-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #9ca3af;
}

.str-left i {
    color: #818cf8;
}

.slider-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.slider-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider-round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #4b5563;
    transition: .25s;
    border-radius: 18px;
}

.switch-slider-round:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}

.slider-switch input:checked+.switch-slider-round {
    background-color: #e11d48;
}

.slider-switch input:checked+.switch-slider-round:before {
    transform: translateX(14px);
}

/* ── Sliders List (Sub-sliders) ── */
.people-sliders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.people-slider-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 0 2px;
}

.psi-header span i {
    margin-right: 4px;
    color: #6b7280;
}

.psi-val {
    color: #ffffff;
    font-weight: 700;
}

.check-icon {
    color: #10b981 !important;
    font-size: 13px;
}

/* ── Feature Tabs (Double-Row) ── */
.feature-tabs {
    display: flex;
    gap: 5px;
    width: 100%;
}

.feature-tab-btn {
    flex: 1;
    border: 1px solid #2a2d38;
    background: #17181e;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-tab-btn:hover {
    color: #ffffff;
    border-color: #3b3e4f;
}

.feature-tab-btn.active {
    border-color: #e11d48;
    color: #e11d48;
    background-color: rgba(225, 29, 72, 0.05);
}

/* ── Makeup Colors UI ── */
.makeup-color-row {
    border: 1px solid #2a2d38;
    background-color: #17181e;
    border-radius: 10px;
    padding: 8px 10px 10px;
}

.mcr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

.mcr-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-wheel-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.15s;
}

.color-wheel-toggle:hover {
    color: #9ca3af;
}

.active-color-block {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.c-swatch {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    transition: transform 0.15s, border-color 0.15s;
}

.c-swatch:hover {
    transform: scale(1.05);
}

.c-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lip-color-pills {
    display: flex;
    gap: 5px;
    width: 100%;
}

.c-pill {
    flex: 1;
    height: 16px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.c-pill.active {
    border-color: #ffffff;
}

.c-pill-wheel {
    flex: 1;
    height: 16px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: linear-gradient(135deg, #ef4444, #3b82f6, #10b981);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
}

.lips-swatch-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.lips-swatch-box .c-swatch {
    height: 20px;
    border-radius: 4px;
}

/* remove.bg Clone Appended Styles */

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

.logo-highlight {
    color: #ffffff;
    background-color: var(--primary);
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: background-color var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-login:hover {
    color: var(--text-main);
}

.btn-signup {
    font-size: 15px;
    font-weight: 600;
    background-color: var(--secondary);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-signup:hover {
    background-color: var(--secondary-hover);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 0;
}

.hero-content {
    flex: 1.2;
    max-width: 580px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.sample-try-container {
    margin-top: 32px;
}

.sample-try-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sample-try-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-card {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #f1f3f9;
    padding: 0;
    transition: transform 0.2s, border-color 0.2s;
}

.sample-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.sample-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-widget-container {
    flex: 0.8;
    display: flex;
    justify-content: center;
    width: 100%;
}

.upload-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 40px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-card.drag-active {
    border-color: var(--primary);
    background-color: rgba(18, 77, 248, 0.02);
}

.upload-state-normal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.upload-icon-container {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 24px;
    animation: bounce 2.5s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.btn-upload-large {
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 50px;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(18, 77, 248, 0.15);
}

.upload-drag-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.upload-terms-notice {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.upload-terms-notice a {
    color: var(--primary);
    text-decoration: none;
}

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

/* Uploading/Processing State */
.upload-state-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.processing-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(18, 77, 248, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

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

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

.progress-bar-outer {
    width: 100%;
    height: 6px;
    background-color: #f1f3f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: width 0.25s ease-out;
}

.processing-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.processing-status {
    font-size: 14px;
    color: var(--text-muted);
}

/* Result State */
.upload-state-result {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 10;
}

.result-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.result-image-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    background-color: #f8fafc;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image-box img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.result-image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.checkerboard {
    background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
        linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
}

.result-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    width: 100%;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
}

.result-sub-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.result-sub-actions .btn-secondary {
    padding: 10px 0;
    border-radius: 30px;
    font-size: 13px;
    gap: 4px;
}

/* Stunning Quality Showcase */
.slider-showcase-section {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.slider-tabs {
    display: inline-flex;
    background-color: var(--secondary);
    padding: 6px;
    border-radius: 40px;
    margin-bottom: 48px;
    border: 1px solid var(--border-color);
}

.slider-tab {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.slider-tab.active {
    background-color: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.slider-content-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.compare-slider-container {
    flex: 1.3;
    position: relative;
    aspect-ratio: 1.4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
}

.compare-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compare-img-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
        linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
}

.compare-img-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0px;
    height: 100%;
    z-index: 3;
    cursor: ew-resize;
}

.compare-handle-line {
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.compare-handle-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.15s;
}

.compare-handle:hover .compare-handle-button {
    transform: translate(-50%, -50%) scale(1.05);
}

.compare-badge {
    position: absolute;
    bottom: 16px;
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    z-index: 4;
}

.badge-before {
    right: 16px;
}

.badge-after {
    left: 16px;
}

.slider-description-box {
    flex: 0.7;
}

.desc-box-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.desc-box-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.desc-box-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.desc-box-link:hover {
    text-decoration: underline;
}

/* Features AI Generator */
.all-in-one-features {
    background-color: var(--secondary);
    padding: 80px 0;
    border-radius: 32px;
    margin: 40px 0;
}

.features-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.features-text {
    flex: 1;
}

.features-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.inline-btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
}

.features-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 14px 14px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1.3;
    align-items: center;
}

.features-preview-img {
    max-height: 90%;
    object-fit: contain;
}

/* Use Cases */
.use-cases-section {
    padding: 80px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.use-case-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #fcfdfe;
    border-top: 1px solid var(--border-color);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 40px auto 0;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    font-size: 15px;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Bottom CTA */
.bottom-cta-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 24px;
    border-radius: 32px;
    text-align: center;
    margin: 60px 0;
}

.bottom-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.bottom-cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.bottom-cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.btn-cta {
    background-color: #ffffff;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background-color: #f8fafc;
}

/* Multi-column Footer */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-right {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

/* History Gallery (Recent Creations) */
.history-gallery-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.gallery-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.history-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.history-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 140px;
    border-bottom: 1px solid var(--border-color);
}

.history-orig,
.history-proc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
}

.history-orig img,
.history-proc img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.history-label {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    z-index: 2;
}

.history-details {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
}

.history-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-icon-download:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-icon-delete:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .sample-try-grid {
        justify-content: center;
    }

    .slider-content-layout {
        flex-direction: column;
        gap: 30px;
    }

    .compare-slider-container {
        width: 100%;
    }

    .features-layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .features-image-container {
        width: 100%;
        max-width: 500px;
    }
}

/* Batch Page Layout */
.batch-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.batch-hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.batch-hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.batch-hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
}

.batch-workspace-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
}

.batch-upload-card {
    background: #ffffff;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.batch-upload-card:hover,
.batch-upload-card.drag-active {
    border-color: var(--primary);
    background-color: rgba(18, 77, 248, 0.01);
}

.batch-upload-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 24px;
}

.btn-batch-upload-large {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(18, 77, 248, 0.15);
}

.batch-drag-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.batch-terms-notice {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dashboard Control Panel */
.batch-dashboard-panel {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 24px;
}

.batch-dashboard-info {
    flex: 1;
    min-width: 250px;
}

.batch-status-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.batch-dashboard-progress-outer {
    width: 100%;
    height: 8px;
    background-color: #f1f3f9;
    border-radius: 4px;
    overflow: hidden;
}

.batch-dashboard-progress-inner {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.batch-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-dashboard-download {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.btn-dashboard-add,
.btn-dashboard-clear {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
}

/* Batch Processing Grid */
.batch-processing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.batch-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.batch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.batch-card-preview-container {
    position: relative;
    aspect-ratio: 1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-card-img-orig,
.batch-card-img-proc {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.2s;
}

.batch-card-checkerboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.batch-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s;
}

.completed-overlay {
    background-color: transparent !important;
}

.failed-overlay {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.batch-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-queued {
    background-color: #64748b;
}

.badge-processing {
    background-color: var(--primary);
}

.badge-completed {
    background-color: #10b981;
}

.badge-failed {
    background-color: #ef4444;
}

.batch-card-spinner {
    font-size: 28px;
    color: var(--primary);
}

.batch-card-info-bar {
    padding: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 3;
}

.batch-card-filename {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.batch-card-actions {
    display: flex;
    gap: 6px;
}

.btn-card-action {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.btn-card-download:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-card-delete:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.batch-card-progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #f1f3f9;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
}

.batch-card-progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.2s;
}

/* ==========================================================================
   TRANSPARENT BACKGROUND CUSTOMIZER EDITOR STYLES
   ========================================================================== */

.bg-editor-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background-color: #0c0a09;
    color: #f5f5f4;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Header */
.bg-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c1917;
    border-bottom: 1px solid #2e2a24;
    padding: 12px 24px;
    height: 60px;
    box-sizing: border-box;
    z-index: 100;
}

.beh-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-beh-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a8a29e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-beh-back:hover {
    color: #fafaf9;
}

.beh-title {
    font-size: 16px;
    font-weight: 600;
    color: #fafaf9;
    border-left: 1px solid #44403c;
    padding-left: 16px;
}

.btn-beh-save {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #124df8;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-beh-save:hover:not(:disabled) {
    background-color: #0b3bbd;
}

.btn-beh-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Body Layout */
.bg-editor-body {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Left Workspace */
.bg-editor-workspace {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background-color: #0c0a09;
    overflow: hidden;
}

/* Dropzone & Loader States */
.bg-editor-dropzone,
.bg-editor-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #0c0a09;
}

.bg-editor-loader {
    background-color: rgba(12, 10, 9, 0.95);
}

.dropzone-content-dark,
.loader-content {
    text-align: center;
    max-width: 440px;
    padding: 40px;
}

.upload-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #1c1917;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #124df8;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dropzone-content-dark h2,
.loader-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fafaf9;
}

.dropzone-content-dark p,
.loader-content p {
    color: #78716c;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-editor-upload {
    background-color: #124df8;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 15px rgba(18, 77, 248, 0.4);
}

.btn-editor-upload:hover {
    background-color: #0b3bbd;
}

/* Spinner */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2e2a24;
    border-top: 3px solid #124df8;
    border-radius: 50%;
    animation: bg-spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

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

/* Active Workspace */
.bg-workspace-active {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Toolbar */
.canvas-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.zoom-controls-wrapper {
    display: flex;
    align-items: center;
    background-color: #1c1917;
    border: 1px solid #2e2a24;
    border-radius: 30px;
    padding: 6px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    gap: 8px;
}

.zoom-btn {
    background: transparent;
    border: none;
    color: #a8a29e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.zoom-btn:hover {
    color: #fafaf9;
    background-color: #2e2a24;
}

.zoom-text {
    font-size: 13px;
    font-weight: 600;
    color: #fafaf9;
    width: 44px;
    text-align: center;
    font-family: monospace;
}

/* Canvas Viewport */
.canvas-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 60px 40px 120px;
    /* Leave space for bottom tray */
    overflow: auto;
    position: relative;
}

.canvas-wrapper-outer {
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background-color: #18181b;
    transform-origin: center center;
}

/* Grid Checkerboard default back */
.canvas-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, #27272a 25%, transparent 25%),
        linear-gradient(-45deg, #27272a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #27272a 75%),
        linear-gradient(-45deg, transparent 75%, #27272a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #18181b;
    z-index: 1;
    overflow: hidden;
}

/* Foreground subject wrapper */
.canvas-foreground-wrapper {
    position: absolute;
    z-index: 5;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.canvas-foreground-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

/* Guidelines and Bounding Box Handles */
.layer-guidelines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px dashed #124df8;
    pointer-events: none;
    box-sizing: border-box;
}

.drag-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border: 2px solid #124df8;
    border-radius: 50%;
    z-index: 10;
    box-sizing: border-box;
}

.drag-handle.tl {
    top: -5px;
    left: -5px;
    cursor: nwse-resize;
}

.drag-handle.tr {
    top: -5px;
    right: -5px;
    cursor: nesw-resize;
}

.drag-handle.bl {
    bottom: -5px;
    left: -5px;
    cursor: nesw-resize;
}

.drag-handle.br {
    bottom: -5px;
    right: -5px;
    cursor: nwse-resize;
}

.rotation-line {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 1px;
    height: 24px;
    background-color: #124df8;
    transform: translateX(-50%);
    pointer-events: none;
}

.rotation-handle {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background-color: #124df8;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    cursor: grab;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.rotation-handle:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(0.9);
}

/* Bottom Tray (Thumbnails) */
.bg-bottom-tray {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #1c1917;
    border-top: 1px solid #2e2a24;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 80;
}

.tray-left {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    flex-grow: 1;
}

.btn-tray-add {
    background-color: #2e2a24;
    border: 1px dashed #44403c;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8a29e;
    font-size: 18px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.btn-tray-add:hover {
    border-color: #124df8;
    color: #fafaf9;
}

.tray-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tray-thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    background-color: #0c0a09;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
    padding: 2px;
}

.tray-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tray-thumb-item.active {
    border-color: #124df8;
}

.btn-tray-delete {
    background-color: #2e2a24;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.btn-tray-delete:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Right Sidebar */
.bg-editor-sidebar {
    width: 360px;
    background-color: #1c1917;
    border-left: 1px solid #2e2a24;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 90;
    height: 100%;
}

.sidebar-main-tabs {
    display: flex;
    background-color: #171412;
    border-bottom: 1px solid #2e2a24;
}

.sidebar-tab {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #78716c;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 8px;
    cursor: pointer;
    transition: color 0.2s, border-bottom-color 0.2s;
    border-bottom: 3px solid transparent;
}

.sidebar-tab:hover {
    color: #fafaf9;
}

.sidebar-tab.active {
    color: #fafaf9;
    border-bottom-color: #124df8;
}

/* Category pills */
.sidebar-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    border-bottom: 1px solid #2e2a24;
    background-color: #1c1917;
}

.sidebar-categories::-webkit-scrollbar {
    display: none;
    /* Hide scrollbars for pills */
}

.category-pill {
    background-color: #2e2a24;
    border: 1px solid #44403c;
    border-radius: 20px;
    padding: 6px 14px;
    color: #a8a29e;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.category-pill:hover {
    color: #fafaf9;
    border-color: #78716c;
}

.category-pill.active {
    background-color: #124df8;
    color: #ffffff;
    border-color: #124df8;
}

/* Gallery Presets Grid */
.presets-gallery-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preset-card {
    aspect-ratio: 4/3;
    background-color: #2e2a24;
    border: 1px solid #44403c;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.preset-card:hover {
    transform: translateY(-2px);
    border-color: #124df8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.preset-name {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    z-index: 5;
    text-align: center;
}

.text-outline {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Custom cards */
.custom-picker-card,
.custom-upload-card {
    background-color: #2e2a24;
    border: 1px dashed #44403c;
    align-items: center;
}

.color-picker-inner,
.image-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #a8a29e;
    font-size: 12px;
    gap: 6px;
}

.color-picker-inner i,
.image-upload-inner i {
    font-size: 20px;
    color: #124df8;
}

.color-picker-inner input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ============================================================
   MOBILE RESPONSIVENESS OVERRIDES (MAX-WIDTH: 768PX)
   ============================================================ */
@media (max-width: 768px) {

    /* Layout & Header */
    .header-actions {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    /* Homepage Slider & Tabs */
    .sample-try-grid {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        padding: 8px 4px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        margin-top: 10px;
    }

    .sample-try-grid::-webkit-scrollbar {
        display: none !important;
    }

    .sample-card {
        flex-shrink: 0 !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 12px !important;
    }

    .slider-tabs {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding: 4px 16px !important;
        margin: 0 -24px 20px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
    }

    .slider-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .slider-tab {
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        border-radius: 20px !important;
    }

    .slider-content-layout {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .compare-slider-container {
        width: 100% !important;
        height: 280px !important;
    }

    .slider-description-box {
        padding: 16px !important;
        text-align: center !important;
    }

    .desc-box-title {
        font-size: 18px !important;
    }

    /* Features Layout */
    .features-layout {
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center !important;
    }

    .features-text {
        padding-right: 0 !important;
    }

    .features-title {
        font-size: 26px !important;
    }

    .features-image-container {
        max-width: 100% !important;
    }

    /* Use Cases & Testimonials */
    .use-cases-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .testimonials-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .bottom-cta-inner {
        padding: 40px 20px !important;
    }

    .bottom-cta-title {
        font-size: 28px !important;
    }

    .history-grid {
        grid-template-columns: 1fr !important;
    }

    /* Upload Result Section */
    .result-display-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .result-image-box {
        height: 200px !important;
    }

    .result-actions-panel {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .result-sub-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .result-sub-actions .btn-secondary {
        width: 100% !important;
    }

    /* Batch Page Dashboard */
    .batch-dashboard-panel {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px !important;
    }

    .batch-dashboard-actions {
        justify-content: center !important;
    }

    .btn-dashboard-download,
    .btn-dashboard-add,
    .btn-dashboard-clear {
        flex: 1 !important;
        justify-content: center !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    /* Change Background Editor (/transparent-background) */
    .bg-editor-body {
        flex-direction: column !important;
        height: calc(100vh - 60px) !important;
    }

    .bg-editor-workspace {
        height: 48vh !important;
        flex-grow: 0 !important;
        min-height: 280px !important;
    }

    .canvas-viewport {
        padding: 20px 20px 70px !important;
    }

    .bg-editor-sidebar {
        width: 100% !important;
        height: calc(52vh - 60px) !important;
        border-left: none !important;
        border-top: 1px solid #2e2a24 !important;
        min-height: 240px !important;
    }

    .bg-bottom-tray {
        height: 76px !important;
        padding: 0 16px !important;
    }

    .btn-tray-add,
    .tray-thumb-item {
        width: 48px !important;
        height: 48px !important;
    }

    .canvas-toolbar {
        top: 10px !important;
    }

    .presets-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Standalone Photo Editor (/edit) */
    .editor-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr auto auto 60px !important;
        grid-template-areas:
            "main"
            "panel"
            "sidebar"
            "bottom" !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    .editor-sidebar {
        flex-direction: row !important;
        width: 100% !important;
        height: 60px !important;
        padding-top: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border-right: none !important;
        border-top: 1px solid #1e2028 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 16px !important;
        scrollbar-width: none !important;
        z-index: 20 !important;
    }

    .editor-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .sidebar-item-home {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
    }

    .sidebar-item {
        width: auto !important;
        height: 100% !important;
        padding: 0 12px !important;
        flex-shrink: 0 !important;
    }

    .sidebar-item.active::before {
        left: 30% !important;
        top: auto !important;
        bottom: -1px !important;
        height: 3px !important;
        width: 40% !important;
        border-radius: 3px 3px 0 0 !important;
    }

    .sidebar-divider {
        display: none !important;
    }

    .editor-control-panel {
        width: 100% !important;
        height: 220px !important;
        border-right: none !important;
        border-top: 1px solid #1e2028 !important;
        padding: 12px 16px !important;
        z-index: 20 !important;
    }

    .editor-main {
        height: auto !important;
        flex-grow: 1 !important;
    }

    .editor-bottom-bar {
        padding: 0 16px !important;
        height: 60px !important;
    }

    .btn-editor-close,
    .btn-editor-save {
        padding: 8px 16px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .editor-dropzone {
        width: calc(100% - 32px) !important;
        height: 300px !important;
    }

    .fg-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .ai-presets-grid,
    .aspect-ratio-grid,
    .transform-actions {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}






/* ==========================================================================
   PIXLR EXPRESS DARK THEME REDESIGN STYLES
   ========================================================================== */

/* Dark Layout Body */
body.pixlr-dark-body {
    background-color: #14171a !important;
    color: #ffffff !important;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.pixlr-dark-body:not(.light-theme) {
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --bg-main: #14171a;
    --bg-card: #181b1f;
    --border-color: #23272d;
    --secondary: #1f2329;
    --secondary-hover: #2b3038;
}

.pixlr-app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #14171a;
}

/* Sidebar (Left Narrow Bar) */
.pixlr-sidebar {
    width: 72px;
    min-width: 72px;
    background: #181b1f;
    border-right: 1px solid #23272d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    padding: 16px 0;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-top {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.brand-gradient-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(63, 186, 220, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.sidebar-brand:hover .brand-gradient-icon {
    transform: scale(1.08);
}

.sidebar-brand-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    text-align: center;
}

.brand-accent {
    color: #22d3ee;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.sidebar-nav-list .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar-nav-list .nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav-list .nav-item a i {
    font-size: 19px;
}

.sidebar-nav-list .nav-item a:hover {
    color: #ffffff;
    background: #23272e;
}

.sidebar-nav-list .nav-item.active a {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    font-weight: 600;
}

.sidebar-bottom {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.sidebar-auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    width: 58px;
    border-radius: 12px;
    background: #20242b;
    border: 1px solid #2d333e;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sidebar-auth-card:hover {
    background: #262c35;
    border-color: #3f4756;
    transform: translateY(-2px);
}

.auth-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2d343f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #38bdf8;
}

.auth-card-info strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
}

.auth-card-info small {
    display: none;
}

.sidebar-icon-tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.tool-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover {
    color: #ffffff;
    background: #23272e;
}

.sidebar-backdrop {
    display: none;
}

/* Main Viewport */
.pixlr-main-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* Header Bar */
.pixlr-top-header {
    height: 64px;
    background: #181b1f;
    border-bottom: 1px solid #23272d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

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

.header-right {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    margin-right: 12px;
}

.header-logo-mobile {
    display: none;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.btn-pixlr-header-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #23272e;
    border: 1px solid #333a46;
    border-radius: 9999px;
    padding: 8px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pixlr-header-login:hover {
    background: #2c323c;
    border-color: #444d5c;
    transform: translateY(-1px);
}

/* Main Content & Splash Container */
.pixlr-main-content {
    flex: 1;
    padding-bottom: 60px;
}

.pixlr-splash-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* Hero Banner */
.pixlr-hero-banner {
    position: relative;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #181b2a 0%, #201f46 45%, #0d3834 85%, #101924 100%);
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner-glow {
    position: absolute;
    top: -40px;
    right: 12%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(168, 85, 247, 0.18) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-banner-plate {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 23, 29, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 10px 22px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.plate-icon {
    display: flex;
    align-items: center;
}

/* Splash Main 2-Column Grid */
.pixlr-splash-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 48px;
}

/* Left: File Dropper Box */
.pixlr-dropper-box {
    background: #191c21;
    border: 2px dashed #2d333f;
    border-radius: 20px;
    padding: 44px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
    min-height: 420px;
}

.pixlr-dropper-box.drag-active {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.06) !important;
}

.dropper-state-normal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.dropper-icon-wrapper {
    margin-bottom: 24px;
}

.dropper-svg-icon {
    width: 76px;
    height: 76px;
    fill: #475569;
    transition: transform 0.2s, fill 0.2s;
}

.pixlr-dropper-box:hover .dropper-svg-icon {
    transform: scale(1.05);
    fill: #64748b;
}

/* Pixlr Positive Green Button */
.btn-pixlr-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #22c55e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
    margin-bottom: 14px;
}

.btn-pixlr-open:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
}

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

.btn-pixlr-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid #38414f;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pixlr-outline:hover {
    background: #252b34;
    border-color: #4b5565;
    color: #ffffff;
}

.dropper-subtext {
    color: #838f9f;
    font-size: 14px;
    margin-bottom: 28px;
}

.dropper-samples-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.samples-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.samples-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sample-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22262d;
    border: 1px solid #2d343f;
    border-radius: 9999px;
    padding: 7px 14px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.sample-pill:hover {
    background: #2c323c;
    border-color: #3f4756;
    color: #ffffff;
}

/* Dropper Processing State */
.dropper-state-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pixlr-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: pixlr-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes pixlr-spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.progress-bar-outer {
    width: 80%;
    max-width: 320px;
    height: 6px;
    background: #262c35;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #22d3ee);
    border-radius: 9999px;
    transition: width 0.2s ease;
}

.processing-status {
    font-size: 14px;
    color: #94a3b8;
}

/* Dropper Result State */
.dropper-state-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.result-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.result-image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #14171a;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2f38;
}

.result-image-box.checkerboard {
    background-image: linear-gradient(45deg, #1f2329 25%, transparent 25%),
        linear-gradient(-45deg, #1f2329 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1f2329 75%),
        linear-gradient(-45deg, transparent 75%, #1f2329 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #16191f;
}

.result-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Right: Intro Box */
.pixlr-intro-box {
    background: #191c21;
    border: 1px solid #252a33;
    border-radius: 20px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-headline {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.intro-description {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.intro-perks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perk-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.perk-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.perk-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 4px 0;
}

.perk-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* History Section */
.pixlr-history-section {
    margin-top: 32px;
    background: #191c21;
    border: 1px solid #252a33;
    border-radius: 20px;
    padding: 32px;
}

.history-pill-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.history-pill-item.active {
    background: #252a33;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.history-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.history-header-icon {
    fill: #22c55e;
}

.history-section-header p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.history-card {
    background: #20242b;
    border: 1px solid #2d333e;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.history-card:hover {
    border-color: #3f4756;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.history-preview {
    display: flex;
    height: 140px;
    background: #14171a;
}

.history-orig,
.history-proc {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-proc {
    background-image: linear-gradient(45deg, #1b1e24 25%, transparent 25%),
        linear-gradient(-45deg, #1b1e24 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1b1e24 75%),
        linear-gradient(-45deg, transparent 75%, #1b1e24 75%);
    background-size: 12px 12px;
}

.history-orig img,
.history-proc img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.history-label {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.history-details {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1c2026;
    border-top: 1px solid #262c35;
}

.history-time {
    font-size: 11px;
    color: #64748b;
}

.history-buttons {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #252b34;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #333a46;
    color: #ffffff;
}

.btn-icon-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Auth Modal (Pixlr Express Style) */
.pixlr-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.auth-modal-dialog {
    position: relative;
    z-index: 1001;
    background: #1e2228;
    border: 1px solid #313742;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-close-btn:hover {
    color: #ffffff;
    background: #282e38;
}

.auth-brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 24px;
}

.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 44px;
    border-radius: 10px;
    background: #262b33;
    border: 1px solid #333a46;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social-auth:hover {
    background: #2d333d;
    border-color: #3f4756;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 20px;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2d333e;
}

.auth-separator span {
    padding: 0 12px;
}

.auth-email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.pixlr-input {
    background: #14171a;
    border: 1px solid #2d333e;
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.pixlr-input:focus {
    border-color: #22c55e;
}

.btn-auth-primary {
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-auth-primary:hover {
    background: #16a34a;
}

.auth-dialog-footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 20px;
}

.auth-dialog-footer a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
}

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

/* Pixlr Footer */
.pixlr-footer {
    border-top: 1px solid #23272d;
    padding: 24px 32px;
    background: #181b1f;
}

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

.footer-left .copyright {
    font-size: 13px;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .pixlr-splash-main {
        grid-template-columns: 1fr;
    }

    .pixlr-sidebar {
        position: fixed;
        left: -100px;
        transition: left 0.3s ease;
    }

    .pixlr-sidebar.open {
        left: 0;
    }

    .mobile-menu-btn,
    .header-logo-mobile {
        display: block;
    }

    .sidebar-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 95;
    }
}

/* ==========================================================================
   Photo.edit Two-Mode (Guest vs Logged-in Member Server Save) Styles
   ========================================================================== */

/* Mode Badge in Header */
.header-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-mode-badge.guest {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.header-mode-badge.guest:hover {
    background: rgba(56, 189, 248, 0.14);
}

.header-mode-badge.member {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.header-mode-badge.member:hover {
    background: rgba(34, 197, 94, 0.18);
}

/* Header User Details & Logout */
.header-user-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #23272e;
    border: 1px solid #333a46;
    border-radius: 9999px;
    padding: 6px 14px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
}

.header-user-badge i {
    color: #38bdf8;
    font-size: 15px;
}

.btn-pixlr-header-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #23272e;
    border: 1px solid #3d2b35;
    border-radius: 9999px;
    padding: 6px 14px;
    color: #f43f5e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pixlr-header-logout:hover {
    background: #3e1b24;
    border-color: #f43f5e;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Auth Modal Perks Callout */
.auth-features-callout {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: #22c55e;
    font-size: 11px;
}

/* Result Storage Mode Banner */
.result-storage-banner {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    animation: fadeInNotice 0.3s ease;
}

@keyframes fadeInNotice {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-storage-banner.guest {
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

.result-storage-banner.member {
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #4ade80;
}

.result-storage-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.result-storage-banner-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.result-storage-banner .btn-banner-login {
    background: #fbbf24;
    color: #14171a;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.result-storage-banner .btn-banner-login:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* History Guest Notice */
.history-guest-notice {
    background: #16191f;
    border: 1px dashed #333a46;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.guest-notice-icon {
    font-size: 32px;
    color: #64748b;
    background: #23272e;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333a46;
}

.guest-notice-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.guest-notice-text p {
    font-size: 13px;
    color: #94a3b8;
    max-width: 500px;
    line-height: 1.5;
    margin: 0 auto;
}

/* Toast Notification */
.pixlr-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #23272e;
    border: 1px solid #333a46;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pixlr-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pixlr-toast.success {
    border-color: rgba(34, 197, 94, 0.4);
}

.pixlr-toast.success i {
    color: #22c55e;
}

.pixlr-toast.info i {
    color: #38bdf8;
}

/* ==========================================================================
   Language Dropdown & Header Quick Tools Styles
   ========================================================================== */

.sidebar-tool-dropdown-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tool-lang-badge {
    font-size: 8px;
    font-weight: 800;
    margin-top: 1px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.header-quick-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-lang-wrapper {
    position: relative;
}

.header-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9999px;
    background: #23272e;
    border: 1px solid #333a46;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.header-tool-btn:hover {
    color: #ffffff;
    background: #2c323c;
    border-color: #444d5c;
    transform: translateY(-1px);
}

.header-tool-btn i {
    font-size: 13px;
}

.lang-dropdown-menu {
    position: absolute;
    background: #1e2228;
    border: 1px solid #313742;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 140px;
    animation: fadeInNotice 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-lang-dropdown {
    left: calc(100% + 14px);
    bottom: -6px;
}

.header-lang-dropdown {
    right: 0;
    top: calc(100% + 8px);
}

.lang-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.15s ease;
}

.lang-option-btn .flag {
    font-size: 15px;
}

.lang-option-btn:hover {
    background: #282f3a;
    color: #ffffff;
}

.lang-option-btn.active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-weight: 600;
}

.lang-option-btn .checkmark {
    margin-left: auto;
    font-size: 11px;
    opacity: 0;
    color: #22c55e;
}

.lang-option-btn.active .checkmark {
    opacity: 1;
}

/* ==========================================================================
   LIGHT THEME STYLES (body.light-theme, html.light-theme body)
   ========================================================================== */

body.light-theme,
html.light-theme body {
    background-color: #f6f8fa !important;
    color: #0f172a !important;
}

.light-theme .pixlr-app-layout {
    background-color: #f6f8fa;
}

/* Light Sidebar */
.light-theme .pixlr-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

.light-theme .sidebar-brand-name {
    color: #0f172a;
}

.light-theme .sidebar-nav-list .nav-item a {
    color: #64748b;
}

.light-theme .sidebar-nav-list .nav-item a:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.light-theme .sidebar-nav-list .nav-item.active a {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.light-theme .sidebar-auth-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.light-theme .sidebar-auth-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.light-theme .auth-card-avatar {
    background: #e2e8f0;
    color: #0284c7;
}

.light-theme .tool-btn {
    color: #64748b;
}

.light-theme .tool-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Light Header */
.light-theme .pixlr-top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.light-theme .header-logo-mobile {
    color: #0f172a;
}

.light-theme .mobile-menu-btn {
    color: #0f172a;
}

.light-theme .header-tool-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.light-theme .header-tool-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.light-theme .header-mode-badge.guest {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

.light-theme .header-mode-badge.member {
    background: rgba(22, 163, 74, 0.09);
    border: 1px solid rgba(22, 163, 74, 0.28);
    color: #15803d;
}

.light-theme .btn-pixlr-header-login {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.light-theme .btn-pixlr-header-login:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.light-theme .header-user-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.light-theme .header-user-badge i {
    color: #0284c7;
}

.light-theme .btn-pixlr-header-logout {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}

.light-theme .btn-pixlr-header-logout:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

/* Light Dropper & Hero */
.light-theme .hero-banner-plate {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.light-theme .pixlr-dropper-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.light-theme .dropper-svg-icon {
    fill: #94a3b8;
}

.light-theme .pixlr-dropper-box:hover .dropper-svg-icon {
    fill: #64748b;
}

.light-theme .dropper-subtext {
    color: #64748b;
}

.light-theme .samples-title {
    color: #64748b;
}

.light-theme .sample-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.light-theme .sample-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.light-theme .processing-title {
    color: #0f172a;
}

.light-theme .processing-status {
    color: #64748b;
}

.light-theme .progress-bar-outer {
    background: #e2e8f0;
}

/* Light Result Display */
.light-theme .result-image-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.light-theme .result-image-box.checkerboard {
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-color: #f8fafc;
}

.light-theme .btn-pixlr-outline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.light-theme .btn-pixlr-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.light-theme .result-storage-banner.guest {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.light-theme .result-storage-banner.member {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #15803d;
}

/* Light Intro Box */
.light-theme .pixlr-intro-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.light-theme .intro-headline {
    color: #0f172a;
}

.light-theme .intro-description {
    color: #475569;
}

.light-theme .perk-content h4 {
    color: #0f172a;
}

.light-theme .perk-content p {
    color: #64748b;
}

/* Light History Section */
.light-theme .pixlr-history-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.light-theme .history-pill-item.active {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.light-theme .history-section-header h2 {
    color: #0f172a;
}

.light-theme .history-section-header p {
    color: #64748b;
}

.light-theme .history-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.light-theme .history-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.light-theme .history-preview {
    background: #f1f5f9;
}

.light-theme .history-time {
    color: #64748b;
}

.light-theme .btn-icon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.light-theme .btn-icon:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.light-theme .history-guest-notice {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.light-theme .guest-notice-text h3 {
    color: #0f172a;
}

.light-theme .guest-notice-text p {
    color: #64748b;
}

.light-theme .guest-notice-icon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Light Auth Modal */
.light-theme .auth-modal-dialog {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.light-theme .auth-title {
    color: #0f172a;
}

.light-theme .auth-subtitle {
    color: #64748b;
}

.light-theme .auth-features-callout {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.light-theme .feature-item {
    color: #334155;
}

.light-theme .btn-social-auth {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.light-theme .btn-social-auth:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.light-theme .pixlr-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.light-theme .pixlr-input:focus {
    border-color: #22c55e;
    background: #ffffff;
}

.light-theme .auth-close-btn {
    color: #64748b;
}

.light-theme .auth-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.light-theme .auth-separator {
    color: #94a3b8;
}

.light-theme .auth-separator::before,
.light-theme .auth-separator::after {
    border-bottom: 1px solid #e2e8f0;
}

.light-theme .auth-dialog-footer {
    color: #64748b;
}

/* Light Dropdown & Toast */
.light-theme .lang-dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.light-theme .lang-option-btn {
    color: #334155;
}

.light-theme .lang-option-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.light-theme .lang-option-btn.active {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}

.light-theme .pixlr-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.light-theme .footer-left .copyright {
    color: #64748b;
}

.light-theme .footer-links a {
    color: #64748b;
}

.light-theme .footer-links a:hover {
    color: #0f172a;
}

.light-theme .pixlr-toast {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}