/* ==========================================================================
   CANVAPRO STUDIO BRIDGE CSS
   Full Design C Dark Neon Studio Theme for All Tool Pages (design-c-tool.php)
   ========================================================================== */

body.studio-theme {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: #070b14 !important;
    color: #e2e8f0 !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.studio-theme * {
    box-sizing: border-box;
}

/* Ambient studio background glow */
body.studio-theme .rd-c-glow {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}
body.studio-theme .rd-c-glow-a {
    top: -100px;
    left: 20%;
    width: 600px;
    height: 400px;
    background: #67e8f9;
}
body.studio-theme .rd-c-glow-b {
    top: 300px;
    right: 10%;
    width: 500px;
    height: 500px;
    background: #a3e635;
}

/* --------------------------------------------------------------------------
   NAVBAR (CanvaPro Studio)
   -------------------------------------------------------------------------- */
body.studio-theme .navbar {
    background: rgba(7, 11, 20, 0.88) !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

body.studio-theme .navbar::before,
body.studio-theme .navbar::after {
    display: none !important;
}

body.studio-theme .nav-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    min-height: 64px;
}

body.studio-theme .nav-menu a,
body.studio-theme .dropdown-trigger {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: color 0.15s ease;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    padding: 0.45rem 0.2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    height: auto !important;
}

body.studio-theme .nav-menu a:hover,
body.studio-theme .dropdown-trigger:hover,
body.studio-theme .nav-dropdown:hover .dropdown-trigger,
body.studio-theme .nav-dropdown.active .dropdown-trigger {
    color: #a3e635 !important;
}

body.studio-theme .nav-dropdown .dropdown-trigger svg {
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    opacity: 0.75;
}

body.studio-theme .nav-menu a::after,
body.studio-theme .nav-dropdown .dropdown-trigger::after {
    display: none !important;
    content: none !important;
}

/* Desktop: keep labels + chevrons on one line (no flex wrap/shrink) */
@media (min-width: 1025px) {
    body.studio-theme .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.15rem 0.85rem !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body.studio-theme .nav-menu > li {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    body.studio-theme .nav-menu {
        gap: 0.1rem 0.55rem !important;
    }
    body.studio-theme .nav-menu a,
    body.studio-theme .dropdown-trigger {
        font-size: 0.84rem !important;
    }
}

@media (max-width: 768px) {
    body.studio-theme .nav-wrapper {
        justify-content: space-between !important;
    }

    body.studio-theme .nav-menu {
        background: #0b1220 !important;
        border-top-color: #1e293b !important;
    }

    body.studio-theme .nav-menu a,
    body.studio-theme .dropdown-trigger {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0.7rem 0 !important;
        font-size: 1rem !important;
    }
}

body.studio-theme .logo a {
    color: #f8fafc !important;
}

body.studio-theme .studio-brand-text {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
    color: #f8fafc;
}

body.studio-theme .studio-brand-text em {
    font-style: normal;
    color: #a3e635;
    font-weight: 700;
}

@media (max-width: 640px) {
    body.studio-theme .studio-brand-text {
        display: none;
    }
}

body.studio-theme .theme-icon,
body.studio-theme .dropdown-arrow {
    color: #94a3b8 !important;
    stroke: #94a3b8 !important;
}

body.studio-theme .mobile-menu-toggle span {
    background: #e2e8f0 !important;
}

body.studio-theme .nav-menu li.nav-dropdown {
    position: relative !important;
}

/* Single-column: pin under trigger (center looked broken under short labels like Audio) */
body.studio-theme .nav-dropdown .tools-dropdown,
body.studio-theme .nav-dropdown .dropdown-menu {
    background: #0f172a !important;
    border: 1px solid #243044 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5) !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 10px) !important;
    margin-top: 0 !important;
    transform: translateY(-6px) scale(0.98) !important;
    min-width: 12.5rem !important;
    width: max-content !important;
    max-width: min(22rem, calc(100vw - 1.5rem)) !important;
    padding: 0.4rem !important;
    overflow: hidden !important;
}

body.studio-theme .nav-dropdown.active .tools-dropdown,
body.studio-theme .nav-dropdown.active .dropdown-menu {
    transform: translateY(0) scale(1) !important;
}

/* Wide menus stay centered under their label */
body.studio-theme .nav-dropdown .tools-dropdown.multi-column {
    left: 50% !important;
    transform: translateX(-50%) translateY(-6px) scale(0.98) !important;
    min-width: 460px !important;
    width: auto !important;
    max-width: min(640px, calc(100vw - 1.5rem)) !important;
    padding: 1.1rem 1.15rem !important;
}

body.studio-theme .nav-dropdown.active .tools-dropdown.multi-column {
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

body.studio-theme .tools-dropdown .dropdown-item,
body.studio-theme .dropdown-item,
body.studio-theme .dropdown-item a {
    color: #e2e8f0 !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
}

body.studio-theme .tools-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.7rem 0.85rem !important;
    margin: 0 !important;
    min-height: 0 !important;
    border-radius: 10px !important;
    line-height: 1.35 !important;
}

body.studio-theme .dropdown-item:hover,
body.studio-theme .dropdown-item:hover a,
body.studio-theme .tools-dropdown .dropdown-item:hover {
    background: rgba(103, 232, 249, 0.1) !important;
    color: #67e8f9 !important;
}

body.studio-theme .dropdown-category-title {
    color: #a3e635 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.7rem 0.55rem !important;
    margin: 0 !important;
}

body.studio-theme .nav-menu.active,
body.studio-theme .nav-menu.open {
    background: #0b1220 !important;
}

/* --------------------------------------------------------------------------
   TOOL PAGE HERO (design-c-tool.php style)
   -------------------------------------------------------------------------- */
body.studio-theme.rd-c-tool-page .page-hero,
body.studio-theme .rd-ct-hero,
body.studio-theme .page-hero {
    background: transparent !important;
    padding: 2.2rem 0 1.5rem !important;
    border-bottom: none !important;
    text-align: left !important;
    position: relative;
    z-index: 1;
}

body.studio-theme .rd-ct-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.1rem;
}

body.studio-theme .rd-ct-crumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

body.studio-theme .rd-ct-crumb a:hover {
    color: #67e8f9;
}

body.studio-theme .rd-ct-crumb strong {
    color: #e2e8f0;
    font-weight: 600;
}

body.studio-theme .rd-ct-hero-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
    align-items: end;
}

body.studio-theme .rd-c-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.28);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #a3e635;
    margin-bottom: 0.6rem;
}

body.studio-theme .rd-c-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a3e635;
    box-shadow: 0 0 8px #a3e635;
    display: inline-block;
}

body.studio-theme .rd-ct-hero .page-title,
body.studio-theme .page-hero .page-title,
body.studio-theme .rd-ct-hero h1 {
    margin: 0.55rem 0 0.45rem !important;
    font-size: clamp(1.75rem, 3.2vw, 2.45rem) !important;
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #f8fafc !important;
    background: none !important;
    -webkit-text-fill-color: #f8fafc !important;
    text-align: left !important;
}

body.studio-theme .rd-ct-hero .page-title span,
body.studio-theme .page-hero .page-title span,
body.studio-theme .rd-ct-hero h1 span,
body.studio-theme .gradient-text {
    background: linear-gradient(110deg, #67e8f9, #a3e635) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    display: inline;
}

body.studio-theme .rd-ct-hero .page-description,
body.studio-theme .page-hero .page-description {
    color: #94a3b8 !important;
    margin: 0 !important;
    max-width: 540px;
    line-height: 1.65 !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

/* 3-Step flow — friendlier connected pills */
body.studio-theme .rd-ct-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.studio-theme .rd-ct-steps.rd-ct-steps-flow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

body.studio-theme .rd-ct-steps div,
body.studio-theme .rd-ct-step {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #243044;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

body.studio-theme .rd-ct-steps b,
body.studio-theme .rd-ct-step b {
    color: #a3e635;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

body.studio-theme .rd-ct-steps span,
body.studio-theme .rd-ct-step span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

body.studio-theme .rd-ct-step-arrow {
    color: #475569;
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.8;
}

body.studio-theme .rd-ct-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

body.studio-theme .rd-ct-trust span {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

body.studio-theme .rd-ct-hero .page-title,
body.studio-theme .page-hero .page-title,
body.studio-theme .rd-ct-hero h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.45rem) !important;
}

@media (max-width: 900px) {
    body.studio-theme .rd-ct-hero-row {
        grid-template-columns: 1fr;
    }
    body.studio-theme .rd-ct-steps.rd-ct-steps-flow {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}

/* --------------------------------------------------------------------------
   WORKSPACE PANELS — friendly, compact glass cards
   -------------------------------------------------------------------------- */
body.studio-theme .upscaler-section,
body.studio-theme .rd-ct-workspace,
body.studio-theme .tool-section,
body.studio-theme section.upscaler-section {
    background: transparent !important;
    padding: 0.25rem 0 2rem !important;
    position: relative;
    z-index: 1;
}

body.studio-theme .filter-layout.rd-ct-layout,
body.studio-theme .filter-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

body.studio-theme .filter-layout.clothes-changer-layout {
    grid-template-columns: 1fr 1fr !important;
}

/* Input & Output Panels — equal, softer */
body.studio-theme .filter-input-panel.rd-ct-panel,
body.studio-theme .filter-output-panel.rd-ct-panel,
body.studio-theme .filter-input-panel,
body.studio-theme .filter-output-panel,
body.studio-theme .upscaler-container,
body.studio-theme .voice-tool-container {
    background: linear-gradient(180deg, rgba(20, 28, 45, 0.96), rgba(12, 18, 32, 0.98)) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22) !important;
    color: #e2e8f0 !important;
    padding: 1.1rem 1.15rem 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
    position: relative;
    align-self: stretch !important;
}

body.studio-theme .filter-output-panel {
    position: relative !important;
    top: auto !important;
}

body.studio-theme .upscaler-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Panel Header */
body.studio-theme .rd-ct-panel-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0.15rem !important;
}

body.studio-theme .rd-ct-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.studio-theme .rd-ct-panel-ico {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(163, 230, 53, 0.14);
    color: #a3e635;
    flex-shrink: 0;
}

body.studio-theme .rd-ct-panel-head strong {
    font-size: 0.92rem !important;
    font-weight: 750 !important;
    color: #f8fafc !important;
    letter-spacing: -0.01em;
}

body.studio-theme .rd-ct-panel-head em {
    font-style: normal !important;
    font-size: 0.74rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    background: rgba(148, 163, 184, 0.08);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

body.studio-theme .rd-ct-panel-head em.is-ready {
    color: #052e16 !important;
    background: rgba(163, 230, 53, 0.85) !important;
}

body.studio-theme .rd-ct-panel-head em.is-processing {
    color: #082f49 !important;
    background: rgba(103, 232, 249, 0.85) !important;
}

/* --------------------------------------------------------------------------
   UPLOAD ZONE — inviting, compact
   -------------------------------------------------------------------------- */
body.studio-theme .upload-box-modern,
body.studio-theme .upload-container-modern,
body.studio-theme .rd-ct-upload {
    background: rgba(8, 14, 26, 0.55) !important;
    background-image: none !important;
    border: 1.5px dashed rgba(103, 232, 249, 0.35) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    min-height: 168px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem !important;
}

body.studio-theme .upload-box-modern:hover,
body.studio-theme .upload-box-modern.drag-over,
body.studio-theme .upload-box-modern.is-drag,
body.studio-theme .rd-ct-upload:hover,
body.studio-theme .rd-ct-upload.is-drag {
    border-color: #a3e635 !important;
    background: rgba(163, 230, 53, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.1) !important;
    transform: translateY(-1px);
}

body.studio-theme .upload-content-modern,
body.studio-theme .rd-ct-upload-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.15rem !important;
}

body.studio-theme .upload-icon-modern {
    width: 2.6rem !important;
    height: 2.6rem !important;
    padding: 0.55rem !important;
    border-radius: 999px !important;
    background: rgba(103, 232, 249, 0.12) !important;
    color: #67e8f9 !important;
    stroke: #67e8f9 !important;
    box-sizing: content-box !important;
}

body.studio-theme .upload-title-modern,
body.studio-theme .upload-content-modern h3,
body.studio-theme .rd-ct-upload-empty strong {
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0.55rem 0 0.15rem !important;
}

body.studio-theme .upload-description-modern,
body.studio-theme .upload-content-modern p,
body.studio-theme .rd-ct-upload-empty span {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
}

body.studio-theme .upload-icon-pulse {
    display: none !important;
}

body.studio-theme .preview-image-wrapper {
    background: #020617 !important;
    border-radius: 14px;
    overflow: hidden;
}

body.studio-theme .remove-image-modern,
body.studio-theme .preview-image-wrapper button,
body.studio-theme .rd-ct-remove {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    border-radius: 10px !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.studio-theme .remove-image-modern:hover,
body.studio-theme .rd-ct-remove:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

body.studio-theme .face-swap-uploads {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

body.studio-theme .face-swap-uploads .upload-item {
    min-width: 0;
    width: 100%;
}

body.studio-theme .face-swap-uploads .upload-box-modern,
body.studio-theme .face-swap-uploads .upload-content-modern,
body.studio-theme .face-swap-uploads .upload-preview-modern {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 220px;
}

body.studio-theme .face-swap-uploads .preview-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

body.studio-theme .face-swap-uploads .preview-image-wrapper video,
body.studio-theme .face-swap-uploads .preview-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

body.studio-theme .face-swap-uploads .upload-preview-modern {
    display: none !important;
    flex-direction: column;
}

body.studio-theme .face-swap-uploads .upload-box-modern.has-preview .upload-content-modern {
    display: none !important;
}

body.studio-theme .face-swap-uploads .upload-box-modern.has-preview .upload-preview-modern {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 220px !important;
}

body.studio-theme .upload-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Friendly tip under upload */
body.studio-theme .rd-ct-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(163, 230, 53, 0.08);
    border: 1px solid rgba(163, 230, 53, 0.2);
    color: #d9f99d;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

body.studio-theme .rd-ct-tip span {
    color: #a3e635;
    font-size: 0.85rem;
}

body.studio-theme .rd-ct-tip p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
}

/* --------------------------------------------------------------------------
   OUTPUT CANVAS — soft empty state
   -------------------------------------------------------------------------- */
body.studio-theme .output-title-wrapper {
    display: none !important;
}

body.studio-theme .output-title {
    display: none !important;
}

body.studio-theme .filter-output-panel .output-content-wrapper,
body.studio-theme .filter-output-panel .output-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body.studio-theme .output-placeholder,
body.studio-theme .rd-ct-canvas,
body.studio-theme .output-container.rd-ct-canvas,
body.studio-theme #output .output-placeholder,
body.studio-theme #outputPlaceholder {
    flex: 1 1 auto !important;
    min-height: 200px !important;
    height: auto !important;
    border-radius: 16px !important;
    border: 1px dashed rgba(148, 163, 184, 0.22) !important;
    background: rgba(8, 14, 26, 0.5) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 1.5rem 1.25rem !important;
    position: relative;
    box-sizing: border-box !important;
}

body.studio-theme .output-placeholder h3,
body.studio-theme .rd-ct-placeholder strong {
    color: #e2e8f0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0.55rem 0 0.2rem !important;
}

body.studio-theme .output-placeholder p,
body.studio-theme .rd-ct-placeholder span {
    color: #64748b !important;
    font-size: 0.8rem !important;
    max-width: 220px;
    margin: 0 auto !important;
}

body.studio-theme .output-placeholder svg {
    color: #67e8f9 !important;
    stroke: #67e8f9 !important;
    opacity: 0.55 !important;
    width: 40px !important;
    height: 40px !important;
}

body.studio-theme .output-image-wrapper img,
body.studio-theme .rd-ct-canvas img,
body.studio-theme #output img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */
body.studio-theme .btn-generate,
body.studio-theme .process-container .btn-generate,
body.studio-theme button.btn-generate,
body.studio-theme .rd-ct-run,
body.studio-theme button.rd-ct-run {
    background: linear-gradient(135deg, #a3e635, #84cc16) !important;
    color: #052e16 !important;
    border: none !important;
    border-radius: 999px !important;
    font: 800 0.9rem/1 Inter, sans-serif !important;
    padding: 0.85rem 1.25rem !important;
    min-height: 48px !important;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(163, 230, 53, 0.22) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}

body.studio-theme .btn-generate:hover:not(:disabled),
body.studio-theme .rd-ct-run:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(163, 230, 53, 0.3) !important;
}

body.studio-theme .btn-generate:disabled,
body.studio-theme .rd-ct-run:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

body.studio-theme .btn-generate svg,
body.studio-theme .rd-ct-run svg {
    stroke: #052e16 !important;
    color: #052e16 !important;
}

body.studio-theme .process-container {
    margin-top: auto !important;
    width: 100% !important;
}

/* Action Buttons (Download PNG / Reset) */
body.studio-theme .rd-ct-actions,
body.studio-theme .output-actions,
body.studio-theme .result-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 0.65rem !important;
    margin-top: 0.75rem !important;
    width: 100% !important;
}

body.studio-theme .rd-ct-secondary,
body.studio-theme .btn-reset,
body.studio-theme .btn-secondary-modern {
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    font: 700 0.9rem/1 Inter, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid #334155 !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.studio-theme .rd-ct-secondary:hover,
body.studio-theme .btn-reset:hover {
    background: #1e293b !important;
    border-color: #64748b !important;
}

body.studio-theme .rd-ct-primary,
body.studio-theme .btn-download,
body.studio-theme .btn-download-modern,
body.studio-theme .download-btn {
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    font: 800 0.9rem/1 Inter, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    border: 0 !important;
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28) !important;
    transition: filter 0.15s ease, transform 0.15s ease;
}

body.studio-theme .rd-ct-primary:hover,
body.studio-theme .btn-download:hover,
body.studio-theme .download-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS & INPUTS (Dark Neon Theme)
   -------------------------------------------------------------------------- */
body.studio-theme label,
body.studio-theme .form-label,
body.studio-theme .option-label,
body.studio-theme .control-label,
body.studio-theme .scale-title,
body.studio-theme .section-subtitle {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

body.studio-theme input[type="text"]:not(.search-input),
body.studio-theme input[type="number"],
body.studio-theme textarea,
body.studio-theme select,
body.studio-theme .filter-select,
body.studio-theme .prompt-textarea {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

body.studio-theme input[type="text"]:not(.search-input):focus,
body.studio-theme textarea:focus,
body.studio-theme select:focus {
    border-color: #67e8f9 !important;
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12) !important;
    outline: none !important;
}

body.studio-theme .rd-ct-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: #cbd5e1;
    cursor: default;
}

body.studio-theme .rd-ct-option input,
body.studio-theme input[type="checkbox"] {
    accent-color: #a3e635 !important;
}

/* Scale Buttons */
body.studio-theme .scale-buttons-new {
    display: flex;
    gap: 0.5rem;
}

body.studio-theme .scale-btn-new {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #94a3b8 !important;
    border-radius: 10px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
}

body.studio-theme .scale-btn-new.active {
    background: rgba(163, 230, 53, 0.12) !important;
    border-color: #a3e635 !important;
    color: #a3e635 !important;
}

/* Turnstile & Success Messages */
body.studio-theme .turnstile-wrapper,
body.studio-theme .turnstile-container {
    background: transparent !important;
    display: flex;
    justify-content: center;
}

body.studio-theme .success-message {
    background: rgba(163, 230, 53, 0.12) !important;
    border: 1px solid rgba(163, 230, 53, 0.35) !important;
    color: #d9f99d !important;
    border-radius: 12px;
    padding: 0.65rem 1rem;
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (3 Steps · design-c-tool.php)
   -------------------------------------------------------------------------- */
body.studio-theme .rd-ct-howto {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.85rem !important;
    margin-top: 1.25rem !important;
}

body.studio-theme .rd-ct-howto article {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid #243044 !important;
    border-radius: 18px !important;
    padding: 1.25rem !important;
}

body.studio-theme .rd-ct-howto b {
    display: inline-grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: rgba(163, 230, 53, 0.12) !important;
    color: #a3e635 !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

body.studio-theme .rd-ct-howto strong {
    display: block !important;
    margin-bottom: 0.35rem !important;
    font-size: 1.05rem !important;
    color: #f1f5f9 !important;
}

body.studio-theme .rd-ct-howto p {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
}

@media (max-width: 900px) {
    body.studio-theme .rd-ct-howto {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   FEATURE SHOWCASE & COMPARISON ROWS
   -------------------------------------------------------------------------- */
body.studio-theme .feature-showcase-section,
body.studio-theme .features,
body.studio-theme .how-it-works,
body.studio-theme .rd-c-section {
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 3.5rem 0 !important;
    position: relative;
    z-index: 1;
}

body.studio-theme .rd-c-section-alt {
    background: rgba(11, 18, 32, 0.6) !important;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

body.studio-theme .rd-c-section-head {
    margin-bottom: 2rem;
    text-align: left;
}

body.studio-theme .rd-c-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a3e635;
    margin: 0 0 0.4rem;
}

body.studio-theme .rd-c-section-head h2,
body.studio-theme .feature-showcase-title,
body.studio-theme .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #f8fafc !important;
    margin: 0 0 0.5rem !important;
}

body.studio-theme .feature-showcase-description,
body.studio-theme .section-description {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

body.studio-theme .feature-showcase-btn {
    background: linear-gradient(135deg, #a3e635, #84cc16) !important;
    color: #052e16 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.4rem !important;
    margin-top: 1rem !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(163, 230, 53, 0.2) !important;
}

body.studio-theme .comparison-image-wrapper,
body.studio-theme .feature-showcase-images img {
    border-radius: 18px !important;
    border: 1px solid #243044 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

body.studio-theme .prompt-box {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid #243044 !important;
    color: #cbd5e1 !important;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   TOOL CARDS — match redesign.css / design-c.php exactly
   -------------------------------------------------------------------------- */
body.studio-theme .rd-c-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.85rem !important;
}

body.studio-theme .rd-c-card {
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #121a2b, #0b1220) !important;
    border: 1px solid #1f2937 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
}

body.studio-theme .rd-c-card:hover {
    border-color: rgba(103, 232, 249, 0.55) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(103, 232, 249, 0.08) !important;
}

body.studio-theme .rd-c-card-media {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    background: #1e293b !important;
}

body.studio-theme .rd-c-card-media img,
body.studio-theme .rd-c-card img {
    width: 100% !important;
    height: 118px !important;
    object-fit: cover !important;
    display: block !important;
    background: #1e293b !important;
    transition: transform 0.35s ease !important;
}

body.studio-theme .rd-c-card:hover .rd-c-card-media img,
body.studio-theme .rd-c-card:hover img {
    transform: scale(1.05) !important;
}

/* Lime pill tag at bottom — must NOT set top+bottom or it stretches into a tall oval */
body.studio-theme .rd-c-card-tag {
    position: absolute !important;
    top: auto !important;
    bottom: 0.65rem !important;
    left: 0.65rem !important;
    right: auto !important;
    height: auto !important;
    width: auto !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #052e16 !important;
    background: #a3e635 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.22rem 0.5rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    line-height: 1.2 !important;
}

body.studio-theme .rd-c-card-body {
    display: grid !important;
    gap: 0.35rem !important;
    padding: 0.9rem 0.95rem 1rem !important;
    flex: initial !important;
}

body.studio-theme .rd-c-card-body strong,
body.studio-theme .rd-c-card strong {
    color: #f1f5f9 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

body.studio-theme .rd-c-card-body > span {
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
    flex: initial !important;
}

body.studio-theme .rd-c-card-body em,
body.studio-theme .rd-c-card em {
    font-style: normal !important;
    margin-top: 0.25rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #67e8f9 !important;
}

body.studio-theme .rd-c-card:hover em {
    color: #a3e635 !important;
}

@media (max-width: 1100px) {
    body.studio-theme .rd-c-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 760px) {
    body.studio-theme .rd-c-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    body.studio-theme .rd-c-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   FAQ SECTION (Dark Accordion)
   -------------------------------------------------------------------------- */
body.studio-theme .faq {
    background: transparent !important;
    padding: 3rem 0 !important;
}

body.studio-theme .faq-grid {
    display: grid;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

body.studio-theme .faq-item {
    background: linear-gradient(180deg, #121a2b, #0b1220) !important;
    border: 1px solid #243044 !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

body.studio-theme .faq-item:hover {
    border-color: #334155 !important;
}

body.studio-theme .faq-question {
    padding: 1.1rem 1.25rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 1rem;
}

body.studio-theme .faq-question h3 {
    color: #f1f5f9 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

body.studio-theme .faq-icon {
    color: #67e8f9 !important;
    stroke: #67e8f9 !important;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

body.studio-theme .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

body.studio-theme .faq-answer {
    padding: 0 1.25rem 1.1rem !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
body.studio-theme .footer {
    background: rgba(0, 0, 0, 0.45) !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
    padding: 3rem 0 1.5rem !important;
}

body.studio-theme .footer-description,
body.studio-theme .footer-bottom p,
body.studio-theme .footer-social-title {
    color: #94a3b8 !important;
}

body.studio-theme .footer-link {
    color: #a3e635 !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

body.studio-theme .footer-link:hover {
    color: #67e8f9 !important;
}

body.studio-theme #scrollToTopBtn {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    background: #a3e635 !important;
    color: #052e16 !important;
    border: none;
    border-radius: 50%;
    z-index: 1100 !important;
}

body.studio-theme .swal2-popup {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #243044 !important;
    font-size: 1rem !important;
    width: auto !important;
    min-width: 18em !important;
    max-width: min(28em, 92vw) !important;
    padding: 1.25rem 1.15rem !important;
    border-radius: 14px !important;
}

body.studio-theme .swal2-title {
    color: #f1f5f9 !important;
    font-size: 1.2rem !important;
}

body.studio-theme .swal2-html-container,
body.studio-theme .swal2-content {
    color: #cbd5e1 !important;
    font-size: 0.9375rem !important;
}

@media (max-width: 900px) {
    body.studio-theme .filter-layout.rd-ct-layout,
    body.studio-theme .filter-layout {
        grid-template-columns: 1fr !important;
    }

    body.studio-theme .filter-input-panel,
    body.studio-theme .filter-output-panel {
        min-height: 0 !important;
    }
}

/* ===== Unique per-tool studio chrome (matches studio-tool-ui.js classes) ===== */

/* Badge colors — class is on the badge itself */
body.studio-theme .rd-c-badge.rd-badge-cutout { background: rgba(163,230,53,0.12); color: #a3e635; border-color: rgba(163,230,53,0.35); }
body.studio-theme .rd-c-badge.rd-badge-cutout i { background: #a3e635; box-shadow: 0 0 8px #a3e635; }
body.studio-theme .rd-c-badge.rd-badge-enhance { background: rgba(56,189,248,0.12); color: #7dd3fc; border-color: rgba(56,189,248,0.35); }
body.studio-theme .rd-c-badge.rd-badge-enhance i { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
body.studio-theme .rd-c-badge.rd-badge-filter { background: rgba(244,114,182,0.12); color: #f9a8d4; border-color: rgba(244,114,182,0.35); }
body.studio-theme .rd-c-badge.rd-badge-filter i { background: #f472b6; box-shadow: 0 0 8px #f472b6; }
body.studio-theme .rd-c-badge.rd-badge-generate { background: rgba(167,139,250,0.14); color: #c4b5fd; border-color: rgba(167,139,250,0.4); }
body.studio-theme .rd-c-badge.rd-badge-generate i { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
body.studio-theme .rd-c-badge.rd-badge-editor { background: rgba(251,191,36,0.12); color: #fcd34d; border-color: rgba(251,191,36,0.35); }
body.studio-theme .rd-c-badge.rd-badge-editor i { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
body.studio-theme .rd-c-badge.rd-badge-mask { background: rgba(45,212,191,0.12); color: #5eead4; border-color: rgba(45,212,191,0.35); }
body.studio-theme .rd-c-badge.rd-badge-mask i { background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf; }
body.studio-theme .rd-c-badge.rd-badge-swap { background: rgba(251,113,133,0.12); color: #fda4af; border-color: rgba(251,113,133,0.35); }
body.studio-theme .rd-c-badge.rd-badge-swap i { background: #fb7185; box-shadow: 0 0 8px #fb7185; }
body.studio-theme .rd-c-badge.rd-badge-video { background: rgba(96,165,250,0.14); color: #93c5fd; border-color: rgba(96,165,250,0.4); }
body.studio-theme .rd-c-badge.rd-badge-video i { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
body.studio-theme .rd-c-badge.rd-badge-audio { background: rgba(52,211,153,0.12); color: #6ee7b7; border-color: rgba(52,211,153,0.35); }
body.studio-theme .rd-c-badge.rd-badge-audio i { background: #34d399; box-shadow: 0 0 8px #34d399; }
body.studio-theme .rd-c-badge.rd-badge-translate { background: rgba(251,146,60,0.12); color: #fdba74; border-color: rgba(251,146,60,0.35); }
body.studio-theme .rd-c-badge.rd-badge-translate i { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
body.studio-theme .rd-c-badge.rd-badge-prompt { background: rgba(129,140,248,0.14); color: #a5b4fc; border-color: rgba(129,140,248,0.4); }
body.studio-theme .rd-c-badge.rd-badge-prompt i { background: #818cf8; box-shadow: 0 0 8px #818cf8; }
body.studio-theme .rd-c-badge.rd-badge-mix { background: rgba(232,121,249,0.12); color: #f0abfc; border-color: rgba(232,121,249,0.35); }
body.studio-theme .rd-c-badge.rd-badge-mix i { background: #e879f9; box-shadow: 0 0 8px #e879f9; }

/* Step number colors + layout variants */
body.studio-theme .rd-ct-steps.rd-steps-enhance b { color: #38bdf8; }
body.studio-theme .rd-ct-steps.rd-steps-filter b { color: #f472b6; }
body.studio-theme .rd-ct-steps.rd-steps-generate b { color: #a78bfa; }
body.studio-theme .rd-ct-steps.rd-steps-editor b { color: #fbbf24; }
body.studio-theme .rd-ct-steps.rd-steps-mask b { color: #2dd4bf; }
body.studio-theme .rd-ct-steps.rd-steps-swap b { color: #fb7185; }
body.studio-theme .rd-ct-steps.rd-steps-video b { color: #60a5fa; }
body.studio-theme .rd-ct-steps.rd-steps-audio b { color: #34d399; }
body.studio-theme .rd-ct-steps.rd-steps-translate b { color: #fb923c; }
body.studio-theme .rd-ct-steps.rd-steps-prompt b { color: #818cf8; }
body.studio-theme .rd-ct-steps.rd-steps-mix b { color: #e879f9; }
body.studio-theme .rd-ct-steps.rd-steps-cutout b { color: #a3e635; }

body.studio-theme .rd-ct-steps.rd-steps-video .rd-ct-step,
body.studio-theme .rd-ct-steps.rd-steps-video div:not(.rd-ct-step-arrow) {
    border-color: rgba(96, 165, 250, 0.35);
}
body.studio-theme .rd-ct-steps.rd-steps-mask .rd-ct-step,
body.studio-theme .rd-ct-steps.rd-steps-mask div:not(.rd-ct-step-arrow) {
    border-style: dashed;
    border-color: rgba(45, 212, 191, 0.45);
}
body.studio-theme .rd-ct-steps.rd-steps-generate .rd-ct-step,
body.studio-theme .rd-ct-steps.rd-steps-generate div:not(.rd-ct-step-arrow) {
    background: linear-gradient(160deg, rgba(167,139,250,0.12), rgba(15,23,42,0.9));
}
body.studio-theme .rd-ct-steps.rd-steps-filter .rd-ct-step,
body.studio-theme .rd-ct-steps.rd-steps-filter div:not(.rd-ct-step-arrow) {
    background: linear-gradient(160deg, rgba(244,114,182,0.1), rgba(15,23,42,0.9));
}

/* Title gradient per family */
body.studio-theme.rd-tool-enhance .rd-ct-hero .page-title span { background: linear-gradient(110deg, #67e8f9, #38bdf8) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-filter .rd-ct-hero .page-title span { background: linear-gradient(110deg, #f9a8d4, #f472b6) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-generate .rd-ct-hero .page-title span { background: linear-gradient(110deg, #c4b5fd, #a78bfa) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-editor .rd-ct-hero .page-title span { background: linear-gradient(110deg, #fde68a, #fbbf24) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-mask .rd-ct-hero .page-title span { background: linear-gradient(110deg, #5eead4, #2dd4bf) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-swap .rd-ct-hero .page-title span { background: linear-gradient(110deg, #fda4af, #fb7185) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-video .rd-ct-hero .page-title span { background: linear-gradient(110deg, #93c5fd, #60a5fa) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-audio .rd-ct-hero .page-title span { background: linear-gradient(110deg, #6ee7b7, #34d399) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-translate .rd-ct-hero .page-title span { background: linear-gradient(110deg, #fdba74, #fb923c) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-prompt .rd-ct-hero .page-title span { background: linear-gradient(110deg, #a5b4fc, #818cf8) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body.studio-theme.rd-tool-mix .rd-ct-hero .page-title span { background: linear-gradient(110deg, #f0abfc, #e879f9) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* Panel / layout accents by body.rd-tool-* */
body.studio-theme.rd-tool-cutout .filter-input-panel { border-color: rgba(163,230,53,0.28) !important; }
body.studio-theme.rd-tool-enhance .filter-input-panel { border-color: rgba(56,189,248,0.3) !important; box-shadow: 0 0 0 1px rgba(56,189,248,0.1), 0 18px 40px rgba(2,6,23,0.35) !important; }
body.studio-theme.rd-tool-filter .filter-input-panel { border-color: rgba(244,114,182,0.28) !important; box-shadow: 0 0 0 1px rgba(244,114,182,0.1), 0 18px 40px rgba(2,6,23,0.35) !important; }
body.studio-theme.rd-tool-generate .filter-input-panel { border-color: rgba(167,139,250,0.32) !important; box-shadow: 0 0 0 1px rgba(167,139,250,0.12), 0 18px 40px rgba(2,6,23,0.35) !important; }
body.studio-theme.rd-tool-generate .filter-layout.rd-ct-layout { grid-template-columns: 1.15fr 0.85fr !important; }
body.studio-theme.rd-tool-editor .filter-input-panel { border-color: rgba(251,191,36,0.28) !important; }
body.studio-theme.rd-tool-mask .filter-input-panel { border-color: rgba(45,212,191,0.3) !important; }
body.studio-theme.rd-tool-mask .filter-layout.rd-ct-layout { grid-template-columns: 1.2fr 0.8fr !important; }
body.studio-theme.rd-tool-swap .filter-input-panel { border-color: rgba(251,113,133,0.3) !important; }
body.studio-theme.rd-tool-video .filter-input-panel { border-color: rgba(96,165,250,0.32) !important; }
body.studio-theme.rd-tool-video .filter-layout.rd-ct-layout { grid-template-columns: 0.95fr 1.05fr !important; }
body.studio-theme.rd-tool-audio .filter-input-panel { border-color: rgba(52,211,153,0.3) !important; }
body.studio-theme.rd-tool-translate .filter-input-panel { border-color: rgba(251,146,60,0.3) !important; }
body.studio-theme.rd-tool-prompt .filter-input-panel { border-color: rgba(129,140,248,0.32) !important; }
body.studio-theme.rd-tool-prompt .filter-layout.rd-ct-layout { grid-template-columns: 1.25fr 0.75fr !important; }
body.studio-theme.rd-tool-mix .filter-input-panel { border-color: rgba(232,121,249,0.3) !important; }

body.studio-theme.rd-tool-mask .rd-ct-panel-head { border-bottom-color: rgba(45,212,191,0.35); }
body.studio-theme.rd-tool-audio .rd-ct-panel-head { border-bottom-color: rgba(52,211,153,0.35); }
body.studio-theme.rd-tool-video .rd-ct-panel-head { border-bottom-color: rgba(96,165,250,0.35); }
body.studio-theme.rd-tool-generate .rd-ct-panel-head { border-bottom-color: rgba(167,139,250,0.35); }
body.studio-theme.rd-tool-filter .rd-ct-panel-head { border-bottom-color: rgba(244,114,182,0.35); }

/* Upload zone — class on .rd-ct-upload */
body.studio-theme .rd-ct-upload.rd-upload-cutout { border-color: rgba(163,230,53,0.35) !important; background: linear-gradient(180deg, rgba(163,230,53,0.06), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-enhance { border-color: rgba(56,189,248,0.35) !important; background: linear-gradient(180deg, rgba(56,189,248,0.07), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-filter { border-color: rgba(244,114,182,0.35) !important; background: linear-gradient(180deg, rgba(244,114,182,0.07), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-generate { border-color: rgba(167,139,250,0.4) !important; background: linear-gradient(180deg, rgba(167,139,250,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-editor { border-color: rgba(251,191,36,0.35) !important; background: linear-gradient(180deg, rgba(251,191,36,0.07), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-mask { border-color: rgba(45,212,191,0.4) !important; background: linear-gradient(180deg, rgba(45,212,191,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-swap { border-color: rgba(251,113,133,0.4) !important; background: linear-gradient(180deg, rgba(251,113,133,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-video { border-color: rgba(96,165,250,0.4) !important; background: linear-gradient(180deg, rgba(96,165,250,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-audio { border-color: rgba(52,211,153,0.4) !important; background: linear-gradient(180deg, rgba(52,211,153,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-translate { border-color: rgba(251,146,60,0.4) !important; background: linear-gradient(180deg, rgba(251,146,60,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-prompt { border-color: rgba(129,140,248,0.4) !important; background: linear-gradient(180deg, rgba(129,140,248,0.08), transparent) !important; }
body.studio-theme .rd-ct-upload.rd-upload-mix { border-color: rgba(232,121,249,0.4) !important; background: linear-gradient(180deg, rgba(232,121,249,0.08), transparent) !important; }

/* Output canvas — class on .rd-ct-canvas */
body.studio-theme .rd-ct-canvas.rd-canvas-cutout { background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 18px 18px !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-enhance { background: radial-gradient(circle at 30% 20%, rgba(56,189,248,0.12), transparent 55%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-filter { background: radial-gradient(circle at 70% 30%, rgba(244,114,182,0.14), transparent 50%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-generate { background: radial-gradient(circle at 50% 40%, rgba(167,139,250,0.18), transparent 55%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-editor { background: radial-gradient(circle at 40% 60%, rgba(251,191,36,0.12), transparent 50%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-mask { background: radial-gradient(circle at 50% 50%, rgba(45,212,191,0.14), transparent 55%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-swap { background: linear-gradient(135deg, rgba(251,113,133,0.1), rgba(167,139,250,0.08)), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-video { background: linear-gradient(180deg, rgba(96,165,250,0.12), transparent 60%), #020617 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-audio { background: repeating-linear-gradient(90deg, rgba(52,211,153,0.08) 0 2px, transparent 2px 12px), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-translate { background: radial-gradient(circle at 20% 80%, rgba(251,146,60,0.12), transparent 50%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-prompt { background: radial-gradient(circle at 60% 20%, rgba(129,140,248,0.16), transparent 55%), #0b1220 !important; }
body.studio-theme .rd-ct-canvas.rd-canvas-mix { background: linear-gradient(120deg, rgba(232,121,249,0.12), rgba(56,189,248,0.08)), #0b1220 !important; }

/* Run button — class on button + body.rd-tone-* fallback */
body.studio-theme .rd-ct-run.rd-run-lime,
body.studio-theme.rd-tone-lime .btn-generate,
body.studio-theme.rd-tone-lime .process-btn {
    background: linear-gradient(135deg, #a3e635, #84cc16) !important;
    color: #052e16 !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(163, 230, 53, 0.25) !important;
}
body.studio-theme .rd-ct-run.rd-run-cyan,
body.studio-theme.rd-tone-cyan .btn-generate {
    background: linear-gradient(135deg, #22d3ee, #38bdf8) !important;
    color: #082f49 !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-pink,
body.studio-theme.rd-tone-pink .btn-generate {
    background: linear-gradient(135deg, #f472b6, #e879f9) !important;
    color: #4a044e !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(244, 114, 182, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-violet,
body.studio-theme.rd-tone-violet .btn-generate {
    background: linear-gradient(135deg, #a78bfa, #818cf8) !important;
    color: #1e1b4b !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(167, 139, 250, 0.3) !important;
}
body.studio-theme .rd-ct-run.rd-run-amber,
body.studio-theme.rd-tone-amber .btn-generate {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #451a03 !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-teal,
body.studio-theme.rd-tone-teal .btn-generate {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6) !important;
    color: #042f2e !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(45, 212, 191, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-rose,
body.studio-theme.rd-tone-rose .btn-generate {
    background: linear-gradient(135deg, #fb7185, #f43f5e) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(251, 113, 133, 0.3) !important;
}
body.studio-theme .rd-ct-run.rd-run-blue,
body.studio-theme.rd-tone-blue .btn-generate {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(96, 165, 250, 0.3) !important;
}
body.studio-theme .rd-ct-run.rd-run-emerald,
body.studio-theme.rd-tone-emerald .btn-generate {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    color: #064e3b !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(52, 211, 153, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-orange,
body.studio-theme.rd-tone-orange .btn-generate {
    background: linear-gradient(135deg, #fb923c, #f97316) !important;
    color: #7c2d12 !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(251, 146, 60, 0.28) !important;
}
body.studio-theme .rd-ct-run.rd-run-indigo,
body.studio-theme.rd-tone-indigo .btn-generate {
    background: linear-gradient(135deg, #818cf8, #6366f1) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(129, 140, 248, 0.3) !important;
}
body.studio-theme .rd-ct-run.rd-run-fuchsia,
body.studio-theme.rd-tone-fuchsia .btn-generate {
    background: linear-gradient(135deg, #e879f9, #d946ef) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(232, 121, 249, 0.3) !important;
}

/* Mask tools strip */
body.studio-theme .rd-ct-mask-tools {
    border: 1px dashed rgba(45, 212, 191, 0.35) !important;
    background: rgba(45, 212, 191, 0.06) !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
}

@media (max-width: 900px) {
    body.studio-theme.rd-tool-generate .filter-layout.rd-ct-layout,
    body.studio-theme.rd-tool-mask .filter-layout.rd-ct-layout,
    body.studio-theme.rd-tool-prompt .filter-layout.rd-ct-layout,
    body.studio-theme.rd-tool-video .filter-layout.rd-ct-layout {
        grid-template-columns: 1fr !important;
    }
}
