
:root {
    
    --bg-primary: #0A0908;
    --bg-secondary: #141210;
    --bg-panel: #1F1C18;
    --border-color: rgba(210, 147, 63, 0.15);
    

    --accent-color: #D2933F;
    
    --accent-hover: #F0BD73;
    
    --gold-muted: #8F5B21;
    --gold-gradient: linear-gradient(135deg, #8F5B21 0%, #D2933F 45%, #F0BD73 100%);

    --text-primary: #FFFBEB;
    --text-secondary: #A8A29E;

    --success-color: #10B981;
    --danger-color: #F43F5E;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --header-height: 50px;
    --left-panel-width: 280px;
    --right-panel-width: 300px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.workspace-body {
    padding-top: 0;
}

.marquee-banner {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(90deg, rgba(210,147,63,0.18) 0%, rgba(210,147,63,0.06) 50%, rgba(210,147,63,0.18) 100%);
    border-bottom: 1px solid rgba(210,147,63,0.25);
    overflow: hidden;
    z-index: 50;
    display: flex;
    align-items: center;
}
.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}
.marquee-content {
    display: inline-block;
    padding: 0 60px;
    font-size: 13px;
    font-weight: 600;
    color: #F0BD73;
    letter-spacing: 0.3px;
    font-family: 'Tajawal', sans-serif;
}
.marquee-close {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
    z-index: 2;
}
.marquee-close:hover {
    background: rgba(244,63,94,0.3);
    border-color: rgba(244,63,94,0.5);
    color: #fff;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.top-nav {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    
    z-index: 100;
}

.workspace-body .navbar.modern-navbar {
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    padding: 0 !important;
}

.workspace-body .modern-navbar .nav-content {
    max-width: 100% !important;
    padding: 0 16px !important;
    
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-badge {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: row-reverse;
    
    overflow: hidden;
    position: relative;
    margin-top: 88px;
}

.left-panel,
.right-panel {
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.left-panel {
    width: var(--left-panel-width);
    border-left: none;
    
}

.right-panel {
    width: var(--right-panel-width);
    border-right: none;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.workspace-body ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.workspace-body ::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-body ::-webkit-scrollbar-thumb {
    background: rgba(210, 147, 63, 0.2);
    border-radius: 10px;
}

.workspace-body ::-webkit-scrollbar-thumb:hover {
    background: rgba(210, 147, 63, 0.5);
}

.panel-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.panel-section.flex-grow {
    flex: 1;
    display: flex;
    flex-direction: column;
    
    min-height: 0;
}

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

.section-header h3 {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.add-audio-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.add-audio-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.feature-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(210, 147, 63, 0.1), rgba(210, 147, 63, 0.05));
    border: 1px solid rgba(210, 147, 63, 0.2);
    color: #fcd34d;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    transition: 0.2s;
}

.feature-btn:hover {
    background: rgba(210, 147, 63, 0.2);
    border-color: rgba(210, 147, 63, 0.4);
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box i {
    position: absolute;
    right: 14px;
    
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 40px 10px 14px;
    
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-box input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    grid-auto-rows: 80px;
    
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.asset-item {
    height: 100%;
    
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}

.asset-item:hover {
    border-color: var(--text-secondary);
}

.asset-preview {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    
    min-width: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

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

.asset-name {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 4px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
}

.asset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.asset-item:hover .asset-overlay {
    opacity: 1;
}

.edit-icon-btn {
    background: var(--accent-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    margin-bottom: 4px;
}

.edit-text {
    font-size: 10px;
    color: white;
}

.center-stage {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

#canvas-container {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#drop-zone {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: transparent;
    border: 1px dashed rgba(210, 147, 63, 0.4);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

#drop-zone:hover,
#drop-zone.dragover {
    border-color: rgba(210, 147, 63, 0.8);
    background: rgba(210, 147, 63, 0.03);
}

#drop-zone.hidden {
    display: none;
}

.drop-content {
    text-align: center;
    color: var(--text-secondary);
}

.drop-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.drop-content p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.drop-content i {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.canvas-floating-ui {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
}

.float-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.float-btn:hover {
    background: rgba(22, 22, 26, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.playback-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 22, 0.85);
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 16px 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 60%;
    max-width: 500px;
    min-width: 320px;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.playback-controls:hover {
    background: rgba(22, 22, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
}

.playback-controls .play-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    margin: 0;
    box-shadow: none;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.playback-controls .play-btn:hover {
    transform: scale(1.15);
    color: var(--accent-color);
    background: transparent;
}

#editor-view .playback-controls .play-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: white !important;
    font-size: 20px;
    width: 32px;
    height: 32px;
}

#editor-view .playback-controls .play-btn:hover {
    background: transparent !important;
    border: none !important;
    color: var(--accent-color) !important;
    transform: scale(1.15);
}

.timeline-slider {
    flex: 1;
    width: 200px;
    
    height: 4px;
    
    background: rgba(255, 255, 255, 0.15);
    
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 4px;
}

.slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-color);
    
    border-radius: 4px;
    pointer-events: none;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: transform 0.1s;
}

.timeline-slider:hover .slider-thumb {
    transform: translate(-50%, -50%) scale(1.3);
}

.time-display {
    color: white;
    
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    user-select: none;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--accent-color);
    border-radius: 2px;
}

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

.info-item {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-item .label {
    font-size: 10px;
    color: var(--text-secondary);
}

.info-item .value {
    font-size: 12px;
    color: var(--text-primary);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
    background: #000;
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.separator {
    color: var(--text-secondary);
}

.select-input,
#quality-input {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
    outline: none;
}

.btn-primary.full-width {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-card.large {
    width: 800px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.text-btn-xs {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.text-btn-xs:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-preview-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-edit-preview {
    height: 300px;
    background-image:
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.edit-controls-container {
    background: #0a0a0a;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.range-slider.purple {
    accent-color: var(--accent-color);
    width: 100%;
}

.conversion-modal {
    width: 800px;
    max-width: 90vw;
    background: #111;
    
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conversion-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: 400px;
}

.conversion-preview {
    flex: 1;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 300px;
}

.conversion-preview video,
.conversion-preview img {
    max-width: 100%;
    max-height: 100%;
}

.conversion-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.stats-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-table td:last-child {
    text-align: left;
    
    color: var(--text-primary);
    font-family: monospace;
    font-weight: 500;
    direction: ltr;
}

[dir="rtl"] .stats-table td:first-child {
    text-align: right;
}

.stat-change-positive {
    color: var(--success-color);
}

.stat-change-negative {
    color: var(--danger-color);
}

.conversion-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.conversion-actions .btn-primary,
.conversion-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversion-actions .btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.conversion-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.processing-indicator {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#upload-view {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    justify-content: center;
    align-items: center;
    background: transparent;
    width: 100vw;
    
    
}

.workspace-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    
    width: 100%;
    margin: 0 auto;
    
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    
}

.format-chips-hero {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.hero-chip {
    background: #1a1a1a;
    color: #666;
    
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    border: 1px solid #333;
    transition: all 0.2s;
}

.hero-chip:hover {
    border-color: #555;
    color: #888;
    transform: translateY(-2px);
}

.workspace-text-content {
    margin-bottom: 60px;
}

.workspace-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.workspace-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin-top: 8px;
}

.upload-zone-centered {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    border: 2px dashed rgba(210, 147, 63, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    min-height: 250px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.upload-zone-centered:hover {
    transform: scale(1.02);
}

.upload-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(210, 147, 63, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: fade-pulse 3s infinite ease-in-out;
    z-index: -1;
}

@keyframes fade-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.2;
    }
}

.upload-zone-centered:hover .upload-icon-wrapper::before {
    border-color: rgba(210, 147, 63, 0.4);
    animation: fade-pulse-hover 2s infinite ease-in-out;
}

@keyframes fade-pulse-hover {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.4;
        border-color: rgba(210, 147, 63, 0.2);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
        border-color: rgba(210, 147, 63, 0.5);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.4;
        border-color: rgba(210, 147, 63, 0.2);
    }
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, rgba(210, 147, 63, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(210, 147, 63, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(210, 147, 63, 0.05);
}

.upload-zone-centered:hover .upload-icon-wrapper {
    border-color: rgba(210, 147, 63, 0.8);
    box-shadow: 0 0 30px rgba(210, 147, 63, 0.15);
    background: radial-gradient(circle at center, rgba(210, 147, 63, 0.15) 0%, transparent 80%);
}

.upload-icon-wrapper i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
}

.upload-zone-centered:hover .upload-icon-wrapper i {
    color: #fff;
    transform: translateY(-2px);
}

.upload-text-label {
    margin-top: 80px;
    
    color: rgba(210, 147, 63, 0.6);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    z-index: 5;
}

.upload-zone-centered:hover .upload-text-label {
    color: rgba(210, 147, 63, 0.9);
}

.upload-glow-ring {
    display: none;
}

.landing-nav {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    height: 80px;
    display: flex;
    
    justify-content: space-between;
    
    align-items: center;
    direction: ltr;
    
}

html[dir="rtl"] .landing-nav {
    flex-direction: row;
}

.landing-nav .nav-left {
    display: flex;
    align-items: center;
}

.landing-nav .nav-right {
    display: flex;
    align-items: center;
}

.landing-nav .logo {
    font-size: 20px;
    background: none;
    -webkit-text-fill-color: initial;
    color: white;
    font-family: 'Tajawal', sans-serif;
    
}

.landing-nav .nav-links a {
    color: #888;
    font-size: 14px;
    margin-left: 20px;
    font-weight: 500;
}

.landing-nav .nav-links a:hover {
    color: white;
    background: transparent;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #aaa;
    margin-right: 12px;
}

.user-points i {
    color: #e6c84c;
    
}

.upload-zone-box {
    width: 600px;
    height: 320px;
    max-width: 90%;
    border: 1px dashed #333;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 0.5) 0%, rgba(5, 5, 5, 0.5) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    
}

.upload-zone-box:hover {
    border-color: #555;
    background: rgba(25, 25, 25, 0.5);
}

.upload-icon-wrapper-simple i {
    font-size: 24px;
    color: #666;
    transition: 0.3s;
}

.upload-zone-box:hover .upload-icon-wrapper-simple i {
    color: white;
    transform: translateY(-5px);
}

.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 5px 20px rgba(210, 147, 63, 0.4);
    cursor: pointer;
    transition: 0.2s;
    z-index: 100;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

.audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    border-radius: 4px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-name {
    font-size: 12px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-delete {
    color: var(--danger-color);
}

.margin-grid {
    display: grid;
    grid-template-areas:
        ". top ."
        "left . right"
        ". bottom .";
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.margin-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.margin-input.top {
    grid-area: top;
}

.margin-input.left {
    grid-area: left;
}

.margin-input.right {
    grid-area: right;
}

.margin-input.bottom {
    grid-area: bottom;
}

.margin-input label {
    font-size: 10px;
    color: var(--text-secondary);
}

.margin-input input {
    width: 60px;
    background: #000;
    border: 1px solid var(--border-color);
    color: white;
    padding: 4px;
    text-align: center;
    border-radius: 4px;
}

.preview-media-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-media-cover {
    width: 100%;
    height: 100%;
    background: black;
}

.preview-zip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.preview-zip-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

:root {
    --bg-primary: #0A0908;
    --bg-secondary: #141210;
    --bg-panel: rgba(31, 28, 24, 0.85);
    --border-color: rgba(210, 147, 63, 0.15);
    
    --border-light: rgba(210, 147, 63, 0.3);
    --accent-color: #D2933F;
    
    --accent-hover: #F0BD73;
    
    --text-primary: #FFFBEB;
    --text-secondary: #A8A29E;

    --header-height: 48px;
    --left-panel-width: 320px;
    --right-panel-width: 340px;
    --glass-blur: blur(24px);
    --panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body {
    background-color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.left-panel,
.right-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--panel-shadow);
    border-color: var(--border-color);
}

.panel-section {
    padding: 24px;
    position: relative;
    border-bottom: none;
}

.panel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.resource-card-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.resource-card-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.resource-card-action .action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.resource-card-action .action-icon.purple {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    box-shadow: 0 0 10px rgba(210, 147, 63, 0.4);
}

.resource-card-action i {
    color: rgba(255, 255, 255, 0.7);
}

.assets-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    grid-auto-rows: 90px;
    gap: 12px;
    padding-top: 10px;
}

.asset-item {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.4), rgba(15, 15, 20, 0.6));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.asset-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(210, 147, 63, 0.2);
    z-index: 2;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 36px 10px 12px;
    font-size: 13px;
    transition: all 0.3s;
    width: 100%;
    color: white;
}

body[dir="rtl"] .search-bar i {
    right: 12px;
    left: auto;
}

.search-bar input:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(210, 147, 63, 0.2);
}

.center-stage {
    background: radial-gradient(circle at center, #141210 0%, #0a0908 100%);
}

.canvas-wrapper {
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
}

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

.info-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-chip .label {
    font-size: 11px;
    color: var(--text-secondary);
}

.info-chip .value {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.input-dark,
.select-dark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    width: 100%;
}

.input-dark:focus,
.select-dark:focus,
.input-dark:hover,
.select-dark:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.input-dark:focus,
.select-dark:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(210, 147, 63, 0.2);
}

.btn-primary.full-width {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    box-shadow: 0 4px 15px rgba(210, 147, 63, 0.4);
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary.full-width:not(:disabled):hover {
    box-shadow: 0 8px 25px rgba(210, 147, 63, 0.6);
    transform: translateY(-2px);
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.batch-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batch-preview {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.batch-preview i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.2);
}

.batch-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batch-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.batch-rename-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    width: 100%;
}

.batch-replace-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.batch-replace-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

:root {
    --bg-primary: #f7f3ec;
    --bg-secondary: #fffdf9;
    --bg-panel: rgba(255, 252, 246, 0.94);
    --border-color: rgba(139, 106, 55, 0.22);
    --border-light: rgba(139, 106, 55, 0.4);
    --accent-color: #b4883c;
    --accent-hover: #8e662d;
    --text-primary: #251d14;
    --text-secondary: #706355;
}

body,
.workspace-body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(180deg, #fbf8f1 0%, #f4ecdf 100%);
    color: var(--text-primary);
}

.editor-container {
    margin-top: 90px;
}

.left-panel,
.right-panel {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 238, 224, 0.9));
    border-color: rgba(140, 106, 56, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.panel-section {
    border-bottom-color: rgba(140, 106, 56, 0.18);
}

.section-header h3,
.batch-name,
.asset-name,
.info-chip .value {
    color: #2d2419;
}

.search-bar input,
.input-dark,
.select-dark,
.batch-rename-input,
.custom-input,
.custom-select,
.input-xs {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 106, 55, 0.28);
    color: #302416;
}

.search-bar input::placeholder,
.input-dark::placeholder,
.batch-rename-input::placeholder,
.input-xs::placeholder {
    color: #8a7c69;
}

.search-bar input:focus,
.input-dark:focus,
.select-dark:focus,
.batch-rename-input:focus,
.custom-input:focus,
.custom-select:focus,
.input-xs:focus {
    border-color: rgba(140, 106, 55, 0.5);
    box-shadow: 0 0 0 3px rgba(180, 136, 60, 0.16);
}

.resource-card-action,
.batch-item,
.asset-item,
.info-chip,
.modal-card,
.preview-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 233, 216, 0.78));
    border: 1px solid rgba(141, 109, 60, 0.22);
    box-shadow: 0 8px 22px rgba(95, 72, 40, 0.12);
}

.resource-card-action:hover,
.batch-item:hover,
.asset-item:hover {
    border-color: rgba(141, 109, 60, 0.46);
    box-shadow: 0 14px 28px rgba(95, 72, 40, 0.18);
}

.center-stage {
    background: radial-gradient(circle at center, #f4e8d5 0%, #f0e1ca 52%, #ead9bf 100%);
}

.canvas-container,
.preview-content {
    background: transparent;
}

.playback-controls,
.timeline-slider,
.slider-track {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(140, 106, 55, 0.24);
}

.time-display,
.info-chip .label,
.checkbox-wrapper,
.search-bar i {
    color: #7a6b58;
}

.play-btn,
.float-btn,
.icon-btn-sm,
.btn-xs-icon,
.btn {
    border: 1px solid rgba(138, 104, 53, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #4a3821;
}

.play-btn:hover,
.float-btn:hover,
.icon-btn-sm:hover,
.btn-xs-icon:hover,
.btn:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(138, 104, 53, 0.48);
}

.btn-primary,
.btn-primary.full-width,
#btn-start-conversion {
    background: linear-gradient(135deg, #d1af74 0%, #b4883c 50%, #855f28 100%);
    color: #fff;
    border: 1px solid rgba(132, 98, 46, 0.46);
    box-shadow: 0 12px 26px rgba(120, 87, 40, 0.3);
}

.btn-primary:hover,
.btn-primary.full-width:hover,
#btn-start-conversion:hover {
    box-shadow: 0 18px 34px rgba(120, 87, 40, 0.36);
}

.info-pill {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(139, 106, 55, 0.2);
    color: #3e311f;
}

.info-pill span {
    color: #664c28;
}

.modal-overlay {
    background: rgba(56, 41, 23, 0.36);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

:root {
    --bg-primary: #090f18;
    --bg-secondary: #0f1826;
    --bg-tertiary: #142133;
    --bg-panel: #101a28;
    --card-bg: #132034;
    --text-primary: #eef4ff;
    --text-secondary: #9eb0c8;
    --accent-color: #6cb5ff;
    --accent-hover: #93c9ff;
    --border-color: rgba(126, 165, 218, 0.24);
    --border-light: rgba(142, 189, 249, 0.48);
    --shadow-heavy: 0 24px 56px rgba(2, 9, 18, 0.58);
    --radius-xl: 22px;
}

body,
.workspace-body {
    color-scheme: dark;
    font-family: 'Tajawal', sans-serif;
    background:
        radial-gradient(1000px 520px at 10% -8%, rgba(78, 124, 184, 0.27), transparent 60%),
        radial-gradient(900px 500px at 88% 4%, rgba(65, 108, 167, 0.23), transparent 58%),
        linear-gradient(180deg, #070d15 0%, #0b121c 52%, #08111b 100%);
    color: var(--text-primary);
}

#editor-view.editor-container {
    margin: 88px auto 14px;
    width: min(1380px, calc(100% - 26px));
    height: calc(100vh - 104px);
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.65fr) minmax(320px, 0.95fr);
    grid-template-areas: 'left stage right';
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
}

#editor-view .left-panel {
    grid-area: left;
}

#editor-view .center-stage {
    grid-area: stage;
}

#editor-view .right-panel {
    grid-area: right;
}

#editor-view .left-panel,
#editor-view .right-panel,
#editor-view .center-stage {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: linear-gradient(165deg, rgba(18, 30, 45, 0.94), rgba(11, 20, 32, 0.92));
    box-shadow: var(--shadow-heavy);
}

#editor-view .left-panel,
#editor-view .right-panel {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
}

#editor-view .panel-section {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(124, 165, 223, 0.16);
    background: linear-gradient(180deg, rgba(17, 29, 44, 0.84), rgba(10, 18, 29, 0.84));
}

#editor-view .panel-section+.panel-section {
    margin-top: 0;
}

#editor-view .section-header h3 {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #d2e2f8;
}

#editor-view .resource-card-action,
#editor-view .btn-outline-dark,
#editor-view .text-btn-xs {
    border: 1px solid rgba(134, 177, 239, 0.22) !important;
    background: linear-gradient(160deg, rgba(25, 40, 59, 0.92), rgba(15, 27, 41, 0.88)) !important;
    border-radius: 12px;
    color: #dbe9fb !important;
    box-shadow: inset 0 1px 0 rgba(193, 221, 255, 0.08);
}

#editor-view .resource-card-action:hover,
#editor-view .btn-outline-dark:hover {
    border-color: var(--border-light) !important;
    transform: translateY(-2px);
}

#editor-view .search-bar {
    position: relative;
    width: 100%;
}

#editor-view .search-bar i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

#editor-view .search-bar input,
#editor-view .input-dark,
#editor-view .select-dark,
#editor-view .batch-rename-input,
#editor-view .custom-input,
#editor-view .custom-select,
#editor-view .input-xs {
    background: rgba(10, 10, 12, 0.8) !important;
    border: 1px solid rgba(210, 147, 63, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
}

#editor-view .search-bar input {
    padding-right: 40px !important;
    
    padding-left: 12px !important;
}

#editor-view .search-bar input::placeholder,
#editor-view .input-dark::placeholder,
#editor-view .batch-rename-input::placeholder,
#editor-view .input-xs::placeholder {
    color: var(--text-secondary) !important;
}

#editor-view .search-bar input:focus,
#editor-view .input-dark:focus,
#editor-view .select-dark:focus,
#editor-view .batch-rename-input:focus,
#editor-view .custom-input:focus,
#editor-view .custom-select:focus,
#editor-view .input-xs:focus {
    border-color: rgba(210, 147, 63, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(210, 147, 63, 0.1) !important;
}

#editor-view .assets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 106px;
    gap: 10px;
}

#editor-view .asset-item {
    border: 1px solid rgba(123, 169, 235, 0.2);
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(20, 34, 52, 0.94), rgba(13, 22, 35, 0.92));
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

#editor-view .asset-item:hover {
    border-color: rgba(152, 198, 255, 0.56);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(3, 10, 19, 0.46);
}

#editor-view .asset-name {
    background: linear-gradient(180deg, rgba(13, 22, 35, 0), rgba(13, 22, 35, 0.92));
    color: #d8e8fd;
    font-size: 11px;
}

#editor-view .center-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at 14% 12%, rgba(102, 163, 245, 0.2), transparent 54%),
        radial-gradient(circle at 90% 90%, rgba(72, 117, 179, 0.2), transparent 58%),
        linear-gradient(170deg, rgba(12, 21, 33, 0.96), rgba(8, 14, 23, 0.95));
    overflow: hidden;
}

#editor-view .center-stage::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 16px;
    border: 1px solid rgba(132, 176, 238, 0.18);
    pointer-events: none;
}

#editor-view .canvas-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 10px;
    background:
        linear-gradient(rgba(116, 157, 214, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 157, 214, 0.08) 1px, transparent 1px),
        linear-gradient(160deg, rgba(12, 20, 31, 0.92), rgba(8, 14, 23, 0.92));
    background-size: 34px 34px, 34px 34px, auto;
}

#editor-view .preview-card {
    height: 100%;
    border-radius: 14px;
    border: 1px solid rgba(139, 184, 246, 0.26);
    background: linear-gradient(160deg, rgba(16, 27, 42, 0.94), rgba(11, 19, 31, 0.94));
    box-shadow: inset 0 1px 0 rgba(197, 225, 255, 0.08), 0 24px 46px rgba(2, 8, 15, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#editor-view .preview-content {
    border-radius: 12px;
    margin: 12px;
    background: linear-gradient(180deg, rgba(5, 10, 17, 0.92), rgba(10, 17, 27, 0.92));
}

#editor-view .playback-controls {
    width: min(620px, calc(100% - 44px));
    max-width: none;
    min-width: 0;
    border-radius: 16px;
    border: 1px solid rgba(138, 184, 245, 0.3);
    background: rgba(11, 18, 29, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(2, 9, 18, 0.52);
}

#editor-view .timeline-slider,
#editor-view .slider-track {
    background: rgba(139, 185, 247, 0.16);
    border: 1px solid rgba(130, 175, 234, 0.2);
}

#editor-view .slider-progress {
    background: linear-gradient(90deg, #61abff, #9fd2ff);
}

#editor-view .slider-thumb {
    background: #eef6ff;
    border: 2px solid #7ab8ff;
}

#editor-view .canvas-floating-ui {
    bottom: auto;
    top: 28px;
    right: 28px;
}

#editor-view .float-btn {
    border: 1px solid rgba(139, 183, 242, 0.32);
    background: rgba(14, 24, 36, 0.84);
    color: #d8e8ff;
}

#editor-view .float-btn:hover {
    border-color: rgba(154, 200, 255, 0.56);
    background: rgba(19, 34, 52, 0.92);
}

#editor-view .right-panel .info-pill,
#editor-view .info-chip {
    background: linear-gradient(160deg, rgba(19, 31, 47, 0.9), rgba(14, 24, 38, 0.88));
    border: 1px solid rgba(129, 172, 233, 0.22);
    color: #dcecff;
    border-radius: 11px;
}

#editor-view .info-pill span,
#editor-view .info-chip span,
#editor-view .info-chip .value {
    color: #f0f7ff;
}

#editor-view .time-display,
#editor-view .checkbox-wrapper,
#editor-view .search-bar i {
    color: #9bb2cf;
}

#editor-view .play-btn,
#editor-view .icon-btn-sm,
#editor-view .btn-xs-icon,
#editor-view .btn {
    border: 1px solid rgba(135, 179, 239, 0.3);
    background: linear-gradient(160deg, rgba(24, 38, 57, 0.95), rgba(14, 24, 37, 0.92));
    color: #e6f2ff;
    border-radius: 10px;
}

#editor-view .btn-primary,
#editor-view .btn-primary.full-width,
#editor-view #btn-start-conversion {
    background: linear-gradient(135deg, #4f96e6 0%, #67b6ff 46%, #9fd6ff 100%);
    border: 1px solid rgba(158, 206, 255, 0.54);
    color: #07111d;
    box-shadow: 0 14px 30px rgba(59, 113, 179, 0.5);
}

#editor-view .btn-primary:hover,
#editor-view .btn-primary.full-width:hover,
#editor-view #btn-start-conversion:hover {
    box-shadow: 0 18px 34px rgba(66, 122, 190, 0.52);
}

.modal-overlay {
    background: rgba(4, 10, 17, 0.66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card,
.preview-card,
.conversion-modal {
    background: linear-gradient(170deg, rgba(13, 22, 34, 0.98), rgba(9, 16, 25, 0.96)) !important;
    border: 1px solid rgba(128, 171, 233, 0.24) !important;
    box-shadow: 0 24px 48px rgba(2, 8, 16, 0.58) !important;
}

.batch-item,
.asset-item,
.resource-card-action,
.info-chip,
.info-pill {
    transition: all 0.24s ease;
}

#editor-view .left-panel,
#editor-view .right-panel {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#editor-view .panel-section {
    border: 1px solid rgba(126, 169, 228, 0.2);
    border-radius: 14px;
    padding: 12px;
    margin: 0;
    overflow: visible;
    
}

#editor-view .panel-section.flex-grow {
    min-height: 0;
}

#editor-view .section-header {
    margin-bottom: 10px;
}

#editor-view .search-bar {
    margin-bottom: 12px;
}

#editor-view .assets-grid {
    padding-bottom: 0;
}

#editor-view .asset-preview {
    padding: 10px;
}

#editor-view .right-panel>div[style*='height: 1px'] {
    height: 1px !important;
    margin: 2px 6px 8px !important;
    background: linear-gradient(90deg, rgba(115, 158, 218, 0.05), rgba(152, 198, 255, 0.34), rgba(115, 158, 218, 0.05)) !important;
}

#editor-view .info-pills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#editor-view .info-pill {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 8px;
    font-size: 11px;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
}

#editor-view .info-pill span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    text-align: left;
    direction: ltr;
    
}

#editor-view .custom-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(127, 171, 233, 0.18);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(19, 31, 47, 0.88), rgba(12, 22, 35, 0.86));
    margin-bottom: 10px;
}

#editor-view .custom-control-group label {
    font-size: 12px;
    color: #bcd2ee;
    margin-bottom: 2px;
}

#editor-view .custom-input,
#editor-view .custom-select,
#editor-view .input-dark,
#editor-view .select-dark,
#editor-view .input-xs,
#editor-view .batch-rename-input {
    min-height: 38px;
    font-size: 13px;
}

#editor-view .btn,
#editor-view .btn-primary,
#editor-view .btn-outline-dark,
#editor-view .resource-card-action,
#editor-view .icon-btn-sm {
    min-height: 38px;
    font-size: 13px;
}

#editor-view .playback-controls {
    gap: 12px;
    padding: 8px 12px;
}

#editor-view .timeline-slider {
    height: 6px;
}

#editor-view .time-display {
    min-width: 74px;
    text-align: center;
}

#editor-view .canvas-floating-ui {
    gap: 8px;
}

.modal-card {
    border-radius: 16px;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 16px 18px;
}

.modal-body.flex-row {
    gap: 18px !important;
}

.batch-grid {
    gap: 12px;
    padding: 12px;
}

.batch-item {
    border-radius: 12px;
    padding: 10px;
    gap: 10px;
}

.batch-preview {
    border-radius: 10px;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f1012;
    --bg-panel: #141518;
    --card-bg: #1a1c20;
    --border-color: rgba(210, 147, 63, 0.15);
    --border-light: rgba(210, 147, 63, 0.3);
    --accent-color: #d89c4b;
    --accent-hover: #f7d59d;
    --text-primary: #f5ecd8;
    --text-secondary: #9ea0a5;
    --success-color: #2cc18a;
    --danger-color: #e86b6b;
    --shadow-heavy: 0 24px 56px rgba(0, 0, 0, 0.8);
    --radius-xl: 16px;
}

body.workspace-body {
    color-scheme: dark;
    font-family: 'Tajawal', sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
}

.workspace-body .navbar {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, calc(100% - 24px));
    height: 72px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(15, 16, 18, 0.85);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.workspace-body .logo-text {
    background: linear-gradient(120deg, #fff3df 0%, #e2b06a 54%, #f4d49d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.workspace-body .logo-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #8f5b21 0%, #d2933f 46%, #f0bd73 100%);
    box-shadow: 0 0 0 6px rgba(210, 147, 63, 0.16), 0 8px 18px rgba(166, 101, 40, 0.34);
}

.workspace-body .nav-link {
    color: #c5ab84;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 8px 14px;
}

.workspace-body .nav-link:hover,
.workspace-body .nav-link.active {
    background: rgba(210, 147, 63, 0.14);
    border-color: rgba(230, 172, 96, 0.32);
    color: #fff3df;
}

.workspace-body .credits-badge {
    background: rgba(210, 147, 63, 0.18);
    border-color: rgba(230, 172, 96, 0.36);
    color: #f3d09c;
}

.workspace-body .avatar {
    background: linear-gradient(135deg, #8f5b21 0%, #d2933f 46%, #f0bd73 100%);
    color: #130b05;
    border-color: rgba(240, 179, 95, 0.48);
}

#upload-view.workspace {
    min-height: calc(100vh - 104px);
    margin-top: 104px !important;
}

#upload-view .workspace-title {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    background: linear-gradient(130deg, #fff6e8 0%, #d89c4b 70%, #f7d59d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#upload-view .workspace-subtitle {
    color: #b9a486;
}

#upload-view .hero-chip {
    background: rgba(210, 147, 63, 0.12);
    border: 1px solid rgba(230, 172, 96, 0.26);
    color: #e8c48f;
}

#upload-view .upload-zone-centered {
    width: min(1040px, 100%);
    max-width: 1040px;
    min-height: 340px;
    height: min(58vh, 560px);
    border: none;
    background: transparent;
    box-shadow: none;
}

#upload-view .upload-zone-centered:hover {
    border: none;
    background: transparent;
    box-shadow: none;
}

#upload-view .upload-icon-wrapper {
    background: rgba(210, 147, 63, 0.12);
    border: 1px solid rgba(240, 179, 95, 0.32);
    color: #f3d4a0;
    box-shadow: 0 0 34px rgba(210, 147, 63, 0.28);
}

#editor-view.editor-container {
    margin-top: 88px;
    padding: 0 12px 12px;
    gap: 12px;
    background: transparent;
}

#editor-view .left-panel,
#editor-view .right-panel,
#editor-view .center-stage {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#editor-view .left-panel,
#editor-view .right-panel {
    padding: 12px;
}

#editor-view .panel-section {
    border: 1px solid rgba(210, 147, 63, 0.08);
    
    border-radius: 12px;
    background: var(--bg-panel);
    margin-bottom: 12px;
}

#editor-view .panel-section::after {
    display: none;
}

#editor-view .section-header h3,
#editor-view .custom-sidebar-section .section-header h3 {
    color: var(--text-secondary);
    
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
}

#editor-view .custom-control-group {
    background: #0f1012;
    
    border: 1px solid rgba(210, 147, 63, 0.1);
}

#editor-view .custom-control-group label {
    color: var(--text-secondary);
}

#editor-view .search-box input,
#editor-view .custom-input,
#editor-view .custom-select,
#editor-view .input-dark,
#editor-view .select-dark,
#editor-view #quality-input {
    background: #0a0a0a;
    
    border: 1px solid rgba(210, 147, 63, 0.15);
    color: var(--text-primary);
    border-radius: 8px;
}

#editor-view .search-box input:focus,
#editor-view .custom-input:focus,
#editor-view .custom-select:focus {
    border-color: var(--border-light);
    box-shadow: 0 0 0 2px rgba(210, 147, 63, 0.1);
}

#editor-view .assets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#editor-view .asset-item {
    border-radius: 12px;
    border: 1px solid rgba(210, 147, 63, 0.1);
    background: var(--bg-panel);
}

#editor-view .asset-item:hover {
    border-color: rgba(240, 179, 95, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#editor-view .asset-name {
    color: var(--text-secondary);
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(210, 147, 63, 0.08);
}

#editor-view .asset-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.85));
}

#editor-view .edit-icon-btn,
#editor-view .resource-card-action,
#editor-view .icon-btn-sm,
#editor-view .btn-outline-dark,
#editor-view .btn {
    background: var(--card-bg);
    
    color: var(--text-primary);
    border: 1px solid rgba(210, 147, 63, 0.2);
    border-radius: 8px;
}

#editor-view .resource-card-action:hover,
#editor-view .btn:hover {
    border-color: var(--border-light);
    background: #1e2126;
}

#editor-view .btn-primary {
    background: #f58200;
    
    color: #000;
    border: none;
    border-radius: 24px;
    
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(245, 130, 0, 0.3);
}

#editor-view .btn-primary:hover {
    background: #ff951a;
    box-shadow: 0 6px 16px rgba(245, 130, 0, 0.4);
}

#editor-view .playback-controls {
    border-radius: 999px;
    
    background: rgba(15, 16, 18, 0.9);
    border: 1px solid rgba(210, 147, 63, 0.15);
}

#editor-view .timeline-slider {
    background: rgba(255, 255, 255, 0.1);
    
}

#editor-view .slider-progress {
    background: linear-gradient(90deg, #b67c31 0%, #d2933f 52%, #f0bd73 100%);
}

#editor-view .slider-thumb {
    background: #ffe7c0;
}

#editor-view .info-pill {
    background: var(--card-bg);
    
    border: 1px solid rgba(210, 147, 63, 0.15);
    color: var(--text-secondary);
    border-radius: 8px;
}

#editor-view .info-pill span {
    color: var(--text-primary);
    
}

#editor-view .resource-card-action,
#editor-view .btn-outline-dark,
#editor-view .text-btn-xs,
#editor-view .play-btn,
#editor-view .icon-btn-sm,
#editor-view .btn-xs-icon,
#editor-view .btn,
#editor-view .add-audio-btn,
#editor-view .float-btn {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(210, 147, 63, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

#editor-view .resource-card-action:hover,
#editor-view .btn-outline-dark:hover,
#editor-view .text-btn-xs:hover,
#editor-view .play-btn:hover,
#editor-view .icon-btn-sm:hover,
#editor-view .btn-xs-icon:hover,
#editor-view .btn:hover,
#editor-view .add-audio-btn:hover,
#editor-view .float-btn:hover {
    background: var(--bg-panel) !important;
    border-color: var(--border-light) !important;
}

#editor-view .btn-primary,
#editor-view .btn-primary.full-width,
#editor-view #btn-start-conversion {
    background: #f58200 !important;
    
    color: #000 !important;
    border: none !important;
    border-radius: 24px !important;
    
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(245, 130, 0, 0.3) !important;
}

#editor-view .btn-primary:hover,
#editor-view .btn-primary.full-width:hover,
#editor-view #btn-start-conversion:hover {
    background: #ff951a !important;
    box-shadow: 0 6px 16px rgba(245, 130, 0, 0.4) !important;
}

#editor-view .asset-item {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(210, 147, 63, 0.1) !important;
}

#editor-view .right-panel .info-pill,
#editor-view .info-chip,
#editor-view .info-item {
    background: var(--card-bg) !important;
    border: 1px solid rgba(210, 147, 63, 0.15) !important;
}

#editor-view .center-stage {
    background: var(--bg-primary) !important;
}

#editor-view .center-stage::before {
    display: none !important;
    
}

#editor-view .canvas-container {
    background: transparent !important;
    
    padding: 0 !important;
    
}

#editor-view .preview-card,
#editor-view .preview-content {
    background: transparent !important;
    
    border: none !important;
    
    box-shadow: none !important;
}

.modal-card,
.conversion-modal {
    background: var(--bg-panel) !important;
    border: 1px solid rgba(210, 147, 63, 0.2) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6) !important;
}

#editor-view .panel-section {
    border: none !important;
    
    background: transparent !important;
    
    box-shadow: none !important;
}

#editor-view .panel-section+.panel-section {
    border-top: 1px solid rgba(210, 147, 63, 0.1) !important;
    
    padding-top: 16px !important;
    margin-top: 16px !important;
}

#modal-batch .batch-item {
    background: transparent !important;
    border: 1px solid rgba(210, 147, 63, 0.2) !important;
}

#modal-batch .batch-preview {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid rgba(210, 147, 63, 0.1) !important;
}

#modal-batch .batch-controls {
    background: var(--bg-panel) !important;
}

#editor-view .playback-controls {
    background: var(--bg-panel) !important;
    border: 1px solid rgba(210, 147, 63, 0.15) !important;
}

#editor-view .timeline-slider,
#editor-view .slider-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
}

#editor-view .slider-progress {
    background: linear-gradient(90deg, #b67c31 0%, #d2933f 52%, #f0bd73 100%) !important;
}

#editor-view .slider-thumb {
    background: #ffe7c0 !important;
    border: 2px solid #b67c31 !important;
}

.workspace-body .fab-chat {
    background: linear-gradient(135deg, #8f5b21 0%, #d2933f 45%, #f0bd73 100%);
    border-color: rgba(240, 179, 95, 0.5);
    color: #130b05;
    box-shadow: 0 14px 32px rgba(105, 61, 18, 0.45);
}

#editor-view .center-stage {
    align-items: stretch !important;
    justify-content: stretch !important;
}

#editor-view .canvas-container {
    width: 100% !important;
    height: 100% !important;
}

#editor-view .preview-card {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#editor-view .preview-content {
    width: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

#editor-view #loaded-animation-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#editor-view #render-canvas-container {
    position: relative !important;
}

#editor-view #canvas-mount canvas,
#editor-view #canvas-mount video,
#editor-view #canvas-mount img,
#editor-view #canvas-mount object {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

#editor-view .preview-card .playback-controls {
    flex-shrink: 0 !important;
}

#editor-view #canvas-mount {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#editor-view .audio-actions-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

#editor-view .audio-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(210, 147, 63, 0.2);
    background: var(--bg-primary, #0a0a0a);
    color: var(--text-secondary, #9ea0a5);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.25s ease;
}

#editor-view .audio-action-btn i {
    font-size: 18px;
    color: var(--accent-color, #d89c4b);
    transition: transform 0.25s ease;
}

#editor-view .audio-action-btn:hover {
    border-color: rgba(240, 179, 95, 0.4);
    background: var(--bg-panel, #141518);
    color: var(--text-primary, #f5ecd8);
}

#editor-view .audio-action-btn:hover i {
    transform: scale(1.15);
}

#editor-view .audio-action-btn:active {
    transform: scale(0.97);
}

#editor-view .audio-mute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    border-radius: 10px;
    border: 1px solid rgba(210, 147, 63, 0.2);
    background: var(--bg-primary, #0a0a0a);
    color: var(--accent-color, #d89c4b);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

#editor-view .audio-mute-btn:hover {
    border-color: rgba(240, 179, 95, 0.4);
    background: var(--bg-panel, #141518);
}

#editor-view .audio-mute-btn:active {
    transform: scale(0.92);
}

#editor-view .audio-mute-btn.muted {
    border-color: rgba(232, 107, 107, 0.3);
    color: var(--danger-color, #e86b6b);
}

#editor-view .audio-mute-btn.muted:hover {
    border-color: rgba(232, 107, 107, 0.5);
    background: rgba(232, 107, 107, 0.08);
}

#editor-view .audio-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(210, 147, 63, 0.06);
    border: 1px solid rgba(210, 147, 63, 0.1);
    font-size: 12px;
    color: var(--text-secondary, #9ea0a5);
}

#editor-view .audio-status i {
    font-size: 16px;
    color: var(--accent-color, #d89c4b);
    animation: audioWave 1.5s ease-in-out infinite;
}

#editor-view .audio-status.no-audio i {
    animation: none;
    color: var(--text-secondary, #9ea0a5);
    opacity: 0.5;
}

@keyframes audioWave {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#global-drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#global-drop-overlay.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#global-drop-overlay .drop-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 48px 64px;
    border-radius: 24px;
    border: 2px dashed rgba(210, 147, 63, 0.5);
    background: rgba(20, 21, 24, 0.7);
    box-shadow: 0 0 60px rgba(210, 147, 63, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: dropOverlayPulse 1.8s ease-in-out infinite;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#global-drop-overlay.visible .drop-overlay-content {
    transform: scale(1);
}

#global-drop-overlay .drop-overlay-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 147, 63, 0.15);
    border: 1px solid rgba(240, 179, 95, 0.35);
    box-shadow: 0 0 32px rgba(210, 147, 63, 0.25);
    animation: dropIconFloat 2s ease-in-out infinite;
}

#global-drop-overlay .drop-overlay-icon i {
    font-size: 32px;
    color: #f3d4a0;
}

#global-drop-overlay .drop-overlay-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff3df;
    letter-spacing: 0.3px;
}

#global-drop-overlay .drop-overlay-subtitle {
    font-size: 14px;
    color: #9ea0a5;
}

@keyframes dropOverlayPulse {

    0%,
    100% {
        border-color: rgba(210, 147, 63, 0.35);
    }

    50% {
        border-color: rgba(240, 179, 95, 0.65);
    }
}

@keyframes dropIconFloat {

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

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

/* Mobile editor toolbar - hidden by default on desktop */
.mob-editor-toolbar { display: none; }
.mob-panel-backdrop { display: none; }