/* ITV Interact Tab — Dark Theme */
.interact-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}
.interact-scroll::-webkit-scrollbar { width: 4px; }
.interact-scroll::-webkit-scrollbar-track { background: transparent; }
.interact-scroll::-webkit-scrollbar-thumb { background: rgba(0, 217, 242, 0.2); border-radius: 2px; }

.interact-section {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}
.interact-section-header {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #00D9F2;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 217, 242, 0.12);
}

/* ===== POLLS ===== */
.interact-no-poll {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 0;
}
.interact-poll-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.interact-poll-question {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}
.interact-poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.interact-poll-option {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    height: 44px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
    color: inherit;
    font-family: inherit;
    padding: 0;
}
.interact-poll-option:hover:not(.disabled) {
    border-color: #00D9F2;
    background: rgba(0, 217, 242, 0.08);
}
.interact-poll-option.voted {
    border-color: #00D9F2;
    background: rgba(0, 217, 242, 0.08);
}
.interact-poll-option.disabled {
    cursor: default;
}
.interact-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 217, 242, 0.12);
    border-radius: 8px;
    transition: width 0.5s ease;
}
.interact-poll-option.voted .interact-poll-bar {
    background: rgba(0, 217, 242, 0.2);
}
.interact-poll-option-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 14px;
}
.interact-poll-option-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.interact-poll-option-count {
    font-size: 12px;
    font-weight: 700;
    color: #00D9F2;
}
.interact-poll-total {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    margin-top: 4px;
}

/* ===== STICKERS ===== */
.interact-sticker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.interact-sticker-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 242, 0.15);
    border-radius: 10px;
    padding: 10px 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.interact-sticker-btn .interact-sticker-text {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #00D9F2;
}
.interact-sticker-btn .interact-sticker-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}
.interact-sticker-btn.has-img .interact-sticker-label {
    margin-top: 2px;
}
.interact-sticker-btn .interact-sticker-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 217, 242, 0.2));
}
.interact-sticker-btn:hover:not(:disabled) {
    background: rgba(0, 217, 242, 0.1);
    border-color: rgba(0, 217, 242, 0.4);
    transform: scale(1.05);
}
.interact-sticker-btn:active:not(:disabled) {
    transform: scale(0.95);
}
.interact-sticker-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.interact-sticker-btn.sending {
    animation: stickerPulse 0.5s ease;
}
.interact-sticker-btn.sent {
    border-color: #2ED573;
    background: rgba(46, 213, 115, 0.1);
}
@keyframes stickerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.interact-cooldown {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 6px;
}

/* ===== TEXT ALERT ===== */
.interact-text-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.interact-text-input-wrap {
    flex: 1;
    position: relative;
}
.interact-text-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 50px 10px 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.interact-text-input:focus {
    border-color: #00D9F2;
}
.interact-text-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.interact-text-counter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}
.interact-text-send {
    background: linear-gradient(180deg, rgba(0, 217, 242, 0.25), rgba(0, 217, 242, 0.1));
    color: #00D9F2;
    border: 1px solid rgba(0, 217, 242, 0.35);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: inherit;
}
.interact-text-send:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(0, 217, 242, 0.35), rgba(0, 217, 242, 0.18));
    box-shadow: 0 0 12px rgba(0, 217, 242, 0.15);
}
.interact-text-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== IMAGE SUBMIT ===== */
.interact-image-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.interact-image-picker {
    cursor: pointer;
}
.interact-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
}
.interact-image-placeholder:hover {
    border-color: rgba(0, 217, 242, 0.4);
    background: rgba(0, 217, 242, 0.04);
}
.interact-image-icon {
    font-size: 28px;
}
.interact-image-preview {
    position: relative;
    display: inline-block;
}
.interact-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: block;
}
.interact-image-clear {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.interact-image-send {
    background: linear-gradient(180deg, rgba(0, 217, 242, 0.25), rgba(0, 217, 242, 0.1));
    color: #00D9F2;
    border: 1px solid rgba(0, 217, 242, 0.35);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.interact-image-send:hover:not(:disabled) {
    box-shadow: 0 0 12px rgba(0, 217, 242, 0.15);
}
.interact-image-send:disabled { opacity: 0.4; cursor: not-allowed; }
.interact-image-status {
    font-size: 12px;
    color: #00D9F2;
    text-align: center;
}

/* ===== POLL HISTORY ===== */
.interact-history-poll {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.15);
}
.interact-history-q {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.interact-history-option {
    position: relative;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 12px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
}
.interact-history-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 217, 242, 0.12);
    border-radius: 4px;
}
.interact-history-option span {
    position: relative;
    z-index: 1;
}
.interact-history-pct {
    color: #00D9F2;
    font-weight: 700;
}
.interact-history-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    margin-top: 4px;
}
.interact-history-load {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: all 0.15s;
}
.interact-history-load:hover {
    background: rgba(0, 217, 242, 0.06);
    border-color: rgba(0, 217, 242, 0.2);
    color: #00D9F2;
}
.interact-loading {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 12px;
}

/* ===== TOAST ===== */
.interact-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 30, 0.95);
    color: #00D9F2;
    border: 1px solid rgba(0, 217, 242, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 40;
    max-width: 90vw;
    text-align: center;
    animation: interactFadeIn 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@keyframes interactFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
