:root {

    --green-dark: #06150c;
    --green: #075225;
    --green-light: #0d6b34;

    --orange: #d97706;

    --white: #ffffff;

    --cream: #f8f6ef;

    --red: #d52222;

    --border: rgba(255, 255, 255, 0.12);

    --muted: #aeb8b1;

}


/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */

* {

    box-sizing: border-box;

}


html,
body {

    margin: 0;

    padding: 0;

    min-height: 100%;

}


body {

    background:
        radial-gradient(
            circle at top right,
            rgba(10, 94, 45, .35),
            transparent 40%
        ),
        var(--green-dark);

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */

.topbar {

    min-height: 78px;

    background: var(--white);

    color: var(--green);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 13px 25px;

    border-bottom:
        4px solid var(--orange);

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.crest {

    width: 52px;

    height: 52px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--green);

    border: 3px solid var(--orange);

    color: white;

    font-weight: 900;

    line-height: 1;

}


.crest span {

    color: var(--orange);

    font-size: 18px;

}


.brand-title {

    font-size: 19px;

    font-weight: 900;

}


.brand-subtitle {

    color: var(--orange);

    font-size: 20px;

    font-weight: 900;

}


.top-status {

    display: flex;

    align-items: center;

    gap: 9px;

    flex-wrap: wrap;

    font-size: 14px;

}


.live-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--red);

}


/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

.page {

    width: min(
        1400px,
        calc(100% - 30px)
    );

    margin: 0 auto;

    padding: 25px 0;

}


.page-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

}


.page-heading h1 {

    margin: 0;

    font-size: clamp(
        30px,
        5vw,
        48px
    );

}


.page-heading p {

    margin: 7px 0 0;

    color: var(--muted);

}


.connection-status {

    border:
        1px solid var(--border);

    border-radius: 999px;

    padding: 9px 15px;

    color: #ffd18a;

    white-space: nowrap;

}


.connection-status.connected {

    color: #8ce6a4;

    border-color:
        rgba(80, 210, 110, .35);

}


/* ---------------------------------------------------------
   SETUP
--------------------------------------------------------- */

.setup-panel {

    background: rgba(
        9,
        39,
        23,
        .92
    );

    border:
        1px solid var(--border);

    border-radius: 18px;

    padding: 28px;

}


.setup-title h2 {

    margin-top: 0;

    margin-bottom: 8px;

}


.setup-title p {

    color: var(--muted);

}


.setup-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 17px;

    margin:
        22px 0;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.form-group label {

    font-weight: 700;

}


input,
select {

    width: 100%;

    border:
        1px solid #2d4d39;

    background: #041009;

    color: white;

    border-radius: 10px;

    padding: 13px 14px;

    font-size: 15px;

}


input:focus,
select:focus {

    outline: none;

    border-color: var(--orange);

}


.primary-btn {

    background: var(--orange);

    color: white;

    padding:
        14px 24px;

    border: 0;

    border-radius: 10px;

    font-weight: 900;

    cursor: pointer;

    font-size: 15px;

}


.primary-btn:hover {

    opacity: .9;

}


.development-warning {

    margin-top: 20px;

    padding: 13px 15px;

    border-left:
        4px solid var(--orange);

    background:
        rgba(
            217,
            119,
            6,
            .08
        );

    color: var(--muted);

    font-size: 13px;

}


.development-warning p {

    margin-bottom: 0;

}


/* ---------------------------------------------------------
   LIVE PANEL
--------------------------------------------------------- */

.live-panel {

    display: grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        340px;

    gap: 16px;

}


.stage-container,
.side-panel {

    background:
        rgba(
            9,
            39,
            23,
            .95
        );

    border:
        1px solid var(--border);

    border-radius: 17px;

}


.stage-container {

    padding: 14px;

    min-width: 0;

}


.stage-topbar {

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    color: var(--muted);

}


.live-badge {

    display: inline-block;

    background: var(--red);

    color: white;

    padding:
        5px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 900;

    margin-right: 8px;

}


.room-name {

    font-weight: 700;

}


.viewer-info {

    white-space: nowrap;

}


/* ---------------------------------------------------------
   VIDEO GRID
--------------------------------------------------------- */

.video-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;

    min-height: 450px;

    margin-top: 8px;

}


.video-card {

    position: relative;

    min-height: 300px;

    background: #020704;

    border:
        1px solid #254934;

    border-radius: 14px;

    overflow: hidden;

}


.participant-video {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 300px;

    object-fit: cover;

    background: #020704;

}


.participant-audio {

    display: none;

}


.video-placeholder {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: var(--muted);

}


.avatar {

    width: 88px;

    height: 88px;

    border-radius: 50%;

    background: #123c25;

    border:
        2px solid var(--orange);

    display: grid;

    place-items: center;

    font-size: 34px;

    font-weight: 900;

}


.camera-off-text {

    font-size: 13px;

}


.participant-label {

    position: absolute;

    bottom: 10px;

    left: 10px;

    right: 10px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    padding:
        9px 11px;

    border-radius: 9px;

    background:
        rgba(
            0,
            20,
            10,
            .88
        );

}


.participant-name {

    font-weight: 900;

}


.participant-role {

    color: #ffb74a;

    font-size: 11px;

    font-weight: 900;

}


/* ---------------------------------------------------------
   CONTROLS
--------------------------------------------------------- */

.control-bar {

    display: flex;

    align-items: center;

    gap: 9px;

    flex-wrap: wrap;

    padding-top: 14px;

}


.control-btn {

    border:
        1px solid #31523d;

    background: #143722;

    color: white;

    padding:
        11px 14px;

    border-radius: 9px;

    font-weight: 800;

    cursor: pointer;

}


.control-btn:hover {

    border-color:
        var(--orange);

}


.raise-btn {

    border-color:
        var(--orange);

}


.leave-btn {

    background:
        #6e2020;

    border-color:
        #8f3030;

}


/* ---------------------------------------------------------
   SIDE PANEL
--------------------------------------------------------- */

.side-panel {

    padding:
        13px 15px;

}


.side-section {

    padding:
        10px 0 16px;

    border-bottom:
        1px solid var(--border);

}


.side-section:last-child {

    border-bottom: 0;

}


.side-section h3 {

    margin:
        0 0 11px;

}


.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.count-badge {

    background:
        var(--orange);

    padding:
        3px 8px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 900;

}


.audience-number {

    display: flex;

    align-items: baseline;

    gap: 7px;

    color: var(--muted);

}


.audience-number strong {

    color: white;

    font-size: 30px;

}


/* ---------------------------------------------------------
   RAISED HANDS
--------------------------------------------------------- */

.hands-queue {

    display: grid;

    gap: 7px;

}


.hands-queue.empty {

    color: var(--muted);

    font-size: 13px;

}


.hand-item {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    text-align: left;

    background:
        #112d1c;

    border:
        1px solid #2b5139;

    color: white;

    border-radius: 9px;

    padding: 10px;

    cursor: pointer;

}


.hand-item:hover,
.hand-item.selected {

    border-color:
        var(--orange);

}


.hand-icon {

    font-size: 20px;

}


.hand-item strong {

    display: block;

}


.hand-item small {

    display: block;

    margin-top: 3px;

    color: var(--muted);

}


/* ---------------------------------------------------------
   CHAT
--------------------------------------------------------- */

.chat-list {

    height: 170px;

    overflow-y: auto;

    background:
        #041009;

    border:
        1px solid #244633;

    border-radius: 9px;

    padding: 8px;

}


.chat-message {

    padding:
        6px 3px;

    color: #dfe9e3;

    font-size: 13px;

}


.chat-form {

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 7px;

    margin-top: 8px;

}


.chat-form button {

    background:
        var(--orange);

    color: white;

    border: 0;

    border-radius: 8px;

    padding:
        0 15px;

    font-weight: 800;

    cursor: pointer;

}


/* ---------------------------------------------------------
   MODERATOR
--------------------------------------------------------- */

.moderator-buttons {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

}


.approve-btn,
.remove-btn {

    border: 0;

    color: white;

    padding:
        10px 12px;

    border-radius: 8px;

    font-weight: 800;

    cursor: pointer;

}


.approve-btn {

    background:
        #1d6b37;

}


.remove-btn {

    background:
        #762323;

}


.selected-participant {

    margin-top: 10px;

    padding:
        10px;

    border:
        1px solid #2b4b37;

    border-radius: 8px;

    color: var(--muted);

    font-size: 13px;

}


.muted {

    color: var(--muted);

    font-size: 13px;

}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

footer {

    border-top:
        1px solid var(--border);

    margin-top: 20px;

    padding:
        18px 25px;

    display: flex;

    justify-content: space-between;

    gap: 10px;

    color: var(--muted);

    font-size: 13px;

}


/* ---------------------------------------------------------
   UTILITY
--------------------------------------------------------- */

.hidden {

    display: none !important;

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (
    max-width: 950px
) {

    .live-panel {

        grid-template-columns: 1fr;

    }

}


@media (
    max-width: 700px
) {

    .topbar {

        align-items: flex-start;

        flex-direction: column;

    }


    .page-heading {

        align-items: flex-start;

        flex-direction: column;

    }


    .setup-grid {

        grid-template-columns: 1fr;

    }


    .video-grid {

        grid-template-columns: 1fr;

        min-height: 300px;

    }


    .video-card {

        min-height: 240px;

    }


    .participant-video {

        min-height: 240px;

    }


    footer {

        flex-direction: column;

    }

}


@media (
    max-width: 450px
) {

    .page {

        width: calc(100% - 20px);

    }


    .setup-panel {

        padding: 18px;

    }


    .stage-container {

        padding: 9px;

    }


    .room-name {

        display: none;

    }

}