/* ════════════════════════════════════════════════════════════════════════════
   FOTOART PRO STUDIO — 2026 ULTRA-PRO SAAS STUDIO STYLESHEET
   Plus Jakarta Sans Typography + Tabbed Master Studio + Split Before/After
   © 2026 Ömer Berat Keser (Karagan) | All Rights Reserved
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand Color Palette */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-500: #4f46e5;
    --primary-600: #4338ca;
    --primary-700: #3730a3;

    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --rose-500: #f43f5e;
    --amber-500: #f59e0b;

    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-danger: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.fotoart-page {
    font-family: var(--font-main);
    background: #f8fafc;
    background-image: 
        radial-gradient(at 90% 10%, rgba(99, 102, 241, 0.12) 0px, transparent 55%),
        radial-gradient(at 10% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 55%),
        radial-gradient(at 50% 40%, rgba(236, 72, 153, 0.06) 0px, transparent 60%),
        radial-gradient(at 80% 80%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 110px 20px 50px;
    color: var(--neutral-800);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    letter-spacing: -0.015em;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════
   1. FLOATING NAVBAR
   ════════════════════════════════════════════════════════════════════════ */
.navbar-custom {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.35rem;
    z-index: 1050;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    width: min(1080px, 95%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    background: var(--neutral-100);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--neutral-200);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    text-decoration: none;
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: #ffffff;
    color: var(--primary-500);
    box-shadow: var(--shadow-sm);
}

.navbar-cta {
    background: var(--neutral-900);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.navbar-cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════════
   2. MAIN MASTER CONTAINER
   ════════════════════════════════════════════════════════════════════════ */
.main-container {
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 28px;
}

.app-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--neutral-900);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .subtitle {
    color: var(--neutral-500);
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-weight: 500;
}

.status-pill-badge {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-500);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.status-pill-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--emerald-500);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.trust-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
    color: var(--neutral-700);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 5px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0 auto;
    max-width: 420px;
    text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════
   ANIMATED LUMINOUS UPLOAD DROPZONE
   ════════════════════════════════════════════════════════════════════════ */
.upload-dropzone {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 20px;
    padding: 38px 24px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    border: 1.5px solid transparent;
    z-index: 1;
}

/* Animated SVG Border Beam */
.dropzone-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.dropzone-border-rect {
    fill: none;
    stroke: rgba(99, 102, 241, 0.4);
    stroke-width: 2.2;
    stroke-dasharray: 10 8;
    stroke-dashoffset: 0;
    animation: dropzoneDash 25s linear infinite;
    transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

@keyframes dropzoneDash {
    to { stroke-dashoffset: 1000; }
}

.upload-dropzone:hover .dropzone-border-rect,
.upload-dropzone.dragover .dropzone-border-rect {
    stroke: #06b6d4;
    stroke-width: 3;
    animation: dropzoneDash 8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

/* Mouse Spotlight Aura */
.dropzone-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 260px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.12), transparent 75%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.upload-dropzone:hover .dropzone-spotlight {
    opacity: 1;
}

/* Floating Micro Sparks */
.dropzone-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.dropzone-sparks .spark {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    opacity: 0.3;
    animation: floatSpark 6s ease-in-out infinite alternate;
}

.dropzone-sparks .s1 { width: 6px; height: 6px; top: 20%; left: 12%; animation-delay: 0s; }
.dropzone-sparks .s2 { width: 8px; height: 8px; top: 72%; left: 16%; animation-delay: 1.5s; }
.dropzone-sparks .s3 { width: 5px; height: 5px; top: 22%; right: 18%; animation-delay: 2.5s; }
.dropzone-sparks .s4 { width: 7px; height: 7px; top: 68%; right: 12%; animation-delay: 3.5s; }
.dropzone-sparks .s5 { width: 6px; height: 6px; top: 48%; right: 28%; animation-delay: 4.5s; }

@keyframes floatSpark {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-12px) scale(1.4); opacity: 0.65; }
    100% { transform: translateY(6px) scale(0.85); opacity: 0.2; }
}

/* Central Floating Upload Beacon */
.upload-beacon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    z-index: 3;
}

.beacon-pulse-ring {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    border: 2px solid rgba(79, 70, 229, 0.45);
    animation: beaconPulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

.beacon-pulse-ring.delay {
    animation-delay: 1.2s;
}

@keyframes beaconPulse {
    0% { transform: scale(0.85); opacity: 0.95; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

.upload-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    animation: beaconFloat 3.5s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

@keyframes beaconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

.upload-dropzone:hover .upload-icon-wrap,
.upload-dropzone.dragover .upload-icon-wrap {
    transform: translateY(-9px) scale(1.08);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.55), 0 0 20px rgba(79, 70, 229, 0.4);
}

.cloud-icon-anim {
    animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.upload-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--neutral-900);
    font-weight: 800;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 3;
    transition: color 0.25s ease;
}

.upload-dropzone:hover .upload-title {
    color: #4f46e5;
}

.upload-subtitle {
    color: var(--neutral-500);
    font-size: 0.86rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.ctrl-v-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-left: 6px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.ctrl-v-badge kbd {
    background: white;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.72rem;
}

.upload-format-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.tag-pill {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--neutral-700);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tag-pill.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}

/* Dragging Over Animation State */
.upload-dropzone.dragover {
    transform: scale(1.015);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(236, 254, 255, 0.95) 100%);
    box-shadow: 0 14px 40px rgba(6, 182, 212, 0.25), 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Uploaded Gallery */
.uploaded-gallery-section {
    display: none;
    margin-bottom: 25px;
}

.uploaded-gallery-section.show {
    display: block;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--neutral-900);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
}

.gallery-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-500);
}

.thumb-preview {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
    background: var(--neutral-100);
}

.thumb-title {
    font-size: 0.75rem;
    color: var(--neutral-900);
    margin-bottom: 2px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb-size {
    font-size: 0.68rem;
    color: var(--primary-500);
    background: var(--primary-50);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 700;
    font-family: var(--font-mono);
}

.thumb-remove-btn {
    background: var(--rose-500);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.thumb-remove-btn:hover {
    background: #e11d48;
    transform: scale(1.1);
}

/* ════════════════════════════════════════════════════════════════════════
   3. PRO TABBED STUDIO CONTROLS (CLEAN SAAS ARCHITECTURE - NO ACCORDION BUGS)
   ════════════════════════════════════════════════════════════════════════ */
.studio-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--neutral-100);
}

.tab-btn {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-main);
}

.tab-btn:hover {
    background: #ffffff;
    color: var(--primary-500);
    border-color: var(--primary-200);
}

.tab-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.25s ease;
}

.tab-pane.active {
    display: block;
}

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

.studio-panel-box {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--neutral-100);
}

.panel-title-row h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Preset Chips */
.preset-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.preset-chip {
    background: var(--neutral-50);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: var(--transition);
    font-family: var(--font-main);
}

.preset-chip .chip-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--neutral-900);
}

.preset-chip .chip-title i {
    color: var(--primary-500);
    font-size: 0.82rem;
}

.preset-chip small {
    font-size: 0.7rem;
    color: var(--neutral-400);
    font-family: var(--font-mono);
}

.preset-chip:hover {
    border-color: var(--primary-500);
    background: #ffffff;
}

.preset-chip.active {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

.preset-chip.active .chip-title {
    color: var(--primary-600);
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.input-field {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-weight: 600;
    color: var(--neutral-900);
    outline: none;
    font-family: var(--font-main);
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Transform Grid */
.transform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.t-btn {
    height: 38px;
    border-radius: 8px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    transition: var(--transition);
    font-family: var(--font-main);
}

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

/* Sliders Grid */
.sliders-2col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

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

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.slider-label-row span:last-child {
    font-family: var(--font-mono);
    color: var(--primary-500);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════
   ULTRA-MODERN SAAS CUSTOM SLIDERS & RANGE CONTROLS
   ════════════════════════════════════════════════════════════════════════ */
.clean-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e0e7ff 0%, #ede9fe 50%, #cffafe 100%);
    outline: none;
    margin: 8px 0;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.clean-slider:hover {
    border-color: var(--primary-500);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 12px rgba(99, 102, 241, 0.25);
}

/* Webkit (Chrome, Edge, Safari) Thumb */
.clean-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #4f46e5;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.4), inset 0 0 0 2px #ffffff;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.clean-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.6), 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.clean-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.25);
    border-color: #06b6d4;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.7), 0 0 0 6px rgba(6, 182, 212, 0.2);
}

/* Firefox Thumb */
.clean-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #4f46e5;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.4), inset 0 0 0 2px #ffffff;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clean-slider::-moz-range-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.6), 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ════════════════════════════════════════════════════════════════════════
   PROFESSIONAL CUSTOM SAAS DROPDOWN SELECT COMPONENT
   ════════════════════════════════════════════════════════════════════════ */
.pro-custom-select-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    user-select: none;
}

.pro-select-trigger {
    background: #ffffff;
    border: 1.5px solid var(--neutral-200);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pro-select-trigger:hover,
.pro-custom-select-wrap.open .pro-select-trigger {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.pro-select-val-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-fmt-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.pro-fmt-icon.webp { background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%); }
.pro-fmt-icon.jpeg { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); }
.pro-fmt-icon.png { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }

.pro-fmt-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.pro-fmt-text-col strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--neutral-900);
}

.pro-fmt-text-col small {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--neutral-500);
}

.pro-select-chevron {
    color: var(--neutral-400);
    font-size: 0.85rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pro-custom-select-wrap.open .pro-select-chevron {
    transform: rotate(180deg);
    color: var(--primary-500);
}

/* Floating Options Dropdown Menu */
.pro-select-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-custom-select-wrap.open .pro-select-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pro-select-option {
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.pro-select-option:hover {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateX(4px);
}

.pro-select-option.selected {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary-500);
}

.opt-left-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-main-line {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.opt-badge-recommend {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.opt-sub-line {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-weight: 500;
    margin-top: 2px;
}

.opt-saving-pill {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.opt-saving-pill.green { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }
.opt-saving-pill.blue { background: rgba(14, 165, 233, 0.12); color: #0284c7; border: 1px solid rgba(14, 165, 233, 0.25); }
.opt-saving-pill.purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.25); }

/* Filter Chips */
.filter-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.filter-card-item {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-gradient-box {
    height: 36px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.filter-card-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neutral-700);
    display: block;
}

.filter-card-item:hover {
    border-color: var(--cyan-500);
    transform: translateY(-2px);
}

.filter-card-item.active {
    border-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.08);
}

.filter-card-item.active span {
    color: var(--cyan-600);
}

/* Palette Swatches */
.palette-swatches-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.palette-swatch-box {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: var(--transition);
}

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

/* ════════════════════════════════════════════════════════════════════════
   4. ACTION DECK & BUTTONS
   ════════════════════════════════════════════════════════════════════════ */
.action-deck {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.deck-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 26px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}

.deck-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.deck-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.deck-btn-studio {
    background: var(--gradient-accent);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.deck-btn-success {
    background: var(--gradient-success);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.deck-btn-danger {
    background: var(--gradient-danger);
}

/* Progress Section */
.processing-progress-card {
    margin-bottom: 25px;
    display: none;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.processing-progress-card.show { display: block; }
.progress-bar-track { width: 100%; height: 12px; background: var(--neutral-200); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress-bar-fill { height: 100%; background: var(--gradient-success); width: 0%; transition: width 0.3s ease; border-radius: 6px; }

/* Stats Section */
.metrics-section {
    background: var(--neutral-50);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 25px;
    display: none;
    border: 1px solid var(--neutral-200);
}

.metrics-section.show { display: block; }
.metrics-title { font-size: 1.15rem; font-weight: 800; color: var(--neutral-900); margin-bottom: 14px; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.metric-card {
    background: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-200);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-500);
    margin-bottom: 2px;
    font-family: var(--font-mono);
}

.metric-label { color: var(--neutral-500); font-size: 0.75rem; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   5. COMPARISON PREVIEW (PIXEL-PERFECT INTERACTIVE SPLIT SLIDER)
   ════════════════════════════════════════════════════════════════════════ */
.comparison-section { display: none; margin-bottom: 30px; }
.comparison-section.show { display: block; }
.comparison-title { color: var(--neutral-900); margin-bottom: 16px; font-size: 1.2rem; text-align: center; font-weight: 800; }
.comparison-grid { display: flex; flex-direction: column; gap: 24px; }

.comparison-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.split-slider-stage {
    position: relative;
    width: 100%;
    height: 440px;
    max-height: 440px;
    overflow: hidden;
    border-radius: 12px;
    background: #090d16;
    user-select: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--neutral-300);
    margin: 14px 0;
}

/* Layer 1: Orijinal (Arka Plan - Öncesi) */
.split-layer-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-layer-before img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* Layer 2: Optimize & Filtreli (Ön Plan - Sonrası - Clip Path ile Kusursuz Hizalı) */
.split-layer-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(0 0 0 var(--split-pos, 50%));
    pointer-events: none;
}

.split-layer-after img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* Öncesi / Sonrası Belirgin Rozetleri (Köşelerde Sabit) */
.split-badge-before {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 30;
    background: rgba(15, 23, 42, 0.88);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.split-badge-after {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    background: rgba(79, 70, 229, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Dikey Ayırıcı Çizgi & Ortalanmış Simetrik Tutamaç */
.split-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 6px rgba(79, 70, 229, 0.8);
    left: var(--split-pos, 50%);
    transform: translateX(-50%);
    z-index: 25;
    pointer-events: none;
}

.split-divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-600);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2.5px solid var(--primary-500);
    cursor: ew-resize;
    pointer-events: auto;
}

/* Şeffaf Etkileşim Alanı */
.split-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 40;
    margin: 0;
    padding: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   6. QUANTUM CAPSULE DOWNLOAD SYSTEM (FUTURISTIC & ULTRA-CREATIVE)
   ════════════════════════════════════════════════════════════════════════ */
.quantum-dl-btn {
    position: relative;
    height: 42px;
    min-width: 125px;
    padding: 0 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #090d16 0%, #111827 50%, #0f172a 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.45);
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                min-width 0.3s ease;
    user-select: none;
    text-decoration: none;
}

.quantum-dl-btn:hover:not(.is-downloading) {
    transform: translateY(-2px) scale(1.02);
    border-color: #22d3ee;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.2);
}

.quantum-dl-btn.master-dl-btn {
    min-width: 185px;
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, #052e16 0%, #0f172a 60%, #064e3b 100%);
}

.quantum-dl-btn.master-dl-btn:hover:not(.is-downloading) {
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Ambient Breathing Aura */
.q-aura {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quantum-dl-btn:hover .q-aura {
    opacity: 1;
}

/* Liquid Plasma Progress Track */
.q-plasma-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 22px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.q-plasma-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.9);
    transition: width 0.04s linear;
}

.q-laser-head {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    box-shadow: 0 0 12px #ffffff, 0 0 20px #06b6d4;
}

/* Content Elements */
.q-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.q-icon {
    color: #22d3ee;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.quantum-dl-btn.master-dl-btn .q-icon {
    color: #34d399;
}

.quantum-dl-btn:hover .q-icon {
    transform: translateY(2px);
}

/* HUD Live Percentage Counter */
.q-hud {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.9);
}

.q-hud-spinner {
    color: #22d3ee;
    font-size: 0.85rem;
}

/* Success State */
.q-success {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.86rem;
}

.q-check-svg {
    width: 20px;
    height: 20px;
    stroke: #10b981;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.35s ease 0.1s;
}

/* ════════════════════════════════════════════════════════════════════════
   STRICT MUTUALLY-EXCLUSIVE STATE MACHINE (ZERO OVERLAP GUARANTEE)
   ════════════════════════════════════════════════════════════════════════ */

/* STATE 1: ACTIVE DOWNLOADING */
.quantum-dl-btn.is-downloading {
    pointer-events: none;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6) !important;
}

.quantum-dl-btn.is-downloading .q-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.quantum-dl-btn.is-downloading .q-plasma-track {
    opacity: 1 !important;
}

.quantum-dl-btn.is-downloading .q-hud {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.quantum-dl-btn.is-downloading .q-success {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* STATE 2: COMPLETED SUCCESS */
.quantum-dl-btn.is-completed {
    pointer-events: none;
    border-color: #10b981 !important;
    background: #064e3b !important;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.8) !important;
    transform: scale(1.04);
}

.quantum-dl-btn.is-completed .q-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.quantum-dl-btn.is-completed .q-plasma-track {
    opacity: 0 !important;
}

.quantum-dl-btn.is-completed .q-hud {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.quantum-dl-btn.is-completed .q-success {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.quantum-dl-btn.is-completed .q-check-svg {
    stroke-dashoffset: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   7. STUDIO RESET (TEMİZLE) PRO ANIMATION SYSTEM
   ════════════════════════════════════════════════════════════════════════ */
.studio-reset-btn {
    position: relative;
    height: 42px;
    min-width: 130px;
    padding: 0 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.18) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease,
                background 0.25s ease,
                color 0.25s ease,
                box-shadow 0.25s ease;
    user-select: none;
    text-decoration: none;
}

.studio-reset-btn:hover:not(.is-resetting):not(.is-cleared) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.3) 100%);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}

.studio-reset-btn:hover .reset-icon-wrap {
    transform: rotate(-30deg);
}

.reset-aura {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.studio-reset-btn:hover .reset-aura {
    opacity: 1;
}

.reset-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.reset-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reset-svg-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.reset-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.35);
    pointer-events: none;
    opacity: 0;
}

/* Success Content */
.reset-btn-success {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.84rem;
}

.reset-check-svg {
    width: 18px;
    height: 18px;
    stroke: #34d399;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.35s ease 0.1s;
}

/* Resetting active state */
.studio-reset-btn.is-resetting {
    transform: scale(0.94);
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.25) !important;
    color: #ffffff !important;
    pointer-events: none;
}

.studio-reset-btn.is-resetting .reset-icon-wrap {
    animation: resetIconSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.studio-reset-btn.is-resetting .reset-ripple {
    animation: resetRippleExpand 0.7s ease-out forwards;
}

@keyframes resetRippleExpand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 140px; height: 140px; opacity: 0; }
}

/* Cleared / Success State */
.studio-reset-btn.is-cleared {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6) !important;
    pointer-events: none;
}

.studio-reset-btn.is-cleared .reset-btn-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.studio-reset-btn.is-cleared .reset-btn-success {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.studio-reset-btn.is-cleared .reset-check-svg {
    stroke-dashoffset: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   DIGITAL CANVAS WIPE & PARTICLE VORTEX OVERLAY
   ════════════════════════════════════════════════════════════════════════ */
.studio-wipe-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
    display: none;
}

.studio-wipe-overlay.active {
    display: block;
}

.wipe-glass-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    width: 60vw;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 70, 229, 0.15) 30%, 
        rgba(6, 182, 212, 0.35) 60%, 
        rgba(255, 255, 255, 0.7) 75%, 
        transparent 100%
    );
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
    backdrop-filter: blur(4px) brightness(1.1);
    -webkit-backdrop-filter: blur(4px) brightness(1.1);
}

.studio-wipe-overlay.active .wipe-glass-beam {
    animation: canvasWipeSweep 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes canvasWipeSweep {
    0% { left: -60vw; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 110vw; opacity: 0; }
}

.reset-particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
    display: none;
}

.reset-particle-canvas.active {
    display: block;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 20px 0 10px;
    color: var(--neutral-400);
    font-size: 0.82rem;
    border-top: 1px solid var(--neutral-200);
    margin-top: 20px;
}

/* ════════════════════════════════════════════════════════════════════════
   6. ADVANCED STUDIO MODAL
   ════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active { display: flex; }

.modal-window {
    background: #ffffff;
    width: min(1200px, 96%);
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header-bar {
    height: 62px;
    background: #ffffff;
    border-bottom: 1px solid var(--neutral-200);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--primary-50);
    color: var(--primary-600);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.tool-chip-btn:hover {
    background: var(--primary-500);
    color: #ffffff;
    border-color: var(--primary-500);
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--rose-500);
    color: white;
    border-color: var(--rose-500);
}

.modal-canvas-stage {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    flex: 1;
}

.modal-canvas-stage canvas {
    max-width: 100%;
    max-height: calc(85vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-footer-bar {
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--neutral-200);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-dims-pill {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neutral-600);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-footer-actions {
    display: flex;
    gap: 10px;
}

.toast-msg {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--neutral-900);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.toast-msg.show { display: block; }
