.admin-workspace {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.stream-connection-panel {
    box-sizing: border-box;
    width: 90%;
    margin: 2vh 0 0;
    padding: 22px;
    color: var(--main-clr);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow:
        15px 15px 35px -10px var(--alt-clr-two) inset,
        -15px -15px 35px -10px var(--alt-clr-one) inset,
        0 0 15px 6px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.stream-connection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stream-connection-header h2 {
    margin: 4px 0 0;
}

.stream-connection-description,
.stream-connection-status,
.stream-last-gift {
    color: rgba(255, 255, 255, 0.72);
}

.stream-connection-description {
    margin: 12px 0 18px;
}

.stream-connection-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.stream-connection-form label {
    flex: 0 0 100%;
    color: rgba(255, 255, 255, 0.78);
}

.stream-connection-form input {
    box-sizing: border-box;
    flex: 1 1 220px;
    min-width: 0;
    padding: 11px 12px;
    color: var(--main-clr);
    font: inherit;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 10px;
}

.stream-connection-form input:focus {
    outline: 2px solid rgba(88, 217, 220, 0.65);
}

.stream-connect-button,
.stream-disconnect-button {
    min-height: 42px;
    padding: 9px 16px;
    color: var(--main-clr);
    font: inherit;
    font-weight: 650;
    background: var(--card-bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    box-shadow:
        6px 6px 18px -8px var(--alt-clr-three) inset,
        -6px -6px 18px -8px var(--alt-clr-four) inset;
    transition: filter 160ms ease, border-color 160ms ease;
}

.stream-connect-button:hover,
.stream-disconnect-button:hover {
    filter: brightness(1.15);
    border-color: rgba(20, 250, 255, 0.55);
}

.stream-disconnect-button {
    background: rgba(255, 70, 95, 0.16);
    box-shadow: none;
}

.stream-connect-button:disabled,
.stream-disconnect-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.stream-connection-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--nav-inactive-clr);
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.stream-connection-badge[data-status="connected"] {
    color: #8df7d1;
    border-color: rgba(80, 255, 190, 0.45);
}

.stream-connection-badge[data-status="connecting"] {
    color: #ffe28a;
    border-color: rgba(255, 226, 138, 0.45);
}

.stream-connection-badge[data-status="error"] {
    color: #ff9ba9;
    border-color: rgba(255, 95, 120, 0.5);
}

.stream-connection-status,
.stream-last-gift {
    margin: 14px 0 0;
}

.stream-last-gift {
    color: #c6ffff;
    overflow-wrap: anywhere;
}

.admin-workspace .gift-add-con {
    width: 80%;
    height: fit-content;
    padding: 5%;
    background: var(--card-bg);
    box-shadow:
        15px 15px 35px -10px var(--alt-clr-two) inset,
        -15px -15px 35px -10px var(--alt-clr-one) inset,
        0px 0px 15px 10px rgba(0,0,0,0.5);
    color: var(--main-clr);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.admin-workspace .sender-gift-con {
    width: 80%;
    height: fit-content;
    padding: 5%;
    background: var(--card-bg);
    box-shadow:
        15px 15px 35px -10px var(--alt-clr-two) inset,
        -15px -15px 35px -10px var(--alt-clr-one) inset,
        0px 0px 15px 10px rgba(0,0,0,0.5);
    color: var(--main-clr);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.req-send-btn {
    width: 50%;
    padding: 5%;
    margin: 10%;
    cursor: pointer;
    background: linear-gradient(0deg, #141414ec, #00000cea, #00000cea, #141414ec);
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    min-height: 5vh;
    position: relative;
    isolation: isolate;
    border-radius: 50px;
}



.gift-add-con, .sender-gift-con {
    margin: 5vh 0;
}

/* Admin gift picker modal */
.gift-select-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    margin: auto;
    padding: 24px;
    overflow: hidden;

    color: #f5f8ff;
    background:
        linear-gradient(145deg, rgba(17, 24, 42, 0.98), rgba(8, 11, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow:
        12px 12px 32px -16px rgba(20, 255, 239, 0.32) inset,
        -12px -12px 32px -16px rgba(165, 20, 255, 0.3) inset,
        0 18px 55px rgba(0, 0, 0, 0.65);
}
.gift-select-dialog::backdrop {
    background: rgba(3, 5, 12, 0.76);
    backdrop-filter: blur(8px);
}
.gift-select-dialog h2 {
    margin: 0 88px 20px 0;
    color: #f5f8ff;
    font-size: clamp(1.25rem, 4vw, 1.7rem);
}
.gift-select-dialog > button {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 13px;

    color: #f5f8ff;
    font: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}
.gift-select-dialog > button:hover {
    background: rgba(88, 217, 220, 0.15);
    border-color: rgba(88, 217, 220, 0.7);
}
.gift-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: min(62vh, 560px);
    padding: 2px 5px 5px 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.gift-select-option {
    display: flex;
    min-width: 0;
    min-height: 116px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 8px;

    color: #f5f8ff;
    font: inherit;
    text-align: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}
.gift-select-option:hover,
.gift-select-option:focus-visible {
    background: rgba(88, 217, 220, 0.1);
    border-color: rgba(88, 217, 220, 0.7);
    box-shadow:
        0 0 16px rgba(20, 255, 239, 0.18),
        0 0 16px rgba(165, 20, 255, 0.12);
    transform: translateY(-2px);
    outline: none;
}
.gift-select-option img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.gift-select-option span {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 600;
}
.gift-select-search {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;

    color: #f5f8ff;
    font: inherit;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}
.gift-select-search::placeholder {
    color: rgba(245, 248, 255, 0.55);
}
.gift-select-search:focus {
    border-color: rgba(88, 217, 220, 0.8);
    outline: none;
    box-shadow: 0 0 14px rgba(20, 255, 239, 0.18);
}
.gift-select-option[hidden] {
    display: none;
}
.gift-select-empty {
    grid-column: 1 / -1;
    color: rgba(245, 248, 255, 0.72);
    text-align: center;
}

@media (max-width: 480px) {
    .gift-select-dialog {
        padding: 18px;
        border-radius: 16px;
    }

    .gift-select-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .gift-select-option {
        min-height: 104px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gift-select-option,
    .gift-select-dialog > button {
        transition: none;
    }
}

/* Gift catalog review panel */
.gift-catalog-admin {
    box-sizing: border-box;
    width: 90%;
    margin: 5vh 0;
    padding: clamp(16px, 3vw, 28px);
    color: #f5f8ff;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow:
        12px 12px 32px -16px rgba(20, 255, 239, 0.24) inset,
        -12px -12px 32px -16px rgba(165, 20, 255, 0.22) inset,
        0 0 15px 6px rgba(0, 0, 0, 0.38);
}

.gift-catalog-header,
.gift-catalog-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.gift-catalog-header h2 {
    margin: 0;
}

.gift-catalog-header p {
    margin: 6px 0 0;
    color: rgba(245, 248, 255, 0.7);
}

.gift-catalog-sync,
.gift-catalog-save,
.gift-catalog-more {
    padding: 10px 15px;
    color: #f5f8ff;
    font: inherit;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(88, 217, 220, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gift-catalog-sync:hover,
.gift-catalog-save:hover,
.gift-catalog-more:hover {
    background: rgba(88, 217, 220, 0.14);
    border-color: rgba(88, 217, 220, 0.8);
    box-shadow: 0 0 14px rgba(20, 255, 239, 0.16);
}

.gift-catalog-sync:disabled,
.gift-catalog-save:disabled {
    opacity: 0.58;
    cursor: wait;
}

.gift-catalog-tools {
    margin-top: 20px;
}

.gift-catalog-tools > input {
    box-sizing: border-box;
    width: min(100%, 420px);
    padding: 11px 13px;
    color: #f5f8ff;
    font: inherit;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 10px;
}

.gift-catalog-tools > input:focus {
    outline: 2px solid rgba(88, 217, 220, 0.7);
}

.gift-catalog-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 248, 255, 0.82);
}

.gift-catalog-status,
.gift-catalog-empty {
    color: rgba(245, 248, 255, 0.72);
}

.gift-catalog-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.gift-catalog-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(5, 9, 20, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.gift-catalog-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.gift-catalog-image-placeholder {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: rgba(245, 248, 255, 0.64);
    font-size: 0.68rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.gift-catalog-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 170px);
    gap: 12px;
}

.gift-catalog-fields label {
    display: grid;
    gap: 6px;
    color: rgba(245, 248, 255, 0.75);
    font-size: 0.82rem;
}

.gift-catalog-fields input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    color: #f5f8ff;
    font: inherit;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.gift-catalog-fields input:focus {
    outline: 2px solid rgba(88, 217, 220, 0.65);
}

.gift-catalog-more {
    justify-self: center;
    margin: 8px;
}

@media (max-width: 680px) {
.stream-connection-panel {
    width: 100%;
    padding: 16px;
}

.stream-connection-header {
    align-items: flex-start;
    flex-direction: column;
}

.stream-connection-form {
    align-items: stretch;
    flex-direction: column;
}

.stream-connection-form input,
.stream-connect-button,
.stream-disconnect-button {
    width: 100%;
}

    .stream-connection-form input {
        flex: 0 1 auto;
    }

    .gift-catalog-admin {
        width: 100%;
    }

    .gift-catalog-header,
    .gift-catalog-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .gift-catalog-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .gift-catalog-image {
        width: 46px;
        height: 46px;
    }

    .gift-catalog-fields {
        grid-template-columns: 1fr;
    }

    .gift-catalog-save {
        grid-column: 1 / -1;
    }
}
.sender-table-con {
    width: 100%;
}
.sender-table-con .gift-table {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}
.sender-table-con .gift-table td,
.sender-table-con .gift-table th {
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}