:root {
    --zis-bg: #3C4A6B;
    --zis-panel: #1E2945;
    --zis-panel-border: #2C3B61;
    --zis-green: #22C55E;
    --zis-gold: #FACC15;
    --zis-text: #F8FAFC;
    --zis-muted: #CBD5E1;
}

body.zis-body {
    background-color: var(--zis-bg);
    color: var(--zis-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.zis-header {
    text-align: center;
    padding: 10px 10px 4px 10px;
}

.zis-brand-logo {
    width: 190px;
    height: auto;
    aspect-ratio: 350 / 150;
    object-fit: contain;
    margin: 0 auto 2px auto;
    display: block;
    border-radius: 8px;
}

.zis-tagline {
    font-style: italic;
    font-size: 1.0rem;
    color: #E2E8F0;
    margin-top: 2px;
}

.studio-grid {
    display: grid;
    grid-template-columns: 280px 1fr 290px;
    gap: 16px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 8px 18px;
    align-items: stretch;
}

.zis-panel {
    background-color: var(--zis-panel);
    border: 2px solid var(--zis-panel-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.panel-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93C5FD;
    margin-bottom: 6px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #3B4D7A;
    background: #273659;
    color: #FFFFFF;
}

    .cat-badge.active {
        border-color: var(--zis-green);
        background: rgba(34, 197, 94, 0.18);
        color: #86EFAC;
    }

    .cat-badge.locked {
        opacity: 0.45;
        cursor: not-allowed;
        font-size: 0.68rem;
    }

.zis-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 3px;
    display: block;
}

.zis-select, .zis-input {
    width: 100%;
    background-color: #FFFFFF;
    color: #0F172A;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dim-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.dim-box label {
    font-size: 0.68rem;
    color: #CBD5E1;
    display: block;
}

.dim-box input {
    width: 100%;
    border-radius: 5px;
    border: none;
    padding: 4px 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.color-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.color-item {
    text-align: center;
}

    .color-item label {
        font-size: 0.66rem;
        color: #CBD5E1;
        display: block;
        margin-bottom: 2px;
    }

    .color-item input[type="color"] {
        width: 100%;
        height: 26px;
        border: 1px solid #475569;
        border-radius: 4px;
        cursor: pointer;
        background: transparent;
    }

.budget-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.budget-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-zis-secondary {
    background: #33446E;
    color: #FFFFFF;
    border: 1px solid #4C6299;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-zis-secondary:hover, .btn-zis-secondary.active {
        background: var(--zis-green);
        color: #052E16;
        border-color: var(--zis-green);
    }

.center-stage-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.viewport-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #162038;
    border: 6px solid var(--zis-panel);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

    .viewport-frame img, .viewport-frame video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.stage-top-pill {
    position: absolute;
    top: 18.5%;
    left: 14px;
    background: rgba(30, 41, 69, 0.90);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stage-mode-toggle {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--zis-green);
    color: #052E16;
    border: 2px solid #052E16;
    padding: 13px 36px;
    min-width: 440px;
    border-radius: 30px;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    z-index: 10;
}

    .stage-mode-toggle:hover {
        background: #16A34A;
        color: #FFFFFF;
    }

.frindo-bar {
    margin-top: 10px;
    background: rgba(30, 41, 69, 0.9);
    border: 1px solid #3B4D7A;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.frindo-tag {
    background: var(--zis-green);
    color: #052E16;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.awaiting-box {
    background: #162038;
    border: 1px dashed #4C6299;
    border-radius: 10px;
    padding: 14px 10px;
    font-size: 0.78rem;
    color: #CBD5E1;
    text-align: center;
    margin-bottom: 12px;
}

.active-prop-card {
    background: #273659;
    border: 1px solid #3E548A;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.prop-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.prop-meta {
    font-size: 0.78rem;
    color: #CBD5E1;
    margin: 4px 0;
}

.add-cart-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid var(--zis-green);
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
    color: #86EFAC;
}

.cart-stack {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 220px;
    margin-bottom: 8px;
}

.cart-item-card {
    background: #162038;
    border-left: 4px solid var(--zis-green);
    border-radius: 6px;
    padding: 7px 9px;
    margin-bottom: 6px;
    font-size: 0.76rem;
    position: relative;
}

.cart-remove-btn {
    position: absolute;
    top: 5px;
    right: 7px;
    background: none;
    border: none;
    color: #F87171;
    font-weight: 800;
    cursor: pointer;
}

.ecosystem-summary {
    background: #162038;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.74rem;
    margin-bottom: 8px;
    border: 1px solid #33446E;
}

.eco-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.btn-furnish-more {
    width: 100%;
    background: #33446E;
    color: #FFFFFF;
    border: 1px solid #64748B;
    border-radius: 8px;
    padding: 7px;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 6px;
    cursor: pointer;
}

.btn-review-order {
    width: 100%;
    background: var(--zis-gold);
    color: #1E293B;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

    .btn-review-order:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.video-reveal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--zis-bg);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px 16px 12px 16px;
}

.reveal-stage-container {
    position: relative;
    width: 100%;
    max-width: 1060px;
    max-height: 86vh;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

    .reveal-stage-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.reveal-video-box {
    display: none;
    position: absolute;
    top: 28.0%;
    left: 26.8%;
    width: 46.4%;
    height: 48.0%;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

    .reveal-video-box video {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.reveal-controls-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #FACC15;
    border-radius: 24px;
    padding: 5px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    white-space: nowrap;
    z-index: 10000;
}

@media (max-width: 992px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }
}
