/* Modern Premium CSS Stylesheet for NovaAutoClip */

:root {
    --bg-main: #06060c;
    --card-bg: rgba(20, 15, 35, 0.45);
    --card-bg-solid: rgba(20, 15, 35, 0.75);
    --border-color: rgba(168, 85, 247, 0.75);
    --text-primary: #f3f4f6;
    --text-secondary: #a7a7b8;
    
    --neon-blue: #00f2fe;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    
    --gradient-glow: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
    --gradient-btn: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

input, select, textarea, [contenteditable="true"] {
    font-family: var(--font-body), sans-serif !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    pointer-events: auto !important;
}

/* Background animated glow orbs */
.glass-bg-blur {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(168, 85, 247, 0.03) 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: drift 25s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 100px) scale(1.1); }
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    animation: rocket-float 3s infinite ease-in-out alternate;
}

@keyframes rocket-float {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-8px) rotate(5deg); }
}

.app-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.app-header h1 span {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--neon-blue);
    -webkit-text-fill-color: var(--neon-blue);
}

.app-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Glass Card styling */
.glass-card {
    background: rgba(18, 13, 33, 0.75) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.glass-card::before {
    content: none;
}
.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.22), 0 8px 32px 0 rgba(0, 0, 0, 0.55);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.dashboard-grid > * {
    height: 100%;
    min-width: 0;
}

/* Mobile layout media query moved to the end of the stylesheet to ensure correct cascading precedence */

/* Control Panel */
.control-panel h2, .log-panel h2, .gallery-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(10, 10, 15, 0.6);
    border: 1.5px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group select {
    position: relative;
    z-index: 10;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

select option {
    background-color: #1a1a24;
    color: #ffffff;
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* Glowing Button & CTA Pulsing Animation */
@keyframes pulseGlowBtn {
    0% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 28px rgba(168, 85, 247, 0.75), 0 0 45px rgba(236, 72, 153, 0.45);
    }
    100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
    }
}

.glowing-btn {
    width: 100%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 1.15rem 1.5rem;
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    animation: pulseGlowBtn 2.5s infinite ease-in-out;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.glowing-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.85), 0 0 50px rgba(236, 72, 153, 0.6);
    filter: brightness(1.15);
    border-color: #ffffff;
}

.glowing-btn:disabled {
    background: #27273a;
    color: #5d5d7a;
    box-shadow: none;
    animation: none;
    border-color: transparent;
    cursor: not-allowed;
}

/* Spinner Loader */
.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 11, 20, 0.3);
    border-top: 3px solid var(--bg-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Step Indicator */
.step-indicator {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1.5px dashed var(--border-color);
}

.step-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 0.5rem;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

/* Step states */
.step-item.active {
    color: var(--neon-blue);
}
.step-item.active .step-num {
    background: var(--neon-blue);
    color: var(--bg-main);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.step-item.completed {
    color: var(--neon-green);
}
.step-item.completed .step-num {
    background: var(--neon-green);
    color: var(--bg-main);
    border-color: var(--neon-green);
}

.step-line.active {
    background: var(--neon-blue);
}
.step-line.completed {
    background: var(--neon-green);
}

/* Log Panel */
.log-panel {
    display: flex;
    flex-direction: column;
    min-height: 480px;
    min-width: 320px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-idle { background: #374151; color: #d1d5db; }
.status-running { background: rgba(168, 85, 247, 0.15); color: var(--neon-blue); border: 1.5px solid rgba(168, 85, 247, 0.6); animation: pulse-glow 2s infinite; }
.status-success { background: rgba(57, 255, 20, 0.15); color: var(--neon-green); border: 1px solid rgba(57, 255, 20, 0.3); }
.status-failed { background: rgba(255, 0, 127, 0.15); color: var(--neon-pink); border: 1px solid rgba(255, 0, 127, 0.3); }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
    100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); }
}

/* Admin-only toggle for raw terminal logs (hardcoded colors, not theme
   variables: this panel keeps its dark terminal background regardless
   of site theme — see #log-panel-container). */
.monitor-log-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.monitor-log-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.monitor-log-toggle-btn.active {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(16, 185, 129, 0.12);
}

.terminal-container {
    flex-grow: 1;
    background: #05050a;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    word-break: break-all;
    white-space: pre-wrap;
}

.system-msg { color: #34d399; }
.log-line { color: #e5e7eb; }
.error-line { color: var(--neon-pink); font-weight: bold; }
.success-line { color: var(--neon-green); font-weight: bold; }

/* Custom Terminal Scrollbar */
.terminal-container::-webkit-scrollbar {
    width: 6px;
}
.terminal-container::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.terminal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Progress Monitor */
.progress-monitor-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#progress-status-text {
    font-weight: 600;
    color: var(--neon-blue);
}

#progress-percent-text {
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 20px;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.progress-eta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

#progress-eta-time {
    font-weight: 700;
    color: #f3f4f6;
}

/* Step Showcase (current-step card + recent-step history) */
/* Colors are hardcoded, not theme variables: this panel keeps its dark
   terminal background regardless of site theme (see #log-panel-container),
   so light-theme text variables would go near-black here and vanish. */
.step-showcase-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.step-showcase-current {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.step-showcase-media {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    overflow: hidden;
}

.step-showcase-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-showcase-text {
    flex: 1 1 auto;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.step-showcase-history {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0.2rem;
}

.step-showcase-history li {
    font-size: 0.78rem;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .step-showcase-media {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .step-showcase-text {
        font-size: 0.82rem;
    }
}

/* User Mode centering when terminal is hidden */
.log-panel.user-mode {
    justify-content: center;
}

/* Creations Gallery */
.gallery-section {
    margin-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.secondary-btn {
    background: transparent;
    border: 1.5px solid transparent !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.secondary-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(236, 72, 153, 0.85), rgba(59, 130, 246, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.secondary-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #d8b4fe;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.secondary-btn:hover::before {
    background: linear-gradient(135deg, #a855f7, #ec4899, #3b82f6);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

/* Creations Grid Gallery Masonry Layout */
#video-gallery {
    display: block; /* Override default grid */
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1200px; /* Wider spacious width for portfolio creations */
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    #video-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    #video-gallery {
        column-count: 1;
    }
}

.gallery-card {
    background: var(--card-bg);
    border: 1.5px solid transparent !important;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block; /* Crucial for masonry flow */
    width: 100%;
    margin-bottom: 1.5rem; /* Replaces grid gaps in column layout */
    break-inside: avoid; /* Prevents card from splitting across columns */
    position: relative;
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(236, 72, 153, 0.85), rgba(59, 130, 246, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.25);
}

.card-thumbnail {
    position: relative;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-icon {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.card-thumbnail:hover .play-overlay {
    opacity: 1;
}

.card-thumbnail:hover .play-icon {
    transform: scale(1);
}

.card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.8rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-download {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
    transition: color 0.3s ease;
}

.card-download:hover {
    color: white;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--neon-pink);
}

#video-modal .modal-body {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    height: 55vh;
    max-height: 480px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color);
}

#video-modal .modal-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-footer .secondary-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
}

/* === NEW LAYOUT & SIDEBAR STYLING === */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.app-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Sidebar Container */
.app-sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(10, 10, 18, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Collapsed Sidebar on Desktop */
.app-sidebar.collapsed {
    width: 80px;
    min-width: 80px;
}

/* Sidebar Header Area */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sidebar-header .logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.sidebar-header .logo-img {
    height: 38px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.sidebar-header .logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    margin: 0;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.sidebar-header .logo-text span {
    color: var(--neon-blue, #00f2fe);
}

/* Hide Logo Text and Collapse Arrow when collapsed */
.app-sidebar.collapsed .sidebar-header .logo-text {
    opacity: 0;
    display: none !important;
    pointer-events: none;
}

.app-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 5px;
}

.app-sidebar.collapsed .logo-brand {
    margin-left: 0;
    justify-content: center !important;
    width: 100% !important;
}

.app-sidebar.collapsed .workspace-selector-container {
    display: none !important;
}

.app-sidebar.collapsed .lang-toggle-container {
    display: none !important;
}

.app-sidebar.collapsed .collapse-btn {
    display: block !important;
    margin: 0 auto !important;
}

.app-sidebar.collapsed .sidebar-header-top {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

.app-sidebar.collapsed .sidebar-header-top > div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.app-sidebar.collapsed .sidebar-dropdown-menu {
    display: none !important;
}

.app-sidebar.collapsed .dropdown-arrow {
    display: none !important;
}

.app-sidebar.collapsed .sub-dropdown-arrow {
    display: none !important;
}

/* Sidebar Collapse Control Button */
.collapse-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
}

.collapse-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    color: white;
    border-color: rgba(168, 85, 247, 0.4);
}

.sidebar-close-btn {
    display: none; /* Only visible on mobile drawer view */
}

/* Scrollable Menu Area */
.sidebar-menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Styling custom scrollbar for sidebar menu */
.sidebar-menu-wrapper::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* Navigation Links */
.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid var(--neon-purple, #a855f7);
    padding-left: 13px; /* account for border width */
}

/* Collapsed nav-link states: Hide link text */
.app-sidebar.collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
    font-size: 1.15rem; /* make icons/emoji larger */
}

.app-sidebar.collapsed .nav-link:hover, .app-sidebar.collapsed .nav-link.active {
    border-left: none;
    background: rgba(168, 85, 247, 0.15);
    padding-left: 0;
    border-radius: 10px;
}

/* Dropdown Accordion */
.nav-dropdown {
    position: relative;
    width: 100%;
}

.nav-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
    margin-top: 4px;
}

.app-sidebar.collapsed .nav-dropdown-content {
    display: none !important; /* Hide dropdown content completely when collapsed */
}

.nav-dropdown.open .nav-dropdown-content {
    display: flex;
}

.dropdown-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: block;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
    padding-left: 16px;
}

/* Sidebar Footer & Widgets */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 18, 0.3);
}

.app-sidebar.collapsed .sidebar-footer .manual-pdf-link {
    display: none !important;
}

.app-sidebar.collapsed .sidebar-user-widget {
    padding: 15px 5px !important;
    align-items: center;
}

.app-sidebar.collapsed .sidebar-user-widget > * {
    display: none !important; /* Hide all user details when collapsed */
}

.app-sidebar.collapsed .sidebar-user-widget::after {
    content: "👤";
    font-size: 1.25rem;
    display: block;
}

/* Mobile Sticky Header Bar */
.mobile-sticky-header {
    display: none;
    position: sticky;
    top: 0;
    width: 100%;
    height: 56px;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

.hamburger-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100000 !important;
}

.mobile-logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Drawer Backdrop Overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
}

.sidebar-backdrop.active {
    display: block;
}

/* Tab Switching Pane */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane#tab-video-studio.active .dashboard-grid,
.tab-pane#tab-music-lab.active .dashboard-grid {
    display: grid;
}

/* Landing Page Tab elements */
.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(10, 10, 20, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(168, 85, 247, 0.15);
    background: rgba(10, 10, 20, 0.35);
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feat-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 2.5rem;
}

.calculator-section h3, .affiliate-section h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.calc-control label {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.calc-control label span {
    color: var(--neon-blue);
    font-size: 1.1rem;
    font-weight: 800;
}

.calc-helper {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-box {
    background: rgba(5, 5, 10, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-box span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-box h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-bottom: 0;
}

.result-box.glow-purple h2 {
    color: #d946ef;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
    outline: none;
    border: 1.5px solid var(--border-color);
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-blue);
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-blue);
    transition: transform 0.1s;
}

.neon-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Pricing Sections */
.pricing-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 290px;
    flex-grow: 1;
    max-width: 330px;
}

.pricing-card.featured {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: white;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-card ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: "✓";
    color: var(--neon-blue);
    font-weight: bold;
}

.pricing-btn {
    width: 100%;
    border: 1.5px solid transparent !important;
    background: transparent;
    padding: 0.85rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
}

.pricing-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(236, 72, 153, 0.85), rgba(59, 130, 246, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.pricing-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-blue);
}

.pricing-btn:hover::before {
    background: linear-gradient(135deg, #a855f7, #ec4899, #3b82f6);
}

/* Affiliate portal */
.affiliate-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 768px) {
    .affiliate-section {
        flex-direction: column;
        text-align: center;
    }
}

.affiliate-info {
    flex-grow: 1;
    max-width: 600px;
}

.affiliate-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(5, 5, 10, 0.4);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    text-align: center;
    flex-grow: 1;
    min-width: 120px;
}

.stat-box h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.stat-box span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Studio forms toggling */
.studio-headers {
    display: flex;
    gap: 1rem;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.studio-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.studio-tab-btn.active {
    color: var(--neon-purple, #a855f7);
}

.studio-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-purple, #a855f7);
}

.studio-form-pane {
    display: none;
}

.studio-form-pane.active {
    display: block;
}

/* Audio Lab custom audio library list */
.music-library-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.music-track-item {
    background: rgba(10, 10, 20, 0.4);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.music-track-item:hover {
    border-color: rgba(57, 255, 20, 0.2);
    background: rgba(10, 10, 20, 0.5);
}

.track-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-btn);
    color: var(--bg-main);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.track-play-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.track-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.track-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.track-download {
    text-decoration: none;
    color: var(--neon-blue);
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.track-download:hover {
    color: white;
}

/* Credentials tab */
.credentials-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.credential-box {
    background: rgba(16, 16, 28, 0.65);
    border: 1.5px solid transparent !important;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.credential-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(236, 72, 153, 0.85), rgba(59, 130, 246, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.credential-box:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
    transform: translateY(-5px);
    background: rgba(22, 22, 38, 0.85);
}

.platform-icon {
    font-size: 1.8rem;
}

.credential-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: white;
}

.credential-box p.plat-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.plat-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    background: rgba(255, 0, 127, 0.12);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

.plat-status.connected {
    background: rgba(57, 255, 20, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.save-token-form {
    border-top: 1.5px dashed var(--border-color);
    padding-top: 2rem;
    max-width: 500px;
}

.save-token-form h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

/* Simulated Checkout styling */
.checkout-card {
    max-width: 420px;
}

.checkout-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.plan-summary {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-summary p {
    color: var(--text-secondary);
}

.plan-summary strong {
    color: white;
}

.plan-summary #checkout-plan-price {
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.credit-card-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
    text-align: center;
}

/* Custom button variants */
.green-glow {
    background: linear-gradient(135deg, #39ff14 0%, #00ff87 100%);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}
.green-glow:hover {
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6) !important;
}

.purple-glow {
    background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
    box-shadow: 0 0 15px rgba(155, 93, 229, 0.3);
    color: white;
}
.purple-glow:hover {
    box-shadow: 0 0 25px rgba(155, 93, 229, 0.6) !important;
}

.pink-glow {
    background: linear-gradient(135deg, #ff007f 0%, #ff5e62 100%);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
    color: white;
}
.pink-glow:hover {
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.6) !important;
}

/* Character & Asset Panel styling */
.collapsible-asset-panel {
    margin: 1.5rem 0;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.collapsible-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.collapsible-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.collapsible-content {
    padding: 1rem;
    border-top: 1.5px solid var(--border-color);
}
.assets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.asset-upload-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
}
.asset-upload-box label {
    font-weight: 500;
    color: var(--text-secondary);
}
.asset-upload-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
}

/* Language Toggle styling */
.lang-toggle-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.25rem;
    background: rgba(16, 16, 28, 0.75);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem;
    z-index: 10;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.lang-btn:hover {
    color: white;
}
.lang-btn.active {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

@media (max-width: 768px) {
    .lang-toggle-container {
        position: relative;
        margin: 0.5rem auto 1rem auto;
        width: fit-content;
        top: auto;
        right: auto;
    }
}

/* Instruments Multi-Select Styling */
.instruments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.inst-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.inst-chip input[type="checkbox"] {
    display: none; /* Hide default checkbox */
}
.inst-chip span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    user-select: none;
}
.inst-chip input[type="checkbox"]:checked + span {
    background: var(--gradient-btn);
    color: var(--bg-main);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    font-weight: 700;
}
.inst-chip:hover span {
    border-color: var(--neon-blue);
    color: var(--text-primary);
}

/* Central Library Styling */
.filter-pills-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-pill:hover {
    border-color: var(--neon-blue);
    color: white;
}
.filter-pill.active {
    background: var(--gradient-btn);
    color: var(--bg-main);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    font-weight: 600;
}
.central-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.central-asset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.central-asset-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(255, 255, 255, 0.05);
}
.asset-preview-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.asset-preview-container img,
.asset-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.asset-icon-placeholder {
    font-size: 2.5rem;
    opacity: 0.7;
}
.asset-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}
.asset-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-type-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 0.5px;
}
.asset-card-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}
.asset-delete-btn {
    background: none;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.asset-delete-btn:hover {
    background-color: rgba(255, 85, 85, 0.1);
}
.font-preview-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    padding: 0.5rem;
    text-align: center;
    overflow: hidden;
}

/* Navigation Dropdown Menu Styling */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-color);
    min-width: 260px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    z-index: 1000;
    margin-top: 0;
    padding: 0.5rem 0;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.nav-dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-dropdown-content a:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--neon-cyan);
    padding-left: 1.5rem;
}


/* Premium Target Channel Select Checkboxes Styling */
.channel-select-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.channel-select-label:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
}

.channel-select-label input[type="checkbox"] {
    accent-color: var(--neon-purple);
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.channel-select-badge {
    display: inline-block;
    width: 95px;
    text-align: center;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1.5px solid rgba(168, 85, 247, 0.6);
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================================================
   MOBILE HAMBURGER MENU STYLING
   ========================================================================= */
@media (max-width: 1024px) {
    .mobile-nav-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        border-bottom: 1.5px solid transparent;
        transition: border-color 0.3s;
    }
    
    .app-nav.active .mobile-nav-header {
        border-color: rgba(168, 85, 247, 0.3);
        margin-bottom: 0.5rem;
    }
    
    .mobile-nav-title {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .menu-toggle {
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }
    
    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animate to X when active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Collapsed state for links */
    .app-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
    }
    
    .app-nav > *:not(.mobile-nav-header) {
        display: none !important;
    }
    
    /* Expanded state */
    .app-nav.active > *:not(.mobile-nav-header) {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .app-nav.active .nav-link {
        display: block !important;
        text-align: left;
        width: 100%;
        padding: 14px 15px;
        border-radius: 0px;
        margin: 0;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
        transition: all 0.25s ease;
    }
    
    .app-nav.active .nav-link:hover {
        background: rgba(255, 255, 255, 0.04) !important;
        padding-left: 20px !important;
    }
    
    .app-nav.active .nav-dropdown {
        display: block !important;
        position: relative;
        width: 100%;
        margin: 0;
    }
    
    .app-nav.active .dropdown-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
    }

    /* Style dropdown content inside mobile nav */
    .app-nav.active .nav-dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.02);
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--neon-purple, #a855f7);
        padding-left: 10px;
        margin: 5px 0 10px 10px;
        width: calc(100% - 20px);
        transform: none;
        left: auto;
    }
    
    .app-nav.active .dropdown-item {
        padding: 12px 15px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.25s ease;
    }

    .app-nav.active .dropdown-item:last-child {
        border-bottom: none;
    }

    .app-nav.active .dropdown-item:hover {
        color: #fff;
        background: transparent;
        padding-left: 20px;
    }
    
    .app-nav.active .nav-dropdown.open .nav-dropdown-content {
        display: block;
    }
}

/* Storyboard Cards Layout */
.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem;
}

.storyboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.storyboard-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.storyboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.storyboard-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.95rem;
}

.storyboard-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storyboard-card-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.storyboard-card-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.storyboard-card-field textarea,
.storyboard-card-field input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.85rem;
    font-family: var(--font-body);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.storyboard-card-field textarea:focus,
.storyboard-card-field input[type="text"]:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.enhance-prompt-btn {
    align-self: flex-end;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s, opacity 0.2s;
}

.enhance-prompt-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.enhance-prompt-btn:active {
    transform: translateY(0);
}

/* Responsive Studio Tabs for Mobile */
@media (max-width: 991px) {
    .studio-headers {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 1.5rem;
    }

    .studio-tab-btn {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 0.72rem;
        padding: 0.75rem 0.25rem;
        text-align: center;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
        min-height: 50px;
    }

    .studio-tab-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .studio-tab-btn.active {
        background: rgba(168, 85, 247, 0.15);
        border-color: var(--neon-purple, #a855f7);
        color: var(--text-primary);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    }

    .studio-tab-btn.active::after {
        display: none; /* Hide the static underline bar in grid/pill mode */
    }
}



/* ==========================================================================
   INTERACTIVE TIMELINE STYLES
   ========================================================================== */
.timeline-tracks-container::-webkit-scrollbar {
    height: 8px;
}
.timeline-tracks-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.timeline-tracks-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.timeline-tracks-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.timeline-block-visual {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(126, 34, 206, 0.45));
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.timeline-block-visual:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

.timeline-block-visual.active {
    border-color: #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(126, 34, 206, 0.65)) !important;
}

.timeline-block-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    transition: background-color 0.2s;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 10;
}

.timeline-block-resize-handle:hover,
.timeline-block-resize-handle.resizing {
    background-color: rgba(168, 85, 247, 0.85);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
}

.timeline-block-voice {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.4));
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 5px;
    color: #e2e8f0;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    height: 24px;
}

.timeline-block-voice:hover {
    border-color: rgba(6, 182, 212, 0.7);
}

.timeline-volume-indicator {
    font-size: 0.6rem;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    font-family: monospace;
}


/* AI Avatar Selector Styles */
.avatar-preset-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.avatar-preset-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    transform: translateY(-2px);
}
.avatar-preset-card.active-preset {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}
.avatar-preset-card.active-preset img {
    border-color: var(--neon-cyan) !important;
}

/* Collapsible Accordion Sections for UI Simplification */
.accordion-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-section[open] {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.08);
}

.accordion-header {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--neon-cyan);
}

.accordion-section[open] .accordion-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(168, 85, 247, 0.08);
    color: var(--neon-cyan);
}

.accordion-header::after {
    content: '▶';
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.accordion-section[open] .accordion-header::after {
    transform: rotate(90deg);
    color: var(--neon-cyan);
}

.accordion-content {
    padding: 18px;
    background: rgba(0, 0, 0, 0.25);
}

/* Custom Form Field Validation Shake & Glow Error styles */
.input-error-highlight {
    border: 2px solid var(--neon-pink) !important;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6) !important;
    animation: field-shake 0.4s ease-in-out;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}


/* Hide duplicate tab headers inside the Creator Studio */
.studio-headers {
    display: none !important;
}

/* Soften inputs, select options and textarea borders */
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(10, 10, 15, 0.45) !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--neon-purple, #a855f7) !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25) !important;
}

/* Scene breakdown card textareas and inputs styling */
.scenes-inputs-container {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
}
.scene-input-box {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.015) !important;
}
.scenes-inputs-container textarea, 
.scenes-inputs-container select {
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.scenes-inputs-container textarea:focus, 
.scenes-inputs-container select:focus {
    border-color: rgba(168, 85, 247, 0.8) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4) !important;
}

/* Single Column Layout for Video Studio Tab */
#tab-video-studio .dashboard-grid {
    display: block !important;
    width: 100%;
    position: relative;
}

#tab-video-studio .control-panel {
    width: 100% !important;
}

/* Floating Monitor Toggle Button */
.floating-monitor-btn {
    display: none !important; /* Removed - handled by main Generation Overlay */
}

/* Execution Monitor Large Full Modal Window Overlay */
#log-panel-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    width: 90vw !important;
    max-width: 1100px !important;
    height: 85vh !important;
    max-height: 850px !important;
    background: rgba(10, 10, 22, 0.98) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.25) !important;
    z-index: 2000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 28px !important;
    box-sizing: border-box;
}

#log-panel-container.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

@media (max-width: 768px) {
    #log-panel-container {
        width: 95vw !important;
        height: 90vh !important;
        padding: 18px !important;
    }
}

/* Close button inside execution monitor drawer */
.log-panel-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 100;
}
.log-panel-close-btn:hover {
    color: white;
}

/* Backdrop Overlay */
.log-panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
}
.log-panel-backdrop.active {
    display: block;
}

/* =========================================================================
   Admin Portal Nested Sub-Menu & Sub-Dropdown Styles
   ========================================================================= */

.sub-dropdown-toggle {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    color: var(--text-secondary) !important;
    box-sizing: border-box;
    transition: all 0.25s ease !important;
}

.sub-dropdown-toggle:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-left: none !important;
    padding-left: 12px !important;
}

.sub-nav-link {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-secondary) !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    transition: all 0.25s ease !important;
    text-align: left !important;
    width: 100% !important;
}

.sub-nav-link:hover {
    color: white !important;
    background: rgba(168, 85, 247, 0.08) !important;
    border-left: 1px solid transparent !important;
    padding-left: 10px !important;
}

.sub-nav-link.active {
    color: white !important;
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
    padding-left: 10px !important;
}

/* =========================================================================
   Recommended AI Tools Directory Tab Styles
   ========================================================================= */

.rec-tools-filter-pill {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rec-tools-filter-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.rec-tools-filter-pill.active {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--neon-pink, #ff007f);
    color: var(--neon-pink, #ff007f);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.15);
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan, #00f2fe), var(--neon-pink, #ff007f));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card .card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.tool-card .logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-card .tool-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.tool-card .logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 127, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan, #00f2fe);
    font-family: 'Outfit', sans-serif;
}

.tool-card .title-wrapper {
    flex: 1;
}

.tool-card .tool-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-card .category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neon-cyan, #00f2fe);
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.tool-card .rating-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-card .rating-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-card .star-icon {
    color: #ffb800;
    font-size: 0.95rem;
}

.tool-card .rating-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-card .pricing-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 8px;
}

.tool-card .tool-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.tool-card .visit-link {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--gradient-btn);
    color: var(--bg-main);
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    border: none;
    cursor: pointer;
}

.tool-card .visit-link:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
    filter: brightness(1.1);
}


/* =========================================================================
   --- SIDEBAR BORDER & COLLAPSE REFINEMENTS ---
   ========================================================================= */

/* Parent Menu Border Highlighting (Desktop & Normal states) */
.sidebar-menu-wrapper .dropdown-toggle,
#nav-admin-btn {
    border: 2px solid rgba(168, 85, 247, 0.95) !important;
    background: rgba(168, 85, 247, 0.16) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.3) !important;
    margin: 6px 0 !important;
    font-weight: 750 !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6) !important;
    transition: all 0.25s ease !important;
}

.sidebar-menu-wrapper .dropdown-toggle:hover,
.sidebar-menu-wrapper .dropdown-toggle.active,
#nav-admin-btn:hover,
#nav-admin-btn.active {
    border-color: #bf00ff !important;
    background: rgba(168, 85, 247, 0.28) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.65), inset 0 0 8px rgba(168, 85, 247, 0.3) !important;
    color: #ffffff !important;
}

/* Sub-parent Menu Border Highlighting (Desktop & Normal states) */
.sidebar-sub-dropdown .sub-dropdown-toggle {
    border: 1.5px solid rgba(0, 242, 254, 0.75) !important;
    background: rgba(0, 242, 254, 0.08) !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(0, 242, 254, 0.5) !important;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15) !important;
    transition: all 0.2s ease !important;
}

.sidebar-sub-dropdown .sub-dropdown-toggle:hover,
.sidebar-sub-dropdown .sub-dropdown-toggle.active {
    border-color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.2) !important;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.45) !important;
    color: #ffffff !important;
}

/* Collapsed Sidebar Math-Centered Alignment for Emojis */
.app-sidebar.collapsed .nav-link {
    padding: 12px 28px !important;
    justify-content: flex-start !important;
    font-size: 1.25rem !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* Override Collapsed Sidebar States on Mobile Drawer View */
@media (max-width: 1024px) {
    .app-sidebar.collapsed .nav-link {
        padding: 12px 16px !important;
        justify-content: flex-start !important;
        font-size: 0.88rem !important;
        border-left: none !important;
    }
    .app-sidebar.collapsed .nav-link:hover,
    .app-sidebar.collapsed .nav-link.active {
        background: rgba(168, 85, 247, 0.1) !important;
        border-left: 3px solid var(--neon-purple, #a855f7) !important;
        padding-left: 13px !important;
    }
    
    /* Ensure sub-parent menu display works correctly inside mobile collapsed */
    .app-sidebar.collapsed .sidebar-sub-dropdown .sub-dropdown-toggle {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
}

/* Responsive mobile gallery grid layout (1 column on small screens) */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        max-width: 320px !important;
    }
}

/* =========================================================================
   MOBILE RESPONSIVE DRAWER & LAYOUT RULES (Moved to bottom for correct cascading)
   ========================================================================= */
@media (max-width: 1024px) {
    /* Responsive Layout */
    .app-layout {
        flex-direction: column !important;
    }
    
    .app-content-wrapper {
        padding: 16px !important;
    }

    /* Mobile Sticky Header Bar */
    .mobile-sticky-header {
        display: flex !important;
        z-index: 1000 !important; /* Keep header on top of all normal content, but below backdrop/sidebar */
    }

    /* Mobile Drawer Sidebar */
    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important; /* Hidden off-screen by default with safety offset */
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 100000 !important; /* Layer over all contents */
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.7) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: rgba(10, 10, 18, 0.98) !important;
        pointer-events: none !important; /* Prevent blocking clicks when hidden offscreen */
        visibility: hidden !important;
    }
    
    .app-sidebar.active {
        transform: translateX(320px) !important; /* Slide in drawer */
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .sidebar-backdrop {
        z-index: 99999 !important; /* Layer backdrop right below sidebar drawer but above sticky header */
    }

    /* Show Close Button on Mobile Drawer */
    .sidebar-close-btn {
        display: block !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-secondary) !important;
        font-size: 1.15rem !important;
        cursor: pointer !important;
        padding: 5px !important;
    }

    /* Hide Desktop Collapse Button on Mobile */
    .collapse-btn {
        display: none !important;
    }
    
    /* Ensure links display normally in mobile drawer view */
    .app-sidebar.collapsed {
        width: 260px !important;
        min-width: 260px !important;
    }

    .app-sidebar.collapsed .sidebar-header .logo-text {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .app-sidebar.collapsed .sidebar-footer .manual-pdf-link {
        display: flex !important;
    }

    .app-sidebar.collapsed .sidebar-user-widget {
        padding: 12px 15px !important;
        align-items: stretch !important;
    }

    .app-sidebar.collapsed .sidebar-user-widget > * {
        display: flex !important;
    }

    .app-sidebar.collapsed .sidebar-user-widget::after {
        display: none !important;
    }
}

/* =========================================================================

/* =========================================================================
   Global Single-Column Layout & Form Optimization (Always stacked)
   ========================================================================= */
/* Stack form layout grids into a single vertical column always */
.studio-form-pane [style*="grid-template-columns"],
#autopilot [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
}

/* Stack flex topic select row and language dropdowns vertically */
.topic-select-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
}
.topic-select-row > * {
    width: 100% !important;
}

/* Align How to Use / วิธีใช้งาน links to the left/start */
.how-to-use-row {
    justify-content: flex-start !important;
}

/* Hide all Save Template buttons completely across the platform */
button[onclick^="openSaveFormAsTemplateModal"],
#modal-save-template-btn {
    display: none !important;
}


/* =========================================================================
   Hide Language & Subtitle Mode elements (Automatic background sync)
   ========================================================================= */
/* [RESTORED] Restored visibility of Language & Subtitle Mode elements for custom styling customization as requested by the user */
/*
#lang-select,
#series-lang-select,
#ad-lang-select,
#bulk-lang-select,
#batch-campaign-lang,
#auto-campaign-lang,
#shorts-subtitle-lang-mode,
#series-subtitle-lang-mode,
#mv-subtitle-lang-mode,
#ad-subtitle-lang-mode,
#bulk-subtitle-lang-mode,
#auto-campaign-subtitle-lang-mode,
#storyboard-subtitle-lang-mode,
#shorts-subtitle-style-select,
#series-subtitle-style-select,
#mv-subtitle-style-select,
#ad-subtitle-style-select,
#bulk-subtitle-style-select,
#shorts-subtitle-enabled,
#series-subtitle-enabled,
#shorts-subtitle-config-link,
#series-subtitle-config-link,
#subtitle-config-modal,
label[for="lang-select"],
label[for="series-lang-select"],
label[for="ad-lang-select"],
label[for="bulk-lang-select"],
label[for="batch-campaign-lang"],
label[for="auto-campaign-lang"],
label[for="shorts-subtitle-lang-mode"],
label[for="series-subtitle-lang-mode"],
label[for="mv-subtitle-lang-mode"],
label[for="ad-subtitle-lang-mode"],
label[for="bulk-subtitle-lang-mode"],
label[for="auto-campaign-subtitle-lang-mode"],
label[for="storyboard-subtitle-lang-mode"],
label[for="shorts-subtitle-style-select"],
label[for="series-subtitle-style-select"],
label[for="mv-subtitle-style-select"],
label[for="ad-subtitle-style-select"],
label[for="bulk-subtitle-style-select"],
label[for="shorts-subtitle-enabled"],
label[for="series-subtitle-enabled"] {
    display: none !important;
}

.form-group:has(> #lang-select),
.form-group:has(> #series-lang-select),
.form-group:has(> #ad-lang-select),
.form-group:has(> #bulk-lang-select),
.form-group:has(> #batch-campaign-lang),
.form-group:has(> #auto-campaign-lang),
.form-group:has(> #shorts-subtitle-lang-mode),
.form-group:has(> #series-subtitle-lang-mode),
.form-group:has(> #mv-subtitle-lang-mode),
.form-group:has(> #ad-subtitle-lang-mode),
.form-group:has(> #bulk-subtitle-lang-mode),
.form-group:has(> #auto-campaign-subtitle-lang-mode),
.form-group:has(> #shorts-subtitle-enabled),
.form-group:has(> #series-subtitle-enabled) {
    display: none !important;
}
*/


/* =========================================================================
   Hide Apply Brand Kit selectors (Always use default brandsettings)
   ========================================================================= */
/* Hide select boxes and their corresponding labels */
#shorts-brand-kit-select,
#mv-brand-kit-select,
#series-brand-kit-select,
#ad-brand-kit-select,
#bulk-brand-kit-select,
#storyboard-brand-kit,
label[for="shorts-brand-kit-select"],
label[for="mv-brand-kit-select"],
label[for="series-brand-kit-select"],
label[for="ad-brand-kit-select"],
label[for="bulk-brand-kit-select"],
label[for="storyboard-brand-kit"] {
    display: none !important;
}

/* Hide parent form groups wrapping these selectors to avoid blank spacing */
.form-group:has(> #shorts-brand-kit-select),
.form-group:has(> #mv-brand-kit-select),
.form-group:has(> #series-brand-kit-select),
.form-group:has(> #ad-brand-kit-select),
.form-group:has(> #bulk-brand-kit-select) {
    display: none !important;
}

/* Sidebar Sub Tab Link Styling */
.nav-sub-link {
    padding-left: 28px !important;
    font-size: 0.84rem !important;
    opacity: 0.85;
}
.nav-sub-link:hover, .nav-sub-link.active {
    opacity: 1;
}
.app-sidebar.collapsed .nav-sub-link {
    padding: 12px 28px !important;
}

/* Clickable pregenerated/uploaded scene media hover effects */
.scene-preview-media {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.scene-preview-media:hover {
    transform: scale(1.04);
    border-color: #a855f7 !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.scene-preview-media::after {
    content: '▶';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: none;
}
.scene-preview-media:hover::after {
    opacity: 1;
}

/* Live Rendering Preview Monitor Cards */
#progress-visuals-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 15px;
}
#progress-visuals-container h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#progress-visuals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
@media (max-width: 768px) {
    #progress-visuals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    #progress-visuals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.render-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}
.render-card.active {
    border-color: var(--neon-blue);
    background: rgba(168, 85, 247, 0.04);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}
.render-card.completed {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.02);
}
.render-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.render-card-title {
    color: #e5e7eb;
}
.render-card-status {
    display: flex;
    gap: 4px;
    align-items: center;
}
.render-status-icon {
    font-size: 0.8rem;
}
.render-card-preview {
    width: 100%;
    height: 150px;
    background: #07070d;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.render-card-preview img, .render-card-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.render-card-placeholder {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    padding: 10px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* =========================================================================
   LIGHT MODE THEME & WORKSPACE LAYOUT OVERHAUL
   ========================================================================= */

/* Light Mode Variables & High-Contrast Colors */
[data-theme="light"],
body[data-theme="light"] {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --border-color: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --neon-blue: #0284c7;
    --neon-purple: #7e22ce;
    --neon-pink: #be185d;
    --neon-green: #047857;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .studio-form-pane,
[data-theme="light"] .app-sidebar,
[data-theme="light"] .app-header,
[data-theme="light"] .sidebar-header,
[data-theme="light"] .mobile-sticky-header {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #94a3b8 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: #7e22ce !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15) !important;
}

[data-theme="light"] label,
[data-theme="light"] p,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] span,
[data-theme="light"] div {
    color: #0f172a;
}

[data-theme="light"] .subtitle,
[data-theme="light"] .help-text,
[data-theme="light"] small {
    color: #475569 !important;
}

[data-theme="light"] .nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: #f1f5f9 !important;
    color: #7e22ce !important;
}

[data-theme="light"] .glowing-btn {
    border-color: #7e22ce !important;
    color: #ffffff !important;
}

/* 2. Hide Footer in Studio Workspace to Maximize Vertical Height */
body.studio-workspace-active footer.app-footer,
body.studio-workspace-active .app-footer,
.studio-workspace-active footer,
#tab-video-studio footer,
#tab-voice-lab footer,
#tab-series-studio footer,
#tab-ads-studio footer {
    display: none !important;
}

/* 3. Expand Horizontal Width & Eliminate Nested Double Frames */
.app-container {
    max-width: 1560px !important; /* Expanded wide workspace */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
}

.main-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Eliminate redundant nested double borders & inner card paddings */
.studio-form-pane {
    padding: 1.25rem 1.5rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.studio-form-pane .glass-card {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.studio-form-pane fieldset,
.studio-form-pane .form-section {
    border: 1px solid var(--border-color) !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    body {
        padding: 0.25rem 0.15rem !important;
    }
    .app-container {
        padding: 0.15rem !important;
    }
    .app-content-wrapper {
        padding: 0 !important;
    }
    .studio-form-pane {
        padding: 0.75rem 0.5rem !important;
        border-radius: 10px !important;
    }
    .mobile-sticky-header {
        padding: 10px 12px !important;
    }
    .form-row, .grid-row, [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}





/* =========================================================================
   MOBILE STUDIO WORKSPACE & EXPANDED ACCORDION OPTIMIZATIONS
   ========================================================================= */

/* 1. Hide Footer on Mobile Screens & Studio Workspaces to Maximize Screen Area */
@media (max-width: 1024px) {
    footer,
    .app-footer,
    #app-footer,
    footer.app-footer,
    .mobile-footer-hide {
        display: none !important;
    }
}

body.studio-workspace-active footer,
#tab-video-studio footer,
#tab-music-lab footer,
#tab-voice-lab footer,
#tab-series-studio footer,
#tab-ads-studio footer,
#tab-batch-generation footer {
    display: none !important;
}

/* 2. Always-Expanded Studio Accordion Sections on Mobile Devices */
@media (max-width: 1024px) {
    .accordion-section {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
        border-radius: 12px !important;
        margin-bottom: 1.25rem !important;
        overflow: visible !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    [data-theme="light"] .accordion-section {
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .accordion-header {
        padding: 12px 14px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(168, 85, 247, 0.12) !important;
        color: var(--neon-cyan) !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.4 !important;
    }

    [data-theme="light"] .accordion-header {
        background: #f1f5f9 !important;
        color: #7e22ce !important;
        border-bottom-color: #cbd5e1 !important;
    }

    .accordion-header::after {
        content: '▼' !important;
        transform: none !important;
        color: var(--neon-cyan) !important;
    }

    /* Force accordion content to be expanded & visible on mobile screens */
    .accordion-content {
        display: block !important;
        padding: 16px 14px !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }

    [data-theme="light"] .accordion-content {
        background: #ffffff !important;
    }
}


/* =========================================================================
   SINGLE-COLUMN OPTION RADIO CARDS (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================= */
.option-radio-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.option-radio-card:hover {
    border-color: var(--neon-purple, #a855f7) !important;
    background: rgba(168, 85, 247, 0.06) !important;
    transform: translateY(-1px) !important;
}

.option-radio-card:has(input:checked) {
    border-color: var(--neon-purple, #a855f7) !important;
    background: rgba(168, 85, 247, 0.12) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

[data-theme="light"] .option-radio-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .option-radio-card:hover {
    border-color: #7e22ce !important;
    background: #f8fafc !important;
}

[data-theme="light"] .option-radio-card:has(input:checked) {
    border-color: #7e22ce !important;
    background: #f1f5f9 !important;
    box-shadow: 0 0 10px rgba(126, 34, 206, 0.15) !important;
}

/* Header How to Use Row Responsive Layout */
@media (max-width: 768px) {
    .how-to-use-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
}

/* High-Contrast AI Image Generator Button Styling */
.generate-asset-image-btn {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}
.generate-asset-image-btn:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.7) !important;
    opacity: 0.95 !important;
}

/* Short Video Studio High-Contrast Mobile Rules */
.viral-clip-notice ul li {
    color: #ffffff !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

#tab-shorts button[onclick*="applyScene1ToAll"] {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
    white-space: nowrap !important;
}

.sub-scene-add-btn, button[onclick*="addSubScene"] {
    white-space: nowrap !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.pregenerate-media-btn, button[onclick*="pregenerateSceneMedia"] {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
    white-space: nowrap !important;
}

/* Explicit Pure White Text Override for All Glowing & Generation CTA Buttons in Light/Dark Themes & Mobile */
.glowing-btn,
.glowing-btn span,
.glowing-btn .btn-text,
.glowing-btn *,
[data-theme="light"] .glowing-btn,
[data-theme="light"] .glowing-btn span,
[data-theme="light"] .glowing-btn .btn-text,
[data-theme="light"] .glowing-btn *,
#generate-mv-btn, #generate-mv-btn span, #generate-mv-btn .btn-text,
#generate-btn, #generate-btn span, #generate-btn .btn-text,
#generate-series-btn, #generate-series-btn span, #generate-series-btn .btn-text,
#generate-ad-btn, #generate-ad-btn span, #generate-ad-btn .btn-text {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    font-weight: 800 !important;
}

/* High-Contrast 3-Line Mobile Hamburger Menu Button */
.hamburger-menu-btn,
#mobile-menu-toggle-btn {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45) !important;
    position: relative !important;
    z-index: 100001 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hamburger-menu-btn:active,
#mobile-menu-toggle-btn:active {
    transform: scale(0.92) !important;
}

.hamburger-menu-btn span,
#mobile-menu-toggle-btn span,
[data-theme="light"] .hamburger-menu-btn,
[data-theme="light"] .hamburger-menu-btn span,
[data-theme="light"] #mobile-menu-toggle-btn,
[data-theme="light"] #mobile-menu-toggle-btn span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* Explicit High-Contrast Rules for 3 Pillars of Viral Clip Box in All Mobile Devices & Light/Dark Themes */
.viral-clip-notice {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border-left: 5px solid #a855f7 !important;
    border-top: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-right: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.4) !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .viral-clip-notice {
    background: #1e1b4b !important;
    border-left: 5px solid #a855f7 !important;
}

.viral-clip-notice strong,
.viral-clip-notice b,
[data-theme="light"] .viral-clip-notice strong,
[data-theme="light"] .viral-clip-notice b {
    color: #f472b6 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
}

.viral-clip-notice ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.viral-clip-notice ul li,
.viral-clip-notice li,
.viral-clip-notice p,
.viral-clip-notice span,
.viral-clip-notice div,
[data-theme="light"] .viral-clip-notice ul li,
[data-theme="light"] .viral-clip-notice li,
[data-theme="light"] .viral-clip-notice p,
[data-theme="light"] .viral-clip-notice span,
[data-theme="light"] .viral-clip-notice div {
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7) !important;
}

/* Explicit High-Contrast Rules for Sidebar Footer & User Widget Buttons */
.sidebar-user-widget {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .sidebar-user-widget {
    background: #1e1b4b !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.credits-display-badge,
.credits-display-badge *,
[data-theme="light"] .credits-display-badge,
[data-theme="light"] .credits-display-badge * {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

#logout-button,
.logout-btn,
[data-theme="light"] #logout-button,
[data-theme="light"] .logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

#user-display-name,
[data-theme="light"] #user-display-name {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Mobile-First Master Design Rules System (Ultra Clean & Clear Boundaries) */
@media (max-width: 768px) {
    /* Prevent iOS Safari Automatic Page Zooming on Inputs */
    input, select, textarea, button {
        font-size: 16px !important;
    }

    /* Clear Section Card Boundaries & Visual Isolation */
    .glass-card,
    .card,
    .form-group,
    .scene-input-box,
    .sub-scene-input-box,
    .accordion-section {
        border-radius: 12px !important;
        border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
        background: rgba(15, 23, 42, 0.85) !important;
        margin-bottom: 0.85rem !important;
        padding: 12px 14px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    }

    /* Parent Scene Cards: High-Contrast Distinct Outer Frame */
    .scene-input-box {
        border: 2px solid rgba(168, 85, 247, 0.55) !important;
        background: rgba(30, 27, 75, 0.65) !important;
    }

    /* Sub-Scene Cards: Distinct Dashed Frame */
    .sub-scene-input-box {
        border: 1.5px dashed rgba(99, 102, 241, 0.55) !important;
        background: rgba(15, 23, 42, 0.9) !important;
        margin-left: 0 !important;
        padding: 8px 10px !important;
    }

    /* High-Contrast Labels & Typography */
    label, .form-label {
        color: #f1f5f9 !important;
        font-weight: 700 !important;
        font-size: 0.88rem !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    p, span, .text-muted {
        color: #cbd5e1 !important;
    }

    /* Pure High-Contrast Mobile Input & Textarea Fields */
    input[type="text"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        background: rgba(0, 0, 0, 0.6) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        line-height: 1.45 !important;
    }

    input:focus, select:focus, textarea:focus {
        border-color: #a855f7 !important;
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
        outline: none !important;
    }

    /* Touch Target Action Buttons */
    button, .btn, .secondary-btn {
        min-height: 40px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
    }

    .primary-btn, .glowing-btn, #generate-btn, #shorts-generate-story-btn, #shorts-batch-pregen-btn {
        width: 100% !important;
        min-height: 46px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5) !important;
    }

    /* Story Controls Layout */
    .story-ai-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #shorts-story-duration,
    #shorts-story-ai-agent {
        width: 100% !important;
        min-width: 100% !important;
        height: 42px !important;
    }

    #shorts-est-time-badge {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        background: rgba(96, 165, 250, 0.12) !important;
        border: 1px solid rgba(96, 165, 250, 0.35) !important;
    }

    #shorts-scene-filter-select {
        width: 100% !important;
        height: 40px !important;
        font-size: 0.88rem !important;
    }

    .subscene-card-header {
        padding: 8px 10px !important;
        min-height: 40px !important;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%) !important;
        border: 1px solid rgba(168, 85, 247, 0.3) !important;
        border-radius: 6px !important;
    }

    .subscene-preview-text {
        max-width: 140px !important;
        font-size: 0.72rem !important;
    }

    .scenes-inputs-container {
        padding: 8px !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .subscene-preview-text {
        display: none !important;
    }

    .subscene-card-header span {
        max-width: 65% !important;
    }
}
.avatar-type-select {
    width: 100%;
    height: 30px;
    padding: 0 7px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.72rem;
}
#art-style-hover-preview {
    position: fixed;
    z-index: 100000;
    width: 262px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.85);
    border-radius: 10px;
    background: #151122;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 14px rgba(168, 85, 247, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    pointer-events: none;
}

#art-style-hover-preview.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#art-style-hover-preview .art-style-hover-preview-title {
    padding: 1px 3px 8px;
    color: #f3e8ff;
    font-size: 0.78rem;
    font-weight: 800;
}

#art-style-hover-preview .art-style-hover-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

#art-style-hover-preview .art-style-hover-preview-item {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

#art-style-hover-preview .art-style-hover-preview-item:hover,
#art-style-hover-preview .art-style-hover-preview-item.active {
    border-color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
    transform: translateY(-1px);
}

#art-style-hover-preview .art-style-hover-preview-item img {
    display: block;
    width: 100%;
    height: 54px;
    object-fit: cover;
    background: #090711;
}

#art-style-hover-preview .art-style-hover-preview-item span {
    display: block;
    padding: 4px 2px;
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================================
   SAFE RESPONSIVE + LIGHT MODE CONTRAST PATCH (v3.5.21)
   Appended overrides only: avoids changing the established layout structure.
   ========================================================================= */
[data-theme="light"] .main-content,
[data-theme="light"] .tab-pane,
[data-theme="light"] .studio-form-pane {
    color: #111827 !important;
}

[data-theme="light"] .main-content label,
[data-theme="light"] .main-content p,
[data-theme="light"] .main-content li,
[data-theme="light"] .main-content summary,
[data-theme="light"] .main-content .helper-text,
[data-theme="light"] .main-content .help-text,
[data-theme="light"] .main-content .text-muted {
    color: #1f2937 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

[data-theme="light"] .main-content .form-group,
[data-theme="light"] .main-content .form-section,
[data-theme="light"] .main-content .scene-input-box,
[data-theme="light"] .main-content .sub-scene-input-box,
[data-theme="light"] .main-content .accordion-section,
[data-theme="light"] .main-content .accordion-content {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #94a3b8 !important;
    opacity: 1 !important;
}

[data-theme="light"] .main-content .accordion-header {
    background: #eef2ff !important;
    color: #312e81 !important;
    border-color: #a5b4fc !important;
    opacity: 1 !important;
}

[data-theme="light"] .viral-components-info {
    background: #1e1b4b !important;
    border: 1px solid #7c3aed !important;
    border-left: 5px solid #a855f7 !important;
    box-shadow: 0 5px 18px rgba(30, 27, 75, 0.22) !important;
}

[data-theme="light"] .viral-components-info,
[data-theme="light"] .viral-components-info strong,
[data-theme="light"] .viral-components-info li {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

[data-theme="light"] #shorts-advanced-toggle-bar {
    background: #f5f3ff !important;
    border-color: #7c3aed !important;
}

[data-theme="light"] #shorts-advanced-toggle-bar span {
    color: #5b21b6 !important;
    opacity: 1 !important;
}

[data-theme="light"] .main-content button,
[data-theme="light"] .main-content button span,
[data-theme="light"] .main-content .primary-btn,
[data-theme="light"] .main-content .primary-btn span,
[data-theme="light"] .main-content .glowing-btn,
[data-theme="light"] .main-content .glowing-btn span,
[data-theme="light"] .main-content .badge {
    opacity: 1 !important;
}

[data-theme="light"] .app-footer {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .app-footer p,
[data-theme="light"] .app-footer span {
    color: #475569 !important;
    opacity: 1 !important;
}

[data-theme="light"] .app-footer a {
    color: #3730a3 !important;
    font-weight: 650 !important;
}

@media (max-width: 1024px) {
    /* Drawer uses transforms relative to its own width, avoiding fixed 320px clipping. */
    .app-sidebar,
    .app-sidebar.collapsed {
        left: 0 !important;
        width: min(330px, 92vw) !important;
        min-width: min(330px, 92vw) !important;
        max-width: 92vw !important;
        transform: translateX(-105%) !important;
    }

    .app-sidebar.active,
    .app-sidebar.collapsed.active {
        transform: translateX(0) !important;
    }

    .sidebar-header {
        padding: 12px !important;
    }

    .sidebar-header-top {
        gap: 8px !important;
    }

    .sidebar-header .logo-brand {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 8px !important;
    }

    .sidebar-header .logo-img {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        object-fit: cover !important;
    }

    .sidebar-header .logo-text,
    .app-sidebar.collapsed .sidebar-header .logo-text {
        display: block !important;
        min-width: 0 !important;
        max-width: 190px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 1rem !important;
        opacity: 1 !important;
    }

    .sidebar-user-widget > div:last-child {
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .credits-display-badge {
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 175px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.76rem !important;
    }

    #user-display-credits {
        min-width: 0 !important;
        max-width: 105px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #logout-button {
        flex: 0 0 auto !important;
        max-width: 100% !important;
    }

    /* Footer remains on informational pages, but not while using creation tools. */
    body .app-footer {
        display: flex !important;
    }

    body:has(#tab-video-studio.active) .app-footer,
    body:has(#tab-music-lab.active) .app-footer,
    body:has(#tab-voice-lab.active) .app-footer,
    body:has(#tab-batch-generation.active) .app-footer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    [data-theme="light"] .main-content .glass-card,
    [data-theme="light"] .main-content .card,
    [data-theme="light"] .main-content .form-group,
    [data-theme="light"] .main-content .scene-input-box,
    [data-theme="light"] .main-content .sub-scene-input-box,
    [data-theme="light"] .main-content .accordion-section {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #94a3b8 !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12) !important;
    }

    [data-theme="light"] .main-content input[type="text"],
    [data-theme="light"] .main-content input[type="number"],
    [data-theme="light"] .main-content input[type="password"],
    [data-theme="light"] .main-content select,
    [data-theme="light"] .main-content textarea {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #64748b !important;
        -webkit-text-fill-color: #111827 !important;
        opacity: 1 !important;
    }

    [data-theme="light"] .main-content input::placeholder,
    [data-theme="light"] .main-content textarea::placeholder {
        color: #64748b !important;
        opacity: 1 !important;
    }

    [data-theme="light"] .main-content label,
    [data-theme="light"] .main-content .form-label,
    [data-theme="light"] .main-content p,
    [data-theme="light"] .main-content li,
    [data-theme="light"] .main-content .text-muted {
        color: #1f2937 !important;
        opacity: 1 !important;
    }

    [data-theme="light"] .viral-components-info,
    [data-theme="light"] .viral-components-info strong,
    [data-theme="light"] .viral-components-info li {
        color: #ffffff !important;
    }

    [data-theme="light"] .app-sidebar {
        background: #ffffff !important;
        border-right: 1px solid #94a3b8 !important;
    }

    [data-theme="light"] .sidebar-header .logo-text {
        color: #0f172a !important;
    }

    [data-theme="light"] .sidebar-header .logo-text span {
        color: #0369a1 !important;
    }

    [data-theme="light"] .sidebar-header .theme-toggle-btn,
    [data-theme="light"] .sidebar-header .theme-toggle-btn span {
        color: #0f172a !important;
        border-color: #64748b !important;
    }

    [data-theme="light"] .accordion-header > span[style*="linear-gradient"] {
        color: #ffffff !important;
    }

    #shorts-est-time-badge {
        color: #1d4ed8 !important;
        background: #eff6ff !important;
        border-color: #60a5fa !important;
    }

    #shorts-est-time-badge span,
    #shorts-est-time-badge strong {
        color: #1d4ed8 !important;
    }
}
