/* =========================
   GLOBAL / BACKGROUND
========================= */

body.gradient-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(255,140,0,0.15), transparent 40%),
        linear-gradient(135deg, #0a0a0a, #110d16, #121212);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #e5e7eb;
}

/* =========================
   GLASS CARDS
========================= */

.logo {
    width: 30px;
    height: auto;
}

.glass-card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.09),
        rgba(255,255,255,0.03)
    );
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 5%;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* =========================
   NAVBAR
========================= */

.glass-nav {
    background: linear-gradient(
        180deg,
        rgba(15,18,25,0.75),
        rgba(15,18,25,0.45)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* =========================
   AVATARS
========================= */

.avatar,
.steam-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,140,0,0.55);
    box-shadow: 0 0 0 2px rgba(255,140,0,0.15);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,140,0,0.4);
}
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 1px solid #fff;
}

.idle-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #facc15; /* yellow */
    border-radius: 50%;
    border: 1px solid #fff;
}

/* =========================
   SIDEBAR LINKS
========================= */

.nav-link {
    position: relative;
    color: #cfd3da !important;
    opacity: 0.9;
    padding: 10px 14px 10px 18px;
    border-left: 5px solid transparent;
    background: transparent !important;
    box-shadow: none !important;
    transition:
        color .25s ease,
        opacity .25s ease,
        border-color .25s ease,
        padding-left .25s ease;
}

.nav-link:hover {
    opacity: 1;
    color: #fff !important;
    border-left-color: #ff9100;
    padding-left: 22px;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    opacity: 1;
    color: #fff !important;
    border-left-color: #ff9100;
}

/* =========================
   BUTTONS
========================= */

.btn-outline-light {
    --bs-btn-color: #ff9f1a;
    --bs-btn-border-color: rgba(255,159,26,0.45);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255,140,0,0.85);
    --bs-btn-hover-border-color: rgba(255,140,0,0.85);
    --bs-btn-focus-shadow-rgb: 255,140,0;
}

/* =========================
   TEXT ACCENTS
========================= */

.text-accent {
    color: #ff9f1a;
}

/* =========================
   FADED / OFFLINE USERS
========================= */

.opacity-50 {
    opacity: 0.45 !important;
}

.user-row {
    position: relative;
    padding-right: 26px;
}

.user-actions {
    opacity: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity .2s ease;
}

.user-row:hover .user-actions {
    opacity: 1;
}

/* FIX BOOTSTRAP MODAL WITH GLASS / BLUR LAYOUT */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* VERY IMPORTANT: remove stacking context */
.glass-card,
.gradient-bg,
.container-fluid,
.container {
    transform: none !important;
    backdrop-filter: none;
}

/* ================= SERVER CARD ================= */

.server-card {
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

/* MAP IMAGE */
.server-map {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.server-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

/* OVERLAY */
.server-map-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.server-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

/* STATUS */
.server-status {
    align-self: flex-start;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.server-status.online {
    background: rgba(0,255,150,0.2);
    color: #00ff9c;
}

.server-status.offline {
    background: rgba(255,80,80,0.2);
    color: #ff5a5a;
}

/* BODY */
.server-body {
    padding: 16px;
}

/* DOMAIN + COPY */
.server-domain-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    word-break: break-all;
}

.copy-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background .2s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.18);
}

/* STATS */
.server-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 14px;
}

.server-stats span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* CONNECT BUTTON */
.connect-btn {
    background: linear-gradient(135deg, #ff9f1c, #ff6a00);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    padding: 10px;
    transition: transform .2s, box-shadow .2s;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,140,0,0.4);
}

/* OFFLINE */
.server-offline {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Admin web-style tabs */
.admin-tabs {
    background: rgba(255,255,255,0.03);
    padding: 6px;
    border-radius: 12px;
}

.admin-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #ffc107;
    text-decoration: none;
    border: 1px solid rgba(255,193,7,0.25);
    transition: all .15s ease;
}

.admin-tab:hover {
    background: rgba(255,193,7,0.08);
    color: #ffc107;
}

.admin-tab.active {
    background: rgba(255,193,7,0.18);
    border-color: #ffc107;
    color: #ffc107;
    box-shadow: inset 0 0 0 1px rgba(255,193,7,0.15);
}

/* Users */

/* Orange select accent for dark panels */
.form-select {
    background-color: #0f1218;
    color: #fff;
    border-color: #ff9800;
}

.form-select:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 0.15rem rgba(255, 152, 0, 0.35);
}

.form-select option {
    background-color: #0f1218;
    color: #fff;
}

.table th,
.table td {
    padding: 0.75rem 1rem; /* more air, still compact */
    vertical-align: middle;
    background-color: #0a0a0ab4;
}

.server-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    font-size: 13px;
}

.server-stats-row span {
    opacity: .7;
}

.server-stats-row strong {
    display: block;
    font-size: 15px;
}

.server-action-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.server-action-btn:hover {
    background: rgba(0,0,0,.85);
}

.rcon-output {
    background: #0b0f19;
    color: #9ff;
    padding: 12px;
    border-radius: 10px;
    max-height: 220px;
    overflow: auto;
}




/* ORANGE PLAYER LOAD BAR */
.server-load-bar {
    height: 4px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.server-load-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9f1a, #ff6a00);
    transition: width .4s ease;
}

/* DOMAIN ROW */
.server-domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-size: 13px;
}

.server-domain {
    font-family: monospace;
    opacity: .85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* COPY BUTTON */
.copy-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
}

.copy-btn:hover {
    color: #ffc36e;
}

/* STATS ROW (KEEP MODERN LOOK) */
.server-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px 12px;
    font-size: 13px;
}

.server-stats-row span {
    opacity: .65;
}

.server-stats-row strong {
    display: block;
    font-size: 15px;
}

/* ===== ACTIVE USERS SIDEBAR ===== */
.active-users-list {
    max-height: 520px;
    overflow-y: auto;
    font-size: 14px;
    padding-right: 4px;
}

/* User row */
.user-item {
    padding: 6px 8px;
    border-radius: 8px;
}

.user-card {
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.user-card-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    color: #fff;
    font-size: 13px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button */
.show-more-btn {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
}

.show-more-btn:hover {
    background: #2c2c2c;
}

/* === SIMPLE DARK CHAT INPUT (INPUT VERSION) === */
.simple-input {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    background: #121212d2;
    border-radius: 50px;
    padding: 10px 20px;
}

.simple-text-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    font-size: 14px;
    padding: 6px 4px;
}

.simple-text-input::placeholder {
    color: #94a3b8;
}

.simple-text-input:empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
    display: block;
}

.simple-attach {
    flex-shrink: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
}

.simple-attach:hover {
    color: #ffffff;
}

.simple-send {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 15px;
}

.simple-send:hover {
    color: #93c5fd;
}

/* =========================
   GLOBAL DARK SCROLLBAR
========================= */

/* Chrome, Edge, Brave, Opera */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b1220; /* page background */
}

::-webkit-scrollbar-thumb {
    background-color: #1e293b; /* dark thumb */
    border-radius: 10px;
    border: 2px solid #0b1220; /* spacing effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #334155;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #444444be #2d2d2d4d;
}

.ticket-form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid #0dcaf0;
    border-radius: 12px;
    padding: 14px 16px;
}

.ticket-form-title {
    font-size: 25px;
    font-weight: bolder;
    color: #7dd3fc;
    margin-bottom: 12px;
}

.ticket-form-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-qa {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 10px 12px;
}

.ticket-q {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ticket-a {
    font-size: 14px;
    color: #fff;
}

.ticket-form-footer {
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}

.ticket-form-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ticket-user-meta {
    display: flex;
    flex-direction: column;
}

.ticket-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.ticket-user-steam {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#ticketMessages:empty {
    display: none;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-modal {
    width: 420px;
    max-width: 90%;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalPop .15s ease-out;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
}

.admin-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.admin-modal-body {
    padding: 16px;
    font-size: 14px;
    color: #ddd;
}

.admin-modal-body ul {
    padding-left: 18px;
}

.admin-modal-body li {
    margin-bottom: 8px;
}

@keyframes modalPop {
    from {
        transform: scale(.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   ULTRA MODAL (GLOBAL)
========================= */
.ultra-modal {
    background:
        radial-gradient(circle at top right, rgba(255,140,0,0.15), transparent 40%),
        linear-gradient(135deg, #0a0a0a, #110d16, #121212);
    color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

/* Optional polish */
.ultra-modal .modal-header,
.ultra-modal .modal-footer {
    border-color: rgba(255,255,255,0.08);
}

.ultra-modal .form-control,
.ultra-modal .form-select {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

.ultra-modal .form-control:focus,
.ultra-modal .form-select:focus {
    background: rgba(0,0,0,0.55);
    border-color: #ff9800;
    box-shadow: none;
    color: #fff;
}

.ultra-modal ::placeholder {
    color: #9ca3af;
}

/* Make date picker icon white */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}


button.active {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.ticket-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545; /* red */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.attach-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0dcaf0; /* Bootstrap info blue */
    box-shadow: 0 0 0 2px #0b0f14;
    display: none;
}

.simple-attach.has-file .attach-indicator {
    display: block;
}

/* Clickable image */
.ticket-msg-text img,
.ticket-messages img.img-fluid {
    cursor: zoom-in;
    transition: opacity .15s ease;
}

.ticket-msg-text img:hover,
.ticket-messages img.img-fluid:hover {
    opacity: 0.9;
}

/* Image viewer overlay */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Image */
.image-viewer img {
    max-width: 100vw;
    max-height: 100vh;
}

/* Close button */
.image-viewer .close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
}

.image-viewer .close-btn:hover {
    opacity: 1;
}

/* Ensure text always wraps inside cards */

.ticket-qa,
.ticket-a,
.ticket-msg-text,
.ticket-form-body,
.ticket-user-meta {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ticket-user-meta,
.ticket-qa,
.ticket-a {
    min-width: 0;
}




/* =========================
   PLAYERS MODAL (ULTRA)
========================= */

.players-modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 12px 16px 16px;
}

.players-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.players-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    border: 0;
    padding: 0 12px 8px;
}

.players-table tbody tr {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: background .2s ease, transform .15s ease;
}

.players-table tbody tr:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-1px);
}

.players-table td {
    border: 0;
    padding: 14px 12px;
    vertical-align: middle;
}

/* Player cell */
.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg,#ff8a00,#ff4d00);
    color: #fff;
    flex-shrink: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}

.player-sub {
    font-size: 12px;
    color: rgba(255,255,255,.45);
}

/* Ping badges */
.badge-good { background: rgba(25,135,84,.2); color:#2ecc71; }
.badge-mid  { background: rgba(255,193,7,.2); color:#ffc107; }
.badge-bad  { background: rgba(220,53,69,.2); color:#ff6b6b; }

.players-table .badge {
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
}

/* =========================
   ULTRA PLAYER TABLE
========================= */

.player-row {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: background .2s ease, transform .15s ease;
}

.player-row:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-1px);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.player-sub {
    font-size: 12px;
    color: rgba(255,255,255,.45);
}

/* Ultra badges */
.ultra-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    min-width: 48px;
}

/* Score */
.badge-good {
    background: rgba(25,135,84,.2);
    color: #2ecc71;
}

.badge-neutral {
    background: rgba(108,117,125,.2);
    color: #adb5bd;
}

/* Ping (you already map classes) */
.badge-low {
    background: rgba(25,135,84,.2);
    color: #2ecc71;
}

.badge-mid {
    background: rgba(255,193,7,.2);
    color: #ffc107;
}

.badge-high {
    background: rgba(220,53,69,.2);
    color: #ff6b6b;
}




.chat-emoji {
    width: 25px;
    height: auto;
    vertical-align: middle;
}

.chat-emoji.big {
    width: 48px;
    height: auto;
}

/* =========================
   CHAT (DISCORD STYLE)
========================= */

/* Remove bubble background for chat */
.chat-message .ticket-message {
    background: transparent !important;
    box-shadow: none !important;
    padding: 5px 0 !important;
    border-radius: 0 !important;
}

.chat-messages {
    height: 80vh;
    background: transparent !important;
    border-radius: 12px;
    padding: 12px;
    overflow-y: auto;
}

.chat-message.user .ticket-message {
    margin-left: auto;
}

.chat-message.admin .ticket-message {
    margin-right: auto;
}

.chat-message {
    align-items: flex-start;
    position: relative;
}

.chat-message .meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: .7;
    margin-bottom: 8px;
}

#chatEditor {
    max-height: 60px;       /* <- this is the limit */
    overflow-y: auto;        /* scroll instead of growing */
    line-height: 1.4;
}

.chat-cooldown {
    color: #9ca3af;
    font-size: 12px;
    font-weight: bold;
    height: 12px;              
    visibility: hidden;     
}

.imgz {
    max-width: 350px;
    cursor: zoom-in;
}

.upload-progress {
    height: 4px;
    width: 100%;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
    display: none;
}

#uploadProgressBar {
    height: 100%;
    width: 0%;
    background: #ffa600;
    transition: width 0.2s linear;
}

/* ===== CHAT HEADER / CHANNEL BAR ===== */

.chat-header {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.chat-title {
    font-size: 13px;
    font-weight: 600;
    color: #ff9f1a;
    opacity: .9;
}

.chat-channels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Channel buttons */
.chat-channel-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5f5;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s ease;
}

.chat-channel-btn:hover {
    background: rgba(255,140,0,0.12);
    border-color: rgba(255,140,0,0.45);
    color: #fff;
}

/* Active channel */
.chat-channel-btn.active {
    background: linear-gradient(135deg, #ff9f1a, #ff6a00);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255,140,0,0.35);
}


.username-gradient {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.username-owner { background-image: linear-gradient(90deg,rgb(255, 0, 40) 0%, rgb(152, 0, 199) 52%, rgb(255, 0, 40) 100%); }
.username-co-owner { background-image: linear-gradient(90deg,rgba(255, 0, 0, 1) 0%, rgba(245, 166, 166, 1) 52%, rgba(255, 0, 0, 1) 100%); }
.username-mod { background-image: linear-gradient(90deg,rgba(255, 109, 5, 1) 0%, rgba(255, 162, 0, 1) 52%, rgba(255, 102, 0, 1) 100%); }
.username-manager { background-image: linear-gradient(90deg,rgba(255, 226, 5, 1) 0%, rgba(242, 255, 0, 1) 52%, rgba(255, 221, 0, 1) 100%); }
.username-leader { background-image: linear-gradient(90deg,rgba(5, 26, 255, 1) 0%, rgb(0, 119, 255) 52%, rgba(0, 30, 255, 1) 100%); }
.username-superior { background-image: linear-gradient(90deg,rgba(0, 225, 255, 1) 0%, rgba(0, 255, 187, 1) 52%, rgba(0, 225, 255, 1) 100%); }
.username-helper { background-image: linear-gradient(90deg,rgba(17, 255, 5, 1) 0%, rgba(0, 255, 136, 1) 52%, rgba(8, 255, 0, 1) 100%); }
.username-vip { background-image: linear-gradient(90deg,rgb(216, 124, 255) 0%, rgb(255, 158, 158) 52%, rgba(216, 124, 255) 100%); }
.username-user { background-image: linear-gradient(90deg,rgb(128, 255, 230) 0%, rgb(228, 154, 255) 52%, rgb(154, 186, 255) 100%); }

.username-icon {
    width: 18px;
    height: auto;
    vertical-align: middle;
}

.msg-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 15px;
    z-index: 9999;
    padding: 4px 6px;
    border-radius: 6px;
    pointer-events: auto;
}

.msg-actions i {
    pointer-events: auto;
}

.chat-message:hover .msg-actions {
    display: block;
}



.mention-box {
    position: absolute;
    bottom: 60px;
    left: 20px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    width: 240px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.mention-item {
    padding: 8px 10px;
    cursor: pointer;
    color: #ddd;
}

.mention-item:hover {
    background: rgba(255,255,255,0.1);
}

.chat-mention {
    color: #ffffff;
    background:  rgb(133, 0, 186);
    padding: 4px 7px;
    border-radius: 8px;
    font-weight: 600;
}

.notify-badge {
    display: none;
    background: #dc3545;
    color: white;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 6px;
    font-weight: 600;
}


/* Last 10 joined users */

.recent-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-user-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all .2s ease;
}

.recent-user-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-1px);
}

.joined-badge {
    font-size: 14px;
    font-weight: bold;
    color: #00ff66;
    margin-left: 12px;
}

.min-w-0 {
    min-width: 0;
}

.skins-frame {
    width: 100%;
    height: 80vh;
}


@media only screen and (max-width: 600px) {
    .imgz {
        max-width: 240px;
        cursor: zoom-in;
    }
}



























