
/* Przywrócona pełna wysokość karty czatu & zakotwiczenie wiadomości (v1.1.69) */
#live-chat-card {
    height: 600px;
    min-height: 560px;
    max-height: none;
}
#live-chat-card .viewer-chat-feed {
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 0% !important;
    background: #090d16 !important;
}
/* Płynne dociskanie wiadomości do dolnej krawędzi czatu (eliminacja pustego kwadratu na dole) */
.chat-feed,
.twitch-chat-feed,
.viewer-chat-feed {
    display: flex !important;
    flex-direction: column !important;
}
.chat-feed > .twitch-welcome-line,
.twitch-chat-feed > .twitch-welcome-line,
.viewer-chat-feed > .twitch-welcome-line,
.chat-feed > :first-child,
.twitch-chat-feed > :first-child,
.viewer-chat-feed > :first-child {
    margin-top: auto !important;
}
/* Narzędzia widoczności desktop / mobile (v1.1.63) */
.desktop-only-inline {
    display: inline;
}
.mobile-only-inline {
    display: none;
}
/* SLCB v1.1.22 — Modern Dark UI Stylesheet */

:root {
    --bg-canvas: #090b10;
    --bg-surface: #0e1118;
    --bg-card: #121620;
    --bg-elevated: #171c28;
    --bg-input: #0b0e15;

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);

    --text-main: #f3f6fc;
    --text-sec: #94a3b8;
    --text-muted: #5e6c84;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-border: rgba(59, 130, 246, 0.32);

    --emerald: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.12);
    --amber: #f59e0b;
    --danger: #ef4444;
}

body[data-accent="emerald"] {
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-soft: rgba(16, 185, 129, 0.12);
    --accent-border: rgba(16, 185, 129, 0.32);
}

body[data-accent="purple"] {
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-soft: rgba(139, 92, 246, 0.12);
    --accent-border: rgba(139, 92, 246, 0.32);
}

body[data-accent="amber"] {
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.12);
    --accent-border: rgba(245, 158, 11, 0.32);
}

body[data-accent="rose"] {
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --accent-soft: rgba(244, 63, 94, 0.12);
    --accent-border: rgba(244, 63, 94, 0.32);
}

html {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(14, 17, 24, 0.95);
}

/* ==================== NOWOCZESNY CIEMNY PASEK PRZEWIJANIA (SCROLLBAR v1.1.21) ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(14, 17, 24, 0.95);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid rgba(14, 17, 24, 0.95);
    background-clip: padding-box;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--accent);
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Dedykowany styl dla głównego obszaru roboczego (.main-area) */
.main-area::-webkit-scrollbar {
    width: 9px;
}

.main-area::-webkit-scrollbar-track {
    background: #090b10;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.main-area::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #090b10;
    border-radius: 999px;
    background-clip: padding-box;
}

.main-area::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.38);
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ==================== AUTH / LOGIN SCREEN ==================== */
.auth-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(600px circle at 20% 15%, var(--accent-soft), transparent 65%),
        radial-gradient(500px circle at 80% 85%, rgba(99, 102, 241, 0.08), transparent 65%),
        var(--bg-canvas);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 410px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.slcb-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slcb-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-title-row h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ver-badge {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.auth-domain {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.auth-desc {
    font-size: 13px;
    color: var(--text-sec);
    margin-bottom: 22px;
    line-height: 1.55;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ==================== APP SHELL ==================== */
.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.2s ease;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar-header {
    height: 60px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sidebar-brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.sidebar-ver-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-ver-btn:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 10px 4px;
}

.mh-nav-item {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-sec);
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.14s ease;
}

.mh-nav-item:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-main);
}

.mh-nav-item.active {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--text-main);
    font-weight: 600;
}

.mh-nav-item.active .nav-svg {
    color: var(--accent);
}

.nav-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.14s ease;
}

.nav-pill-ver {
    margin-left: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    background: var(--bg-elevated);
    color: var(--text-sec);
    padding: 1px 6px;
    border-radius: 5px;
}

.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
}

.sf-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sf-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-item strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--text-main);
}

.text-emerald, .mh-text-green {
    color: var(--emerald) !important;
}

/* ==================== CLEAN TOPBAR (NO PLAYER) ==================== */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

.topbar {
    height: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: nowrap !important; /* Blokada zawijania górnej belki na desktopie (v1.1.59) */
    overflow: hidden;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sec);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.14s ease;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    white-space: nowrap !important; /* Blokada łamania okruszków na 2 wiersze (v1.1.59) */
    min-width: 0;
}

.bc-cat {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.bc-sep {
    color: var(--text-muted);
    white-space: nowrap;
}

.bc-current {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important; /* ZAWSZE w jednym wierszu na komputerach (v1.1.59) */
    flex-shrink: 0;
}

/* ==================== RESPONSYWNOŚĆ BELKI NA EKRANACH KOMPUTEROWYCH (769px - 1350px) (v1.1.59) ==================== */
@media (max-width: 1350px) and (min-width: 769px) {
    /* Skrócenie długiego tekstu statusu bota ("• IRC OK • Stream OFFLINE") */
    .topbar-bot-bar .bot-bar-sep,
    .topbar-bot-bar .bot-bar-state {
        display: none !important;
    }
    .topbar-bot-bar {
        padding: 4px 8px !important;
        gap: 6px !important;
    }
}

@media (max-width: 1180px) and (min-width: 769px) {
    /* Przycisk akcentu zwinięty do samej kropki, zwięzły nick */
    #accent-cycle-btn span:not(.accent-dot) {
        display: none !important;
    }
    #accent-cycle-btn {
        padding: 6px 10px !important;
        gap: 0 !important;
    }
    .user-chip {
        padding: 4px 8px !important;
    }
    .user-chip #current-user-display {
        max-width: 90px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 1050px) and (min-width: 769px) {
    /* Ukrycie 'Portal Widza /' gdy okno przeglądarki na desktopie jest mocno zwężone */
    .breadcrumb .bc-cat,
    .breadcrumb .bc-sep {
        display: none !important;
    }
    .breadcrumb .bc-current {
        font-weight: 700 !important;
    }
    .topbar {
        padding: 0 12px !important;
        gap: 8px !important;
    }
    .topbar-right {
        gap: 6px !important;
    }
}

.topbar-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 8px;
}

.switcher-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.topbar-switcher select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    padding: 2px 4px;
    outline: none;
    cursor: pointer;
}

.topbar-switcher select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* COMPACT BOT CONTROL BAR IN TOPBAR */
.topbar-bot-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 8px 5px 12px;
    border-radius: 9px;
    font-size: 12.5px;
}

.status-dot, .mh-player-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.status-dot.online, .mh-player-status-dot.online {
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.65);
}

.bot-bar-channel {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    color: var(--text-main);
}

.bot-bar-sep {
    color: var(--text-muted);
}

.bot-bar-state {
    color: var(--text-sec);
    font-size: 12px;
}

.bot-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.btn-bar {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.btn-bar:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-bar-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sec);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-bar-icon:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.topbar-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.topbar-btn:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}

.accent-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 12px 5px 8px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.user-chip-role {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-chip.regular-user .user-chip-role {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.user-chip.streamer-user .user-chip-role {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* ==================== USER CHIP & LOGOUT COMBO (v1.1.58) ==================== */
.user-chip-logout-combo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logout-btn-icon {
    display: none;
}

.logout-btn-label {
    display: inline;
}

/* ==================== MAIN WORKSPACE & KPI CARDS ==================== */
.main-area {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
}

.mh-tab-pane {
    display: none;
}

.mh-tab-pane.active {
    display: block;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.kpi-card:hover {
    border-color: var(--border-strong);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
}

.kpi-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text-sec);
    border: 1px solid var(--border);
}

.kpi-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: "JetBrains Mono", monospace;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value-sm {
    font-size: 16px;
    font-family: "Inter", sans-serif;
}

.kpi-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ==================== TOOLBAR & CARDS ==================== */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.toolbar-form, .toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1150px) {
    .dashboard-split {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.form-card {
    max-width: 820px;
}

.card-head {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-head h3 {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-head p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== LIVE CHAT FEED (TWITCH STYLE) ==================== */
.chat-card {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.twitch-chat-card {
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 10px;
}

.twitch-chat-header {
    height: 50px;
    padding: 0 16px;
    background: #18181b;
    border-bottom: 1px solid #2f2f35;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twitch-chat-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #efeff1;
}

.twitch-chat-title svg {
    color: #adadb8;
}

.twitch-chat-room-pill {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #bf94ff;
    background: rgba(145, 71, 255, 0.14);
    border: 1px solid rgba(145, 71, 255, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
}

.chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    background: #18181b;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.twitch-welcome-line {
    padding: 8px 20px 10px;
    color: #adadb8;
    font-size: 13px;
    line-height: 20px;
}

.chat-line {
    padding: 3px 14px;
    line-height: 22px;
    word-break: break-word;
    font-size: 14.5px;
    color: #efeff1;
    margin-bottom: 2px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: background 0.15s ease;
}

.chat-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Wiadomość wymiany nagrody za punkty kanału (np. Misiacy redeemed Przelew na konto Misi — 1000) */
.chat-line.chat-line-redeem {
    margin: 4px 0;
    padding: 8px 16px 9px;
    background: #232329;
    border-left: 4px solid #facc15;
    border-right: 4px solid #facc15;
}

.chat-redeem-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #adadb8;
    margin-bottom: 6px;
}

.chat-redeem-text strong {
    color: #efeff1;
    font-weight: 700;
}

.chat-redeem-cost {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #dedee3;
    white-space: nowrap;
}

.tw-currency-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.mh-currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "JetBrains Mono", monospace;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fbbf24;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Znacznik czasowy domyślnie ukryty, pokazywany gdy #live-chat-box ma klasę .show-timestamps */
.chat-time {
    display: none;
    color: #adadb8;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.chat-feed.show-timestamps .chat-time {
    display: inline;
}

.tw-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 2px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.tw-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.tw-badge-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 2px;
    border-radius: 2px;
    display: inline-block;
}

.chat-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 4px;
    background: var(--bg-elevated);
    color: var(--text-sec);
    vertical-align: middle;
}

.chat-badge.broadcaster { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.chat-badge.moderator { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.chat-badge.vip { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.chat-badge.subscriber { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.chat-author {
    font-weight: 700;
    cursor: pointer;
}

.chat-author:hover {
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.chat-colon {
    color: #efeff1;
    margin-right: 4px;
}

.chat-text {
    color: #efeff1;
    vertical-align: middle;
}

.chat-input-row {
    padding: 10px 14px;
    border-top: 1px solid #2f2f35;
    display: flex;
    gap: 8px;
    background: #18181b;
}

.twitch-chat-input-row input {
    flex: 1;
    background: #0e0e10;
    border: 1px solid #3a3a3d;
    border-radius: 6px;
    color: #efeff1;
    padding: 8px 12px;
    font-size: 13px;
}

.twitch-chat-input-row input:focus {
    border-color: #a970ff;
    box-shadow: 0 0 0 2px rgba(169, 112, 255, 0.25);
}

.btn-twitch-chat {
    background: #9147ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.btn-twitch-chat:hover {
    background: #772ce8;
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.mh-watch-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "JetBrains Mono", monospace;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.mh-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-sec);
}

.mh-tag.online {
    background: var(--emerald-soft);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald);
}

.mh-tag.admin {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* ==================== VIEWER PROFILE BANNER ==================== */
.viewer-banner {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.vb-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-sub {
    color: var(--text-muted);
    font-size: 12px;
}

.vb-metrics {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.vb-metric span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.vb-metric strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
}

/* ==================== FORMS & BUTTONS ==================== */
.form-body {
    padding: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: inherit;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.14s ease;
}

input:focus, select:focus {
    border-color: var(--accent);
}

.search-box {
    min-width: 240px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-sec);
}

.field input {
    width: 100%;
}

.field small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.btn, .mh-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.14s ease;
    white-space: nowrap;
}

.btn-primary, .mh-btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover, .mh-btn-accent:hover {
    background: var(--accent-hover);
}

.btn-ghost, .mh-btn-ghost {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-sec);
}

.btn-ghost:hover, .mh-btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
}

.btn-sm, .mh-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.mh-btn-xs {
    padding: 4px 9px;
    font-size: 11.5px;
}

.btn-full {
    width: 100%;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-sec);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.section-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-bottom: 14px;
}

.alert, .mh-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 14px;
}

.alert-error, .mh-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.mh-alert-success {
    background: var(--emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald);
}

/* CHANGELOG & DIAGNOSTICS */
.changelog-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mh-release-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
}

.mh-release-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.mh-release-ver {
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.mh-release-list {
    padding-left: 18px;
    color: var(--text-sec);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.diag-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.mh-empty, .mh-empty-cell {
    color: var(--text-muted);
    text-align: center;
    padding: 28px;
}

code {
    font-family: "JetBrains Mono", monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11.5px;
}

/* ==================== TWITCH BOT OAUTH & MODAL (v1.0.9) ==================== */
.twitch-chat-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-twitch-login-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(145, 71, 255, 0.18);
    border: 1px solid rgba(145, 71, 255, 0.45);
    color: #d8b4fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-twitch-login-sm:hover {
    background: #9147ff;
    border-color: #9147ff;
    color: #ffffff;
}

.bot-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    padding: 3px 8px 3px 5px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.bot-account-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.bot-account-logout {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 2px;
}

.bot-account-logout:hover {
    color: #f87171;
}

.twitch-oauth-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(145, 71, 255, 0.08);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.twitch-oauth-card.connected {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.32);
}

.twitch-oauth-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twitch-oauth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.twitch-oauth-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.twitch-oauth-sub {
    font-size: 12px;
    color: var(--text-sec);
    margin-top: 2px;
}

.twitch-oauth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-twitch-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #9147ff;
    color: #ffffff;
    border: 1px solid #a970ff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-twitch-oauth:hover {
    background: #772ce8;
    color: #ffffff;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.78);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: #141720;
    border: 1px solid rgba(145, 71, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(145, 71, 255, 0.08);
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twitch-brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #9147ff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.modal-head p {
    font-size: 12px;
    color: var(--text-sec);
    margin: 2px 0 0 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-sec);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.modal-body {
    padding: 20px;
}

.twitch-steps {
    margin: 0 0 16px 0;
    padding-left: 18px;
    color: var(--text-sec);
    font-size: 12.5px;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-code-box {
    background: #0d0f15;
    border: 1px dashed rgba(145, 71, 255, 0.55);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.device-code-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.device-code-value {
    font-family: "JetBrains Mono", monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #e9d5ff;
    user-select: all;
}

.modal-actions {
    margin-bottom: 14px;
}

.device-poll-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-sec);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px 12px;
}

.poll-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(145, 71, 255, 0.3);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: slcb-spin 0.8s linear infinite;
}

@keyframes slcb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== GAMES TILES & EDIT MODAL (v1.0.12) ==================== */
.games-header-bar {
    margin-bottom: 18px;
}

.games-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.games-section-sub {
    font-size: 13px;
    color: var(--text-sec);
    margin: 0;
}

.games-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.game-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.game-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.game-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(145, 71, 255, 0.16);
    border: 1px solid rgba(145, 71, 255, 0.4);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-tile-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tile-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    cursor: pointer;
}

.tile-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    transition: 0.2s;
}

.tile-switch-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.tile-switch input:checked + .tile-switch-slider {
    background: #10b981;
}

.tile-switch input:checked + .tile-switch-slider::before {
    transform: translateX(16px);
}

.game-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.game-tile-desc {
    font-size: 12.5px;
    color: var(--text-sec);
    line-height: 1.5;
    margin: 0;
}

.game-tile-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-tile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--text-sec);
}

.game-tile-pill strong {
    color: var(--text-main);
    font-family: "JetBrains Mono", monospace;
}

.game-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.modal-card-lg {
    max-width: 680px;
}

.modal-scroll-body {
    max-height: 80vh;
    overflow-y: auto;
}

.game-rules-box {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-sec);
}

.game-vars-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.game-msgs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== ADMIN: SERVER SUBTABS (v1.1.1) ==================== */
.server-subtabs-bar {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.server-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-sec);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.server-subtab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.server-subtab-btn.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.subtab-icon {
    font-size: 15px;
}

.server-subpane {
    display: none;
}

.server-subpane.active {
    display: block;
}

/* ==================== ADMIN: DB SIZE & BACKUPS (v1.1.20) ==================== */
.admin-server-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .admin-server-grid {
        grid-template-columns: 1fr;
    }
}

.dbsize-head-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dbsize-head-title h3 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.dbsize-head-title p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.card-icon-round {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    flex-shrink: 0;
}

.dbsize-head-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* NOWOCZESNY KPI PANEL ROZMIARU BAZY */
.dbsize-kpi-panel {
    background: linear-gradient(135deg, rgba(26, 28, 48, 0.7) 0%, rgba(18, 20, 36, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dbsize-kpi-primary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dbsize-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dbsize-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sec);
    text-transform: none;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dbsize-kpi-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 999px;
}

.dbsize-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.dbsize-kpi-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 4px 0 2px 0;
}

.dbsize-kpi-number {
    font-size: 36px;
    font-weight: 800;
    font-family: "JetBrains Mono", monospace;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.dbsize-kpi-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* MICRO-BOXES ZE SZCZEGÓŁAMI */
.dbsize-kpi-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

@media (max-width: 640px) {
    .dbsize-kpi-details {
        grid-template-columns: 1fr;
    }
}

.dbsize-detail-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dbsize-detail-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.dbsize-detail-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-family: "JetBrains Mono", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOP 5 TABEL */
.top-tables-section {
    margin-bottom: 14px;
}

.top-tables-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.top-tables-heading {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.top-tables-count-pill {
    font-size: 10.5px;
    font-weight: 600;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 2px 7px;
    border-radius: 999px;
}

.top-tables-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.top-table-row:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.tt-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.tt-rank {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    width: 14px;
    text-align: center;
}

.tt-icon {
    font-size: 13px;
    opacity: 0.8;
}

.tt-name {
    font-family: "JetBrains Mono", monospace;
    color: var(--text-main);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-size-pill {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* STOPKA BEZPIECZEŃSTWA BAZY */
.dbsize-footer-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.dbsize-footer-hint .hint-icon {
    font-size: 12px;
    opacity: 0.8;
}

/* PRAWA KARTA: KOPIA ZAPASOWA & PRZYWRACANIE */
.backup-security-chip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.security-chip-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.security-chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.security-chip-text strong {
    font-size: 12.5px;
    color: #e0e7ff;
    font-weight: 600;
}

.security-chip-text span {
    font-size: 11.5px;
    color: #a5b4fc;
    line-height: 1.4;
}

.backup-action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-full-wide {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
}

.btn-ghost-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ffffff;
}

.backup-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
}

.backup-warning-box .warning-icon {
    font-size: 16px;
    line-height: 1;
    margin-top: 1px;
}

.backup-warning-box .warning-text {
    font-size: 11.5px;
    color: #fca5a5;
    line-height: 1.45;
}

.backup-warning-box .warning-text strong {
    color: #fecaca;
    font-weight: 700;
}

/* AUTOMATYCZNE KOPIE ZAPASOWE - STATYSTYKI HARMONOGRAMU */
.autobackup-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.autobackup-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
}

.ab-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ab-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-sec);
    text-transform: none;
    letter-spacing: 0.01em;
}

.ab-stat-value {
    font-size: 15px;
    font-weight: 700;
    font-family: "JetBrains Mono", monospace;
    color: var(--text-main);
    line-height: 1.2;
}

.ab-stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

.text-success {
    color: #34d399 !important;
}

.text-danger {
    color: #f87171 !important;
}

.autobackup-table-wrap {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.ab-table-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-table-head-row h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: normal;
}

.ab-table-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

.backup-filename-code {
    font-size: 11px;
    color: #f59e0b;
}

.ab-action-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* WYSZUKIWARKA I AKCJE W UŻYTKOWNIKACH */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-main);
    min-width: 200px;
}

.btn-icon-svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}


/* ==================== PORTAL WIDZA (v1.1.7) ==================== */
/* ==================== PORTAL WIDZA / MOJE STATYSTYKI (v1.1.41: UJEDNOLICONY DESIGN & CZAT TRANSMISJI) ==================== */
.viewer-portal-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.viewer-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 1120px) {
    .viewer-split-layout {
        grid-template-columns: 1fr;
    }
}

.viewer-split-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.viewer-hero-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.vhb-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.vhb-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    color: #fff;
}

.vhb-content p {
    margin: 0 0 14px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.viewer-streamer-hero-card {
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.vsh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vsh-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vsh-avatar-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(147, 51, 234, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.vsh-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.vsh-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vsh-title-row h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.vsh-stream-title {
    margin: 4px 0 0 0;
    color: var(--text-sec);
    font-size: 0.88rem;
}

.vsh-twitch-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(145, 70, 255, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    color: #c084fc !important;
    font-weight: 600;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.vsh-twitch-link:hover {
    background: rgba(145, 70, 255, 0.22) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

/* Kafelki KPI w portalu widza — spójne z pulpitowymi kpi-card */
.viewer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
}

@media (max-width: 1080px) {
    .viewer-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .viewer-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.viewer-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.15s ease;
}

.viewer-kpi-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.vkpi-clickable {
    cursor: pointer;
}

.vkpi-clickable:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.04);
}

.text-purple {
    color: #c084fc !important;
}

.text-amber {
    color: var(--amber) !important;
}

.text-blue {
    color: #60a5fa !important;
}

/* Czat Transmisji na pulpicie statystyk (v1.1.41) */
.viewer-chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.vchat-tw-icon {
    color: #a855f7;
    flex-shrink: 0;
}

.viewer-chat-feed {
    flex: 1;
    min-height: 380px;
    max-height: 520px;
    overflow-y: auto;
    background: #090d16;
    padding: 12px 14px;
}

.viewer-chat-input-row {
    padding: 10px 14px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.streamers-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    max-height: 320px;
    overflow-y: auto;
}

.streamer-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.streamer-item-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.streamer-item-btn.active {
    background: rgba(147, 51, 234, 0.14);
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.22);
}

.sib-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sib-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sib-name {
    font-weight: 600;
    font-size: 0.92rem;
    font-family: 'JetBrains Mono', monospace;
    display: block;
    color: #f1f5f9;
}

.sib-sub {
    font-size: 0.76rem;
    color: var(--text-sec);
    display: block;
}

.sib-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.sib-badge.live {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.sib-badge.offline {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ==================== SLCB v1.1.42: WYBÓR STREAMERÓW NAD PORTALEM WIDZA & KANWA ==================== */
.sidebar-streamer-picker {
    padding: 12px 14px 14px 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.ssp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ssp-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-sec);
}

.ssp-status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.ssp-status-badge.live {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.ssp-select-wrap {
    position: relative;
    width: 100%;
}

.ssp-select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    padding: 8px 10px;
    font-size: 0.84rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.ssp-select:focus, .ssp-select:hover {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* KANWA: WIELKIE KWADRATY STREAMERÓW (v1.1.42) */
/* ==================== STRONA STARTOWA: KANWA WYBORU STREAMERA (v1.1.43) ==================== */
.streamers-canvas-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.canvas-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.28);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cwb-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cwb-text h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.cwb-text p {
    display: none !important; /* Usunięto opis z Wybierz Streamera (v1.1.60) */
}

.streamer-canvas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    width: 100%;
}

.streamer-canvas-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.streamer-canvas-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.22);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.streamer-canvas-card.is-live {
    border-color: rgba(239, 68, 68, 0.45);
}

.streamer-canvas-card.is-live:hover {
    border-color: #ef4444;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(239, 68, 68, 0.3);
}

.streamer-canvas-card.is-selected {
    border-color: #8b5cf6;
    outline: 2px solid rgba(139, 92, 246, 0.5);
}

/* Plakietka statusu LIVE/OFFLINE w prawym górnym rogu */
.scc-top-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.scc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scc-badge.live {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.scc-badge.offline {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.scc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.scc-dot.live {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.scc-dot.pulse {
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.scc-dot.offline {
    background: #64748b;
}

/* Okrągły awatar z pierścieniem i wyśrodkowaniem */
.scc-avatar-wrap {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    position: relative;
    margin-top: 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streamer-canvas-card:hover .scc-avatar-wrap {
    transform: scale(1.06);
    border-color: #a855f7;
}

.scc-avatar-wrap.live {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}

.scc-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Informacje o streamerze */
.scc-info {
    margin-bottom: 8px;
    width: 100%;
}

.scc-channel {
    margin: 0 0 3px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scc-owner {
    font-size: 0.82rem;
    color: var(--text-sec);
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status transmisji i kategoria */
.scc-stream-status {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    width: 100%;
    padding: 0 6px;
}

.scc-title.live {
    font-size: 0.84rem;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scc-title.offline {
    font-size: 0.82rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
}

.scc-game-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 600;
}

/* Karta waluty kanału - elastyczne dopasowanie i brak ucinania (v1.1.86) */
.scc-currency-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 5px 12px;
    font-size: 0.8rem;
    margin-bottom: 18px;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.scc-curr-label {
    color: #94a3b8;
    font-size: 0.76rem;
}

.scc-curr-name {
    color: #f59e0b;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.scc-curr-cmd {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 2px 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* Przycisk akcji */
.scc-action-wrap {
    width: 100%;
    margin-top: auto;
}

.scc-action-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Przycisk powrotu do kanwy streamerów */
.vsh-change-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-sec) !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    transition: all 0.2s ease;
}

.vsh-change-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: var(--border-strong) !important;
}

/* Blokada czatu przy braku połączonego konta Twitch */
.vchat-footer-wrap {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.vchat-unlinked-notice {
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    color: #fde68a;
}

.viewer-chat-input-row input:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    border-color: var(--border) !important;
}

.viewer-chat-input-row button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* -------------------- VIEWER TWITCH CONNECT BOX (v1.1.9) -------------------- */
.card-icon-round.vtc-brand-square {
    background: rgba(145, 71, 255, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #a78bfa;
    border-radius: 12px;
}

.viewer-twitch-connect-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(145, 71, 255, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 12px;
    padding: 18px 22px;
    transition: all 0.25s ease;
}

.viewer-twitch-connect-box.connected {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.35);
}

.vtc-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.vtc-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(145, 71, 255, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vtc-avatar-box .vtc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.viewer-twitch-connect-box.connected .vtc-avatar-box {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.vtc-texts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vtc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtc-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vtc-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 620px;
}

.vtc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================================================
   SLCB v1.1.11: 3-CARD USER SETTINGS & MFA (SS1 STYLE)
   ========================================================================== */
.settings-user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    align-items: start;
    width: 100%;
}

@media (min-width: 1300px) {
    .settings-user-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.settings-user-card {
    background: rgba(18, 22, 34, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.settings-user-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

.suc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.suc-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.suc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suc-icon-purple {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #a78bfa;
}

.suc-icon-green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.suc-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.suc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suc-title-row h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.suc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
}

.suc-status-active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
}

.suc-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.suc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.suc-label-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.suc-label-title .field-icon {
    font-size: 13px;
    line-height: 1;
}

.suc-label-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.suc-label-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
}

.suc-label-badge-sync {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
}

.suc-input-wrap {
    position: relative;
    width: 100%;
}

.suc-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    color: #fff !important;
    transition: all 0.2s ease;
}

.suc-input:focus {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
    background: rgba(0, 0, 0, 0.45) !important;
}

.readonly-wrap {
    display: flex;
    align-items: center;
}

.readonly-input {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-sec) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    cursor: default !important;
    padding-right: 130px !important;
    font-family: "JetBrains Mono", monospace !important;
}

.suc-ad-chip {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
    pointer-events: none;
}

.ad-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #a78bfa;
}

.suc-ad-actions-box {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.suc-ad-actions-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ad-lightning {
    color: #f59e0b;
    font-size: 12px;
}

.suc-ad-actions-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-icon-xs {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}

.suc-footer-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

.btn-save-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

.suc-desc {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.suc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.suc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suc-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.suc-label-title {
    font-weight: 700;
}

.suc-label-note {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: normal;
}

.suc-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.suc-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.suc-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.input-with-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-badge input {
    padding-right: 120px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: not-allowed;
}

.input-with-badge .badge-ad {
    position: absolute;
    right: 10px;
}

.badge-ad {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-sync {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
}

.badge-step {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    line-height: 1.25;
    vertical-align: middle;
}

.badge-dim {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.badge-primary {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #c4b5fd !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.suc-info-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.suc-info-box.blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.suc-info-box.green {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.suc-email-highlight {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.92rem;
    color: #93c5fd;
    font-weight: 600;
    word-break: break-all;
}

.pwd-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pwd-sub-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.code-input {
    text-align: center;
    font-size: 20px;
    letter-spacing: 6px;
    font-family: monospace;
    font-weight: 700;
}

.mfa-both-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a7f3d0;
}

.mfa-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mfa-method-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mfa-method-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.mfa-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mfa-method-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.mfa-method-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.mfa-method-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    flex-wrap: wrap;
}

.mfa-method-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 4px;
}

.mfa-method-toggle-col, .mfa-method-actions-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mfa-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mfa-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mfa-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: .25s ease;
    border-radius: 24px;
}

.mfa-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .25s ease;
    border-radius: 50%;
}

.mfa-switch input:checked + .mfa-slider {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.mfa-switch input:checked + .mfa-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.mfa-toggle-status-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 65px;
}

.totp-setup-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.totp-setup-grid {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.totp-qr-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.totp-qr-wrapper img {
    width: 120px;
    height: 120px;
    display: block;
}

.totp-secret-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #f3f4f6;
    margin-top: 4px;
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
}

.btn-emerald:hover {
    filter: brightness(1.1);
}

.btn-ghost-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-ghost-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}


/* ==========================================================================
   SLCB v1.1.13: CONTEXT MENU (PPM) & BLACKLIST STYLING
   ========================================================================== */
.slcb-context-menu {
    position: fixed;
    z-index: 999999;
    min-width: 260px;
    background: rgba(15, 19, 32, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.25);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: scmFadeIn 0.12s ease-out;
    user-select: none;
}

@keyframes scmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 4px;
}

.scm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1e293b;
}

.scm-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scm-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scm-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.scm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.scm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.scm-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
    transform: translateX(2px);
}

.scm-item:active {
    transform: scale(0.98);
}

.scm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.badge-blacklist {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

tr.row-blacklisted {
    background: rgba(239, 68, 68, 0.04);
}

tr.row-blacklisted:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}


/* ==========================================================================
   SLCB v1.1.17: SYSTEM NOTIFICATIONS (TOASTS)
   ========================================================================== */
.slcb-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100vw - 48px);
}

.slcb-system-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(15, 19, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(139, 92, 246, 0.2);
    color: #f1f5f9;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-16px) scale(0.96);
    opacity: 0;
    user-select: none;
}

.slcb-system-toast.toast-shown {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slcb-system-toast.toast-hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
}

.slcb-system-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(16, 185, 129, 0.2);
}

.slcb-system-toast.toast-warning,
.slcb-system-toast.toast-blacklist {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(239, 68, 68, 0.25);
}

.slcb-system-toast.toast-error {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(244, 63, 94, 0.25);
}

.slcb-system-toast .toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.slcb-system-toast .toast-body {
    flex: 1;
    min-width: 0;
}

.slcb-system-toast .toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.slcb-system-toast.toast-success .toast-title {
    color: #34d399;
}

.slcb-system-toast.toast-warning .toast-title,
.slcb-system-toast.toast-blacklist .toast-title {
    color: #f87171;
}

.slcb-system-toast.toast-error .toast-title {
    color: #fb7185;
}

.slcb-system-toast.toast-info .toast-title {
    color: #c084fc;
}

.slcb-system-toast .toast-msg {
    color: #e2e8f0;
    word-break: break-word;
    font-size: 0.85rem;
}

.slcb-system-toast .toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    align-self: flex-start;
    margin-left: 6px;
    transition: color 0.15s;
}

.slcb-system-toast .toast-close:hover {
    color: #ffffff;
}

/* ==================== SLCB v1.1.30: BOT PANEL, VERIFIED TWITCH & LOCKED FUNCTIONS ==================== */
.bot-config-card {
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.bot-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bot-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bot-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.bot-master-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.35);
    margin-bottom: 22px;
    transition: all 0.25s ease;
}
.bot-master-hero.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.12);
}
.bot-hero-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.bot-hero-status-row h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.bot-hero-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    display: inline-block;
}
.bot-master-hero.active .bot-hero-led {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseLed 1.8s infinite;
}
@keyframes pulseLed {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(0.95); }
}
.bot-hero-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.45;
}
.bot-hero-switch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.bot-master-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
    cursor: pointer;
}
.bot-master-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.bot-master-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition: 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.bot-master-slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.bot-master-switch input:checked + .bot-master-slider {
    background: #10b981;
    border-color: #10b981;
}
.bot-master-switch input:checked + .bot-master-slider::before {
    transform: translateX(28px);
}
.bot-switch-label-text {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-sec);
}
.bot-master-hero.active .bot-switch-label-text {
    color: #10b981;
}
.bot-channel-section {
    margin-bottom: 20px;
}
/* Pole liczbowe z sufiksem jednostki (np. minut) (v1.1.78) */
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-with-suffix input {
    width: 100% !important;
    padding-right: 68px !important;
}
.input-with-suffix .input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sec, #94a3b8);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}

.bot-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.bot-field-hint {
    font-size: 11.5px;
    color: var(--text-sec);
    font-weight: 400;
}
.bot-channel-connected-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(145, 71, 255, 0.08);
    border: 1px solid rgba(145, 71, 255, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    gap: 16px;
    flex-wrap: wrap;
}
.bcc-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bcc-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.bcc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #9146ff;
    object-fit: cover;
}
.bcc-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-card);
}
.bcc-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bcc-name {
    font-size: 1.15rem;
    color: #c084fc;
    font-family: monospace;
    letter-spacing: 0.5px;
}
.bcc-sub {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-sec);
}
.bcc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bot-channel-unlinked-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
}
.bcu-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.bcu-info {
    flex: 1;
    min-width: 220px;
}
.bcu-info h4 {
    margin: 0 0 4px 0;
    color: #fbbf24;
    font-size: 0.95rem;
}
.bcu-info p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-sec);
    line-height: 1.4;
}
.param-icon {
    margin-right: 6px;
}
.btn-save-bot-cfg {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 700;
}

/* Kłódka w menu bocznym */
.nav-lock-badge {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.85;
}

/* Baner blokady w Grach na Czacie */
.games-bot-locked-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 18px;
}
.locked-alert-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.locked-alert-text {
    flex: 1;
}
.locked-alert-text strong {
    color: #f87171;
    font-size: 0.92rem;
}
.locked-alert-text p {
    margin: 2px 0 0 0;
    font-size: 12.5px;
    color: var(--text-sec);
}
.locked-alert-text a {
    color: var(--accent);
    text-decoration: underline;
}

/* Zablokowany kafelek funkcji */
.game-tile.bot-locked {
    position: relative;
    opacity: 0.58;
    filter: grayscale(0.45);
    border-color: rgba(239, 68, 68, 0.35) !important;
    cursor: pointer;
    user-select: none;
}
.game-tile.bot-locked:hover {
    opacity: 0.8;
    transform: none;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.25);
}
.game-tile-lock-overlay {
    display: none;
}
.game-tile.bot-locked .game-tile-lock-overlay {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    gap: 6px;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Modal informujący o włączeniu bota */
.bot-locked-modal-box {
    max-width: 480px;
    text-align: center;
}
.bot-locked-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}
.bot-locked-modal-head h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
}
.bot-locked-modal-head p {
    margin: 0 0 16px 0;
    font-size: 13.5px;
    color: var(--text-sec);
}
.bot-locked-info-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sec);
    text-align: left;
}

/* ==================== SLCB v1.1.31: TWITCH INTEGRATION CARD REDESIGN ==================== */
.integ-twitch-card {
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.integ-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.integ-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.integ-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(145, 71, 255, 0.2);
    border: 1px solid rgba(145, 71, 255, 0.45);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.integ-card-body {
    padding: 20px;
}
.integ-box-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(145, 71, 255, 0.08);
    border: 1px solid rgba(145, 71, 255, 0.35);
    border-radius: 14px;
    padding: 20px 24px;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(145, 71, 255, 0.08);
}
.itc-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 280px;
}
.itc-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.itc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2.5px solid #9146ff;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(145, 71, 255, 0.3);
}
.itc-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-card);
}
.itc-info {
    flex: 1;
}
.itc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.itc-name {
    font-size: 1.25rem;
    color: #c084fc;
    font-family: monospace;
    font-weight: 700;
}
.itc-sub {
    margin: 6px 0 12px 0;
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.45;
}
.itc-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.itc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 8px;
    color: var(--text-sec);
}
.itc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.btn-ghost-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-ghost-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.integ-box-unlinked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    gap: 24px;
    flex-wrap: wrap;
}
.itu-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}
.itu-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(145, 71, 255, 0.14);
    border: 1px solid rgba(145, 71, 255, 0.35);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.itu-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.itu-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.45;
}
.itu-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--text-sec);
}
.itu-actions {
    flex-shrink: 0;
}

/* ==================== SLCB v1.1.33: AD VERIFIED BADGE & LOG CZATU TWITCH LINK ==================== */
.ad-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 50%;
    vertical-align: middle;
    user-select: none;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
    transition: all 0.2s ease;
    cursor: help;
}
.ad-verified-badge:hover {
    background: rgba(14, 165, 233, 0.32);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    transform: scale(1.1);
}
.ad-verified-badge:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}
.ad-verified-badge .ad-verif-icon {
    flex-shrink: 0;
    color: #38bdf8;
}

.btn-twitch-profile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e9d5ff;
    background: rgba(145, 71, 255, 0.18);
    border: 1px solid rgba(145, 71, 255, 0.45);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-twitch-profile:hover {
    background: #9146ff;
    color: #ffffff;
    border-color: #9146ff;
    box-shadow: 0 0 14px rgba(145, 71, 255, 0.4);
    transform: translateY(-1px);
}

.btn-twitch-subtle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c084fc;
    background: rgba(145, 71, 255, 0.12);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-twitch-subtle:hover {
    background: rgba(145, 71, 255, 0.3);
    color: #ffffff;
    border-color: #a855f7;
}

.history-profile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ==================== SLCB v1.1.34: REDESIGNED CHAT LOGS & STREAMER NAV ==================== */
.chatlogs-header-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 24, 39, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chatlogs-title-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chatlogs-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatlogs-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
}

.chatlogs-main-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.01em;
}

.chatlogs-sub-title {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.chatlogs-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 500;
}

.cl-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.chatlogs-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-input-group {
    display: flex;
    align-items: center;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.2s ease;
}

.cl-input-group:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
    background: rgba(2, 6, 23, 0.85);
}

.cl-input-viewer {
    width: 240px;
    flex-shrink: 0;
}

.cl-input-search {
    flex: 1;
    min-width: 220px;
}

.cl-input-icon {
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 8px;
    user-select: none;
    display: flex;
    align-items: center;
}

.cl-input-group input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 9px 0 !important;
    color: #f1f5f9;
    font-size: 0.86rem;
    width: 100%;
}

.cl-input-group input::placeholder {
    color: #64748b;
    font-size: 0.82rem;
}

.cl-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 10px;
}

.cl-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: #94a3b8;
    border-radius: 10px;
}

/* User Profile Banner in Chatlogs */
.chatlog-viewer-banner {
    background: linear-gradient(135deg, rgba(24, 21, 55, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(139, 92, 246, 0.15);
}

.cl-vb-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cl-vb-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cl-vb-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.cl-vb-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.4);
}

.cl-vb-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    background: #64748b;
}

.cl-vb-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.cl-vb-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-vb-name-row h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.cl-vb-sub {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.cl-close-user-btn {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.cl-close-user-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ffffff !important;
}

.cl-vb-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.cl-metric-card {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-m-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cl-m-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* Chatlogs Table Card & Rows */
.chatlogs-table-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chatlogs-table {
    width: 100%;
    border-collapse: collapse;
}

.chatlogs-table thead th {
    background: rgba(10, 14, 26, 0.95) !important;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cl-row {
    transition: background 0.15s ease;
}

.cl-row:hover td {
    background: rgba(139, 92, 246, 0.04) !important;
}

.chatlogs-table td {
    padding: 9px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle;
}

.cl-cell-time {
    white-space: nowrap;
}

.cl-timestamp {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
}

.cl-cell-user {
    white-space: nowrap;
}

.cl-user-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cl-avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cl-username {
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.cl-username:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.cl-cell-message {
    word-break: break-word;
}

.cl-message-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cl-message-text {
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cl-redeem-pill {
    margin-right: 6px;
    font-size: 0.75rem;
    padding: 2px 7px;
}

.cl-cell-actions {
    text-align: right;
}

.cl-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.cl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    height: 25px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.cl-action-filter {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}

.cl-action-filter:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cl-action-tw {
    background: rgba(145, 71, 255, 0.12);
    color: #c084fc;
    border-color: rgba(145, 71, 255, 0.3);
}

.cl-action-tw:hover {
    background: #9146ff;
    color: #ffffff;
    border-color: #9146ff;
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.4);
}

.cl-empty-state {
    padding: 40px 20px !important;
    text-align: center;
}

.cl-empty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}

.cl-empty-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

/* ==================== SLCB v1.1.35: BLACKLIST RANK BADGE & SHARP TWITCH ICONS ==================== */
.badge-blacklist-rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 3px 9px;
    letter-spacing: 0.02em;
}

.cl-tw-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ==================== SLCB v1.1.36: CHAT SUBTOOLBAR, ACTIVITY CARD & CLICKABLE KPI ==================== */
.twitch-chat-subtoolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(10, 14, 26, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

.tc-sub-left, .tc-sub-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nowoczesna, kompaktowa pastylka znacznika czasu (v1.1.68) */
.tc-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    height: 28px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}
.tc-switch .tc-clock-icon {
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    transition: color 0.2s ease !important;
}
.tc-switch span {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
/* Kompaktowy, estetyczny kwadracik wyboru 13px zamiast wielkiego domyślnego kwadratu przeglądarki */
.tc-switch input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 13px !important;
    height: 13px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}
.tc-switch input[type="checkbox"]:checked {
    background: #9333ea !important;
    border-color: #a855f7 !important;
}
.tc-switch input[type="checkbox"]:checked::after {
    content: "" !important;
    width: 3px !important;
    height: 6.5px !important;
    border: solid #ffffff !important;
    border-width: 0 1.8px 1.8px 0 !important;
    transform: rotate(45deg) translate(-0.5px, -0.5px) !important;
    display: block !important;
}
.tc-switch:has(input[type="checkbox"]:checked),
.tc-switch.active {
    background: rgba(147, 51, 234, 0.16) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #e9d5ff !important;
}
.tc-switch:has(input[type="checkbox"]:checked) .tc-clock-icon,
.tc-switch.active .tc-clock-icon {
    color: #c084fc !important;
}
.tc-switch:has(input[type="checkbox"]:checked) span,
.tc-switch.active span {
    color: #f3e8ff !important;
    font-weight: 600 !important;
}

.btn-popout-chat {
    color: #c084fc !important;
    border-color: rgba(145, 71, 255, 0.35) !important;
    background: rgba(145, 71, 255, 0.1) !important;
}

.btn-popout-chat:hover {
    background: #9146ff !important;
    color: #ffffff !important;
    border-color: #9146ff !important;
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.4);
}

.vkpi-clickable {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vkpi-clickable:hover {
    transform: translateY(-2px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.22);
}

/* Redesigned Activity Card */
.cl-activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.cl-act-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.cl-act-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-act-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.cl-act-head h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
}

.cl-act-head p {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.cl-act-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-act-logs-btn {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    padding: 4px 10px !important;
}

.cl-act-logs-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #8b5cf6 !important;
}

.cl-act-body {
    padding: 18px 20px;
}

.cl-act-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.cl-act-metric-box {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-act-m-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
}

.cl-act-m-val {
    font-size: 0.92rem;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.cl-act-msg-container {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
}

.cl-act-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.cl-act-msg-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cl-act-msg-hint {
    font-size: 0.72rem;
    color: #64748b;
}

.cl-act-quote-box {
    position: relative;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 3.5px solid #8b5cf6;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.cl-act-quote-bar {
    display: none;
}

.vact-quote {
    margin: 0;
    padding: 0;
    border: none !important;
    border-left: none !important;
    background: transparent !important;
    font-size: 0.92rem;
    color: #f1f5f9;
    font-style: italic;
    line-height: 1.45;
    word-break: break-word;
}

/* ==================== SLCB v1.1.37: AD IDENTITY IN VIEWERS & CHANNEL PILLS ==================== */
.viewer-channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.viewer-channel-chip:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: #a855f7;
}
.viewer-channel-chip .cl-tw-icon {
    color: #a855f7;
    flex-shrink: 0;
}
.viewer-channel-chip .tw-channel-label {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-right: 1px;
}
.viewer-channel-chip strong {
    color: #f1f5f9;
}

.cl-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #e9d5ff;
    background: rgba(145, 71, 255, 0.18);
    border: 1px solid rgba(145, 71, 255, 0.45);
    border-radius: 8px;
    vertical-align: middle;
    font-family: 'JetBrains Mono', monospace;
}
.cl-channel-pill .cl-tw-icon {
    color: #c084fc;
    flex-shrink: 0;
}
.cl-channel-pill strong {
    color: #ffffff;
    font-weight: 700;
}

/* ==================== SLCB v1.1.40: COMPREHENSIVE MOBILE OPTIMIZATION ==================== */
@media (max-width: 768px) {
    /* Blokada podwójnego scrolla i eliminacja czarnego dołu (v1.1.58) */
    html {
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        background-color: var(--bg-canvas) !important;
        -webkit-text-size-adjust: 100%;
    }

    .app-shell {
        position: relative !important;
        width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        display: flex !important;
    }

    .workspace {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Jedyny kontener ze scrollem na telefonie bez zbędnej pustki na dole (v1.1.62) */
    .main-area {
        flex: 1 1 0% !important;
        height: 0 !important;
        min-height: 0 !important;
        width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding: 12px 10px 20px 10px !important; /* Zmniejszona pustka na dole strony */
    }

    .streamers-canvas-container {
        gap: 12px !important;
        padding-bottom: 20px !important;
    }

    /* Zgrabny, minimalistyczny baner wyboru streamera bez zbędnego opisu (v1.1.60) */
    .canvas-welcome-banner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        gap: 10px !important;
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.14) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
        border: 1px solid rgba(168, 85, 247, 0.25) !important;
    }
    .cwb-icon {
        font-size: 1.35rem !important;
        flex-shrink: 0 !important;
    }
    .cwb-text {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .cwb-text h2 {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .cwb-text p {
        display: none !important;
    }
    .cwb-actions {
        flex-shrink: 0 !important;
    }
    .cwb-actions .btn {
        padding: 5px 8px !important;
        height: 30px !important;
        border-radius: 7px !important;
        font-size: 11px !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    .cwb-actions .btn span {
        display: none !important;
    }
    .cwb-actions .btn svg {
        margin: 0 !important;
        width: 14px !important;
        height: 14px !important;
    }

    /* Off-canvas Slide-over Drawer for Mobile */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        max-width: 84vw !important;
        height: 100% !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
        display: flex !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.85) !important;
    }
    .sidebar.collapsed {
        width: 280px !important;
        transform: translateX(-100%) !important;
    }

    .mobile-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.28s ease;
    }
    .mobile-sidebar-backdrop.active {
        display: block !important;
        opacity: 1 !important;
    }

    /* ==================== GÓRNA BELKA NA TELEFONIE (v1.1.58) ==================== */
    .topbar {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 10px !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important; /* Blokada zawijania do 2 linii */
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .breadcrumb {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Wywalamy opis 'Portal Widza' i ukośnik '/', zostawiamy tylko nazwę wybranej opcji (np. 'Wybór Streamera') */
    .breadcrumb .bc-cat,
    .breadcrumb .bc-sep {
        display: none !important;
    }

    .breadcrumb .bc-current {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: none !important; /* Brak sztucznego ucinania nazwy sekcji kropkami (v1.1.60) */
        display: inline-block !important;
    }

    .topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    /* Pasek playera bota ukryty na małych ekranach */
    .topbar-bot-bar {
        display: none !important;
    }

    /* Przycisk akcentu jako zwięzła kropka 32x32 bez tekstu */
    #accent-cycle-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        border: 1px solid var(--border) !important;
        background: var(--bg-card) !important;
        flex-shrink: 0 !important;
    }
    #accent-cycle-btn span:not(.accent-dot) {
        display: none !important;
    }
    #accent-cycle-btn .accent-dot {
        margin: 0 !important;
        width: 10px !important;
        height: 10px !important;
    }

    /* Scalony chip użytkownika i wylogowania w jedno cudo (v1.1.58) */
    .user-chip-logout-combo {
        display: inline-flex !important;
        align-items: center !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 9999px !important;
        padding: 3px 4px 3px 8px !important;
        gap: 6px !important;
        max-width: 165px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        flex-shrink: 0 !important;
    }
    .user-chip-logout-combo .user-chip {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .user-chip-logout-combo .user-chip-role {
        font-size: 9px !important;
        padding: 1px 4px !important;
        border-radius: 4px !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
        text-transform: uppercase !important;
        flex-shrink: 0 !important;
    }
    .user-chip-logout-combo #current-user-display {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 65px !important;
        display: inline-block !important;
    }
    .user-chip-logout-combo #logout-btn {
        background: rgba(239, 68, 68, 0.15) !important;
        color: #f87171 !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        border-radius: 9999px !important;
        padding: 3px 6px !important;
        min-height: 26px !important;
        height: 26px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        transition: all 0.15s ease !important;
    }
    .user-chip-logout-combo #logout-btn:active {
        background: rgba(239, 68, 68, 0.3) !important;
        transform: scale(0.96) !important;
    }
    .user-chip-logout-combo #logout-btn .logout-btn-label {
        display: none !important;
    }
    .user-chip-logout-combo #logout-btn .logout-btn-icon {
        display: block !important;
        stroke: #f87171 !important;
    }

    /* Cards & Containers */
    .card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    .card-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Forms & Inputs: 16px to prevent iOS auto-zoom */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Grid Layouts */
    .dashboard-split {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .viewer-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    /* Kafelki statystyk w układzie 2 kolumny x 2 wiersze na telefonie (v1.1.62) */
    .viewer-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .viewer-kpi-card, .vkpi-card {
        padding: 10px 10px !important;
        border-radius: 10px !important;
    }
    .viewer-kpi-card .kpi-top {
        gap: 4px !important;
        margin-bottom: 3px !important;
        flex-wrap: wrap !important;
    }
    .viewer-kpi-card .kpi-label {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .viewer-kpi-card .kpi-tag {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }
    .viewer-kpi-card .kpi-value, .vkpi-value {
        font-size: 1.25rem !important;
        margin: 2px 0 3px 0 !important;
        line-height: 1.2 !important;
    }
    .viewer-kpi-card .kpi-sub {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .cl-act-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .bot-params-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .settings-user-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .admin-server-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* ==================== ZOPTYMALIZOWANY CZAT I DÓŁ EKRANU NA TELEFONIE (v1.1.61) ==================== */
    .twitch-chat-card,
    .viewer-chat-card {
        height: 460px !important;
        min-height: 0 !important;
        max-height: 65vh !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin-bottom: 10px !important; /* Zmniejszony margines pod czatem */
        border: 1px solid var(--border) !important;
        background: #18181b !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    }

    /* Nagłówek czatu: 1 równa linia */
    .twitch-chat-header {
        padding: 8px 12px !important;
        height: auto !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        background: #18181b !important;
        border-bottom: 1px solid #2f2f35 !important;
    }
    .twitch-chat-title {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .twitch-chat-title span {
        white-space: nowrap !important;
    }
    .twitch-chat-header-right {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }
    .twitch-chat-room-pill {
        font-size: 11px !important;
        padding: 2px 7px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    /* Zwięzły pasek kontrolek w jednym wierszu */
    .twitch-chat-subtoolbar {
        padding: 6px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        background: #131316 !important;
        border-bottom: 1px solid #27272a !important;
    }
    .tc-sub-left,
    .twitch-chat-subtoolbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .tc-sub-right,
    .twitch-chat-subtoolbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .tc-switch span {
        font-size: 11px !important;
        color: #94a3b8 !important;
    }
    .twitch-chat-subtoolbar .btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 28px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    .desktop-only-inline {
        display: none !important;
    }
    .mobile-only-inline {
        display: inline !important;
    }

    /* Nowoczesny, estetyczny pasek kontrolek czatu na telefonie (v1.1.65) */
    .twitch-chat-subtoolbar {
        padding: 7px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        background: #111420 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        min-height: 42px !important;
        box-sizing: border-box !important;
    }
    .twitch-chat-subtoolbar::-webkit-scrollbar {
        display: none !important;
    }
    .tc-sub-left,
    .twitch-chat-subtoolbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .tc-sub-right,
    .twitch-chat-subtoolbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    /* Estetyczny przycisk-pastylka znacznika czasu na telefonie */
    .tc-switch {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 5px 11px !important;
        height: 29px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #94a3b8 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        user-select: none !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .tc-switch .tc-clock-icon {
        color: #94a3b8 !important;
        flex-shrink: 0 !important;
        transition: color 0.2s ease !important;
    }
    .tc-switch span {
        font-size: 11px !important;
        color: #cbd5e1 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
    /* Nowoczesny custom checkbox zamiast domyślnego kwadratu przeglądarki */
    .tc-switch input[type="checkbox"] {
        appearance: none !important;
        -webkit-appearance: none !important;
        width: 14px !important;
        height: 14px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
        border-radius: 3.5px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        margin: 0 !important;
        padding: 0 !important;
        outline: none !important;
        cursor: pointer !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: all 0.15s ease !important;
    }
    .tc-switch input[type="checkbox"]:checked {
        background: #9333ea !important;
        border-color: #a855f7 !important;
    }
    .tc-switch input[type="checkbox"]:checked::after {
        content: "" !important;
        width: 3.5px !important;
        height: 7px !important;
        border: solid #ffffff !important;
        border-width: 0 1.8px 1.8px 0 !important;
        transform: rotate(45deg) translate(-0.5px, -0.5px) !important;
        display: block !important;
    }
    .tc-switch:has(input[type="checkbox"]:checked),
    .tc-switch.active {
        background: rgba(147, 51, 234, 0.16) !important;
        border-color: rgba(168, 85, 247, 0.4) !important;
        color: #e9d5ff !important;
    }
    .tc-switch:has(input[type="checkbox"]:checked) .tc-clock-icon,
    .tc-switch.active .tc-clock-icon {
        color: #c084fc !important;
    }
    .tc-switch:has(input[type="checkbox"]:checked) span,
    .tc-switch.active span {
        color: #f3e8ff !important;
        font-weight: 600 !important;
    }

    /* Dopasowany przycisk otwierania czatu na telefonie */
    #vchat-popout-btn,
    #popout-chat-btn,
    .btn-popout-chat {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 5px 12px !important;
        height: 29px !important;
        border-radius: 20px !important;
        color: #e9d5ff !important;
        background: rgba(147, 51, 234, 0.18) !important;
        border: 1px solid rgba(168, 85, 247, 0.4) !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        transition: all 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    #vchat-popout-btn:active,
    #popout-chat-btn:active,
    .btn-popout-chat:active {
        background: rgba(147, 51, 234, 0.35) !important;
        transform: scale(0.97) !important;
    }
    #vchat-popout-btn svg,
    #popout-chat-btn svg,
    .btn-popout-chat svg {
        color: #c084fc !important;
        flex-shrink: 0 !important;
    }

    /* Przewijany obszar wiadomości */
    .chat-feed,
    .twitch-chat-feed,
    .viewer-chat-feed {
        flex: 1 1 auto !important;
        min-height: 140px !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 10px !important;
        background: #0f0f13 !important;
    }
    .chat-line {
        padding: 4px 8px !important;
        font-size: 12.5px !important;
        line-height: 18px !important;
    }
    .twitch-welcome-line {
        padding: 6px 8px !important;
        font-size: 11.5px !important;
    }

    /* Pasek wpisywania wiadomości na dole czatu: zablokowany przed ucinaniem */
    .vchat-footer-wrap {
        background: #18181b !important;
        flex-shrink: 0 !important;
        border-top: 1px solid #2f2f35 !important;
    }
    .chat-input-row,
    .twitch-chat-input-row,
    .viewer-chat-input-row {
        padding: 8px 10px !important;
        background: #18181b !important;
        border-top: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    .chat-input-row input,
    .twitch-chat-input-row input,
    .viewer-chat-input-row input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        background: #0e0e10 !important;
        border: 1px solid #3a3a3d !important;
        border-radius: 8px !important;
        color: #efeff1 !important;
        padding: 9px 12px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        height: 40px !important;
        box-sizing: border-box !important;
        outline: none !important;
    }
    .chat-input-row input:focus,
    .twitch-chat-input-row input:focus,
    .viewer-chat-input-row input:focus {
        border-color: #a970ff !important;
        box-shadow: 0 0 0 2px rgba(169, 112, 255, 0.25) !important;
    }
    .btn-twitch-chat {
        background: #9147ff !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 0 16px !important;
        font-weight: 700 !important;
        font-size: 13.5px !important;
        min-height: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    .btn-twitch-chat:active {
        background: #772ce8 !important;
    }

    /* Karta aktywności widza: bardziej zwarta na telefonie */
    .cl-activity-card {
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
    }
    .cl-act-quote-box {
        padding: 8px 10px !important;
    }

    /* Streamer Canvas on Mobile (v1.1.57) */
    .streamer-canvas-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .streamer-canvas-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .scc-avatar-wrap {
        width: 72px !important;
        height: 72px !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
    }
    .scc-channel {
        font-size: 1.2rem !important;
    }
    .scc-action-btn {
        min-height: 44px !important;
        font-size: 13.5px !important;
    }

    /* Tables & Horizontal Scroll with Sticky User Column (v1.1.57) */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        border-radius: 10px !important;
        border: 1px solid var(--border) !important;
        background: var(--bg-card) !important;
        margin: 8px 0 14px 0 !important;
        scrollbar-width: thin;
        scrollbar-color: var(--accent, #3b82f6) rgba(255, 255, 255, 0.05);
    }
    .table-container::-webkit-scrollbar {
        height: 6px !important;
    }
    .table-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.25) !important;
        border-radius: 3px;
    }
    .table-container::-webkit-scrollbar-thumb {
        background: var(--accent, #3b82f6) !important;
        border-radius: 3px;
    }
    .table-container::after {
        content: "⟵ Przesuń tabelę w poziomie, aby zobaczyć wszystkie kolumny ⟶";
        display: block;
        text-align: center;
        padding: 6px 10px;
        font-size: 11px;
        color: var(--text-muted, #94a3b8);
        background: rgba(15, 23, 42, 0.7);
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
        font-weight: 500;
        letter-spacing: 0.02em;
        pointer-events: none;
    }
    .data-table {
        min-width: 760px !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }
    .data-table th,
    .data-table td {
        padding: 10px 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }
    /* Sticky pierwsza kolumna: Użytkownik / Widz zostaje przypięty z lewej strony przy przesuwaniu */
    .data-table th:first-child,
    .data-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 4 !important;
        background: var(--bg-card, #131b2e) !important;
        box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.6) !important;
    }
    .data-table thead th:first-child {
        z-index: 5 !important;
        background: #0f172a !important;
    }
    .data-table tbody tr:hover td:first-child {
        background: rgba(255, 255, 255, 0.06) !important;
    }
    .data-table td[colspan] {
        position: static !important;
        box-shadow: none !important;
    }

    
    /* ==================== ZOPTYMALIZOWANA TABELA NAJAKTYWNIEJSI WIDZOWIE NA TELEFONIE (v1.1.70) ==================== */
    .dashboard-top-viewers-card .table-container {
        overflow-x: hidden !important;
    }
    .dashboard-top-viewers-card .table-container::after {
        display: none !important; /* Usunięcie zbędnego napisu 'Przesuń tabelę w poziomie' */
    }
    .top-viewers-data-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    /* Wyłączenie sztucznego sticky na telefonie dla tej tabeli, zapobiega zasłanianiu danych */
    .top-viewers-data-table th:first-child,
    .top-viewers-data-table td:first-child {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Ukrycie dodatkowych danych na telefonie: Wiadomości oraz przycisk Logi */
    .top-viewers-data-table .col-tv-extra {
        display: none !important;
    }
    /* Ukrycie zbędnego podtekstu/chipu powiązanego konta na telefonie (zostaje czysty, czytelny nick) */
    .top-viewers-data-table .tv-subtext {
        display: none !important;
    }
    /* Podział kolumn na telefonie: 46% Widz, 27% Watchtime, 27% Waluta */
    .top-viewers-data-table th.col-tv-viewer,
    .top-viewers-data-table td.col-tv-viewer {
        width: 46% !important;
        padding: 9px 6px !important;
    }
    .top-viewers-data-table th.col-tv-watchtime,
    .top-viewers-data-table td.col-tv-watchtime {
        width: 27% !important;
        padding: 9px 4px !important;
        text-align: right !important;
    }
    .top-viewers-data-table th.col-tv-currency,
    .top-viewers-data-table td.col-tv-currency {
        width: 27% !important;
        padding: 9px 4px !important;
        text-align: right !important;
    }
    .top-viewers-data-table .tv-viewer-cell {
        gap: 6px !important;
    }
    .top-viewers-data-table .tw-avatar-sm {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }
    .top-viewers-data-table .tv-viewer-primary {
        font-size: 12.5px !important;
        display: block !important;
        max-width: 110px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .top-viewers-data-table .mh-watch-pill,
    .top-viewers-data-table .mh-currency-pill {
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    
                /* ==================== ZOPTYMALIZOWANA TABELA WIDZOWIE NA TELEFONIE (v1.1.74) ==================== */
    #tab-watchtime .table-container {
        overflow-x: hidden !important;
    }
    #tab-watchtime .table-container::after {
        display: none !important; /* Usunięcie zbędnego napisu 'Przesuń tabelę w poziomie' */
    }
    .viewers-main-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    /* Wyłączenie sztucznego sticky na telefonie dla tabeli Widzowie */
    .viewers-main-table th:first-child,
    .viewers-main-table td:first-child {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Ukrycie dodatkowych kolumn (4, 5, 6, 7, 8) na telefonie */
    .viewers-main-table .col-w-extra,
    .viewers-main-table th:nth-child(n+4),
    .viewers-main-table td:nth-child(n+4) {
        display: none !important;
    }
    /* Ukrycie rozpychających podtekstów, chipów kanałów i WSZYSTKICH odznak (plakietek) Twitcha na telefonie */
    .viewers-main-table .w-subtext,
    .viewers-main-table td:first-child .viewer-channel-chip,
    .viewers-main-table td:first-child small,
    .viewers-main-table .cl-badges-inline,
    .viewers-main-table .tw-badge-img,
    .viewers-main-table .chat-badge,
    .viewers-main-table .badge-img,
    .viewers-main-table td:first-child img:not(.tw-avatar-sm),
    .top-viewers-data-table .cl-badges-inline,
    .top-viewers-data-table .tw-badge-img,
    .top-viewers-data-table .chat-badge,
    .top-viewers-data-table .badge-img,
    .top-viewers-data-table td:first-child img:not(.tw-avatar-sm) {
        display: none !important;
    }
    /* Ukrycie sekund w kolumnie czasu oglądania */
    .viewers-main-table td:nth-child(2) small {
        display: none !important;
    }
    /* Podział 3 kolumn na telefonie: 50% Widz, 25% Watchtime, 25% Waluta */
    .viewers-main-table th:nth-child(1),
    .viewers-main-table td:nth-child(1),
    .viewers-main-table th.col-w-viewer,
    .viewers-main-table td.col-w-viewer {
        width: 50% !important;
        padding: 9px 6px !important;
    }
    .viewers-main-table th:nth-child(2),
    .viewers-main-table td:nth-child(2),
    .viewers-main-table th.col-w-watchtime,
    .viewers-main-table td.col-w-watchtime {
        width: 25% !important;
        padding: 9px 6px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    .viewers-main-table th:nth-child(3),
    .viewers-main-table td:nth-child(3),
    .viewers-main-table th.col-w-currency,
    .viewers-main-table td.col-w-currency {
        width: 25% !important;
        padding: 9px 6px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    .viewers-main-table .w-viewer-cell {
        gap: 6px !important;
    }
    .viewers-main-table .tw-avatar-sm {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }
    .viewers-main-table td:first-child strong,
    .top-viewers-data-table td:first-child strong {
        font-size: 12.5px !important;
        display: inline-block !important;
        max-width: 145px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }
    /* Usunięcie obramowanych plakietek/pastylek - czysta, lekka typografia na telefonie */
    .viewers-main-table .mh-watch-pill,
    .top-viewers-data-table .mh-watch-pill {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #c084fc !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .viewers-main-table .mh-currency-pill,
    .top-viewers-data-table .mh-currency-pill {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #fbbf24 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .viewers-main-table .mh-tag {
        padding: 1px 4px !important;
        font-size: 9.5px !important;
    }
    /* Dopasowanie paska filtrów i wyszukiwarki w zakładce Widzowie na telefonie */
    #tab-watchtime .toolbar-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }
    #tab-watchtime .toolbar-form #viewers-sort-select {
        grid-column: span 1 !important;
        width: 100% !important;
    }
    #tab-watchtime .toolbar-form #viewers-filter-mode {
        grid-column: span 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    #tab-watchtime .toolbar-form .switch-label {
        grid-column: span 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        border: 1px solid var(--border) !important;
    }
    #tab-watchtime .toolbar-form #viewers-refresh-btn {
        grid-column: span 2 !important;
        width: 100% !important;
    }
    #tab-watchtime .toolbar-actions {
        width: 100% !important;
    }
    #tab-watchtime .toolbar-actions #viewers-search-input {
        width: 100% !important;
    }

    /* ==================== ZOPTYMALIZOWANA ZAKLADKA USTAWIENIA SERWERA NA TELEFONIE (v1.1.81) ==================== */
    /* Pasek podzakladek Ustawien Serwera (Baza Danych | Uzytkownicy) */
    #admin-server-subtabs-bar {
        display: flex !important;
        gap: 6px !important;
        padding: 4px !important;
        margin-bottom: 14px !important;
        border-radius: 10px !important;
    }
    #admin-server-subtabs-bar .server-subtab-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    /* Karta Rozmiaru Bazy Danych */
    .dbsize-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .dbsize-head-title {
        gap: 10px !important;
    }
    .dbsize-head-badges {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    .dbsize-kpi-panel {
        padding: 14px 12px !important;
        border-radius: 10px !important;
        gap: 12px !important;
    }
    .dbsize-kpi-number {
        font-size: 28px !important;
    }
    .dbsize-kpi-details {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    .dbsize-detail-box {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
    .top-tables-header-row {
        margin-bottom: 8px !important;
    }
    .top-table-row {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    .dbsize-footer-hint {
        font-size: 11px !important;
        line-height: 1.35 !important;
        padding: 8px 10px !important;
    }

    /* Karta Kopia Zapasowa & Przywracanie */
    .backup-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .backup-security-chip {
        padding: 10px 10px !important;
        font-size: 11.5px !important;
    }
    .backup-action-btns {
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    .backup-action-btns .btn {
        min-height: 42px !important;
        font-size: 13px !important;
    }
    .backup-warning-box {
        padding: 10px 10px !important;
        font-size: 11.5px !important;
    }

    /* Karta Automatyczne Kopie Zapasowe Bazy Danych */
    .autobackup-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .autobackup-head-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    .autobackup-head-actions #autobackup-status-badge {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 4px 8px !important;
    }
    .autobackup-head-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 38px !important;
        font-size: 12px !important;
    }
    .autobackup-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px 10px !important;
        margin-bottom: 16px !important;
    }
    #ab-gdrive-stat-box {
        grid-column: span 2 !important;
    }
    .ab-stat-item {
        font-size: 11px !important;
    }
    .ab-stat-value {
        font-size: 14px !important;
    }
    .ab-stat-sub {
        font-size: 10.5px !important;
    }

    /* Tabela Kopii Zapasowych na dysku (.ab-table) */
    .autobackup-table-wrap .table-container {
        overflow-x: hidden !important;
    }
    .autobackup-table-wrap .table-container::after {
        display: none !important;
    }
    .ab-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    .ab-table th:first-child,
    .ab-table td:first-child {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Ukrycie kolumn 2 (Wiek kopii), 3 (Rozmiar pliku) oraz 4 (Plik archiwum) na telefonie */
    .ab-table th:nth-child(2),
    .ab-table td:nth-child(2),
    .ab-table th:nth-child(3),
    .ab-table td:nth-child(3),
    .ab-table th:nth-child(4),
    .ab-table td:nth-child(4) {
        display: none !important;
    }
    /* Pozostają 2 czytelne kolumny: Data utworzenia (62%) oraz Akcja Przywróć (38%) */
    .ab-table th:nth-child(1),
    .ab-table td:nth-child(1) {
        width: 62% !important;
        padding: 8px 6px !important;
        font-size: 11.5px !important;
    }
    .ab-table td:nth-child(1) strong {
        font-size: 11px !important;
        display: block !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }
    .ab-table th:nth-child(5),
    .ab-table td:nth-child(5) {
        width: 38% !important;
        padding: 8px 6px !important;
        text-align: right !important;
    }
    .ab-action-btns {
        display: flex !important;
        gap: 0 !important;
        justify-content: flex-end !important;
    }
    /* Ukrycie przycisku Pobierz w wierszach tabeli na telefonie (zostaje tylko Przywróć) */
    .ab-action-btns a,
    .ab-action-btns a[download] {
        display: none !important;
    }
    .ab-action-btns .btn,
    .ab-action-btns .btn-danger-outline {
        padding: 5px 10px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }

    /* Podzakladka Uzytkownicy (#server-subpane-users) */
    #server-subpane-users .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    #server-subpane-users .toolbar-info {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }
    #server-subpane-users .toolbar-actions {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
    }
    #admin-users-search {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 13px !important;
        min-height: 38px !important;
    }
    #admin-refresh-users-btn {
        min-height: 38px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }
    #server-subpane-users .table-container {
        overflow-x: hidden !important;
    }
    #server-subpane-users .table-container::after {
        display: none !important;
    }
    #server-subpane-users .data-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    #server-subpane-users .data-table th:first-child,
    #server-subpane-users .data-table td:first-child {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Ukrycie kolumn 3-9 na telefonie (w tym usunięcie kolumny Akcje/Usuń z aplikacji - zostaje tylko Nick i Rola) */
    #server-subpane-users .data-table th:nth-child(n+3),
    #server-subpane-users .data-table td:nth-child(n+3) {
        display: none !important;
    }
    /* 2 kluczowe kolumny na telefonie: Użytkownik AD (52%) oraz Rola (48%) */
    #server-subpane-users .data-table th:nth-child(1),
    #server-subpane-users .data-table td:nth-child(1) {
        width: 52% !important;
        padding: 9px 8px !important;
        overflow: hidden !important;
    }
    #server-subpane-users .data-table td:nth-child(1) strong {
        font-size: 12.5px !important;
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    #server-subpane-users .data-table td:nth-child(1) small {
        font-size: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: var(--text-muted) !important;
    }
    #server-subpane-users .data-table th:nth-child(2),
    #server-subpane-users .data-table td:nth-child(2) {
        width: 48% !important;
        padding: 9px 6px !important;
    }
    .admin-user-role-select {
        width: 100% !important;
        font-size: 11.5px !important;
        padding: 5px 6px !important;
        border-radius: 6px !important;
    }

    
    /* Optymalizacja wyboru twórcy w menu bocznym na telefonie (v1.1.84) */
    .sidebar-streamer-picker {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
    }
    .ssp-select {
        font-size: 13px !important;
        padding: 9px 12px !important;
        border-radius: 8px !important;
        background-color: #1e293b !important;
        color: #f8fafc !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        min-height: 42px !important;
    }

    /* ==================== ZOPTYMALIZOWANA ZAKLADKA USTAWIENIA NA TELEFONIE (v1.1.80) ==================== */
    /* Pasek podzakladek (Ustawienia Konta | Integracje | Changelog) */
    #tab-settings .server-subtabs-bar {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 4px !important;
        gap: 5px !important;
        border-radius: 10px !important;
        margin-bottom: 14px !important;
    }
    #tab-settings .server-subtabs-bar::-webkit-scrollbar {
        display: none !important;
    }
    #tab-settings .settings-subtab-btn {
        flex: 1 0 auto !important;
        padding: 7px 10px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
    #tab-settings .settings-subtab-btn .nav-pill-ver {
        font-size: 10px !important;
        padding: 1px 4px !important;
        margin-left: 3px !important;
    }

    /* Siatka kart w Ustawieniach Konta */
    .settings-user-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .settings-user-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }

    /* Naglowek karty uzytkownika */
    .suc-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }
    .suc-header-left {
        gap: 10px !important;
        width: 100% !important;
    }
    .suc-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
    }
    .suc-title-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
    }
    .suc-title-row h3 {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }
    .suc-desc {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-top: 3px !important;
    }
    .suc-status-pill {
        font-size: 11px !important;
        padding: 2px 7px !important;
    }

    /* Pola formularza w profilu uzytkownika */
    .suc-field {
        margin-bottom: 12px !important;
    }
    .suc-label-row {
        flex-wrap: wrap !important;
        gap: 4px !important;
        align-items: center !important;
        margin-bottom: 5px !important;
    }
    .suc-label-title {
        font-size: 12px !important;
    }
    .suc-label-hint,
    .suc-label-lock,
    .suc-label-badge-sync {
        font-size: 10.5px !important;
    }
    .suc-input {
        min-height: 40px !important;
        font-size: 13.5px !important;
        padding: 8px 12px !important;
    }
    .readonly-wrap {
        width: 100% !important;
        position: relative !important;
    }
    .readonly-input {
        padding-right: 120px !important;
        font-size: 12.5px !important;
        min-height: 40px !important;
    }
    .suc-ad-chip {
        font-size: 10.5px !important;
        padding: 2px 6px !important;
        right: 8px !important;
    }
    .suc-help {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
    }

    /* Pasek akcji AD (Pobierz / Zapisz) */
    .suc-ad-actions-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 10px !important;
        margin-top: 8px !important;
    }
    .suc-ad-actions-title {
        font-size: 11px !important;
    }
    .suc-ad-actions-btns {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .suc-ad-actions-btns .btn {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11.5px !important;
        min-height: 34px !important;
    }

    /* Dolny pasek zapisu profilu */
    .suc-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-top: 14px !important;
        padding-top: 12px !important;
    }
    .suc-footer-hint {
        text-align: center !important;
        font-size: 11px !important;
    }
    .btn-save-profile {
        width: 100% !important;
        justify-content: center !important;
        min-height: 42px !important;
        font-size: 13.5px !important;
    }

    /* Karta zmiany hasla */
    .suc-info-box {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        padding: 10px 10px !important;
    }
    .pwd-action-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .pwd-action-row .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 40px !important;
    }
    .pwd-sub-note {
        font-size: 11px !important;
        text-align: center !important;
    }

    /* Karta MFA / 2FA na telefonie */
    #mfa-both-banner {
        font-size: 12px !important;
        padding: 9px 10px !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    .mfa-method-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
        gap: 10px !important;
    }
    .mfa-method-top-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .mfa-method-left {
        gap: 10px !important;
        width: 100% !important;
    }
    .mfa-method-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 9px !important;
    }
    .mfa-method-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    .mfa-method-desc {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        margin-top: 3px !important;
    }
    .mfa-method-toggle-col {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .mfa-toggle-status-text {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
    .mfa-method-actions-col {
        display: flex !important;
        width: 100% !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .mfa-method-actions-col .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 38px !important;
        font-size: 12px !important;
    }

    /* Podzakladka Integracje Twitch */
    .integ-twitch-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .integ-card-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .integ-head-left {
        gap: 10px !important;
    }
    .integ-head-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
    }
    .integ-head-left h3 {
        font-size: 1.05rem !important;
    }
    .integ-head-left p {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
    .integ-head-right {
        width: 100% !important;
    }
    .integ-head-right .badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .integ-box-connected {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px 12px !important;
        gap: 14px !important;
    }
    .itc-left {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .itc-avatar-wrap {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
    .itc-avatar {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
    }
    .itc-title-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .itc-name {
        font-size: 1.15rem !important;
    }
    .itc-title-row .badge {
        font-size: 11px !important;
        padding: 2px 7px !important;
    }
    .itc-sub {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin: 4px 0 10px 0 !important;
    }
    .itc-badges-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .itc-chip {
        width: 100% !important;
        font-size: 11.5px !important;
        padding: 5px 10px !important;
        box-sizing: border-box !important;
    }
    .itc-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .itc-actions .btn {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
    }

    .integ-box-unlinked {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px 12px !important;
        gap: 12px !important;
    }
    .integ-box-unlinked .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 40px !important;
    }

    /* Podzakladka Changelog */
    #settings-subpane-changelog .card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .changelog-body {
        gap: 12px !important;
    }
    .changelog-card {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }
    .changelog-card h4 {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .changelog-card ul {
        padding-left: 18px !important;
        margin: 8px 0 0 0 !important;
    }
    .changelog-card li {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 5px !important;
    }

    /* ==================== ZOPTYMALIZOWANA ZAKLADKA GRY NA CZACIE NA TELEFONIE (v1.1.79) ==================== */
    .games-header-bar {
        padding: 0 0 12px 0 !important;
    }
    .games-section-title {
        font-size: 1.1rem !important;
        margin: 0 0 4px 0 !important;
    }
    .games-section-sub {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .games-bot-locked-alert {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .games-bot-locked-alert .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Kafelki Gier na Czat */
    .games-tiles-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .game-tile {
        padding: 14px 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }
    .game-tile-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .game-tile-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }
    .game-tile-status-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .game-tile-status-wrap .mh-tag {
        font-size: 10.5px !important;
        padding: 2px 7px !important;
    }
    .game-tile-title {
        font-size: 1.05rem !important;
        margin: 0 0 4px 0 !important;
    }
    .game-tile-desc {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }
    .game-tile-meta {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    .game-tile-pill {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
    .game-tile-footer {
        padding-top: 10px !important;
        font-size: 11.5px !important;
    }

    /* Modal Edycji Gry Czatowej */
    #game-edit-modal .modal-card {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
        overflow: hidden !important;
        width: calc(100vw - 20px) !important;
    }
    #game-edit-modal .modal-head {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px 14px 10px 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        flex-shrink: 0 !important;
    }
    #game-edit-modal .modal-title-row {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-right: 36px !important; /* Odstep od przycisku X */
        width: 100% !important;
    }
    #game-edit-modal .modal-title-row .twitch-brand-badge {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 8px !important;
    }
    #game-edit-modal .modal-title-row h3 {
        font-size: 14.5px !important;
        line-height: 1.3 !important;
        margin: 0 0 2px 0 !important;
        word-break: break-word !important;
    }
    #game-edit-modal .modal-title-row p {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        color: var(--text-sec) !important;
    }
    /* Przycisk X w prawym gornym rogu naglowka */
    #game-edit-modal #game-modal-close-btn {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        border-radius: 8px !important;
        z-index: 5 !important;
    }
    /* Pasek statusu i przelacznika pod tytulem */
    #game-edit-modal .game-tile-status-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    #game-edit-modal .modal-body {
        padding: 14px 14px 16px 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
    }
    #game-edit-modal .game-rules-box {
        padding: 12px 10px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
    #game-edit-modal .game-vars-hint {
        font-size: 11px !important;
        gap: 3px 5px !important;
        margin-top: 8px !important;
        padding-top: 6px !important;
    }
    #game-edit-modal .game-msgs-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    #game-edit-modal .game-msgs-head .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }
    /* Dolne przyciski modala */
    #game-edit-modal .btn-row {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 14px !important;
    }
    #game-edit-modal .btn-row .btn {
        flex: 1 !important;
        min-height: 42px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    /* ==================== ZOPTYMALIZOWANA ZAKLADKA USTAWIENIA BOTA NA TELEFONIE (v1.1.78) ==================== */
    .bot-config-card {
        padding: 16px 12px !important;
    }
    .bot-config-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .bot-head-left {
        gap: 10px !important;
    }
    .bot-head-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }
    .bot-head-left h3 {
        font-size: 1.05rem !important;
    }
    .bot-head-left p {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
    .bot-head-right {
        width: 100% !important;
    }
    .bot-head-right .badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Glowny Hero Przelacznik Bota */
    .bot-master-hero {
        padding: 14px 14px !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }
    .bot-hero-status-row {
        gap: 8px !important;
    }
    .bot-hero-status-row h4 {
        font-size: 1.02rem !important;
        line-height: 1.25 !important;
    }
    /* Ukrycie zduplikowanego badge Wlaczone/Wylaczone w wierszu tytulu - stan prezentuje sam przelacznik z podpisem */
    .bot-master-hero #bot-hero-badge {
        display: none !important;
    }
    .bot-hero-info p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-top: 5px !important;
    }
    .bot-master-switch {
        width: 54px !important;
        height: 30px !important;
    }
    .bot-master-slider::before {
        height: 22px !important;
        width: 22px !important;
        left: 4px !important;
        bottom: 3px !important;
    }
    .bot-master-switch input:checked + .bot-master-slider::before {
        transform: translateX(24px) !important;
    }
    .bot-switch-label-text {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
    }

    /* Karta Powiazanego Kanalu Streamera */
    .bot-field-label {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .bot-channel-connected-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 12px !important;
        gap: 12px !important;
    }
    .bcc-left {
        gap: 10px !important;
        width: 100% !important;
    }
    .bcc-avatar-wrap {
        width: 42px !important;
        height: 42px !important;
    }
    .bcc-avatar {
        width: 42px !important;
        height: 42px !important;
        border-radius: 9px !important;
    }
    .bcc-title-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .bcc-name {
        font-size: 1.05rem !important;
    }
    .bcc-title-row .badge {
        font-size: 11px !important;
        padding: 2px 7px !important;
    }
    .bcc-sub {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
    }
    /* Przyciski kanalu: pelna szerokosc, bez ucinania na brzegu ekranu */
    .bcc-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .bcc-actions .btn {
        width: 100% !important;
        min-height: 38px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12.5px !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }

    .bot-channel-unlinked-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 12px !important;
        gap: 12px !important;
    }
    .bot-channel-unlinked-box .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Karta Autoryzacji OAuth Bota */
    .bot-oauth-section-header h4 {
        font-size: 0.98rem !important;
        line-height: 1.3 !important;
    }
    .bot-oauth-section-header p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .twitch-oauth-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 12px !important;
        gap: 12px !important;
    }
    .twitch-oauth-info {
        gap: 10px !important;
        width: 100% !important;
    }
    .twitch-oauth-avatar {
        width: 40px !important;
        height: 40px !important;
        border-radius: 9px !important;
    }
    .twitch-oauth-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .twitch-oauth-sub {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 3px !important;
    }
    .twitch-oauth-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .twitch-oauth-actions .btn {
        flex: 1 !important;
        min-height: 38px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Formularz i Przycisk Zapisu */
    .btn-save-bot-cfg {
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    /* ==================== ZOPTYMALIZOWANA TABELA LOGI CZATU NA TELEFONIE (v1.1.76) ==================== */
    #tab-history .table-container {
        overflow-x: hidden !important;
    }
    #tab-history .table-container::after {
        display: none !important;
    }
    .chatlogs-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    /* Wylaczenie sticky dla pierwszej kolumny na telefonie */
    .chatlogs-table th:first-child,
    .chatlogs-table td:first-child {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Ukrycie kolumny Akcje (4) na telefonie */
    .chatlogs-table .cl-cell-actions,
    .chatlogs-table .cl-col-actions,
    .chatlogs-table th:nth-child(4),
    .chatlogs-table td:nth-child(4) {
        display: none !important;
    }
    /* Ukrycie plakietek / odznak Twitcha w logu czatu na telefonie */
    .chatlogs-table .tw-badge-img,
    .chatlogs-table .chat-badge,
    .chatlogs-table .badge-img,
    .chatlogs-table .cl-badges-inline,
    .chatlogs-table td:nth-child(2) img:not(.tw-avatar-sm) {
        display: none !important;
    }
    /* Naglowki tabeli na telefonie */
    .chatlogs-table thead th {
        padding: 8px 5px !important;
        font-size: 11px !important;
        letter-spacing: 0.03em !important;
    }
    /* Kolumna 1: Czas (22%) */
    .chatlogs-table th:nth-child(1),
    .chatlogs-table td:nth-child(1),
    .chatlogs-table th.cl-col-time,
    .chatlogs-table td.cl-cell-time {
        width: 22% !important;
        padding: 7px 4px !important;
        white-space: normal !important;
        vertical-align: middle !important;
    }
    .chatlogs-table .cl-timestamp {
        font-size: 10px !important;
        line-height: 1.25 !important;
        display: block !important;
        word-break: break-word !important;
        color: #94a3b8 !important;
    }
    /* Kolumna 2: Widz (28%) */
    .chatlogs-table th:nth-child(2),
    .chatlogs-table td:nth-child(2),
    .chatlogs-table th.cl-col-user,
    .chatlogs-table td.cl-cell-user {
        width: 28% !important;
        padding: 7px 4px !important;
        overflow: hidden !important;
        vertical-align: middle !important;
    }
    .chatlogs-table .cl-user-wrap {
        gap: 5px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }
    .chatlogs-table .cl-avatar {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
    }
    .chatlogs-table .cl-username {
        font-size: 11.5px !important;
        max-width: calc(100% - 25px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    /* Kolumna 3: Tresc wiadomosci (50%) */
    .chatlogs-table th:nth-child(3),
    .chatlogs-table td:nth-child(3),
    .chatlogs-table th.cl-col-message,
    .chatlogs-table td.cl-cell-message {
        width: 50% !important;
        padding: 7px 6px !important;
        white-space: normal !important;
        vertical-align: middle !important;
    }
    .chatlogs-table .cl-message-wrap {
        display: block !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    .chatlogs-table .cl-message-text {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        color: #e2e8f0 !important;
    }
    .chatlogs-table .cl-redeem-pill {
        display: inline-block !important;
        font-size: 9.5px !important;
        padding: 1px 4px !important;
        margin-bottom: 2px !important;
    }
    /* Dopasowanie paska filtrow logow na telefonie */
    .chatlogs-filter-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .cl-input-viewer,
    .cl-input-search {
        width: 100% !important;
        min-width: 0 !important;
    }
    .cl-btn-group {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .cl-btn-group .btn {
        flex: 1 !important;
        justify-content: center !important;
    }




    /* Toolbars & Filters */
    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .toolbar-form {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .toolbar-actions {
        width: 100% !important;
    }
    .search-box {
        width: 100% !important;
        max-width: none !important;
    }

    /* Subtabs Bar (Ustawienia: Konto | Integracje | Changelog) */
    .server-subtabs-bar {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        gap: 6px !important;
    }
    .settings-subtab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Profil Widza w Logu Czatu */
    .chatlog-viewer-banner {
        padding: 12px 10px !important;
    }
    .cl-vb-main {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .cl-vb-name-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .cl-vb-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .cl-close-user-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Auth / Login View on Mobile (v1.1.57) */
    .auth-screen {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        padding: 16px 12px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        padding-top: 20px !important;
    }
    .auth-card {
        padding: 22px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }
    .auth-brand {
        gap: 10px !important;
    }
    .auth-brand h1 {
        font-size: 20px !important;
    }
    .auth-nav-tabs {
        gap: 6px !important;
        margin-bottom: 16px !important;
    }
    .auth-tab-btn {
        min-height: 44px !important;
        padding: 10px !important;
        font-size: 13.5px !important;
    }
    #reg-verify-panel {
        padding: 14px 12px !important;
    }
    #reg-code-input {
        font-size: 22px !important;
        letter-spacing: 6px !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }
    .auth-footer {
        flex-direction: column !important;
        gap: 4px !important;
        align-items: flex-start !important;
    }

    /* Modale na mobile (v1.1.57) */
    .modal-backdrop {
        padding: 12px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .modal-card {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }
    .modal-foot {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .modal-foot .btn {
        width: 100% !important;
        min-height: 44px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .viewer-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .cl-vb-metrics {
        grid-template-columns: 1fr !important;
    }

    .user-chip-logout-combo #current-user-display {
        max-width: 50px !important;
    }
    .topbar-bot-bar {
        display: none !important;
    }
}

/* Styl zakładek Logowanie / Rejestracja (v1.1.51) */
.auth-nav-tabs {
    position: relative;
    z-index: 25;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.auth-tab-btn {
    position: relative;
    z-index: 26;
    user-select: none;
    -webkit-user-select: none;
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.auth-tab-btn:hover {
    color: #ffffff !important;
}


/* ==================== AUTH FORMS INPUTS (v1.1.53) ==================== */
.auth-form .field input,
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="number"] {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    font-family: inherit !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.auth-form .field input:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-soft) !important;
}

/* ==================== SLCB v1.2.0: TIKTOK LIVE INTEGRATION STYLES ==================== */
.integ-tiktok-card {
    border-color: rgba(254, 44, 85, 0.28) !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(37, 244, 238, 0.04) 50%, rgba(254, 44, 85, 0.06) 100%) !important;
}

.integ-tiktok-icon {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.18), rgba(254, 44, 85, 0.22)) !important;
    color: #fe2c55 !important;
    border: 1px solid rgba(254, 44, 85, 0.35) !important;
}

.badge-tiktok {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.18) 0%, rgba(254, 44, 85, 0.22) 100%) !important;
    color: #ff6b8b !important;
    border: 1px solid rgba(254, 44, 85, 0.4) !important;
}

.badge-tiktok-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #000000;
    color: #ffffff;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-right: 5px;
    vertical-align: middle;
}

.badge-twitch-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: #9146ff;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(145, 70, 255, 0.35);
    margin-right: 5px;
    vertical-align: middle;
}

.seventv-emote {
    display: inline-block;
    height: 26px;
    width: auto;
    max-width: 95px;
    vertical-align: -5px;
    margin: 0 2px;
    object-fit: contain;
}

.btn-tiktok-profile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff8fa6;
    background: rgba(254, 44, 85, 0.16);
    border: 1px solid rgba(254, 44, 85, 0.45);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-tiktok-profile:hover {
    background: #fe2c55;
    color: #ffffff;
    border-color: #fe2c55;
    box-shadow: 0 0 14px rgba(254, 44, 85, 0.4);
    transform: translateY(-1px);
}

.viewer-channel-chip-tt {
    background: rgba(254, 44, 85, 0.12) !important;
    border-color: rgba(254, 44, 85, 0.32) !important;
    color: #fda4af !important;
}

.viewer-channel-chip-tt .cl-tt-icon {
    color: #ff6b8b !important;
}

.badge-platform-tiktok {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(254, 44, 85, 0.15);
    border: 1px solid rgba(254, 44, 85, 0.38);
    color: #ff6b8b;
    letter-spacing: 0.02em;
}

.badge-platform-twitch {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(145, 70, 255, 0.15);
    border: 1px solid rgba(145, 70, 255, 0.38);
    color: #c084fc;
    letter-spacing: 0.02em;
}

.btn-tiktok-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fe2c55 0%, #d91b42 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-tiktok-oauth:hover {
    background: linear-gradient(135deg, #ff3b63 0%, #e6224b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(254, 44, 85, 0.45);
}

.btn-tiktok-subtle,
.cl-action-tt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(254, 44, 85, 0.14) !important;
    border: 1px solid rgba(254, 44, 85, 0.38) !important;
    color: #ff6b8b !important;
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-tiktok-subtle:hover,
.cl-action-tt:hover {
    background: rgba(254, 44, 85, 0.26) !important;
    color: #ffffff !important;
}

.chat-badge.tiktok {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .tiktok-link-inline-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .tiktok-link-inline-form .btn-tiktok-oauth {
        width: 100% !important;
    }
}

/* ==================== SELECTABLE CANDIDATE ITEM (v1.2.8) ==================== */
.candidate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    user-select: none;
    margin-bottom: 2px;
}

.candidate-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.candidate-item.selected {
    background: rgba(139, 92, 246, 0.22);
    border-color: #8b5cf6;
}

