/* === ZASHI MESSAGING APP: Zalo-inspired refresh === */

.app-globalchat {
    display: flex;
    height: 100%;
    background:
        linear-gradient(180deg, #eef4ff 0%, #f8fbff 18%, #f5f8fd 100%);
    color: #122033;
    overflow: hidden;
    position: relative;
}

.app-globalchat::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 132, 255, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(40, 169, 255, 0.1), transparent 24%);
    pointer-events: none;
}

.app-globalchat.gc-theme-sunset {
    background: linear-gradient(180deg, #fff3ec 0%, #fff7f3 20%, #fffaf7 100%);
    color: #2d1d1a;
}

.app-globalchat.gc-theme-sunset::before {
    background:
        radial-gradient(circle at top left, rgba(255, 126, 95, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.14), transparent 24%);
}

.app-globalchat.gc-theme-sunset .gc-sidebar {
    background: linear-gradient(180deg, #fffdfc 0%, #fff4ef 100%);
}

.app-globalchat.gc-theme-sunset .gc-main {
    background: linear-gradient(180deg, rgba(255, 250, 247, 0.82), rgba(255, 245, 239, 0.9));
}

.app-globalchat.gc-theme-sunset .gc-chat-header,
.app-globalchat.gc-theme-sunset .gc-sidebar-header {
    background: rgba(255, 249, 245, 0.88);
}

.app-globalchat.gc-theme-forest {
    background: linear-gradient(180deg, #eefbf5 0%, #f5fffa 22%, #f2fbf7 100%);
    color: #123126;
}

.app-globalchat.gc-theme-forest::before {
    background:
        radial-gradient(circle at top left, rgba(29, 185, 84, 0.15), transparent 26%),
        radial-gradient(circle at top right, rgba(0, 184, 148, 0.12), transparent 24%);
}

.app-globalchat.gc-theme-forest .gc-sidebar {
    background: linear-gradient(180deg, #fbfffd 0%, #effaf4 100%);
}

.app-globalchat.gc-theme-forest .gc-main {
    background: linear-gradient(180deg, rgba(247, 255, 250, 0.82), rgba(238, 250, 244, 0.92));
}

.app-globalchat.gc-theme-forest .gc-chat-header,
.app-globalchat.gc-theme-forest .gc-sidebar-header {
    background: rgba(248, 255, 251, 0.9);
}

.app-globalchat.gc-theme-midnight {
    background: linear-gradient(180deg, #0f172a 0%, #111827 28%, #0b1220 100%);
    color: #e6eefb;
}

.app-globalchat.gc-theme-midnight::before {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 24%);
}

.app-globalchat.gc-theme-midnight .gc-sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(19, 29, 50, 0.94) 100%);
    border-right-color: rgba(130, 152, 190, 0.16);
}

.app-globalchat.gc-theme-midnight .gc-sidebar-header,
.app-globalchat.gc-theme-midnight .gc-chat-header,
.app-globalchat.gc-theme-midnight .gc-members-panel {
    background: rgba(14, 21, 38, 0.88);
    border-color: rgba(130, 152, 190, 0.14);
}

.app-globalchat.gc-theme-midnight .gc-main {
    background: linear-gradient(180deg, rgba(9, 15, 28, 0.84), rgba(13, 20, 36, 0.96));
}

.app-globalchat.gc-theme-midnight .gc-chat-header-name,
.app-globalchat.gc-theme-midnight .gc-room-name,
.app-globalchat.gc-theme-midnight .gc-user-name,
.app-globalchat.gc-theme-midnight .gc-settings-card-title,
.app-globalchat.gc-theme-midnight .gc-settings-tile-title {
    color: #eef4ff;
}

.app-globalchat.gc-theme-midnight .gc-chat-header-status,
.app-globalchat.gc-theme-midnight .gc-room-preview,
.app-globalchat.gc-theme-midnight .gc-user-subtitle,
.app-globalchat.gc-theme-midnight .gc-settings-card-note,
.app-globalchat.gc-theme-midnight .gc-theme-desc {
    color: #9fb0cc;
}

.app-globalchat.gc-theme-midnight .gc-input-box,
.app-globalchat.gc-theme-midnight .gc-room-item,
.app-globalchat.gc-theme-midnight .gc-member-item,
.app-globalchat.gc-theme-midnight .gc-admin-report-item {
    background: rgba(20, 31, 52, 0.86);
    border-color: rgba(130, 152, 190, 0.18);
    color: #e6eefb;
}

.app-globalchat.gc-theme-midnight .gc-input-box textarea,
.app-globalchat.gc-theme-midnight .gc-sidebar-search input,
.app-globalchat.gc-theme-midnight .gc-settings-bio-input,
.app-globalchat.gc-theme-midnight .gc-setup-input,
.app-globalchat.gc-theme-midnight .gc-setup-textarea {
    color: #eef4ff;
}

.app-globalchat.gc-theme-midnight .gc-msg-bubble {
    background: rgba(20, 31, 52, 0.92);
    color: #eef4ff;
}

.app-globalchat.gc-theme-midnight .gc-settings-modal,
.app-globalchat.gc-theme-midnight .gc-settings-card,
.app-globalchat.gc-theme-midnight .gc-settings-tile,
.app-globalchat.gc-theme-midnight .gc-settings-link,
.app-globalchat.gc-theme-midnight .gc-theme-tile {
    background: rgba(20, 31, 52, 0.96);
    border-color: rgba(130, 152, 190, 0.18);
    color: #e6eefb;
}

.app-globalchat.gc-theme-midnight .gc-settings-card-title,
.app-globalchat.gc-theme-midnight .gc-settings-tile-title,
.app-globalchat.gc-theme-midnight .gc-theme-name,
.app-globalchat.gc-theme-midnight .gc-profile-bio-label {
    color: #eef4ff;
}

.app-globalchat.gc-theme-midnight .gc-settings-card-note,
.app-globalchat.gc-theme-midnight .gc-settings-tile-text,
.app-globalchat.gc-theme-midnight .gc-theme-desc,
.app-globalchat.gc-theme-midnight .gc-profile-bio,
.app-globalchat.gc-theme-midnight .gc-settings-stat-row,
.app-globalchat.gc-theme-midnight .gc-invite-preview-label,
.app-globalchat.gc-theme-midnight .gc-invite-config-field,
.app-globalchat.gc-theme-midnight .gc-settings-eyebrow {
    color: #9fb0cc;
}

.app-globalchat.gc-theme-midnight .gc-invite-preview-input {
    background: rgba(10, 18, 34, 0.92);
    border-color: rgba(130, 152, 190, 0.18);
    color: #e6eefb;
}

.app-globalchat.gc-theme-midnight .gc-settings-stat-row strong,
.app-globalchat.gc-theme-midnight .gc-settings-bio-input,
.app-globalchat.gc-theme-midnight .gc-modal h3 {
    color: #eef4ff;
}

.app-globalchat.gc-theme-midnight .gc-settings-modal {
    box-shadow: 0 24px 60px rgba(3, 8, 20, 0.45);
}

.app-globalchat.gc-theme-midnight .gc-settings-profile {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(130, 152, 190, 0.18);
}

.app-globalchat.gc-theme-midnight .gc-settings-bio-input,
.app-globalchat.gc-theme-midnight .gc-setup-input,
.app-globalchat.gc-theme-midnight .gc-setup-textarea {
    background: rgba(10, 18, 33, 0.92);
    border-color: rgba(130, 152, 190, 0.18);
}

.app-globalchat.gc-theme-midnight .gc-settings-close,
.app-globalchat.gc-theme-midnight .gc-profile-bio-icon,
.app-globalchat.gc-theme-midnight .gc-settings-tile .material-icons-round,
.app-globalchat.gc-theme-midnight .gc-settings-link .material-icons-round {
    background: rgba(59, 130, 246, 0.14);
    color: #7cb7ff;
}

.app-globalchat.gc-theme-midnight .gc-theme-tile.active {
    border-color: #4f97ff;
    box-shadow: 0 0 0 3px rgba(79, 151, 255, 0.14);
}

/* ===== SETUP ===== */
.gc-setup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(238, 244, 255, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gc-setup-overlay.hidden {
    display: none;
}

.gc-setup-card {
    width: min(440px, 92%);
    max-height: 84vh;
    overflow-y: auto;
    padding: 34px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 101, 214, 0.1);
    box-shadow: 0 24px 70px rgba(26, 67, 130, 0.18);
    text-align: center;
}

.gc-setup-icon {
    display: block;
    font-size: 54px;
    color: #1677ff;
    margin-bottom: 12px;
}

.gc-setup-card h2 {
    margin: 0 0 8px;
    color: #10213b;
    font-size: 24px;
    font-weight: 700;
}

.gc-setup-card>p {
    margin: 0 0 24px;
    color: #6d7b92;
    font-size: 13px;
    line-height: 1.55;
}

.gc-setup-group {
    text-align: left;
    margin-bottom: 14px;
}

.gc-setup-label {
    display: block;
    margin-bottom: 7px;
    color: #7b879b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gc-setup-input,
.gc-setup-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8e3f5;
    border-radius: 14px;
    background: #f7faff;
    color: #13233d;
    padding: 13px 15px;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gc-setup-textarea {
    min-height: 100px;
    resize: vertical;
}

.gc-setup-input:focus,
.gc-setup-textarea:focus {
    border-color: #3b97ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.gc-setup-btn,
.gc-btn-primary {
    border: none;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #1f8bff 0%, #0d6df2 100%);
    box-shadow: 0 12px 26px rgba(13, 109, 242, 0.22);
}

.gc-setup-btn {
    width: 100%;
    margin-top: 6px;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gc-discord-btn {
    width: 100%;
    margin-top: 12px;
    border-radius: 14px;
    padding: 13px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(88, 101, 242, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gc-discord-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(88, 101, 242, 0.28);
}

.gc-discord-btn-inline {
    width: auto;
    min-width: 180px;
    margin-top: 16px;
}

.gc-setup-help,
.gc-modal {
    background: #fff;
    border: 1px solid #dde7f6;
}

/* ===== SIDEBAR ===== */
.gc-sidebar {
    width: clamp(190px, 34%, 330px);
    min-width: 190px;
    flex: 0 0 clamp(190px, 34%, 330px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fefeff 0%, #f6f9ff 100%);
    border-right: 1px solid rgba(131, 154, 190, 0.24);
    position: relative;
    z-index: 1;
}

.gc-sidebar-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(131, 154, 190, 0.18);
    background: rgba(255, 255, 255, 0.85);
}

.gc-user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.22);
    position: relative;
}

.gc-user-avatar::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    right: -2px;
    bottom: -2px;
    background: #1cc96b;
    border: 3px solid #fff;
    border-radius: 50%;
}

.gc-user-avatar,
.gc-chat-header-icon,
.gc-room-icon,
.gc-member-avatar,
.gc-msg-avatar {
    overflow: hidden;
}

.gc-user-avatar img,
.gc-chat-header-icon img,
.gc-room-icon img,
.gc-member-avatar img,
.gc-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gc-user-meta {
    flex: 1;
    min-width: 0;
}

.gc-user-name {
    color: #10213b;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-user-subtitle {
    margin-top: 3px;
    color: #7f8aa1;
    font-size: 11px;
}

.gc-settings-btn,
.gc-header-btn,
.gc-delete-room-btn,
.gc-tool-btn {
    border: none;
    background: transparent;
    color: #6e7c94;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.gc-settings-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.gc-settings-btn:hover,
.gc-header-btn:hover,
.gc-tool-btn:hover {
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
}

.gc-header-btn.active {
    background: rgba(22, 119, 255, 0.14);
    color: #1677ff;
}

.gc-sidebar-search {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f1f6fd;
    border: 1px solid #dce7f7;
    border-radius: 15px;
    padding: 11px 14px;
    color: #92a0b6;
}

.gc-sidebar-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #22324b;
    font: inherit;
    font-size: 13px;
}

.gc-rooms-section {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px 14px;
}

.gc-rooms-label {
    padding: 4px 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #7a879d;
}

.gc-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-room-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gc-room-item:hover {
    background: rgba(22, 119, 255, 0.06);
}

.gc-room-item.active {
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.13), rgba(22, 119, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

.gc-room-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(52, 125, 220, 0.2);
}

.gc-room-icon.global {
    background: linear-gradient(180deg, #1f90ff 0%, #0b66ea 100%);
}

.gc-room-icon.group {
    background: linear-gradient(180deg, #25c0a3 0%, #00a871 100%);
}

.gc-room-info {
    flex: 1;
    min-width: 0;
}

.gc-room-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gc-room-name {
    color: #13233d;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-room-meta {
    color: #98a4b7;
    font-size: 11px;
    flex-shrink: 0;
}

.gc-room-preview {
    margin-top: 3px;
    color: #7e8aa0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-room-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff5c78;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.gc-create-btn {
    width: calc(100% - 20px);
    margin: 14px 10px 4px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px dashed #bfd3f5;
    background: rgba(255, 255, 255, 0.74);
    color: #2c66b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gc-create-btn:hover {
    background: rgba(22, 119, 255, 0.08);
}

/* ===== MAIN ===== */
.gc-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gc-chat-header {
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(131, 154, 190, 0.18);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.gc-chat-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1f90ff 0%, #0b66ea 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(52, 125, 220, 0.2);
}

.gc-chat-header-info {
    flex: 1;
    min-width: 0;
}

.gc-chat-header-name {
    color: #11213a;
    font-size: 16px;
    font-weight: 700;
}

.gc-chat-header-status {
    margin-top: 3px;
    color: #7b879b;
    font-size: 12px;
}

.gc-header-actions {
    display: flex;
    gap: 6px;
}

.gc-header-btn,
.gc-delete-room-btn,
.gc-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.gc-delete-room-btn {
    color: #ff5d6f;
}

.gc-delete-room-btn:hover {
    background: rgba(255, 93, 111, 0.12);
}

.gc-room-item.pinned .gc-room-name::before {
    content: 'pin';
    font-family: 'Material Icons Round';
    font-size: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    color: #1677ff;
}

.gc-header-btn .material-icons-round,
.gc-delete-room-btn .material-icons-round,
.gc-tool-btn .material-icons-round {
    font-size: 20px;
}

.gc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 249, 255, 0.8)),
        radial-gradient(circle at center, rgba(167, 203, 255, 0.12), transparent 70%);
}

.gc-msg {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(72%, 640px);
    animation: gcMsgIn .2s ease;
}

.gc-msg.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.gc-msg.pending {
    opacity: 0.84;
}

.gc-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.gc-msg-avatar:hover {
    transform: scale(1.04);
}

.gc-msg.sent .gc-msg-avatar {
    display: none;
}

.gc-msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-msg.sent .gc-msg-body {
    align-items: flex-end;
}

.gc-msg-sender {
    padding: 0 4px;
    color: #6f7c92;
    font-size: 11px;
    font-weight: 700;
}

.gc-msg.sent .gc-msg-sender {
    display: none;
}

.gc-msg-bubble {
    padding: 11px 15px;
    border-radius: 20px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 8px 20px rgba(27, 61, 117, 0.08);
}

.gc-msg:not(.sent) .gc-msg-bubble {
    color: #12233c;
    background: #fff;
    border-top-left-radius: 8px;
}

.gc-msg.sent .gc-msg-bubble {
    color: #fff;
    background: linear-gradient(180deg, #2292ff 0%, #0d6df2 100%);
    border-top-right-radius: 8px;
}

.gc-msg-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.gc-msg-time {
    padding: 0 6px;
    color: #99a4b4;
    font-size: 10px;
}

.gc-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-msg.sent .gc-msg-meta {
    justify-content: flex-end;
}

.gc-msg-action {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .16s ease, background .16s ease;
}

.gc-msg:hover .gc-msg-action,
.gc-msg-action:focus-visible {
    opacity: 1;
}

.gc-msg-reply {
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
}

.gc-msg-reply:hover {
    background: rgba(22, 119, 255, 0.18);
}

.gc-msg-delete {
    background: rgba(255, 93, 111, 0.1);
    color: #ff5d6f;
}

.gc-msg-report {
    background: rgba(255, 171, 0, 0.12);
    color: #b26a00;
}

.gc-msg-report:hover {
    background: rgba(255, 171, 0, 0.2);
}

.gc-msg-delete:hover {
    background: rgba(255, 93, 111, 0.18);
}

.gc-msg-action .material-icons-round {
    font-size: 16px;
}

.gc-msg-reply-context {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(167, 187, 220, 0.32);
    border-radius: 16px;
    background: rgba(245, 249, 255, 0.9);
    color: #17304e;
    text-align: left;
    cursor: pointer;
}

.gc-msg.sent .gc-msg-reply-context {
    background: rgba(226, 239, 255, 0.96);
    border-color: rgba(87, 146, 255, 0.28);
    color: #17304e;
}

.gc-msg-reply-context.is-you {
    border-color: rgba(255, 171, 0, 0.34);
    background: rgba(255, 244, 214, 0.96);
}

.gc-msg.sent .gc-msg-reply-context.is-you {
    background: rgba(255, 243, 212, 0.98);
    border-color: rgba(255, 196, 77, 0.36);
    color: #6d4400;
}

.gc-msg-reply-context .material-icons-round {
    font-size: 16px;
    color: inherit;
    opacity: 0.78;
    margin-top: 2px;
}

.gc-msg-reply-copy {
    min-width: 0;
    flex: 1;
}

.gc-msg-reply-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

.gc-msg-reply-text {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.88;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-msg.sent .gc-msg-reply-text {
    color: #48627f;
    opacity: 1;
}

.gc-msg.sent .gc-msg-reply-name {
    color: #17304e;
}

.gc-msg.sent .gc-msg-reply-context.is-you .gc-msg-reply-name,
.gc-msg.sent .gc-msg-reply-context.is-you .gc-msg-reply-text {
    color: #6d4400;
}

.gc-reply-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 171, 0, 0.16);
    color: #a05a00;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.gc-msg.reply-hit .gc-msg-bubble,
.gc-msg.reply-hit .gc-msg-media,
.gc-msg.reply-hit .gc-link-preview {
    box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.18), 0 12px 26px rgba(255, 171, 0, 0.14);
}

.gc-msg-flash .gc-msg-bubble,
.gc-msg-flash .gc-msg-media,
.gc-msg-flash .gc-link-preview,
.gc-msg-flash .gc-msg-reply-context {
    animation: gcMsgFlash 1.35s ease;
}

@keyframes gcMsgFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.35);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(22, 119, 255, 0);
    }
}

.gc-upload-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(132, 156, 191, 0.22);
    overflow: hidden;
    margin-top: 4px;
}

.gc-upload-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f8bff 0%, #00bcd4 100%);
    transition: width .12s linear;
}

.gc-system-msg {
    align-self: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #8090a8;
    font-size: 11px;
}

.gc-msg-media {
    display: block;
    max-width: min(320px, 100%);
    max-height: 340px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(166, 190, 225, 0.3);
    box-shadow: 0 10px 22px rgba(27, 61, 117, 0.14);
}

.gc-msg-media:hover {
    filter: brightness(1.03);
}

.gc-link-preview {
    margin-top: 8px;
    max-width: min(360px, 100%);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(166, 190, 225, 0.36);
    box-shadow: 0 10px 22px rgba(27, 61, 117, 0.12);
}

.gc-link-preview-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f172a;
}

.gc-link-preview-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gc-link-preview-card {
    padding: 14px;
}

.gc-link-preview-eyebrow {
    color: #6e7d94;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gc-link-preview-title {
    margin-top: 4px;
    color: #12233c;
    font-size: 13px;
    font-weight: 700;
}

.gc-link-preview-action {
    display: inline-flex;
    align-items: center;
    margin: 10px 14px 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0d6df2;
    background: rgba(13, 109, 242, 0.1);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gc-link-preview-card .gc-link-preview-action {
    margin: 10px 0 0;
}

.gc-welcome {
    display: none;
}

.gc-input-area {
    padding: 10px 18px 18px;
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.2), rgba(255, 255, 255, 0.7));
}

.gc-input-area.drag-over {
    background: linear-gradient(180deg, rgba(212, 233, 255, 0.55), rgba(255, 255, 255, 0.92));
}

.gc-input-area.drag-over .gc-input-box {
    border-color: #1f8bff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12), 0 10px 22px rgba(27, 61, 117, 0.08);
}

.gc-input-area.gc-readonly-room {
    background: linear-gradient(180deg, rgba(243, 246, 252, 0.92), rgba(236, 241, 249, 0.94));
    border-top: 1px dashed #c5d4ea;
}

.gc-input-area.gc-readonly-room .gc-input-box {
    opacity: 0.72;
}

.gc-input-area.gc-readonly-room .gc-reply-preview,
.gc-input-area.gc-readonly-room .gc-attachment-preview {
    display: none;
}

.gc-tool-btn.is-disabled,
.gc-input-box .gc-header-btn.is-disabled,
.gc-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gc-sticker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gc-sticker-tile {
    border: 1px solid #dbe7f8;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
    padding: 14px;
    cursor: pointer;
    text-align: left;
}

.gc-sticker-tile-art {
    min-height: 84px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gc-sticker-accent) 18%, white), rgba(255,255,255,0.98));
    color: var(--gc-sticker-accent);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gc-sticker-tile-name {
    margin-top: 10px;
    color: #16314f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.gc-sticker-message {
    min-width: 120px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gc-sticker-accent) 20%, white), rgba(255,255,255,0.98));
    border: 1px solid color-mix(in srgb, var(--gc-sticker-accent) 24%, white);
    box-shadow: 0 12px 24px rgba(27, 61, 117, 0.08);
}

.gc-sticker-message-art {
    color: var(--gc-sticker-accent);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
}

.gc-sticker-message-tag {
    margin-top: 6px;
    color: #5d728d;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gc-attachment-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid #d7e4f7;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(27, 61, 117, 0.08);
}

.gc-reply-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid #d7e4f7;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 22px rgba(27, 61, 117, 0.08);
}

.gc-reply-preview.is-you {
    border-color: rgba(255, 171, 0, 0.34);
    background: rgba(255, 248, 231, 0.98);
}

.gc-reply-preview-bar {
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f8bff 0%, #6c5ce7 100%);
    flex-shrink: 0;
}

.gc-reply-preview.is-you .gc-reply-preview-bar {
    background: linear-gradient(180deg, #ffb300 0%, #ff7a00 100%);
}

.gc-reply-preview-content {
    min-width: 0;
    flex: 1;
}

.gc-reply-preview-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #13243d;
    font-size: 12px;
    font-weight: 800;
}

.gc-reply-preview-text {
    margin-top: 4px;
    color: #6b7c95;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-attachment-preview-media {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #edf4ff;
}

.gc-attachment-preview-media img,
.gc-attachment-preview-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gc-attachment-preview-info {
    min-width: 0;
    flex: 1;
}

.gc-attachment-preview-title {
    color: #13233d;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-attachment-preview-meta {
    margin-top: 4px;
    color: #7d8ba1;
    font-size: 12px;
}

.gc-attachment-remove {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    background: rgba(22, 119, 255, 0.08);
    color: #4f6587;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.gc-attachment-remove:hover {
    background: rgba(255, 93, 111, 0.12);
    color: #ff5d6f;
}

.gc-composer-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.gc-input-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d9e5f7;
    box-shadow: 0 10px 22px rgba(27, 61, 117, 0.08);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.gc-input-box:focus-within {
    border-color: #3b97ff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1), 0 10px 22px rgba(27, 61, 117, 0.08);
}

.gc-input-box textarea {
    flex: 1;
    min-height: 22px;
    max-height: 100px;
    border: none;
    resize: none;
    background: transparent;
    color: #13233d;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
    padding: 6px 0;
}

.gc-input-box textarea::placeholder,
.gc-sidebar-search input::placeholder {
    color: #9aa7bb;
}

.gc-input-box .gc-header-btn {
    flex-shrink: 0;
}

.gc-send-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #1f8bff 0%, #0d6df2 100%);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(13, 109, 242, 0.22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.gc-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(13, 109, 242, 0.28);
}

.gc-send-btn .material-icons-round {
    font-size: 19px;
}

/* ===== MODAL / MEMBERS ===== */
.gc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 32, 54, 0.22);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    z-index: 20;
    box-sizing: border-box;
}

.gc-modal-overlay.hidden {
    display: none;
}

.gc-modal {
    min-width: 340px;
    max-width: 92%;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(26, 67, 130, 0.18);
    margin: auto 0;
    max-height: calc(100% - 16px);
    overflow-y: auto;
    box-sizing: border-box;
}

.gc-settings-modal {
    width: min(460px, 92vw);
    padding: 18px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe7f8;
}

.gc-settings-sheet {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding-top: 2px;
}

.gc-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gc-settings-eyebrow {
    color: #6f83a3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gc-settings-header h3 {
    margin: 4px 0 0;
}

.gc-settings-close,
.gc-settings-logout {
    border: none;
    cursor: pointer;
}

.gc-settings-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(22, 119, 255, 0.08);
    color: #496280;
    display: grid;
    place-items: center;
}

.gc-settings-profile {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d9e7fb;
    background: #eef5ff;
}

.gc-settings-cover {
    position: relative;
    min-height: 156px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(11, 22, 40, 0.1), rgba(11, 22, 40, 0.28)),
        linear-gradient(135deg, #c4efff 0%, #8fbbff 52%, #4d8fff 100%);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.gc-settings-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 18, 34, 0.18));
    backdrop-filter: blur(5px);
    z-index: 0;
    pointer-events: none;
}

.gc-settings-cover>* {
    position: relative;
    z-index: 1;
}

.gc-settings-cover-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.gc-settings-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gc-settings-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1f8bff 0%, #0d6df2 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(9, 30, 66, 0.22), 0 6px 18px rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.gc-settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gc-settings-profile-meta {
    min-width: 0;
    flex: 1;
}

.gc-settings-name {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.gc-settings-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
}

.gc-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gc-settings-bio-input {
    width: 100%;
    min-height: 84px;
    margin-top: 10px;
    border: 1px solid #dbe7f8;
    border-radius: 16px;
    background: #f9fbff;
    color: #142843;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    padding: 12px 14px;
    resize: vertical;
    box-sizing: border-box;
}

.gc-settings-card-note,
.gc-profile-bio {
    margin-top: 10px;
    color: #6f819a;
    font-size: 12px;
    line-height: 1.5;
}

.gc-profile-bio {
    color: #18314f;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}

.gc-profile-bio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gc-profile-bio-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.gc-profile-bio-block {
    min-width: 0;
    flex: 1;
}

.gc-profile-bio-label {
    color: #0f2742;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.gc-profile-modal {
    width: min(420px, 92vw);
}

.gc-profile-cover {
    min-height: 172px;
}

.gc-settings-tile,
.gc-settings-link {
    width: 100%;
    border: 1px solid #dbe7f8;
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    color: #18314f;
    text-decoration: none;
    box-sizing: border-box;
}

.gc-settings-tile .material-icons-round,
.gc-settings-link .material-icons-round {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.gc-settings-link.gc-settings-link-danger {
    border-color: rgba(255, 93, 111, 0.22);
    background: rgba(255, 93, 111, 0.06);
    color: #b42339;
}

.gc-settings-link.gc-settings-link-danger .material-icons-round {
    background: rgba(255, 93, 111, 0.12);
    color: #ff5d6f;
}

.gc-report-quote {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 171, 0, 0.2);
    background: rgba(255, 248, 231, 0.95);
}

.gc-report-quote-name {
    color: #8f5200;
    font-size: 12px;
    font-weight: 800;
}

.gc-report-quote-text {
    margin-top: 4px;
    color: #324963;
    font-size: 13px;
    line-height: 1.45;
}

.gc-legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.gc-legal-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7faff;
    border: 1px solid #dbe7f8;
    color: #26405d;
    font-size: 13px;
    line-height: 1.5;
}

.gc-admin-reports-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
}

.gc-admin-reports-empty {
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed #c8d8ee;
    background: #f7faff;
    color: #5f748f;
    font-size: 13px;
}

.gc-admin-report-item {
    border: 1px solid #d9e6f8;
    background: #fbfdff;
    border-radius: 16px;
    padding: 12px;
}

.gc-admin-report-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gc-admin-report-reason {
    color: #18314f;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.gc-admin-report-status {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.gc-admin-report-status.open {
    background: rgba(255, 179, 0, 0.16);
    color: #8a4d00;
}

.gc-admin-report-status.reviewed {
    background: rgba(33, 150, 243, 0.14);
    color: #0f4b92;
}

.gc-admin-report-status.closed {
    background: rgba(16, 185, 129, 0.14);
    color: #0d5d46;
}

.gc-admin-report-meta {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    color: #5f748f;
    font-size: 11px;
}

.gc-admin-report-meta strong {
    color: #173250;
}

.gc-admin-report-snapshot {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e3ecf9;
    background: #fff;
    color: #1d3653;
    font-size: 12px;
    line-height: 1.45;
}

.gc-admin-report-snapshot.is-flagged {
    border-color: rgba(255, 93, 111, 0.28);
    background: rgba(255, 244, 246, 0.95);
}

.gc-admin-report-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-admin-report-preview-image {
    width: min(220px, 100%);
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dce8f8;
    background: #eef4ff;
}

.gc-admin-report-details {
    margin-top: 8px;
    color: #5f748f;
    font-size: 12px;
    line-height: 1.45;
}

.gc-admin-report-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-theme-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gc-theme-tile {
    border: 1px solid #dbe7f8;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

.gc-theme-tile.active {
    border-color: #2b82ff;
    box-shadow: 0 0 0 3px rgba(43, 130, 255, 0.12);
}

.gc-theme-preview {
    height: 72px;
    border-radius: 14px;
    border: 1px solid rgba(131, 154, 190, 0.18);
    background: linear-gradient(135deg, #eef4ff 0%, #f9fbff 50%, #f3f7fd 100%);
    position: relative;
    overflow: hidden;
}

.gc-theme-preview::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 34%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(131, 154, 190, 0.18);
}

.gc-theme-preview::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 12px;
    width: 42%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 0 rgba(255, 255, 255, 0.7);
}

.gc-theme-preview-sunset {
    background: linear-gradient(135deg, #fff0e8 0%, #fff7f3 48%, #fffaf7 100%);
}

.gc-theme-preview-sunset::before {
    background: rgba(255, 248, 244, 0.88);
}

.gc-theme-preview-forest {
    background: linear-gradient(135deg, #eefbf5 0%, #f7fffb 52%, #f2fbf7 100%);
}

.gc-theme-preview-forest::before {
    background: rgba(248, 255, 251, 0.9);
}

.gc-theme-preview-midnight {
    background: linear-gradient(135deg, #0f172a 0%, #111827 48%, #172036 100%);
}

.gc-theme-preview-midnight::before {
    background: rgba(18, 28, 48, 0.94);
    border-right-color: rgba(130, 152, 190, 0.14);
}

.gc-theme-preview-midnight::after {
    background: rgba(37, 56, 88, 0.9);
    box-shadow: 0 22px 0 rgba(30, 46, 74, 0.88);
}

.gc-theme-name {
    margin-top: 10px;
    color: #13263f;
    font-size: 12px;
    font-weight: 800;
}

.gc-theme-desc {
    margin-top: 4px;
    color: #6f819a;
    font-size: 11px;
    line-height: 1.45;
}

.gc-system-notice {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-system-notice-badge {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gc-system-notice-info .gc-system-notice-badge,
.gc-system-notice-update .gc-system-notice-badge {
    background: rgba(33, 150, 243, 0.14);
    color: #0f4b92;
}

.gc-system-notice-warning .gc-system-notice-badge {
    background: rgba(255, 179, 0, 0.18);
    color: #8a4d00;
}

.gc-system-notice-mute .gc-system-notice-badge {
    background: rgba(255, 117, 24, 0.18);
    color: #a14405;
}

.gc-system-notice-ban .gc-system-notice-badge {
    background: rgba(255, 93, 111, 0.18);
    color: #a21633;
}

.gc-settings-tile-title,
.gc-settings-card-title {
    color: #142843;
    font-size: 13px;
    font-weight: 800;
}

.gc-settings-tile-text {
    margin-top: 3px;
    color: #6f819a;
    font-size: 12px;
    line-height: 1.4;
}

.gc-settings-card {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbe7f8;
}

.gc-settings-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.gc-settings-stat-row strong {
    color: #13263f;
    font-size: 12px;
}

.gc-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.gc-invite-preview {
    margin-top: 12px;
}

.gc-invite-preview-label {
    margin-bottom: 8px;
    color: #6f819a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gc-invite-preview-input {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid #dbe7f8;
    border-radius: 16px;
    background: #f7fbff;
    color: #28415f;
    padding: 12px 14px;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    box-sizing: border-box;
}

.gc-invite-preview-input:focus {
    outline: none;
    border-color: #8cb8ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.gc-invite-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.gc-invite-config-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #6f819a;
    font-size: 12px;
    font-weight: 700;
}

.gc-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.gc-settings-logout {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 93, 111, 0.12);
    color: #ff5d6f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.gc-modal h3 {
    margin: 0 0 16px;
    color: #10213b;
    font-size: 18px;
}

.gc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.gc-btn-cancel {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #d7e2f2;
    background: #fff;
    color: #5f6f88;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gc-btn-primary {
    padding: 10px 16px;
    border-radius: 12px;
}

.gc-members-panel {
    width: 220px;
    flex: 0 0 220px;
    display: none;
    flex-direction: column;
    border-left: 1px solid rgba(131, 154, 190, 0.22);
    background: rgba(255, 255, 255, 0.7);
    padding: 18px 14px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.gc-members-panel.show {
    display: flex;
}

.gc-members-title {
    margin-bottom: 12px;
    color: #73829a;
    font-size: 12px;
    font-weight: 700;
}

.gc-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.gc-member-main {
    flex: 1;
    min-width: 0;
}

.gc-member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.gc-member-name {
    color: #22324b;
    font-size: 12px;
}

.gc-member-role {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gc-member-role.owner {
    background: rgba(255, 193, 7, 0.18);
    color: #9a6a00;
}

.gc-member-role.deputy {
    background: rgba(22, 119, 255, 0.14);
    color: #1677ff;
}

.gc-member-role.member {
    background: rgba(148, 163, 184, 0.16);
    color: #64748b;
}

.gc-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.gc-member-actions-top {
    margin: 0 0 12px;
}

.gc-member-action {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(22, 119, 255, 0.12);
    color: #1677ff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.gc-member-action.danger {
    background: rgba(255, 93, 111, 0.12);
    color: #ff5d6f;
}

.gc-member-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1cc96b;
    margin-left: auto;
}

/* ===== SCROLLBARS / ANIMATIONS ===== */
.gc-messages::-webkit-scrollbar,
.gc-rooms-section::-webkit-scrollbar,
.gc-setup-card::-webkit-scrollbar {
    width: 6px;
}

.gc-messages::-webkit-scrollbar-thumb,
.gc-rooms-section::-webkit-scrollbar-thumb,
.gc-setup-card::-webkit-scrollbar-thumb {
    background: rgba(122, 146, 182, 0.4);
    border-radius: 999px;
}

@keyframes gcMsgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .gc-sidebar {
        width: clamp(180px, 32%, 292px);
        min-width: 180px;
    }

    .gc-members-panel {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .app-globalchat {
        flex-direction: column;
    }

    .gc-sidebar {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(131, 154, 190, 0.24);
    }

    .gc-main {
        min-height: 0;
    }

    .gc-messages {
        padding: 14px;
    }

    .gc-msg {
        max-width: 88%;
    }

    .gc-settings-grid {
        grid-template-columns: 1fr;
    }

    .gc-settings-cover {
        min-height: 186px;
    }

    .gc-settings-profile-row {
        align-items: flex-end;
    }

    .gc-modal-overlay {
        padding: 12px;
    }

    .gc-modal,
    .gc-settings-modal,
    .gc-profile-modal {
        width: 100%;
        max-width: none;
        max-height: calc(100% - 8px);
    }
}
