/* ==========================================================================
   SKILLZY TOOLS — TIKTOK QUALITY METHOD & PRO FASTSTART COMMAND DECK
   Signature Liquid Glass, Electric Cyan (#00c8ff), Obsidian Cinema Theme
   ========================================================================== */

.command-deck-container {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   TOP CONTROL BAR
   ========================================================================== */
.deck-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(10, 16, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    gap: 14px;
}

.deck-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-sigil {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(0, 200, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.35);
}

.brand-sigil svg {
    color: var(--cyan, #00c8ff);
    filter: drop-shadow(0 0 8px var(--cyan, #00c8ff));
}

.brand-titles h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-version-cyan {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: var(--cyan, #00c8ff);
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.brand-titles p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.deck-status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-node-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #cbd5e1;
}

.status-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan, #00c8ff);
    box-shadow: 0 0 10px var(--cyan, #00c8ff);
    animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.4; }
}

.btn-deck-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 12px;
    background: rgba(0, 200, 255, 0.06);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-deck-ghost:hover {
    background: rgba(0, 200, 255, 0.16);
    border-color: var(--cyan, #00c8ff);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.35);
}

/* ==========================================================================
   EXPANSIVE CINEMA STAGE & VIEWPORT
   ========================================================================== */
.master-cinema-stage {
    position: relative;
    background: #080c14;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.master-cinema-stage::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan, #00c8ff), #10b981, transparent);
}

.stage-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stage-tabs-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}

.stage-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stage-tab-btn.active {
    background: rgba(0, 200, 255, 0.12);
    color: var(--cyan, #00c8ff);
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.25);
}

.stage-telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #94a3b8;
}

/* The Viewport Frame */
.cinema-viewport-frame {
    position: relative;
    width: 100%;
    min-height: 360px;
    max-height: 480px;
    border-radius: 16px;
    background: #020306;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-corner-top-left {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.3);
    backdrop-filter: blur(8px);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #fff;
}

.hud-corner-top-right {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-crf-zero {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #34d399;
    backdrop-filter: blur(8px);
}

/* Prompt State */
.cinema-dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.cinema-dropzone-prompt:hover {
    background: rgba(0, 200, 255, 0.02);
}

.drop-radar-icon {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1.5px solid var(--cyan, #00c8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 0 35px rgba(0, 200, 255, 0.35);
    transition: transform 0.25s ease;
}

.cinema-dropzone-prompt:hover .drop-radar-icon {
    transform: scale(1.08);
}

.radar-sweep-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 200, 255, 0.35);
    animation: rotateSweep 14s linear infinite;
}

@keyframes rotateSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dropzone-hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.dropzone-hero-sub {
    font-size: 13px;
    color: #94a3b8;
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.format-capsule-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

.format-capsule {
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
}

/* Active Video State */
.cinema-active-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-active-view canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cinema-active-view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Completed Output View */
.cinema-completed-view {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.completed-cinema-video {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9/16;
    max-height: 300px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--cyan, #00c8ff);
    box-shadow: 0 0 35px rgba(0, 200, 255, 0.35);
    background: #000;
}

.completed-cinema-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ticker Strip */
.stage-ticker-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .stage-ticker-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ticker-metric-cell {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.metric-k {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.metric-v {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 2px 0;
}

.metric-v.cyan { color: var(--cyan, #00c8ff); }
.metric-v.emerald { color: #10b981; }

.metric-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #94a3b8;
}

/* ==========================================================================
   PRECISION CONTROL CONSOLE (BOTTOM RACK)
   ========================================================================== */
.master-control-rack {
    background: #080c14;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rack-switches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .rack-switches-grid {
        grid-template-columns: 1fr;
    }
}

.rack-module-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.module-title-wrap h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.module-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
}

.version-segment-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
    margin-top: 8px;
}

.btn-segment {
    padding: 6px 0;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-segment.active {
    background: var(--cyan, #00c8ff);
    color: #04060a;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
}

/* Action CTA Bar */
.rack-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-summary-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: #94a3b8;
}

.spec-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan, #00c8ff);
}

.btn-execute-quality {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan, #00c8ff), #0099ff);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.35);
    transition: all 0.2s ease;
}

.btn-execute-quality:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(0, 200, 255, 0.6);
}

.execution-dock-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: rgba(0, 200, 255, 0.04);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 14px;
}

.btn-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--cyan, #00c8ff);
    color: #000;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.35);
    text-decoration: none;
}

.btn-inspect-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* ==========================================================================
   MODALS (GUIDE & REAL-TIME PROGRESS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 6, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

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

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: linear-gradient(135deg, rgba(10, 16, 28, 0.98), rgba(6, 10, 18, 0.98));
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 200, 255, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.modal-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-left h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.modal-title-left p {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.btn-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .guide-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.guide-spec-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.guide-spec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan, #00c8ff);
    margin-bottom: 4px;
}

.guide-spec-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.guide-spec-note {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.golden-rule-callout {
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 12px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.progress-ring-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.svg-ring-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.svg-ring-container svg {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 7;
}

.ring-indicator {
    fill: none;
    stroke: var(--cyan, #00c8ff);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 6px var(--cyan, #00c8ff));
}

.ring-center-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.linear-progress-wrapper {
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.linear-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan, #00c8ff), #10b981);
    box-shadow: 0 0 12px var(--cyan, #00c8ff);
    transition: width 0.25s ease;
}

.progress-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.prog-stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.prog-stat-box .l {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.prog-stat-box .v {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.logs-console {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    max-height: 110px;
    overflow-y: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

