:root {
    --icq-green: #7ad36d;
    --icq-green-dark: #3f9b3d;
    --icq-blue: #2d6cc0;
    --icq-yellow: #f5d24c;
    --icq-cream: #f6f7ec;
    --icq-sand: #e4ebdc;
    --icq-ink: #1c2f1f;
    --icq-slate: #4a5c4e;
    --icq-panel: #f7fbf4;
    --icq-shadow: 0 16px 30px rgba(27, 51, 34, 0.2);
    --icq-border: 2px solid #a4c59b;
    --icq-font: "Tahoma", "Trebuchet MS", "Verdana", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.icq-body {
    margin: 0;
    font-family: var(--icq-font);
    color: var(--icq-ink);
    background: linear-gradient(180deg, #d9f0d1 0%, #bfe7b4 40%, #a9d99f 100%);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.icq-body::before,
.icq-body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 211, 109, 0.35), rgba(122, 211, 109, 0));
    z-index: 0;
    filter: blur(10px);
}

.icq-body::before {
    top: -120px;
    right: -120px;
}

.icq-body::after {
    bottom: -160px;
    left: -140px;
    background: radial-gradient(circle, rgba(45, 108, 192, 0.25), rgba(45, 108, 192, 0));
}

.icq-shell {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    height: calc(100vh - 24px);
    margin: 12px auto;
    background: linear-gradient(180deg, #e2f6db 0%, #c6e7bb 100%);
    border-radius: 16px;
    border: 2px solid #7fb676;
    box-shadow: var(--icq-shadow);
    animation: icq-rise 0.6s ease-out;
    overflow: hidden;
}

@media (min-width: 981px) {
    :root {
        --icq-desktop-scale: 0.75;
    }

    .icq-shell {
        zoom: var(--icq-desktop-scale);
    }

    @supports not (zoom: 1) {
        .icq-shell {
            transform: scale(var(--icq-desktop-scale));
            transform-origin: top center;
            width: calc(100% / var(--icq-desktop-scale));
            height: calc((100vh - 24px) / var(--icq-desktop-scale));
        }
    }
}

.icq-window-bar {
    background: linear-gradient(180deg, #55c353, #3ea93d);
    border-radius: 12px;
    border: 2px solid #2f7f2f;
    color: #fff;
}

.icq-window-title {
    font-weight: 700;
}

.icq-window-logo {
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #f4ffeb;
    color: #2f7f2f;
    font-size: 12px;
    text-transform: lowercase;
    box-shadow: inset 0 0 0 2px #b5e6a8;
}

.icq-window-btn {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #e8f8dd;
    border: 1px solid #2f7f2f;
}

.icq-theme-toggle {
    border: 2px solid #2f7f2f;
    background: #e8f8dd;
    color: #1c3a27;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.icq-content {
    width: 100%;
    min-height: 0;
}

.icq-sidebar {
    background: #f4fbef;
    border: 2px solid #9dcf92;
    border-radius: 14px;
    width: 320px;
    position: relative;
}

.icq-brand {
    border-radius: 14px;
    background: linear-gradient(135deg, #e3f7da, #c6ebb9);
    border: 2px solid #8bc781;
}

.icq-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--icq-green) 45%, var(--icq-green-dark) 100%);
    box-shadow: inset 0 0 0 3px #f4f0d6;
}

.icq-name {
    font-weight: 800;
    letter-spacing: 0.4px;
}

.icq-profile {
    border-radius: 12px;
    background: #e7f5e1;
    border: 2px solid #9dcf92;
}

.icq-sidebar-header {
    border-radius: 12px;
    background: #eef8ea;
    border: 2px solid #9dcf92;
}

.icq-menu-btn {
    width: 44px;
    height: 32px;
    border-radius: 10px;
    border: 2px solid #9cc991;
    background: linear-gradient(180deg, #f4fbef, #dff2d6);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.icq-menu-btn span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #2f7f2f;
}

.icq-menu-btn:hover {
    background: linear-gradient(180deg, #e7f7dd, #cdecc2);
}

.icq-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 16, 12, 0.35);
    z-index: 4;
}

.icq-mobile-only {
    display: none;
}

.icq-sidebar-menu {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.icq-sidebar-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 16, 12, 0.35);
}

.icq-sidebar-menu-panel {
    position: relative;
    z-index: 1;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    margin: 12px;
    border-radius: 14px;
    background: #f4fbef;
    border: 2px solid #9dcf92;
    box-shadow: var(--icq-shadow);
    overflow-y: auto;
}

.icq-hidden {
    display: none !important;
}

.icq-auth-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #1c2c22 0%, #2d4635 100%);
}

.icq-auth-card {
    width: min(380px, 100%);
    border-radius: 16px;
    background: #f4fbef;
    border: 2px solid #9dcf92;
    box-shadow: var(--icq-shadow);
}

.icq-auth-only #icq-app {
    display: none;
}

.icq-auth-only #icq-auth-gate {
    display: flex;
}

.icq-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b7e9a8, #f5d24c);
    border: 2px solid #7fb676;
}

.icq-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #b7e9a8, #f5d24c);
    border: 2px solid #7fb676;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icq-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icq-username {
    font-weight: 700;
}

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

.icq-dot.online {
    background: var(--icq-green);
    box-shadow: 0 0 6px rgba(90, 203, 95, 0.8);
}

.icq-dot.away {
    background: var(--icq-yellow);
    box-shadow: 0 0 6px rgba(245, 210, 76, 0.8);
}

.icq-dot.dnd {
    background: #d9534f;
    box-shadow: 0 0 6px rgba(217, 83, 79, 0.8);
}

.icq-dot.offline {
    background: #9aa6af;
}

.icq-dot.invisible {
    background: #c3c9cf;
    box-shadow: none;
}

.icq-auth {
    border-radius: 14px;
    background: #f0f9eb;
    border: 2px solid #b1d7a7;
}

.icq-auth-title {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #5c6f87;
}

.icq-auth input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid #b6d2b0;
    background: #fff;
}

.icq-sticker-upload input[type="file"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 10px;
    border: 2px solid #b6d2b0;
    background: #fff;
    color: #23412f;
}

.icq-sticker-upload input[type="file"]::file-selector-button {
    border: 2px solid #3b8b3a;
    background: linear-gradient(180deg, #7ad36d, #4fad4b);
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    margin-right: 8px;
    cursor: pointer;
}

.icq-auth .icq-button.ghost {
    background: #fff;
}

.icq-auth-message {
    min-height: 16px;
}


.icq-create-room {
    border-radius: 14px;
    background: #f0f9eb;
    border: 2px solid #b1d7a7;
}

.icq-create-title {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6a7a8a;
}

.icq-create-room input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid #b6d2b0;
    background: #fff;
}

.icq-room-message {
    min-height: 16px;
}


.icq-empty {
    border-radius: 12px;
    background: #f3f0e4;
    border: 2px dashed #c7c0a8;
    text-align: center;
}
.icq-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #b6d2b0;
    background: #fff;
}

.icq-search-hint {
    margin-top: 6px;
}

.icq-section-title {
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a5c4e;
}

.icq-contact {
    border-radius: 12px;
    background: #f2f9ee;
    border: 2px solid transparent;
}

.icq-contact.active {
    border-color: #89c580;
    background: #e3f7da;
}

.icq-contact-name {
    font-weight: 700;
}

.icq-badge {
    background: var(--icq-blue);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

.icq-chat {
    background: #fdfef8;
    border: 2px solid #9dcf92;
    border-radius: 14px;
    min-height: 0;
    overflow: hidden;
}

.icq-chat-header {
    background: linear-gradient(90deg, #d5f2ca, #b9e7ad);
    border-bottom: 2px solid #9dcf92;
}

.icq-chat-message {
    background: #f3f9ef;
    border-bottom: 2px dashed #b8d7ae;
    min-height: 20px;
}


.icq-chat-title {
    font-weight: 800;
    font-size: 18px;
}

.icq-button {
    border: 2px solid #9cc991;
    background: #f4fbef;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.icq-button.small {
    padding: 6px 12px;
    font-size: 12px;
}

.icq-button.primary {
    background: linear-gradient(180deg, #7ad36d, #4fad4b);
    border-color: #3b8b3a;
    color: #fff;
}

.icq-button.ghost {
    background: #fff;
}

.icq-contact-actions {
    flex-shrink: 0;
}

.icq-icon-button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #3e5b48;
}

.icq-icon-button i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.icq-messages {
    background: repeating-linear-gradient(
        135deg,
        rgba(228, 245, 221, 0.6) 0,
        rgba(228, 245, 221, 0.6) 12px,
        rgba(255, 255, 255, 0.7) 12px,
        rgba(255, 255, 255, 0.7) 24px
    );
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.icq-stickers {
    background: #eef8ea;
    border-top: 2px solid #b6d2b0;
    border-bottom: 2px solid #b6d2b0;
}

.icq-sticker-item {
    border: 2px solid #b6d2b0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.icq-sticker-item img {
    max-width: 64px;
    max-height: 64px;
    display: block;
}

.icq-bubble {
    max-width: 64%;
    min-width: 56px;
    padding: 8px 12px 20px;
    border-radius: 16px;
    border: 2px solid #b6d2b0;
    background: #fff;
    word-break: break-word;
}

.icq-message-header {
    font-size: 12px;
    font-weight: 700;
    color: #2c4a2c;
    margin-bottom: 4px;
}

.icq-message-author {
    display: block;
}

.icq-members-count {
    font-size: 12px;
    font-weight: 600;
    color: #2c4a2c;
    text-decoration: none;
}

.icq-members-count:hover,
.icq-members-count:focus {
    text-decoration: underline;
}

.icq-message-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f8ffe9, #a8d08a);
    border: 1px solid #9fc48c;
    flex-shrink: 0;
}

.icq-system {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef8ea;
    border: 1px dashed #b6d2b0;
}

.icq-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f8ffe9, #a8d08a);
    border: 1px solid #9fc48c;
    flex-shrink: 0;
}

.icq-message.right .icq-bubble {
    background: #e2f5da;
    border-color: #9dcf92;
}

.icq-bubble.sticker,
.icq-bubble.file {
    background: transparent;
    border-color: transparent;
    padding: 8px 12px 18px;
}

.icq-bubble.image {
    background: #fdf8e8;
    border-color: #e0d4b2;
    padding: 10px;
}

.icq-chat-image {
    max-width: 240px;
    max-height: 200px;
    border-radius: 12px;
    display: block;
    cursor: pointer;
}

.icq-file-link {
    color: var(--icq-blue);
    text-decoration: none;
    font-weight: 700;
}

.icq-file-link:hover {
    text-decoration: underline;
}

.icq-video-wrap,
.icq-audio-wrap {
    width: min(420px, 78vw);
}

.icq-chat-video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.icq-chat-audio {
    width: 100%;
}

.icq-video-wrap .plyr {
    --plyr-color-main: #4fad4b;
    --plyr-video-control-background-hover: #2f7f2f;
    --plyr-video-controls-background: linear-gradient(180deg, rgba(20, 36, 20, 0.4), rgba(20, 36, 20, 0.82));
    border-radius: 12px;
    overflow: hidden;
}

.icq-bubble.voice {
    padding-bottom: 24px;
}

.icq-bubble.voice .icq-message-header {
    margin-bottom: 8px;
}

.icq-bubble.voice .icq-voice {
    margin-top: 4px;
}

.icq-voice-audio {
    width: 100%;
}

.icq-voice-player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eef8ea;
    border: 2px solid #a6d3a9;
}

.icq-voice-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #3b8b3a;
    background: linear-gradient(180deg, #7ad36d, #4fad4b);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.icq-voice-player.playing .icq-voice-play {
    background: linear-gradient(180deg, #6bc96b, #3f9b3d);
}

.icq-voice-progress {
    width: 100%;
    height: 6px;
    appearance: none;
    background: #cfe6c7;
    border-radius: 999px;
    outline: none;
}

.icq-voice-progress::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3f9b3d;
    border: 2px solid #2f7f2f;
}

.icq-voice-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3f9b3d;
    border: 2px solid #2f7f2f;
}

.icq-voice-time {
    font-size: 12px;
    color: #4a5c4e;
    white-space: nowrap;
}

.icq-bubble.expired {
    background: #f3f9ef;
    border-style: dashed;
}

#icq-voice-btn.recording {
    background: #d9534f;
    border-color: #b3423f;
    color: #fff;
}

.icq-sticker {
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.icq-sticker img {
    max-width: 240px;
    max-height: 240px;
    display: block;
}

.icq-time {
    position: absolute;
    bottom: 6px;
    right: 12px;
    font-size: 10px;
}

.icq-input {
    background: #e7f5e1;
    border-top: 2px solid #9dcf92;
}

.icq-input textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #b6d2b0;
    background: #fff;
    resize: none;
    max-height: 160px;
    overflow-y: auto;
}

.icq-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.icq-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 23, 34, 0.75);
}

.icq-lightbox-content {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    background: #f4fbef;
    border: 2px solid #9dcf92;
    box-shadow: var(--icq-shadow);
}

.icq-lightbox-frame img {
    max-width: 70vw;
    max-height: 70vh;
    border-radius: 14px;
    border: 2px solid #b6d2b0;
    background: #fff;
}

.icq-lightbox-caption {
}

.icq-lightbox-thumb {
    width: 56px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #b6d2b0;
    background: #fff;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.icq-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icq-lightbox-thumb.active {
    border-color: var(--icq-green-dark);
}

.icq-lightbox-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #9cc991;
    background: #f4fbef;
    font-size: 20px;
    cursor: pointer;
}

.icq-body.icq-theme-dark {
    color: #e4f1e0;
    background: linear-gradient(180deg, #1a2a1f 0%, #17241b 40%, #131f18 100%);
}

.icq-body.icq-theme-dark::before {
    background: radial-gradient(circle, rgba(88, 160, 96, 0.25), rgba(88, 160, 96, 0));
}

.icq-body.icq-theme-dark::after {
    background: radial-gradient(circle, rgba(60, 110, 170, 0.2), rgba(60, 110, 170, 0));
}

.icq-body.icq-theme-dark .icq-shell {
    background: linear-gradient(180deg, #1f2f24 0%, #18251d 100%);
    border-color: #2f4f3a;
    box-shadow: 0 16px 30px rgba(8, 15, 10, 0.55);
}

.icq-body.icq-theme-dark .icq-window-bar {
    background: linear-gradient(180deg, #2f5f3d, #244b32);
    border-color: #1e3a27;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-window-logo {
    background: #1c2e22;
    color: #b7e6a8;
    box-shadow: inset 0 0 0 2px #365c44;
}

.icq-body.icq-theme-dark .icq-theme-toggle {
    border-color: #3b6b4a;
    background: #1c3326;
    color: #cfead0;
}

.icq-body.icq-theme-dark .icq-sidebar {
    background: #18271d;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-sidebar-header {
    background: #1b2a20;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-menu-btn {
    border-color: #3b6b4a;
    background: #1c2e22;
}

.icq-body.icq-theme-dark .icq-menu-btn span {
    background: #cfead0;
}

.icq-body.icq-theme-dark .icq-sidebar-menu-backdrop {
    background: rgba(6, 10, 7, 0.6);
}

.icq-body.icq-theme-dark .icq-sidebar-menu-panel {
    background: #18271d;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-sidebar-backdrop {
    background: rgba(6, 10, 7, 0.6);
}

.icq-body.icq-theme-dark .icq-profile {
    background: #1b2a20;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-avatar {
    background: linear-gradient(135deg, #3f7c54, #9dbb4f);
    border-color: #2f5b3a;
}

.icq-body.icq-theme-dark .icq-auth-title {
    color: #a7c3b2;
}

.icq-body.icq-theme-dark .icq-chat {
    background: #161f18;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-chat-header {
    background: linear-gradient(90deg, #263a2d, #1f2f24);
    border-bottom-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-chat-message {
    background: #1c2a21;
    border-bottom-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-messages {
    background: repeating-linear-gradient(
        135deg,
        rgba(30, 46, 34, 0.7) 0,
        rgba(30, 46, 34, 0.7) 12px,
        rgba(22, 32, 25, 0.7) 12px,
        rgba(22, 32, 25, 0.7) 24px
    );
}

.icq-body.icq-theme-dark .icq-stickers {
    background: #1b2a20;
    border-top-color: #2f4f3a;
    border-bottom-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-contact {
    background: #1c2b21;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-contact.active {
    background: #213629;
    border-color: #3b6b4a;
}

.icq-body.icq-theme-dark .list-group-item {
    background: #1c2b21;
    border: 2px solid #2f4f3a;
    color: #dfeee0;
}

.icq-body.icq-theme-dark .icq-contact-name {
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-contact-last {
    color: #a7c3b2;
}

.icq-body.icq-theme-dark .icq-message-author {
    color: #bfe7c8;
}

.icq-body.icq-theme-dark .icq-chat-title {
    color: #f0fff0;
}

.icq-body.icq-theme-dark .icq-chat-subtitle {
    color: #9fb5a6;
}

.icq-body.icq-theme-dark .icq-members-count {
    color: #cfe6d3;
}

.icq-body.icq-theme-dark .icq-members-count:hover,
.icq-body.icq-theme-dark .icq-members-count:focus {
    color: #e7ffe8;
}

.icq-body.icq-theme-dark .icq-bubble {
    background: #1e2d23;
    border-color: #355442;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-message.right .icq-bubble {
    background: #1b3125;
    border-color: #3c5d49;
}

.icq-body.icq-theme-dark .icq-bubble.image {
    background: #1f2a1f;
    border-color: #3a5244;
}

.icq-body.icq-theme-dark .icq-bubble.expired {
    background: #1c2a21;
    border-color: #3a5244;
}

.icq-body.icq-theme-dark .icq-system {
    background: #1d2a22;
    border-color: #345443;
    color: #cfe6d3;
}

.icq-body.icq-theme-dark .icq-voice-player {
    background: #1b2a20;
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-voice-play {
    border-color: #2b6a33;
    background: linear-gradient(180deg, #4f9f4b, #2f7a37);
    color: #f0fff0;
}

.icq-body.icq-theme-dark .icq-voice-progress {
    background: #2b4031;
}

.icq-body.icq-theme-dark .icq-voice-progress::-webkit-slider-thumb {
    background: #4f9f4b;
    border-color: #2b6a33;
}

.icq-body.icq-theme-dark .icq-voice-progress::-moz-range-thumb {
    background: #4f9f4b;
    border-color: #2b6a33;
}

.icq-body.icq-theme-dark .icq-voice-time {
    color: #9fb5a6;
}

.icq-body.icq-theme-dark .modal-content {
    background: #18271d;
    border: 2px solid #2f4f3a;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .modal-header,
.icq-body.icq-theme-dark .modal-footer {
    border-color: #2f4f3a;
}

.icq-body.icq-theme-dark .btn-close {
    filter: invert(1);
}

.icq-body.icq-theme-dark #icq-voice-btn.recording {
    background: #b84845;
    border-color: #933836;
    color: #fff;
}

.icq-body.icq-theme-dark .icq-input {
    background: #1b2a20;
    border-top-color: #2f4f3a;
}

.icq-body.icq-theme-dark .icq-input textarea {
    background: #1e2c22;
    border-color: #355442;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-button {
    border-color: #3b6b4a;
    background: #223527;
    color: #d8edd3;
}

.icq-body.icq-theme-dark .icq-button.ghost {
    background: #1c2e22;
}

.icq-body.icq-theme-dark .icq-icon-button {
    color: #b8d4c2;
}

.icq-body.icq-theme-dark .icq-button.primary {
    background: linear-gradient(180deg, #4f9f4b, #2f7a37);
    border-color: #2b6a33;
    color: #f0fff0;
}

.icq-body.icq-theme-dark .icq-auth,
.icq-body.icq-theme-dark .icq-create-room {
    background: #1b2a20;
    border-radius: 12px;
    border: 2px solid #2f4f3a;
}

.icq-body.icq-theme-dark .icq-section-title {
    color: #9fb5a6;
}

.icq-body.icq-theme-dark .text-muted {
    color: #9fb5a6 !important;
}

.icq-body.icq-theme-dark .form-control,
.icq-body.icq-theme-dark .form-select {
    background: #1e2c22;
    border-color: #355442;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-sticker-upload input[type="file"] {
    background: #1e2c22;
    border-color: #355442;
    color: #e4f1e0;
}

.icq-body.icq-theme-dark .icq-sticker-upload input[type="file"]::file-selector-button {
    border-color: #2b6a33;
    background: linear-gradient(180deg, #4f9f4b, #2f7a37);
    color: #f0fff0;
}

.icq-body.icq-theme-dark .form-control::placeholder {
    color: #8ea49b;
}

.icq-body.icq-theme-dark .form-check-label {
    color: #cfead0;
}

.icq-body {
    scrollbar-width: thin;
    scrollbar-color: #7fb676 #d3e7cf;
}

.icq-body * {
    scrollbar-width: thin;
    scrollbar-color: #7fb676 #d3e7cf;
}

.icq-body ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.icq-body ::-webkit-scrollbar-track {
    background: #d3e7cf;
    border-radius: 10px;
}

.icq-body ::-webkit-scrollbar-thumb {
    background: #7fb676;
    border-radius: 10px;
    border: 2px solid #d3e7cf;
}

.icq-body.icq-theme-dark {
    scrollbar-color: #3b6b4a #1c2b21;
}

.icq-body.icq-theme-dark * {
    scrollbar-color: #3b6b4a #1c2b21;
}

.icq-body.icq-theme-dark ::-webkit-scrollbar-track {
    background: #1c2b21;
}

.icq-body.icq-theme-dark ::-webkit-scrollbar-thumb {
    background: #3b6b4a;
    border-color: #1c2b21;
}

@media (max-width: 980px) {
    html {
        font-size: 16px;
    }

    .icq-body {
        font-size: 16px;
        line-height: 1.45;
        --bs-body-font-size: 16px;
    }

    .icq-shell {
        margin: 0;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
        width: 100vw;
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }

    .icq-window-bar {
        margin: 0;
        border-radius: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .icq-content {
        padding: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .icq-layout {
        gap: 0;
    }

    .icq-chat {
        border-radius: 0;
        margin: 0;
    }

    .icq-chat-header {
        border-radius: 0;
    }

    .icq-chat-header,
    .icq-chat-message,
    .icq-messages,
    .icq-stickers,
    .icq-input {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .icq-sidebar {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 6;
    }

    .icq-body.icq-sidebar-open .icq-sidebar {
        transform: translateX(0);
    }

    .icq-body.icq-sidebar-open .icq-sidebar-backdrop {
        display: block;
    }

    .icq-sidebar-scroll {
        padding: 16px;
    }

    .icq-mobile-only {
        display: inline-flex;
    }

    #icq-call-btn,
    #icq-profile-btn {
        display: none;
    }

    .icq-chat-title {
        font-size: 20px;
    }

    .icq-chat-subtitle {
        font-size: 13px;
    }

    .icq-contact-name {
        font-size: 17px;
    }

    .icq-contact-last {
        font-size: 15px;
    }

    .icq-message-header {
        font-size: 14px;
    }

    .icq-chat-message,
    .icq-section-title,
    .form-control,
    .form-control-sm,
    .form-select,
    .form-select-sm {
        font-size: 15px;
    }

    .icq-bubble {
        max-width: 86%;
        padding: 10px 12px 20px;
        border-radius: 18px;
        font-size: 15px;
    }

    .icq-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .icq-button.small {
        padding: 7px 10px;
        font-size: 13px;
    }

    .btn,
    .btn-sm {
        font-size: 14px;
    }

    .btn-sm {
        padding: 7px 10px;
    }

    .list-group-item {
        font-size: 14px;
    }

    .small,
    small {
        font-size: 0.95em;
    }
}

@media (max-width: 767.98px) {
    .icq-sidebar {
        width: 100%;
    }

    .icq-input {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .icq-input textarea {
        font-size: 15px;
        padding: 10px 12px;
        order: 1;
        flex: 1 1 100%;
    }

    .icq-chat-header {
        padding: 10px 12px;
    }

    .icq-messages {
        padding: 12px;
    }

    .icq-tools {
        order: 2;
        flex: 1 1 auto;
        width: auto;
        margin: 0;
    }

    #icq-send-btn {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    #icq-upload-btn,
    #icq-sticker-btn,
    #icq-gif-btn,
    #icq-voice-btn {
        min-width: 36px;
        min-height: 32px;
    }
}

@keyframes icq-rise {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
