@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b0d11;
    --surface: rgba(24, 28, 34, .72);
    --surface-strong: rgba(31, 35, 42, .86);
    --border: rgba(225, 233, 240, .10);
    --text: #eef1f5;
    --muted: #98a1ad;
    --accent: #7771b5;
    --accent-soft: #9891d1;
    --danger: #f05b76;
    box-sizing: border-box;
}

/* Color system:
   --bg           : page background
   --surface      : panel / card background
   --surface-strong: stronger panel background
   --border       : border / divider lines
   --text         : main text color
   --muted        : secondary text / hints
   --accent       : primary accent color
   --accent-soft  : softer accent / focus outlines
   --danger       : destructive / alert states
*/

*, *::before, *::after { box-sizing: inherit; }

body {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}


body::before, body::after {
    content: '';
    position: fixed;
    z-index: 0;
    width: min(58vw, 900px);
    height: min(58vw, 900px);
    border-radius: 43% 57% 62% 38% / 41% 46% 54% 59%;
    opacity: .16;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    animation: liquid-drift 20s ease-in-out infinite alternate;
}

/* body::before { background: #5d6689; top: -26vw; left: -19vw; } */
/* body::after { background: #536c6c; right: -21vw; bottom: -28vw; animation-delay: -9s; } */

@keyframes liquid-drift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(5vw, 3vw, 0) rotate(12deg) scale(1.12); }
    100% { transform: translate3d(-2vw, 7vw, 0) rotate(-8deg) scale(.98); }
}

.box {
    width: min(700px, calc(100vw - 48px));
    min-height: min(520px, calc(100vh - 64px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 4vw, 68px);
    border: 1px solid var(--border);
    border-radius: 26px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(26, 30, 36, .9);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(10px) saturate(80%);
    animation: appear .5s cubic-bezier(.16, 1, .3, 1);
}

.box h1 { margin: 0 0 clamp(24px, 2vw, 34px); font-size: clamp(27px, 2.1vw, 36px); letter-spacing: -.8px; }

@keyframes appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

input, textarea, select {
    width: 100%;
    margin: 7px 0;
    padding: clamp(12px, 1vw, 16px) clamp(14px, 1.2vw, 18px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(7, 9, 12, .5);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder, textarea::placeholder { color: #7d879f; }
input:focus, textarea:focus, select:focus { border-color: rgba(166, 161, 216, .7); background: rgba(8, 10, 13, .65); box-shadow: 0 0 0 4px rgba(145, 138, 205, .12); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

button {
    width: 100%;
    margin-top: 10px;
    padding: clamp(11px, 1vw, 15px) clamp(14px, 1.2vw, 18px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    color: white;
    background: #716ab0;
    box-shadow: 0 7px 18px rgba(10, 11, 17, .25), inset 0 1px rgba(255,255,255,.12);
    cursor: pointer;
    font: 600 13px inherit;
    transition: transform .15s ease, filter .15s ease;
}

button:hover { filter: brightness(1.07); transform: translateY(-1px); }
button:active { transform: translateY(1px) scale(.98); }
button:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(1); transform: none; }

/* Generic danger/destructive-action modifier so any .danger button (not just
   .modal-delete) gets a consistent warning treatment. */
.danger, button.danger {
    background: rgba(240, 91, 118, .17);
    color: #ffb3c1;
    box-shadow: none;
}
.danger:hover, button.danger:hover { background: var(--danger); color: white; }

.register-link {
    display: inline-block;
    margin-top: 0px;
    color: var(--muted);
    font-size: 16px;
    text-decoration: none;
    transition: color .15s ease;
}

.register-link:hover,
.register-link:focus-visible {
    color: var(--accent-soft);
    text-decoration: underline;
}

.form-message {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--danger);
    font-size: 12px;
}

.form-message.success { color: #71d7a0; }

.password-strength {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 2px 8px;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
}

.password-strength-track {
    flex: 1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.password-strength-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--danger);
    transition: width .15s ease, background .15s ease;
}

.password-strength-track span.medium { background: #f4b65a; }
.password-strength-track span.strong { background: #71d7a0; }

.app {
    width: calc(100vw - clamp(24px, 3vw, 72px));
    height: calc(100vh - clamp(24px, 3vw, 72px));
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    position: relative;
    z-index: 1;
    background: var(--surface);
    box-shadow: 0 35px 100px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(10px) saturate(80%);
    animation: appear .5s cubic-bezier(.16,1,.3,1);
}

.sidebar {
    position: relative;
    width: 300px;
    flex: 0 0 300px;
    padding: 24px 18px 142px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border);
    background: rgba(8, 10, 13, .3);
    contain: layout paint;
}

.sidebar h2 { margin: 0 8px 20px; font-size: 22px; letter-spacing: -.6px; }

.sidebar-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.sidebar-tabs button {
    flex: 1;
    width: auto;
    margin: 0;
    padding: 8px 4px;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: 11px;
}
.sidebar-tabs button.active, .sidebar-tabs button:hover { color: white; background: rgba(142, 126, 255, .18); box-shadow: inset 0 0 0 1px rgba(168,156,255,.2); }

.notification-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: var(--danger);
    box-shadow: 0 3px 10px rgba(240,91,118,.35);
    font-size: 10px;
    font-weight: 700;
}

.add { display: flex; align-items: center; gap: 7px; }
.add input { flex: 1; width: auto; min-width: 0; }
.add button { width: 42px; margin: 0; padding: 10px 0; }

/* Plain list/panel containers that hold dynamically-injected items.
   No visual chrome of their own, but declared explicitly so nothing
   silently falls back to unstyled browser defaults. */
#friendsPanel, #groupsPanel, #requestsPanel, #friends, #groups, #requests, #groupMembers, #publicGroups {
    display: block;
    min-width: 0;
}

#friends > div, #groups .group-item, .friend-request, .group-member {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #dfe4f2;
    background: rgba(255,255,255,.035);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

#publicGroups .public-group-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #dfe4f2;
    background: rgba(255,255,255,.035);
}
.public-groups-title { margin-top: 20px; }
.public-group-search { margin-top: 6px; }
.public-groups-empty, .group-visibility-help { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.group-visibility { display: flex !important; align-items: center; gap: 8px; margin: 17px 0 0 !important; color: #dfe4f2 !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: normal !important; text-transform: none !important; }
.group-visibility input { width: auto; margin: 0; }
.join-public-group { width: auto; margin: 0 0 0 auto; padding: 6px 9px; background: rgba(139,124,255,.2); box-shadow: none; font-size: 10px; }
.join-public-group:hover { background: rgba(139,124,255,.42); box-shadow: none; }

#friends > div, #groups .group-item { cursor: pointer; }
#friends > div:hover, #groups .group-item:hover { border-color: rgba(168,156,255,.22); background: rgba(143,125,255,.12); transform: translateX(2px); }
#friends > div .notification-badge, #groups .notification-badge { margin-left: auto; }
.chat-list-details { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.friend-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.friend-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #7f8fa4;
}
.friend-status.online::before {
    background: #6bd36b;
}
.friend-status.offline::before {
    background: #8795a5;
}
.chat-list-preview { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.remove-friend, .remove-member {
    width: auto;
    margin: 0 0 0 auto;
    padding: 5px 8px;
    color: #dce2ee;
    background: rgba(255,255,255,.08);
    box-shadow: none;
    font-size: 10px;
}
.remove-friend:hover, .remove-member:hover { color: white; background: rgba(240,91,118,.75); box-shadow: none; }

.empty-requests, .selected-group { color: var(--muted); font-size: 12px; }
.friend-request { display: block; }
.friend-request > span { display: block; margin-bottom: 9px; }
.friend-request > div { display: flex; gap: 7px; }
.friend-request button { flex: 1; width: auto; margin: 0; padding: 7px; box-shadow: none; font-size: 11px; }
.friend-request .reject { background: rgba(255,255,255,.09); }

.profile {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(18,22,36,.96);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.profile-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-identity .avatar-button { flex: 0 0 auto; margin: 0; }
#myNick { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 700; white-space: nowrap; }
.avatar { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.08); }
.avatar-large { width: 42px; height: 42px; }
.avatar-profile { width: 104px; height: 104px; }
.message-avatar { width: 28px; height: 28px; margin-right: 1px; }
.avatar-button { width: auto; margin: 0 0 8px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.avatar-button:hover { transform: scale(1.04); filter: none; box-shadow: none; }
#friends > div > .avatar, #groups .group-item > .avatar { margin-right: 1px; }
.group-avatar-editor { display: flex; align-items: center; gap: 10px; }
.group-avatar-editor input { flex: 1; width: auto; margin: 0; padding: 7px; font-size: 11px; }
.chat-list-details span:not(.chat-list-preview):hover,
.group-member span:hover,
.message-meta b:hover { text-decoration: underline; }
.profile-modal-card { text-align: center; }
.profile-modal-avatar { display: flex; justify-content: center; margin: 12px 0; }
.profile-modal-nick { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
#profileBio { width: 100%; min-height: 100px; margin: 8px 0 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(7, 9, 12, .55); color: var(--text); resize: vertical; font: inherit; font-size: 13px; line-height: 1.5; }
#profileBio:focus { border-color: rgba(166, 161, 216, .7); box-shadow: 0 0 0 4px rgba(145, 138, 205, .12); }
#saveBioButton { width: auto; min-width: 0; margin-bottom: 18px; }
.nick-color-palette { display: flex; justify-content: center; gap: 9px; margin: 8px 0 18px; }
.nick-color-palette button { width: 25px; height: 25px; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 50%; box-shadow: none; }
.nick-color-palette button:hover, .nick-color-palette button.selected { border-color: white; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.nick-color-palette button[data-color="#aeb8ff"] { background: #aeb8ff; }
.nick-color-palette button[data-color="#8dd6bc"] { background: #8dd6bc; }
.nick-color-palette button[data-color="#f0ad9e"] { background: #f0ad9e; }
.nick-color-palette button[data-color="#e6bf7c"] { background: #e6bf7c; }
.nick-color-palette button[data-color="#d6a4e9"] { background: #d6a4e9; }
.nick-color-palette button[data-color="#83c9df"] { background: #83c9df; }
.profile-actions { display: flex; gap: 7px; margin-top: 10px; }
.profile-actions button { flex: 1; width: auto; margin: 0; padding: 7px 3px; background: rgba(255,255,255,.08); box-shadow: none; font-size: 10px; }
.profile-actions .logout { background: rgba(240,91,118,.18); color: #ffb7c3; }

.group-options { margin-top: 18px; padding: 13px 10px 0; border-top: 1px solid var(--border); }
.group-options .selected-group { margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-options-toggle { margin: 0; padding: 9px; color: #dcd8ff; background: rgba(139,124,255,.16); box-shadow: none; }

.chat { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.header {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    color: #fafaff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.35px;
    background: rgba(13,17,31,.45);
}

#messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 25px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    contain: layout paint;
}

/* Global topbar shown after login (full-width, fixed) */
.global-topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 48px;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 60;
    padding: 0 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(10px) saturate(80%);
}
.global-topbar-inner { display: flex; align-items: center; gap: 12px; width: 100%; }
.global-topbar .global-message { color: var(--muted); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-topbar .global-controls { display: flex; gap: 8px; align-items: center; }

/* When topbar is visible, push content down to avoid overlap */
body.has-global-topbar { padding-top: 52px; }

.global-topbar .vsep { width: 1px; height: 28px; background: rgba(255,255,255,.06); margin: 0 12px; }
.global-topbar .user-count { color: var(--text); font-size: 13px; font-weight: 600; }

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 28px 8px;
    color: var(--muted);
    font-size: 11px;
}

#typingText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.typing-dots { display: inline-flex; align-items: center; gap: 3px; }
.typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-soft);
    animation: typing-dot .9s ease-in-out infinite;
    will-change: transform, opacity;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.message {
    width: fit-content;
    max-width: min(72%, 560px);
    margin-bottom: 7px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    overflow-wrap: anywhere;
    line-height: 1.38;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    animation: message-in .2s ease-out both;
}

@keyframes message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.message b { font-size: 11px; letter-spacing: .1px; opacity: .88; }
.message-meta span { color: rgba(255,255,255,.62); font-size: 10px; }

/* Twoje wiadomości po lewej, otrzymane po prawej. */
.mine { align-self: flex-start; border-bottom-left-radius: 5px; background: #625d9d; }
.other { align-self: flex-end; border-bottom-right-radius: 5px; background: rgba(255,255,255,.065); }

.input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border);
    background: rgba(10,12,15,.4);
}
.input input { flex: 1; margin: 0; padding: 13px 15px; border-radius: 14px; }
.input button { width: 100px; margin: 0; padding: 12px; }
.input .attachment-button { width: 46px; padding: 12px 0; background: rgba(255,255,255,.08); box-shadow: none; font-size: 17px; }
.attachment-preview { display: flex; align-items: center; gap: 7px; position: absolute; bottom: 72px; left: 22px; max-width: calc(100% - 44px); padding: 6px 8px 6px 10px; border: 1px solid rgba(168,156,255,.28); border-radius: 10px; color: #e7e4ff; background: rgba(24,20,52,.98); font-size: 11px; }
.attachment-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview button { width: 22px; margin: 0; padding: 0; background: transparent; box-shadow: none; font-size: 18px; line-height: 1; }
.message-attachment { margin-top: 8px; }
.message-attachment img, .message-attachment video { display: block; max-width: min(100%, 360px); max-height: 280px; border-radius: 10px; }
.message-attachment audio { display: block; width: min(100%, 300px); }
.file-attachment { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: inherit; background: rgba(0,0,0,.12); text-decoration: none; }
.file-attachment:hover { background: rgba(255,255,255,.1); }
.file-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3,5,12,.72);
    animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    width: min(470px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    padding: 23px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(19,24,40,.98);
    box-shadow: 0 30px 100px rgba(0,0,0,.55);
    animation: appear .18s ease-out;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h3 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.modal-close { width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.09); box-shadow: none; font-size: 21px; line-height: 1; }
.modal-card label, .modal-section-title { display: block; margin: 17px 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; }
.modal-card .add input { flex: 1; width: auto; min-width: 0; }
.modal-card .add button { width: auto; min-width: 58px; }
.modal-delete { margin-top: 20px; }

.hidden { display: none !important; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.14); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Low-power / low-end devices: drop backdrop-filter and the drifting
   blobs entirely. Most phones and older laptops match `(update: slow)`
   or a coarse pointer + no hover combo; layout/colors stay identical,
   just cheaper to render. */
@media (hover: none), (update: slow) {
    body::before, body::after { animation: none; opacity: .08; }
    .box, .app { backdrop-filter: none; }
}

/* Tablet / narrow-desktop tier: sidebar shrinks but keeps its labels,
   giving a middle step between the full desktop layout and the
   icon-only 720px phone layout below. */
@media (max-width: 960px) {
    .sidebar { width: 240px; flex-basis: 240px; padding: 20px 14px 132px; }
    .sidebar h2 { font-size: 19px; }
    .header { padding: 0 20px; }
    #messages { padding: 20px 20px; }
    .message { max-width: 80%; }
}

@media (max-width: 720px) {
    body { overflow: auto; }
    .app { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
    .sidebar { width: 86px; flex-basis: 86px; padding: 18px 10px 118px; }
    .sidebar h2 { margin: 0 0 15px; font-size: 14px; text-align: center; }
    .sidebar-tabs { flex-direction: column; }
    .sidebar-tabs button { font-size: 9px; }
    .add input, #friends > div > span:first-child, #groups .group-item > span:first-child, .remove-friend, .group-options, .chat-list-details, .public-groups-title, .public-group-search, #publicGroups { display: none; }
    .add button { width: 100%; }
    #friends > div, #groups .group-item { justify-content: center; padding: 11px 5px; }
    .profile { right: 9px; bottom: 10px; left: 9px; padding: 8px; }
    #myNick { display: none; }
    .profile-actions { flex-direction: column; margin: 0; }
    .header { min-height: 62px; padding: 0 16px; }
    #messages { padding: 18px 14px; }
    .typing-indicator { padding: 0 14px 7px; }
    .message { max-width: 88%; }
    .input { padding: 12px; }
    .attachment-preview { bottom: 66px; left: 12px; max-width: calc(100% - 24px); }
    body::before, body::after { width: 70vw; height: 70vw; opacity: .08; }
}


@media (max-width: 420px) {
    .box { padding: clamp(24px, 6vw, 36px); border-radius: 18px; }
    .box h1 { font-size: 24px; margin-bottom: 20px; }
    .modal-card { padding: 16px; border-radius: 16px; }
    .modal-header h3 { font-size: 16px; }
    .message { max-width: 92%; }
    .input input { padding: 11px 13px; }
    .input button { width: 78px; }
}




.support {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #00000044;
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font: 13px Arial;
    width: 60%;
    margin-left: 20%;
    margin-top: 5%;
}

/* Topbar support widget tweaks */
.global-topbar .support { margin: 0; width: auto; background: transparent; padding: 0; }
.global-topbar .support p { margin: 0 8px 0 0; color: var(--muted); font-size: 13px; }
.global-topbar .support button { background: transparent; border: 0; margin-bottom: 0; width: 30px; height: 30px; }
#globalCopied { opacity: 0; transition: .18s; color: #71d7a0; margin-left: 8px; }
#globalCopied[style] { }
.support button {
    background: #222;
    border: 0;
    margin-bottom: 4%;
    border-radius: 7px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}
.support img {
    width: 18px;
    height: 18px
}
.support button:hover {
    background: #333
}
#copied {
    opacity: 0;
    transition: .2s;
    color: #aaa;
    font-size: 12px
}

.message-embed {
    margin-top: 6px;
    border-radius: 8px;
    overflow: hidden;
}
.message-embed iframe {
    display: block;
    border-radius: 8px;
}
#supportText{
    font-weight: 800;
}

#loginLogo
{
    align-items: center;
    /* display: flex; */
    /* justify-content: center; */
    /* border: solid; */
    width: 100%;
}

#loginLogo img
{
    border-radius: 20%;
    width: 4em;
    height: 4em;
}
.tiktok-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.tiktok-link a:hover {
    background: #181818;
    border-color: #444;
    transform: translateY(-1px);
}

.tiktok-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.tiktok-icon svg {
    width: 17px;
    height: 17px;
    fill: #fff; 
}