/* ITV Perma-Chat — Dark Theme */
:root {
    --itv-bg-primary: #080A0F;
    --itv-bg-secondary: #0D0F1A;
    --itv-bg-tertiary: #141A24;
    --itv-accent: #00D9F2;
    --itv-accent-dim: rgba(0, 217, 242, 0.15);
    --itv-accent-glow: rgba(0, 217, 242, 0.3);
    --itv-btn-top: #262E40;
    --itv-btn-bot: #1A1F2E;
    --itv-btn-border: #4C667F;
    --itv-text-primary: #FFFFFF;
    --itv-text-sub: #C8D4E0;
    --itv-text-dim: rgba(153, 166, 179, 0.5);
    --itv-danger: #FF4757;
    --itv-success: #2ED573;
    --itv-border: rgba(255, 255, 255, 0.06);
    --itv-glass: rgba(255, 255, 255, 0.03);
    --itv-radius: 12px;
    --itv-radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Standalone/app mode — full viewport */
html.itv-standalone, html.itv-standalone body {
    margin: 0; padding: 0; overflow: hidden;
    height: 100%; height: 100dvh;
    background: var(--itv-bg-primary);
}
html.itv-standalone #itv-chat-app {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0);
}

#itv-chat-app {
    width: 100%;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--itv-bg-primary), var(--itv-bg-secondary), var(--itv-bg-tertiary));
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', system-ui, sans-serif;
    color: var(--itv-text-primary);
}

/* Chat section */
.itv-chat-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

/* ===== INTERACT DRAWER ===== */
.itv-interact-pill {
    position: absolute;
    bottom: 70px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0,217,242,0.25), rgba(0,217,242,0.1));
    border: 1px solid rgba(0,217,242,0.4) !important;
    color: #00D9F2 !important;
    font-size: 10px !important;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
    font-family: inherit;
}
.itv-interact-pill:hover {
    background: linear-gradient(135deg, rgba(0,217,242,0.35), rgba(0,217,242,0.18)) !important;
    box-shadow: 0 0 16px rgba(0,217,242,0.25);
    transform: scale(1.05);
}
.itv-drawer-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.itv-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.itv-drawer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 70vh;
    background: #0E2230;
    border-radius: 16px 16px 0 0;
    z-index: 51;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
}
.itv-drawer.open {
    transform: translateY(0);
}
.itv-drawer.dragging {
    transition: none;
}
.itv-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    cursor: grab;
    touch-action: none;
}
.itv-drawer-handle-pill {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}
.itv-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 14px;
    background: rgba(0, 217, 242, 0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.itv-interact-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--itv-accent);
}
.itv-interact-subtitle {
    font-size: 11px;
    color: var(--itv-text-sub);
}

/* ===== JOIN SCREEN ===== */
.itv-join-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; gap: 16px; padding: 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.itv-join-logo {
    font-size: 28px; font-weight: 900; letter-spacing: 2px;
    color: var(--itv-accent);
    text-shadow: 0 0 20px var(--itv-accent-glow);
}
.itv-join-sub {
    font-size: 13px; color: var(--itv-text-sub); letter-spacing: 1px;
}
.itv-join-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--itv-btn-top);
    border: 1px solid var(--itv-btn-border);
    border-radius: var(--itv-radius);
    padding: 12px 16px; width: 100%; max-width: 320px;
}
.itv-join-color-dot {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.itv-join-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--itv-text-primary); font-size: 16px;
    font-family: inherit;
}
.itv-join-input::placeholder { color: var(--itv-text-dim); }
.itv-join-btn {
    background: linear-gradient(135deg, var(--itv-accent), #00B4C6);
    color: #000; border: none; border-radius: var(--itv-radius);
    padding: 14px 40px; font-size: 15px; font-weight: 800;
    letter-spacing: 1px; cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}
.itv-join-btn:active { transform: scale(0.96); }
.itv-join-btn:hover { box-shadow: 0 0 20px var(--itv-accent-glow); }
.itv-join-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.itv-join-error {
    color: var(--itv-danger); font-size: 12px; font-weight: 600;
    min-height: 18px;
}
.itv-quick-join {
    background: linear-gradient(135deg, rgba(0,217,242,0.15), rgba(0,180,198,0.1));
    border: 1px solid var(--itv-accent);
    border-radius: var(--itv-radius);
    color: var(--itv-accent); padding: 14px 32px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    letter-spacing: 0.5px; width: 100%; max-width: 320px;
    transition: transform 0.1s, background 0.2s;
}
.itv-quick-join strong { font-weight: 900; }
.itv-quick-join:active { transform: scale(0.96); }
.itv-quick-join:hover { background: rgba(0,217,242,0.2); }
.itv-quick-join:disabled { opacity: 0.5; cursor: not-allowed; }
.itv-join-divider {
    font-size: 11px; color: var(--itv-text-dim); letter-spacing: 1px;
    text-transform: uppercase;
}
.itv-join-hint {
    font-size: 10px; color: var(--itv-text-dim); margin-top: -8px;
}
.itv-join-login-link {
    font-size: 11px; color: var(--itv-text-dim); margin-top: 4px;
}
.itv-join-login-link a, .itv-back-to-join {
    color: var(--itv-accent); text-decoration: none; font-weight: 600;
}
.itv-login-tabs {
    display: flex; gap: 0; width: 100%; max-width: 320px;
    background: var(--itv-btn-top); border-radius: var(--itv-radius);
    overflow: hidden; border: 1px solid var(--itv-btn-border);
}
.itv-login-tab {
    flex: 1; padding: 10px; border: none; background: none;
    color: var(--itv-text-sub); font-size: 12px; font-weight: 700;
    letter-spacing: 0.5px; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.itv-login-tab.active {
    background: rgba(0,217,242,0.1); color: var(--itv-accent);
}
.itv-login-form {
    display: flex; flex-direction: column; gap: 10px;
    width: 100%; max-width: 320px;
}
.itv-back-to-join {
    font-size: 12px; margin-top: 4px;
}

/* ===== CHAT HEADER ===== */
.itv-chat-header {
    display: flex; align-items: center; padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--itv-border);
    flex-shrink: 0;
}
.itv-chat-title {
    font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
    color: var(--itv-accent); flex: 1;
}
.itv-online-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--itv-text-sub);
}
.itv-online-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--itv-success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.itv-users-toggle {
    background: none; border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius-sm); padding: 6px 8px;
    color: var(--itv-text-sub); cursor: pointer; margin-left: 8px;
    font-size: 14px;
}
.itv-users-toggle:hover { background: var(--itv-glass); }
.itv-sound-toggle {
    background: none; border: none; cursor: pointer;
    color: var(--itv-text-sub); font-size: 16px; margin-left: 6px;
    opacity: 0.6;
}
.itv-sound-toggle.active { opacity: 1; color: var(--itv-accent); }

/* ===== CHAT BODY ===== */
.itv-chat-body {
    display: flex; flex: 1; overflow: hidden; position: relative;
}

/* ===== MESSAGES ===== */
.itv-messages {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 2px 14px 0; display: flex; flex-direction: column; gap: 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.itv-messages::-webkit-scrollbar { width: 4px; }
.itv-messages::-webkit-scrollbar-track { background: transparent; }
.itv-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.itv-msg {
    display: flex; gap: 8px; padding: 4px 8px;
    border-radius: var(--itv-radius-sm);
    transition: background 0.15s;
    position: relative;
}
.itv-msg:hover { background: rgba(255,255,255,0.03); }
.itv-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
    color: #000; margin-top: 2px;
}
.itv-msg-body { flex: 1; min-width: 0; }
.itv-msg-header {
    display: flex; align-items: baseline; gap: 6px; margin-bottom: 1px;
}
.itv-msg-username {
    font-size: 12px; font-weight: 700; cursor: pointer;
}
.itv-msg-username:hover { text-decoration: underline; }
.itv-msg-time {
    font-size: 10px; color: var(--itv-text-dim);
}
.itv-msg-content {
    font-size: 13px; line-height: 1.45; word-wrap: break-word;
    color: var(--itv-text-primary);
}
.itv-msg-content a {
    color: var(--itv-accent); text-decoration: none;
}
.itv-msg-content a:hover { text-decoration: underline; }
.itv-msg-mention {
    color: var(--itv-accent); font-weight: 600;
    background: var(--itv-accent-dim); border-radius: 3px;
    padding: 0 3px;
}
.itv-msg-image {
    max-width: 240px; max-height: 200px; border-radius: var(--itv-radius-sm);
    margin-top: 4px; cursor: pointer; display: block;
}
.itv-img-shimmer {
    width: 180px; height: 120px;
    border-radius: var(--itv-radius-sm);
    margin-top: 4px;
    background: linear-gradient(110deg, var(--itv-bg-tertiary) 30%, rgba(255,255,255,0.06) 50%, var(--itv-bg-tertiary) 70%);
    background-size: 200% 100%;
    animation: itv-img-pulse 1.2s ease-in-out infinite;
}
@keyframes itv-img-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.itv-msg-reply-bar {
    font-size: 11px; color: var(--itv-text-sub);
    border-left: 2px solid var(--itv-btn-border);
    padding: 2px 8px; margin-bottom: 3px;
    cursor: pointer;
}
.itv-msg-reply-bar:hover { background: var(--itv-glass); }

/* System messages */
.itv-msg-system {
    justify-content: center; padding: 3px 0;
}
.itv-msg-system .itv-msg-content {
    font-size: 11px; color: var(--itv-text-dim);
    font-style: italic; text-align: center;
}

/* Reactions */
.itv-msg-reactions {
    display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px;
}
.itv-reaction-pill {
    display: flex; align-items: center; gap: 3px;
    background: var(--itv-glass); border: 1px solid var(--itv-border);
    border-radius: 10px; padding: 2px 6px; font-size: 12px;
    cursor: pointer; transition: all 0.15s;
}
.itv-reaction-pill:hover { background: var(--itv-accent-dim); }
.itv-reaction-pill.mine { border-color: var(--itv-accent); background: var(--itv-accent-dim); }
.itv-reaction-count { font-size: 10px; color: var(--itv-text-sub); }

/* Message actions (on hover) */
.itv-msg-actions {
    display: none; position: absolute; right: 4px; top: 0;
    background: var(--itv-btn-top); border: 1px solid var(--itv-btn-border);
    border-radius: var(--itv-radius-sm); padding: 2px;
    gap: 2px; z-index: 5;
}
.itv-msg:hover .itv-msg-actions { display: flex; }
.itv-msg-action-btn {
    background: none; border: none; color: var(--itv-text-sub);
    cursor: pointer; padding: 4px 6px; border-radius: 4px;
    font-size: 13px;
}
.itv-msg-action-btn:hover { background: var(--itv-glass); color: var(--itv-text-primary); }
.itv-msg-action-btn.danger:hover { color: var(--itv-danger); }

/* Load history button */
.itv-load-more {
    background: none; border: 1px solid var(--itv-border);
    color: var(--itv-text-sub); border-radius: var(--itv-radius-sm);
    padding: 6px 14px; font-size: 11px; cursor: pointer;
    align-self: center; margin: 8px 0;
}
.itv-load-more:hover { background: var(--itv-glass); }

/* ===== TYPING INDICATOR ===== */
.itv-typing {
    font-size: 11px; color: var(--itv-text-dim);
    flex-shrink: 0;
}
.itv-typing:not(:empty) {
    padding: 2px 14px;
}
.itv-typing-dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.itv-typing-dots span {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--itv-text-sub);
    animation: typing-bounce 1.2s ease-in-out infinite;
}
.itv-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.itv-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* ===== INPUT AREA ===== */
.itv-input-area {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px; background: rgba(0,0,0,0.3);
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    flex-shrink: 0;
}
.keyboard-open .itv-input-area {
    padding-bottom: 5px;
}
.itv-reply-preview {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; background: var(--itv-glass);
    border-left: 2px solid var(--itv-accent);
    font-size: 11px; color: var(--itv-text-sub);
    margin: 0 14px; border-radius: 0 var(--itv-radius-sm) var(--itv-radius-sm) 0;
}
.itv-reply-close {
    background: none; border: none; color: var(--itv-text-sub);
    cursor: pointer; font-size: 14px; margin-left: auto;
}
.itv-input-btn {
    background: none; border: none; color: var(--itv-text-sub);
    cursor: pointer; font-size: 20px; padding: 6px;
    border-radius: var(--itv-radius-sm);
    transition: color 0.15s;
}
.itv-input-btn:hover { color: var(--itv-accent); }
.itv-chat-input {
    flex: 1; background: #0D0F1A;
    border: 1px solid var(--itv-btn-border);
    border-radius: var(--itv-radius); padding: 10px 14px;
    color: var(--itv-text-primary); font-size: 16px;
    font-family: inherit; height: 40px;
    outline: none; line-height: 1.4;
    -webkit-appearance: none; appearance: none;
}
.itv-chat-input::placeholder {
    color: var(--itv-text-dim);
}
.itv-chat-input:focus {
    border-color: var(--itv-accent);
    box-shadow: 0 0 0 1px var(--itv-accent-dim);
}
.itv-send-btn {
    background: var(--itv-accent); border: none;
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; color: #000;
    font-size: 16px; transition: transform 0.1s;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.itv-send-btn:active { transform: scale(0.9); }
.itv-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== EMOJI PICKER ===== */
.itv-emoji-picker {
    position: absolute; bottom: 60px; left: 14px;
    background: var(--itv-bg-secondary);
    border: 1px solid var(--itv-btn-border);
    border-radius: var(--itv-radius); padding: 10px;
    display: none; z-index: 20;
    max-width: 280px; max-height: 260px; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.itv-emoji-picker.show { display: block; }
.itv-emoji-grid {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.itv-emoji-btn {
    background: none; border: none; font-size: 20px;
    cursor: pointer; padding: 4px; border-radius: 4px;
    transition: background 0.1s;
}
.itv-emoji-btn:hover { background: var(--itv-glass); }
.itv-emoji-section-label {
    font-size: 10px; font-weight: 700; color: var(--itv-text-dim);
    letter-spacing: 1px; padding: 6px 0 3px; grid-column: 1 / -1;
}

/* ===== MENTION DROPDOWN ===== */
.itv-mention-dropdown {
    position: absolute; bottom: 60px;
    background: var(--itv-bg-secondary);
    border: 1px solid var(--itv-btn-border);
    border-radius: var(--itv-radius-sm);
    max-height: 160px; overflow-y: auto;
    display: none; z-index: 25;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 160px;
}
.itv-mention-dropdown.show { display: block; }
.itv-mention-item {
    padding: 8px 12px; cursor: pointer;
    font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.itv-mention-item:hover, .itv-mention-item.active {
    background: var(--itv-accent-dim);
}
.itv-mention-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ===== SIDEBAR (online users) ===== */
.itv-sidebar {
    width: 200px; background: rgba(0,0,0,0.2);
    border-left: 1px solid var(--itv-border);
    display: flex; flex-direction: column; flex-shrink: 0;
    overflow: hidden;
}
.itv-sidebar-header {
    padding: 10px 12px; font-size: 10px; font-weight: 800;
    letter-spacing: 1.5px; color: var(--itv-text-dim);
    border-bottom: 1px solid var(--itv-border);
}
.itv-user-list {
    flex: 1; overflow-y: auto; padding: 6px 0;
}
.itv-user-item {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px; font-size: 12px;
}
.itv-user-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

/* ===== IMAGE LIGHTBOX ===== */
.itv-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    z-index: 100; cursor: pointer;
}
.itv-lightbox.show { display: flex; }
.itv-lightbox img {
    max-width: 90vw; max-height: 90vh; border-radius: var(--itv-radius);
}

/* ===== BANNED OVERLAY ===== */
.itv-banned-overlay {
    position: fixed; inset: 0;
    background: linear-gradient(180deg, var(--itv-bg-primary), var(--itv-bg-secondary));
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 16px; z-index: 50;
    padding: 40px;
}
.itv-banned-icon { font-size: 48px; }
.itv-banned-title { font-size: 20px; font-weight: 800; color: var(--itv-danger); }
.itv-banned-reason { font-size: 13px; color: var(--itv-text-sub); text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .itv-sidebar { display: none; }
    .itv-sidebar.mobile-open {
        display: flex; position: absolute; right: 0; top: 0; bottom: 0;
        z-index: 15; width: 220px;
        background: var(--itv-bg-secondary);
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    }
    .itv-msg-actions { display: none !important; }
    .itv-msg { -webkit-tap-highlight-color: transparent; }
    .itv-emoji-picker { left: 8px; right: 8px; max-width: none; }
}
@media (min-width: 601px) {
    .itv-users-toggle { display: none; }
}

/* ===== UPLOAD PROGRESS ===== */
.itv-upload-progress {
    height: 3px; background: var(--itv-glass);
    margin: 0 14px; border-radius: 2px; overflow: hidden;
    display: none;
}
.itv-upload-progress.active { display: block; }
.itv-upload-bar {
    height: 100%; background: var(--itv-accent);
    width: 0%; transition: width 0.3s;
    border-radius: 2px;
}

/* ===== KEYBOARD GRAB BAR (inline, below input — drag to dismiss) ===== */
.itv-grab-bar {
    display: none;
    justify-content: center;
    align-items: center;
    height: 20px;
    flex-shrink: 0;
    background: var(--itv-bg-primary);
    border-top: 1px solid var(--itv-border);
}
.keyboard-open .itv-grab-bar { display: flex; }
.itv-grab-pill {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.4);
}

/* ===== LOADING SCREEN ===== */
.itv-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; gap: 20px; padding: 40px;
}
.itv-loading-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(0, 217, 242, 0.15);
    border-top-color: var(--itv-accent);
    animation: itv-spin 0.8s linear infinite;
}
@keyframes itv-spin {
    to { transform: rotate(360deg); }
}
.itv-loading-text {
    font-size: 13px; color: var(--itv-text-sub);
    letter-spacing: 1px; text-transform: uppercase;
    font-weight: 600;
}
.itv-loading-bar {
    width: 120px; height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px; overflow: hidden;
}
.itv-loading-bar-fill {
    height: 100%; width: 30%;
    background: linear-gradient(90deg, transparent, var(--itv-accent), transparent);
    border-radius: 2px;
    animation: itv-shimmer 1.2s ease-in-out infinite;
}
@keyframes itv-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ===== ITV STICKERS (in emoji picker) ===== */
.itv-sticker-btn {
    font-size: 9px !important;
    padding: 2px !important;
}
.itv-sticker-label {
    display: flex; align-items: center; justify-content: center;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--itv-accent);
    background: var(--itv-accent-dim);
    border: 1px solid rgba(0, 217, 242, 0.25);
    border-radius: 4px;
    padding: 6px 2px;
    line-height: 1;
    min-height: 28px;
    width: 100%;
}
.itv-sticker-label:hover {
    background: rgba(0, 217, 242, 0.25);
}

/* Sticker inline in messages */
.itv-sticker-inline {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--itv-accent);
    background: var(--itv-accent-dim);
    border: 1px solid rgba(0, 217, 242, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    vertical-align: middle;
    line-height: 1.3;
}

/* Interact container (inside drawer) */
.itv-interact-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 20px;
    flex: 1;
    min-height: 0;
}

/* ==================== BOOTSTRAP OVERRIDE ==================== */
/* The Alante_Pro theme loads Bootstrap 2.3.2 which sets white backgrounds
   and other styles on inputs/buttons/selects. Override all of it here. */
#itv-chat-app input,
#itv-chat-app input[type="text"],
#itv-chat-app input[type="password"],
#itv-chat-app textarea,
#itv-chat-app select,
#itv-chat-app button {
    background-color: inherit !important;
    color: inherit !important;
    border: inherit !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: inherit !important;
    height: auto !important;
    width: auto !important;
    border-radius: inherit !important;
}

/* Now re-apply our actual styles with !important */
#itv-chat-app .itv-chat-input {
    flex: 1 !important;
    background: #0D0F1A !important;
    border: 1px solid var(--itv-btn-border) !important;
    border-radius: var(--itv-radius) !important;
    padding: 10px 14px !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-family: inherit !important;
    height: 40px !important;
    outline: none !important;
    line-height: 1.4 !important;
    width: 100% !important;
}
#itv-chat-app .itv-chat-input:focus {
    border-color: var(--itv-accent) !important;
    box-shadow: 0 0 0 1px var(--itv-accent-dim) !important;
}
#itv-chat-app .itv-chat-input::placeholder {
    color: rgba(153, 166, 179, 0.5) !important;
}

#itv-chat-app .itv-join-input-wrap {
    background: #1A1F2E !important;
    border: 1px solid var(--itv-btn-border) !important;
    border-radius: var(--itv-radius) !important;
    padding: 0 14px !important;
    height: 48px !important;
}
#itv-chat-app .itv-join-input {
    background: none !important;
    border: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    padding: 10px 0 !important;
    height: auto !important;
    width: 100% !important;
}
#itv-chat-app .itv-join-input::placeholder {
    color: rgba(153, 166, 179, 0.5) !important;
}

#itv-chat-app .itv-join-btn,
#itv-chat-app .itv-send-btn,
#itv-chat-app .itv-input-btn {
    background: none !important;
    border: none !important;
    padding: 6px !important;
    height: auto !important;
    width: auto !important;
    cursor: pointer !important;
}
#itv-chat-app .itv-join-btn {
    background: linear-gradient(135deg, var(--itv-accent), #00B4C6) !important;
    color: #000 !important;
    border-radius: var(--itv-radius) !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

