@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #080A0F;
    --bg-card: #0E1118;
    --bg-surface: #131722;
    --bg-input: #171C28;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-focus: rgba(0, 255, 135, 0.5);

    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --text-muted: #64748B;

    --neon-green: #00FF87;
    --neon-cyan: #00F0FF;
    --accent: #00FF87;

    --radius-xl: 12px;
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, Menlo, monospace;
}

[data-theme="light"] {
    --bg-main: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-surface: #E2E8F0;
    --bg-input: #F8FAFC;

    --border-color: rgba(0, 0, 0, 0.12);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-focus: rgba(16, 185, 129, 0.6);

    --text-main: #0F172A;
    --text-dim: #475569;
    --text-muted: #64748B;

    --neon-green: #059669;
    --neon-cyan: #0284C7;
    --accent: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 135, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 40%);
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

.app-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 2.25rem;
    box-sizing: border-box;
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-container.studio-mode-active {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 1.5rem;
}

/* --- Typography & Layout --- */
.card {
    background: transparent;
    margin-bottom: 2.5rem;
    transition: opacity 0.3s;
    padding: 0 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.card--collapsed {
    display: none !important;
}

.card--active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Remove card header step badges, use simple flat headers */
.card__header {
    display: none;
}

.config-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 2-Column Balanced Dashboard Grid */
.config-balanced-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    align-items: start;
}

.config-col-left, .config-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 1100px) {
    .config-balanced-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.config-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #F1F5F9;
    letter-spacing: -0.01em;
}

/* --- Number Input Wrapper --- */
.number-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 0 0.5rem;
}

.number-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.75rem 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.number-input-wrapper input::-webkit-outer-spin-button,
.number-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
}

.number-btn:hover {
    color: var(--text-dim);
}

/* --- Standard Inputs --- */
.input,
.search-input,
.dark-input {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.input:focus,
.search-input:focus,
.dark-input:focus {
    outline: none;
    border-color: rgba(0, 255, 135, 0.5);
    background-color: #1A202E;
    box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12);
}

.form-hint {
    font-size: 0.74rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* --- Checkboxes --- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-focus);
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--text-main);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* --- Buttons --- */
.btn-browse {
    background: transparent;
    border: 1px solid var(--border-focus);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-browse:hover {
    background: var(--bg-input);
}

.btn-green-glow,
.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.2s;
}

.btn-green-glow:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-green-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Highlight Output Video Container --- */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 380px;
    max-height: 540px;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#result-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* --- Drop Zones --- */
.drop-zone {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(23, 28, 40, 0.4);
}

.drop-zone:hover {
    border-color: rgba(0, 255, 135, 0.4);
    background-color: rgba(23, 28, 40, 0.7);
}

.drop-zone--has-file {
    border-style: solid;
    border-color: var(--neon-green) !important;
    background-color: rgba(0, 255, 135, 0.04) !important;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--bg-input);
    border-left: 4px solid var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.toast--error {
    border-color: #ff3b30;
}

/* Keep multiselect for action types functional */
.multi-select {
    position: relative;
}

.multi-select__header {
    background-color: var(--bg-input);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.multi-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    padding: 0.5rem;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.multi-select__dropdown label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.multi-select__dropdown label:hover {
    background: var(--border-color);
}

/* --- Range Slider --- */
.range-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    margin-top: 0.5rem;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
}

/* --- Progress Bar --- */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--text-main);
    transition: width 0.4s ease;
}

/* --- Synchronized Top Nav Tabs --- */
.nav-tabs-wrapper {
    display: inline-flex;
    background: rgba(19, 23, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    gap: 0.35rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 0.55rem 1.1rem;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.nav-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn--active {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.15), rgba(0, 240, 255, 0.15)) !important;
    border-color: rgba(0, 255, 135, 0.45) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(0, 255, 135, 0.18), inset 0 0 12px rgba(0, 255, 135, 0.08);
}

.nav-tab-btn--active svg {
    color: var(--neon-green);
    filter: drop-shadow(0 0 6px rgba(0, 255, 135, 0.6));
}

/* --- 4-Slot Video Ingestion Grid --- */
.drop-zone-slot {
    background: rgba(23, 28, 40, 0.45);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    user-select: none;
}

.drop-zone-slot:hover {
    border-color: rgba(0, 255, 135, 0.35);
    background: rgba(23, 28, 40, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.drop-zone-slot--has-file {
    border-color: rgba(0, 255, 135, 0.5) !important;
    border-style: solid;
    background: rgba(0, 255, 135, 0.04) !important;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.08);
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.35rem;
}

.slot-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.slot-status {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.drop-zone-slot--has-file .slot-status {
    color: var(--neon-green, #00FF87);
    font-weight: 700;
}

.slot-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.slot-filename {
    font-size: 0.72rem;
    color: var(--neon-green, #00FF87);
    font-weight: 600;
    word-break: break-all;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
}

/* --- Premiere Pro Studio Styles --- */
.btn-studio-action {
    background: #1C1F26;
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-studio-action:hover {
    background: #2a2f3a;
    border-color: var(--border-focus);
}

/* --- Premiere Pro Studio Workspace & Two-Column Flush Stack (Zero Gap Guaranteed) --- */
.studio-workspace-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0.75rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .studio-workspace-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

.studio-main-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.studio-side-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ==========================================================================
   CAPCUT / PREMIERE PRO PROFESSIONAL NLE DOCKED WORKSPACE (FLUSH 100VH)
   ========================================================================== */
.capcut-studio-workspace {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #0B0E14;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* UPPER 3-COLUMN DOCK */
.capcut-upper-dock {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0 0.5rem;
    min-height: 420px;
    box-sizing: border-box;
}

.capcut-panel {
    background: #11141D;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.capcut-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.75rem;
    background: #161A26;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.capcut-panel-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

.capcut-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--neon-green);
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.25);
    padding: 1px 6px;
    border-radius: 3px;
}

/* MEDIA ASSETS POOL */
.capcut-media-panel {
    min-width: 220px;
    max-height: 480px;
}

.capcut-media-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.capcut-media-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.capcut-media-item:hover, .capcut-media-item.active {
    background: rgba(0, 255, 135, 0.08);
    border-color: rgba(0, 255, 135, 0.3);
}

/* CENTER PROGRAM MONITOR (FLUSH CAPCUT VIEWPORT) */
.capcut-monitor-panel {
    background: #080A0F;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.capcut-monitor-container {
    position: relative;
    width: auto;
    max-width: 100%;
    height: 380px;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0,0,0,0.95);
    margin: auto;
}

/* RIGHT CAPCUT TABBED INSPECTOR */
.capcut-inspector-panel {
    min-width: 280px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.capcut-tab-nav {
    display: flex;
    background: #101420;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.capcut-tab-nav::-webkit-scrollbar {
    height: 3px;
}

.capcut-tab-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.capcut-tab-btn {
    flex: 1 0 auto;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.45rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: all 0.15s ease;
}

.capcut-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.capcut-tab-btn.active {
    color: #00FF87;
    border-bottom-color: #00FF87;
    background: rgba(0, 255, 135, 0.08);
}

.capcut-tab-btn[data-tab="tab-export"] {
    background: rgba(0, 255, 135, 0.12);
    color: #00FF87;
    border-left: 1px solid rgba(0, 255, 135, 0.2);
}

.capcut-tab-btn[data-tab="tab-export"]:hover {
    background: rgba(0, 255, 135, 0.2);
    color: #fff;
}

.capcut-inspector-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.65rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.capcut-tab-content {
    display: none;
}

.capcut-tab-content.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

/* LOWER DOCKED TIMELINE DECK */
.capcut-lower-dock {
    background: #0E121A;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.65rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Media Query for Compact Screens */
@media (max-width: 1100px) {
    .capcut-upper-dock {
        grid-template-columns: 1fr;
    }
    .capcut-media-panel, .capcut-inspector-panel {
        max-height: 280px;
    }
}

.studio-btn-frame {
    background: rgba(0, 255, 135, 0.1) !important;
    border: 1px solid rgba(0, 255, 135, 0.35) !important;
    color: #00FF87 !important;
    font-weight: 700 !important;
    font-size: 0.74rem !important;
    padding: 0.42rem 0.6rem !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: -0.01em;
}

.studio-btn-frame:hover {
    background: rgba(0, 255, 135, 0.25) !important;
    border-color: #00FF87 !important;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.35) !important;
    transform: translateY(-1px);
}

.studio-video-stage {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* --- Live Match Broadcast Progress & Timecode Overlay Bar --- */
.monitor-match-replay-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 65%, transparent 100%);
    padding: 0.5rem 0.85rem 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 20;
    opacity: 0.95;
    transition: opacity 0.25s ease;
}

.studio-monitor-wrapper:hover .monitor-match-replay-bar {
    opacity: 1;
}

.monitor-btn-match-play {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.monitor-btn-match-play:hover {
    color: var(--neon-green, #00FF87);
}

.monitor-match-period-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 255, 135, 0.18);
    color: var(--neon-green, #00FF87);
    border: 1px solid rgba(0, 255, 135, 0.35);
    letter-spacing: 0.5px;
}

.monitor-match-timecode {
    font-family: monospace;
    font-size: 0.78rem;
    color: #e5e7eb;
    white-space: nowrap;
}

.monitor-match-progress-track {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.monitor-match-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--neon-green, #00FF87);
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.08s linear;
}

.monitor-match-progress-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.monitor-match-progress-track:hover {
    height: 7px;
}

.monitor-match-clock-badge {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.monitor-btn-fullscreen {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.15s ease;
}

.monitor-btn-fullscreen:hover {
    color: #fff;
}

/* Real-Time Optical Flash / Glow Transition Layer */
.studio-flash-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.05s ease-out;
    mix-blend-mode: screen;
}

.studio-flash-layer.flash-magicalxavi {
    background: radial-gradient(circle, #fff7ed 10%, #fed7aa 40%, #c084fc 75%, rgba(99,102,241,0.5) 100%);
    mix-blend-mode: screen;
}

.studio-flash-layer.flash-ritesh {
    background: radial-gradient(circle, #ffffff 10%, #60a5fa 35%, #ef4444 70%, #1e1b4b 100%);
    mix-blend-mode: screen;
}

.studio-flash-layer.flash-mascomps {
    background: radial-gradient(circle, #ffffff 15%, #93c5fd 45%, #3b82f6 75%, #1d4ed8 100%);
    mix-blend-mode: screen;
}

.studio-flash-layer.flash-warm {
    background: radial-gradient(circle, #fff2e0 0%, #ffaa33 60%, #e67300 100%);
    mix-blend-mode: screen;
}

.studio-flash-layer.flash-black {
    background: #000000;
    mix-blend-mode: normal;
}

/* Warm Golden Dream Bloom Overlay (Tunnel Look) */
.studio-bloom-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    background: radial-gradient(ellipse at 50% 40%, rgba(255, 185, 80, 0.45) 0%, rgba(230, 120, 20, 0.25) 55%, rgba(0, 0, 0, 0.25) 100%);
    mix-blend-mode: screen;
    backdrop-filter: blur(1.5px);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Live Video Monitor Color Grading Filters */
.filter-magicalxavi-cc {
    filter: contrast(1.18) saturate(1.30) brightness(1.04) sepia(0.08) drop-shadow(0 0 1px rgba(255,200,100,0.3));
}

.filter-ritesh-cc {
    filter: contrast(1.25) saturate(1.42) brightness(1.01) drop-shadow(0 0 0.5px rgba(0,0,0,0.92));
}

.filter-mascomps-cc {
    filter: contrast(1.22) saturate(1.35) brightness(1.02) drop-shadow(0 0 0.5px rgba(0,0,0,0.9));
}

.filter-cinematic-cc {
    filter: contrast(1.15) saturate(1.25) brightness(1.02);
}

.filter-golden-bloom {
    filter: contrast(1.1) saturate(1.3) sepia(0.25) brightness(1.05);
}

.filter-vibrant {
    filter: contrast(1.2) saturate(1.4) brightness(1.0);
}

/* Real-Time Live Monitor High-Definition Edge Sharpening */
.filter-sharpen-active {
    filter: contrast(1.08) saturate(1.06) drop-shadow(0 0 0.5px rgba(0,0,0,0.85));
}

.filter-magicalxavi-cc.filter-sharpen-active {
    filter: contrast(1.24) saturate(1.35) brightness(1.05) sepia(0.08) drop-shadow(0 0 0.6px rgba(0,0,0,0.85));
}

.filter-ritesh-cc.filter-sharpen-active {
    filter: contrast(1.30) saturate(1.48) brightness(1.02) drop-shadow(0 0 0.8px rgba(0,0,0,0.98));
}

.filter-mascomps-cc.filter-sharpen-active {
    filter: contrast(1.28) saturate(1.40) brightness(1.03) drop-shadow(0 0 0.75px rgba(0,0,0,0.95));
}

.filter-cinematic-cc.filter-sharpen-active {
    filter: contrast(1.22) saturate(1.28) brightness(1.03) drop-shadow(0 0 0.5px rgba(0,0,0,0.85));
}

.filter-golden-bloom.filter-sharpen-active {
    filter: contrast(1.16) saturate(1.34) sepia(0.25) brightness(1.06) drop-shadow(0 0 0.5px rgba(0,0,0,0.85));
}

.filter-vibrant.filter-sharpen-active {
    filter: contrast(1.26) saturate(1.44) brightness(1.02) drop-shadow(0 0 0.5px rgba(0,0,0,0.85));
}

/* Dedicated Real-Time Live Monitor Broadcast Cinematic Vignette Layer */
.studio-vignette-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.45) 82%, rgba(0,0,0,0.88) 100%);
    mix-blend-mode: multiply;
    transition: opacity 0.25s ease;
}

.video-vignette-active {
    box-shadow: inset 0 0 75px rgba(0, 0, 0, 0.85) !important;
}

/* Draggable Transition Palette Chips in Inspector */
.trans-chip-drag {
    background: #1C2333;
    border: 1px solid rgba(0, 255, 135, 0.35);
    color: #00FF87;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: grab;
    user-select: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.trans-chip-drag:hover {
    background: rgba(0, 255, 135, 0.2);
    border-color: #00FF87;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(0, 255, 135, 0.3);
}

.trans-chip-drag:active {
    cursor: grabbing;
}

/* Premiere Pro / CapCut Cut-Point Seam Drop Target & Transition Badge */
.timeline-cut-point-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    margin-left: -10px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    pointer-events: none; /* Let clicks pass directly through to clips unless on chip or dragging */
}

.timeline-cut-point-zone:hover {
    background: rgba(0, 255, 135, 0.12);
}

.timeline-cut-point-zone.drag-target-hover {
    background: rgba(0, 255, 135, 0.35) !important;
    border-left: 2px dashed #00FF87;
    border-right: 2px dashed #00FF87;
    pointer-events: auto;
}

.timeline-cut-transition-chip {
    pointer-events: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #34d399;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 26;
    user-select: none;
}

.timeline-cut-transition-chip:hover {
    transform: scale(1.1);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.7);
}

.timeline-cut-transition-chip.trans-type-magicalxavi-glow {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: #f472b6;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.timeline-cut-transition-chip.trans-type-ritesh-snap {
    background: linear-gradient(135deg, #2563eb, #dc2626);
    border-color: #60a5fa;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.timeline-cut-transition-chip.trans-type-mascomps-pop {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-color: #f472b6;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.timeline-cut-transition-chip.trans-type-warm-gold {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #fbbf24;
}

.timeline-cut-transition-chip.trans-type-crossfade {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #38bdf8;
}

.timeline-cut-transition-chip.trans-type-black-dip {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-color: #9ca3af;
}

/* --- CapCut / Premiere Pro Transform Gizmo for Logo --- */
.logo-transform-gizmo {
    position: absolute;
    z-index: 20;
    cursor: move;
    border: 2px solid #00FF87;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.45);
    box-sizing: border-box;
    user-select: none;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.logo-transform-gizmo img#studio-logo-overlay {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: none !important;
    object-fit: fill !important;
    position: static !important;
}

/* Transform Handles (CapCut / Premiere Pro style white squares/circles with green border) */
.gizmo-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #00FF87;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 25;
    transition: transform 0.1s ease;
}

.gizmo-handle:hover {
    background: #00FF87;
    border-color: #ffffff;
    transform: scale(1.3);
}

.handle-tl { top: -6px; left: -6px; cursor: nwse-resize; }
.handle-tr { top: -6px; right: -6px; cursor: nesw-resize; }
.handle-bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
.handle-br { bottom: -6px; right: -6px; cursor: nwse-resize; }

.handle-tm { top: -6px; left: calc(50% - 6px); cursor: ns-resize; border-radius: 50%; }
.handle-bm { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize; border-radius: 50%; }
.handle-ml { top: calc(50% - 6px); left: -6px; cursor: ew-resize; border-radius: 50%; }
.handle-mr { top: calc(50% - 6px); right: -6px; cursor: ew-resize; border-radius: 50%; }

.gizmo-move-badge {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00FF87;
    color: #00FF87;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.8;
}

.crop-overlay {
    position: absolute;
    border: 2px dashed var(--neon-green, #00FF87);
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: all 0.1s ease-out;
}

.studio-playback-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: rgba(19, 23, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.studio-btn-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.7rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.studio-btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.studio-btn-play {
    background: linear-gradient(135deg, #00FF87 0%, #00F0FF 100%);
    color: #000;
    border: none;
    padding: 0.45rem 1.35rem;
    font-weight: 800;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0 16px rgba(0, 255, 135, 0.3);
}

.studio-btn-play:hover {
    box-shadow: 0 0 24px rgba(0, 255, 135, 0.55);
    transform: scale(1.03);
}

.studio-timecode-display {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--neon-green, #00FF87);
    letter-spacing: 0.02em;
    background: rgba(8, 10, 15, 0.85);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 135, 0.25);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* --- Timeline Panel Studio --- */
.studio-timeline-panel {
    background: rgba(10, 13, 20, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem !important;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.studio-inspector-card {
    background: rgba(14, 17, 24, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1rem 1.15rem !important;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

#studio-result-card {
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(14, 20, 27, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 135, 0.4) !important;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 30px rgba(0, 255, 135, 0.12);
}

.timeline-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.tool-btn {
    background: rgba(26, 31, 43, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.tool-btn:hover {
    background: rgba(37, 45, 61, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tool-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.timeline-ruler-container {
    position: relative;
    height: 22px;
    background: rgba(20, 24, 34, 0.9);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}
.timeline-ruler-container::-webkit-scrollbar {
    display: none;
}

.timeline-ruler {
    height: 100%;
    position: relative;
    min-width: 100%;
    cursor: pointer;
}

.ruler-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.62rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    padding-left: 4px;
    pointer-events: none;
    font-weight: 600;
}

.timeline-tracks-area {
    position: relative;
    min-height: 145px;
    background: rgba(8, 10, 15, 0.95);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
    overflow-y: hidden;
    user-select: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) #12151E;
}

.timeline-tracks-area::-webkit-scrollbar {
    height: 6px;
}
.timeline-tracks-area::-webkit-scrollbar-track {
    background: #0B0E14;
}
.timeline-tracks-area::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.4);
    border-radius: 4px;
}
.timeline-tracks-area::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* Playhead Needle (Draggable & Clickable) */
.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff334b;
    z-index: 50;
    cursor: ew-resize;
    pointer-events: auto;
}

.playhead-head {
    position: absolute;
    top: 0px;
    left: -7px;
    width: 16px;
    height: 18px;
    background: #ff334b;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
    cursor: grab;
    filter: drop-shadow(0 2px 4px rgba(255, 51, 75, 0.5));
}

.playhead-line {
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #ff334b;
    box-shadow: 0 0 8px rgba(255, 51, 75, 0.9);
}

/* Timeline Tracks */
.timeline-track {
    display: flex;
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.track-header {
    width: 90px;
    min-width: 90px;
    background: #12151E;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem;
    z-index: 15;
}

.track-tag {
    font-size: 0.62rem;
    font-weight: 900;
    background: #10b981;
    color: #000;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.track-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #D1D5DB;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-content {
    position: relative;
    flex-grow: 1;
    height: 100%;
    min-width: 800px;
}

/* Video Clips (V1) */
.timeline-clip-block {
    position: absolute;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border: 1px solid #60a5fa;
    border-radius: 5px;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.timeline-clip-block:hover {
    border-color: #93c5fd;
}

.timeline-clip-block.selected {
    border: 2px solid var(--neon-green, #00FF87) !important;
    box-shadow: 0 0 14px rgba(0, 255, 135, 0.5) !important;
}

/* Action Event Classification Themes on Timeline */
.timeline-clip-block.clip-type-goal {
    background: linear-gradient(135deg, #064e3b, #047857);
    border: 1px solid #10b981;
    border-left: 4px solid #00FF87 !important;
}

.timeline-clip-block.clip-type-pass {
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    border: 1px solid #38bdf8;
    border-left: 4px solid #00F0FF !important;
}

.timeline-clip-block.clip-type-defense {
    background: linear-gradient(135deg, #78350f, #b45309);
    border: 1px solid #f59e0b;
    border-left: 4px solid #F59E0B !important;
}

.timeline-clip-block.clip-type-keeper {
    background: linear-gradient(135deg, #581c87, #7e22ce);
    border: 1px solid #c084fc;
    border-left: 4px solid #A855F7 !important;
}

.timeline-clip-block.clip-type-image {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
    border: 1px solid #a78bfa;
    border-left: 4px solid #c084fc !important;
}

.clip-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.2px;
    margin-right: 4px;
}

/* --- Active Action Event Badge (In Transport Bar) --- */
.studio-active-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00FF87;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-active-action-badge .badge-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.studio-active-action-badge .badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-active-action-badge.badge-goal {
    background: rgba(0, 255, 135, 0.15);
    border-color: #00FF87;
    color: #00FF87;
    box-shadow: 0 0 14px rgba(0, 255, 135, 0.35);
}

.studio-active-action-badge.badge-pass {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00F0FF;
    color: #00F0FF;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.studio-active-action-badge.badge-defense {
    background: rgba(245, 158, 11, 0.15);
    border-color: #F59E0B;
    color: #F59E0B;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.studio-active-action-badge.badge-keeper {
    background: rgba(168, 85, 247, 0.15);
    border-color: #A855F7;
    color: #C084FC;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.clip-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: rgba(255, 255, 255, 0.3);
    cursor: ew-resize;
    z-index: 35;
    transition: background 0.15s, width 0.15s, box-shadow 0.15s;
    user-select: none;
    pointer-events: auto !important;
}

.clip-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}

.clip-handle:hover, .clip-handle.trimming {
    background: var(--neon-green, #00FF87) !important;
    width: 16px;
    z-index: 40;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.9);
}

.clip-handle-left {
    left: 0;
    border-radius: 4px 0 0 4px;
}

.clip-handle-left::after {
    left: 5px;
}

.clip-handle-right {
    right: 0;
    border-radius: 0 4px 4px 0;
}

.clip-handle-right::after {
    right: 5px;
}

.clip-block-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    font-size: 0.72rem;
}

.clip-btn-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    margin-left: 4px;
    transition: background 0.15s;
}

.clip-btn-del:hover {
    background: #ef4444;
}

.clip-btn-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    transition: all 0.15s ease;
    user-select: none;
}

.clip-btn-move:hover {
    background: var(--neon-green, #00FF87);
    color: #000;
    transform: scale(1.1);
}

.timeline-clip-block.drag-over {
    border: 2px dashed var(--neon-green, #00FF87) !important;
    background: rgba(0, 255, 135, 0.3) !important;
    transform: scale(1.02);
}

/* Track V2: Overlay / Logo Block */
.timeline-overlay-block {
    position: absolute;
    top: 5px;
    bottom: 5px;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid #f59e0b;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    color: #fef3c7;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.timeline-overlay-block:hover, .timeline-overlay-block.selected {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border-color: #fbbf24;
}

/* Audio & Music Wave Blocks */
.timeline-audio-block {
    position: absolute;
    top: 5px;
    bottom: 5px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid #3b82f6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    font-size: 0.72rem;
    color: #93c5fd;
    font-weight: 600;
}

.timeline-music-block {
    position: absolute;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(126, 34, 206, 0.45));
    border: 1px solid #c084fc;
    border-left: 4px solid #a855f7 !important;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.6rem;
    font-size: 0.72rem;
    color: #f3e8ff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    user-select: none;
    cursor: grab;
    transition: all 0.15s ease;
    overflow: hidden;
}

.timeline-music-block:hover {
    border-color: #e9d5ff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.timeline-music-btn-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    margin-left: 6px;
    transition: background 0.15s;
    pointer-events: auto;
}

.timeline-music-btn-del:hover {
    background: #ef4444;
}

/* Audio Keyframe Diamond Point Overlays on Timeline */
.audio-keyframe-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 9px;
    height: 9px;
    background: #ffd700;
    border: 1px solid #fff;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
    cursor: pointer;
    z-index: 30;
    pointer-events: auto;
    transition: transform 0.15s ease, background 0.15s;
}

.audio-keyframe-point:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    background: #00FF87;
    border-color: #00FF87;
}

.audio-kf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    color: #e2e8f0;
}

.audio-kf-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.1);
}

/* Timeline Track Drag & Drop Active Drop Target Guides */
.timeline-track.track-drag-active {
    background: rgba(0, 255, 135, 0.08) !important;
    outline: 2px dashed #00FF87 !important;
    outline-offset: -2px;
}

.timeline-track.track-drag-active-audio {
    background: rgba(168, 85, 247, 0.15) !important;
    outline: 2px dashed #a855f7 !important;
    outline-offset: -2px;
}

.timeline-tracks-area.deck-drag-active {
    background: rgba(0, 255, 135, 0.04) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Half Selector Tabs (1st Half / 2nd Half / Full Match) --- */
.half-tabs {
    display: flex;
    gap: 0;
}

.half-tab {
    flex: 1;
    padding: 0.55rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid var(--border-focus);
    border-bottom: none;
    background: var(--bg-main);
    color: var(--text-dim);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.15s;
    border-radius: 0;
}

.half-tab:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.half-tab:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.half-tab+.half-tab {
    border-left: none;
}

.half-tab--active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

.half-tab:hover:not(.half-tab--active) {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* --- Spin Animation & Spinner --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Non-Destructive Match Clip Trimming & Extension Badges */
.clip-ext-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.clip-ext-extended {
    background: rgba(0, 255, 135, 0.25);
    border: 1px solid #00FF87;
    color: #00FF87;
    box-shadow: 0 0 6px rgba(0, 255, 135, 0.3);
}

.clip-ext-trimmed {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.clip-period-tag {
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 0 4px;
    border-radius: 2px;
    margin-right: 3px;
}

/* Floating Trim HUD Tooltip while dragging */
.timeline-trim-hud {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: #0B0E17;
    border: 1px solid #00FF87;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 255, 135, 0.4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    transform: translate(-50%, -125%);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-trim-hud .hud-delta-pos {
    color: #00FF87;
    font-weight: 900;
}

.timeline-trim-hud .hud-delta-neg {
    color: #ef4444;
    font-weight: 900;
}

/* =========================================================================
   KAIROCLIPS-STYLE ACCORDION EVENT SELECTOR & PITCH ZONE FILTER
   ========================================================================= */
.kairo-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #11141B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.kairo-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kairo-master-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.kairo-master-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.kairo-status-subtitle {
    font-size: 0.78rem;
    color: #8E9BAE;
    margin-left: 1.7rem;
    font-weight: 500;
}

.kairo-accordion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
}

.kairo-accordion-card {
    background: #181B22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kairo-accordion-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.kairo-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    user-select: none;
}

.kairo-accordion-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.kairo-arrow {
    font-size: 0.75rem;
    color: #8E9BAE;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 14px;
}

.kairo-accordion-card.open .kairo-arrow {
    transform: rotate(180deg);
}

.kairo-category-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #E2E8F0;
}

.kairo-accordion-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.kairo-badge {
    background: #252A36;
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
}

.kairo-accordion-body {
    display: none;
    padding: 0.5rem 0.85rem 0.75rem 2.25rem;
    background: #14171E;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.kairo-accordion-card:not(.open) .kairo-accordion-body {
    display: none !important;
}

.kairo-subitem-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #CBD5E1;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.kairo-subitem-label:hover {
    color: #FFFFFF;
}

/* Outcome Pill Selector */
.kairo-outcome-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kairo-outcome-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.kairo-outcome-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #181B22;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.kairo-radio-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #E2E8F0;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.kairo-radio-label input[type="radio"] {
    accent-color: #A3E635; /* KairoClips vibrant lime */
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Where on pitch section */
.kairo-pitch-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kairo-pitch-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.kairo-pitch-subtitle {
    font-size: 0.78rem;
    color: #8E9BAE;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.kairo-pitch-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #181B22;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.kairo-checkbox-lime {
    accent-color: #A3E635;
    cursor: pointer;
}

/* ==========================================================================
   Responsive Multi-Device & Mobile (Android Chrome / iOS / Tablet) Rules
   ========================================================================== */
@media (max-width: 1024px) {
    .container, .app-container {
        width: 98vw;
        padding: 1.25rem 0.75rem;
    }
    .kairo-accordion-list {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .container, .app-container {
        width: 100vw;
        padding: 1rem 0.5rem;
        margin: 0;
    }
    .kairo-accordion-list {
        grid-template-columns: 1fr;
    }
    .kairo-outcome-options, .kairo-pitch-options {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
    .drop-zone-slot {
        min-width: 100%;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .header-nav-switch {
        width: 100%;
        justify-content: space-between;
    }
    .nav-tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .kairo-master-title {
        font-size: 0.84rem;
    }
    .kairo-category-name {
        font-size: 0.82rem;
    }
    .kairo-outcome-options, .kairo-pitch-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- Studio Inspector Suite Responsive Grid --- */
@media (max-width: 1200px) {
    .studio-inspector-card > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .studio-inspector-card > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    .studio-inspector-card > div:last-child > div {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT THEME OVERRIDES
   ========================================================================== */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:hover {
    background: var(--bg-input);
    border-color: var(--neon-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 135, 0.15);
}

[data-theme="light"] .theme-toggle-btn {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: #F8FAFC;
    border-color: #059669;
}

/* Light Theme Component Tweaks */
[data-theme="light"] .nav-tabs-wrapper {
    background: #E2E8F0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-tab-btn {
    color: #475569;
}

[data-theme="light"] .nav-tab-btn--active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .studio-inspector-card,
[data-theme="light"] .capcut-toolbar,
[data-theme="light"] .timeline-ruler-container,
[data-theme="light"] .timeline-tracks-area {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .track-header {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .track-name {
    color: #334155;
}

[data-theme="light"] .timeline-track {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ruler-tick {
    color: #64748B;
    border-left-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .capcut-tab-btn {
    color: #475569;
}

[data-theme="light"] .capcut-tab-btn.active {
    background: #F1F5F9;
    color: #059669;
    border-bottom-color: #059669;
}

[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"] {
    background: #F8FAFC;
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   TIMELINE END BOUNDARY MARKER & SNAPPING GUIDE (CapCut / Premiere Pro style)
   ========================================================================== */
.timeline-end-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 25;
    pointer-events: none;
    transition: left 0.08s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-end-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.6), 0 0 12px rgba(244, 63, 94, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 30;
    pointer-events: auto;
    cursor: default;
    user-select: none;
}

.timeline-end-line {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #f43f5e,
        #f43f5e 6px,
        transparent 6px,
        transparent 10px
    );
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.8), 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Magnet snap indicator during drag/trim */
.timeline-end-marker.snapping-active {
    width: 3px;
}

.timeline-end-marker.snapping-active .timeline-end-line {
    background: #00FF87 !important;
    box-shadow: 0 0 14px rgba(0, 255, 135, 1), 0 0 4px #ffffff !important;
}

.timeline-end-marker.snapping-active .timeline-end-badge {
    background: linear-gradient(135deg, #00FF87 0%, #10b981 100%) !important;
    color: #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 255, 135, 0.7) !important;
}

/* ==========================================================================
   CAPCUT STYLE SPEED CURVE CARDS & ADJUST SLIDERS
   ========================================================================== */
.speed-curve-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.speed-curve-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 135, 0.4);
    transform: translateY(-1px);
}

.speed-curve-card.active {
    background: rgba(0, 255, 135, 0.12);
    border-color: #00FF87;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.25);
}

.speed-curve-card .curve-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.speed-curve-card .curve-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #e2e8f0;
}

.speed-curve-card.active .curve-name {
    color: #00FF87;
}

/* Color Temp and Tint Slider Tracks matching CapCut */
.color-temp-slider {
    background: linear-gradient(to right, #38bdf8 0%, #94a3b8 50%, #f59e0b 100%) !important;
    height: 4px !important;
}

.color-tint-slider {
    background: linear-gradient(to right, #22c55e 0%, #94a3b8 50%, #d946ef 100%) !important;
    height: 4px !important;
}

/* Color Saturation Track */
.color-sat-slider {
    background: linear-gradient(to right, #475569 0%, #ef4444 100%) !important;
    height: 4px !important;
}

/* ==========================================================================
   FULL-SCREEN AUTH & MODAL OVERLAYS (BLOCKED WORKSPACE UNTIL AUTH)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important;
    padding: 1.5rem;
}

.modal-overlay .modal-content {
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modal3DPop {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(15deg) scale(0.85) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) scale(1) translateY(0);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(4deg);
    }
}


