        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #1a1a1a;
            color: #b0b0b0;
            overflow: hidden;
            font-weight: 400;
        }

        /* AUTH OVERLAY */
        .auth-overlay {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 100;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .auth-overlay.hidden {
            display: none;
        }

        .auth-modal {
            background: #1a1a1a;
            border: 1px solid #444;
            border-radius: 8px;
            width: 100%;
            max-width: 600px;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            overflow-y: auto;
        }

        .auth-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #333;
            background: #2d2d2d;
        }

        .auth-header h1 {
            color: #e0e0e0;
            font-size: 20px;
            font-weight: 400;
            margin: 0;
        }

        .auth-body {
            padding: 30px;
            flex: 1;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .hidden {
            display: none !important;
        }

        .form-group.hidden {
            display: none;
        }

        .form-label {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 8px;
        }

        .form-label label {
            color: #e0e0e0;
            font-weight: 400;
            font-size: 15px;
        }

        .form-required {
            color: #999;
            font-size: 12px;
        }

        .form-description {
            color: #a8a8a8;
            font-size: 12px;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .form-group input {
            width: 100%;
            padding: 10px 12px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            color: #e0e0e0;
            font-size: 14px;
            font-family: inherit;
            transition: all 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #666;
            box-shadow: 0 0 8px rgba(102, 102, 102, 0.2);
        }

        .form-footer {
            font-size: 12px;
            color: #999;
            line-height: 1.6;
        }

        .form-footer a {
            color: #999;
            text-decoration: none;
        }

        .auth-button-group {
            padding: 20px 30px;
            border-top: 1px solid #333;
            display: flex;
            gap: 0;
        }

        .btn-submit {
            flex: 1;
            padding: 12px;
            background: transparent;
            color: #b0b0b0;
            border: none;
            border-bottom: 1px solid #555;
            border-radius: 0;
            cursor: pointer;
            font-weight: 400;
            font-size: 14px;
            transition: all 0.2s;
        }

        .btn-submit:hover {
            color: #d0d0d0;
            border-bottom-color: #888;
        }

        .btn-toggle {
            flex: 1;
            padding: 12px;
            background: transparent;
            color: #666;
            border: none;
            border-bottom: 1px solid #444;
            border-radius: 0;
            cursor: pointer;
            font-weight: 400;
            font-size: 14px;
            transition: all 0.2s;
        }

        .btn-toggle:hover {
            color: #888;
            border-bottom-color: #666;
        }

        /* MAIN LAYOUT */
        .main-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            /* 100dvh berücksichtigt die dynamische Adressleiste mobiler
               Browser (v.a. iOS Safari) — mit reinem 100vh kann das
               Eingabefeld unten teilweise verdeckt sein, je nachdem ob die
               Leiste gerade ein- oder ausgeblendet ist. Ältere Browser, die
               "dvh" nicht kennen, ignorieren diese Zeile einfach und
               bleiben beim 100vh-Wert darüber. */
            height: 100dvh;
            background: #1a1a1a;
        }

        .main-container.hidden {
            display: none;
        }

        /* WELCOME TOAST */
        .welcome-toast {
            position: fixed;
            top: 16px;
            left: 50%;
            transform: translateX(-50%) translateY(-16px);
            background: #2d2d2d;
            border: 1px solid #555;
            border-radius: 4px;
            padding: 12px 20px;
            color: #e0e0e0;
            font-size: 13px;
            z-index: 500;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            white-space: nowrap;
        }

        .welcome-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .welcome-toast b {
            color: #fff;
        }

        /* TOP ADS SECTION */
        .ads-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #2d2d2d;
            border-bottom: 2px solid #444;
            flex: 0 0 auto;
        }

        .ad-banner {
            width: 100%;
            max-width: 970px;
            border-radius: 4px;
            overflow: hidden;
            display: flex;
        }

        .ad-banner img {
            width: 100%;
            height: auto;
            display: block;
        }

        .ad-banner-placeholder {
            width: 100%;
            max-width: 970px;
            aspect-ratio: 970 / 90;
            background: #f5f5f5;
            border: 1px solid #ccc;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            font-size: 14px;
            font-weight: 400;
        }

        /* CHAT MAIN AREA */
        .chat-main {
            display: flex;
            flex: 1;
            gap: 0;
            overflow: hidden;
        }

        /* CHAT COLUMN */
        .chat-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-right: 2px solid #444;
        }

        .chat-header {
            background: #2d2d2d;
            color: #a3a3a3;
            height: 52px;
            padding: 6px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #444;
            flex: 0 0 auto;
            position: relative;
        }

        .chat-header h1 {
            margin: 0;
            font-size: 16px;
            font-weight: 400;
            letter-spacing: 1px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        .bell-wrap {
            position: relative;
        }

        .bell-btn {
            background: transparent;
            border: none;
            color: #999;
            cursor: pointer;
            padding: 4px 6px;
            position: relative;
            transition: color 0.2s, transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bell-btn:hover {
            color: #ccc;
        }

        .bell-btn.ringing {
            animation: bellRing 0.6s ease;
        }

        @keyframes bellRing {
            0%, 100% { transform: rotate(0deg); }
            20% { transform: rotate(15deg); }
            40% { transform: rotate(-15deg); }
            60% { transform: rotate(8deg); }
            80% { transform: rotate(-8deg); }
        }

        .bell-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #d63333;
            color: #fff;
            font-size: 9px;
            font-weight: 400;
            min-width: 15px;
            height: 15px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 3px;
            line-height: 1;
        }

        .notif-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
            z-index: 300;
            width: 280px;
            max-height: 340px;
            overflow-y: auto;
        }

        .notif-dropdown.active {
            display: block;
        }

        .notif-dropdown-title {
            padding: 10px 14px;
            color: #999;
            font-size: 11px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #444;
        }

        .notif-list {
            display: flex;
            flex-direction: column;
        }

        .notif-item {
            padding: 10px 14px;
            border-bottom: 1px solid #3a3a3a;
            font-size: 12px;
        }

        .notif-item:last-child {
            border-bottom: none;
        }

        .notif-item-from {
            color: #d0d0d0;
            font-weight: 400;
        }

        .notif-item-type {
            color: #777;
            font-weight: 400;
        }

        .notif-item-preview {
            color: #999;
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .notif-item-time {
            color: #555;
            font-size: 10px;
            margin-top: 4px;
        }

        .notif-empty {
            padding: 20px 14px;
            text-align: center;
            color: #666;
            font-size: 12px;
        }

        .user-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
            z-index: 300;
            min-width: 300px;
            overflow: hidden;
            margin-top: 8px;
        }

        .user-menu.active {
            display: block;
        }

        .user-menu-header {
            padding: 12px;
            border-bottom: 1px solid #444;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            width: 100%;
        }

        .user-menu-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            border: 1px solid #666;
        }

        .user-menu-name {
            color: #e0e0e0;
            font-size: 13px;
            font-weight: 400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-menu-section {
            padding: 12px;
            border-bottom: 1px solid #3a3a3a;
        }

        .user-menu-section:last-child {
            border-bottom: none;
        }

        .user-menu-section-title {
            color: #999;
            font-size: 11px;
            font-weight: 400;
            text-transform: uppercase;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .user-menu-item {
            padding: 8px 0;
            color: #b0b0b0;
            cursor: pointer;
            font-size: 12px;
            transition: color 0.2s;
        }

        .user-menu-item:hover {
            color: #e0e0e0;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .user-info-avatar {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            border: 1px solid #666;
        }

        .user-info-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .user-info-name {
            color: #e0e0e0;
            font-size: 11px;
            font-weight: 400;
            white-space: nowrap;
        }

        .user-info-status {
            display: none;
        }

        .btn-logout {
            padding: 6px 8px;
            background: transparent;
            color: #999;
            border: none;
            border-radius: 0;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s;
            font-weight: 400;
        }

        .btn-logout:hover {
            color: #ccc;
        }

        .news-banner {
            flex: 0 0 auto;
            background: rgba(92, 184, 92, 0.06);
            border-bottom: 1px solid #444;
            padding: 10px 16px;
        }

        .news-banner-title {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #7bc47f;
            font-size: 11px;
            font-weight: 400;
            margin-bottom: 3px;
        }

        .news-banner-text {
            color: #999;
            font-size: 12px;
            line-height: 1.5;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            background: #1a1a1a;
        }

        .empty-state {
            text-align: center;
            color: #555;
            margin-top: 60px;
            font-size: 13px;
        }

        .message {
            margin-bottom: 8px;
            display: flex;
            gap: 10px;
            position: relative;
            align-items: center;
        }

        .avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 400;
            color: white;
            font-size: 14px;
            border: none;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            cursor: pointer;
        }

        .message-bubble {
            flex: 0 1 auto;
            width: fit-content;
            max-width: 70%;
            padding: 6px 10px;
            border: 1px solid #3a3a3a;
            background: #2d2d2d;
            word-break: break-word;
            border-radius: 2px;
            transition: all 0.3s;
            min-height: 16px;
        }

        .message-right {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s;
            flex-shrink: 0;
        }

        .message:hover .message-right {
            opacity: 1;
        }

        /* Touch-Geräte haben keinen dauerhaften :hover-Zustand — ohne das
           hier blieben Antworten/Zitieren/Löschen und der Zeitstempel für
           Handy-Nutzer komplett unerreichbar, weil .message-right sonst
           permanent unsichtbar (opacity: 0) bliebe. */
        @media (hover: none) {
            .message-right {
                opacity: 1;
            }
        }

        .message-bubble.highlighted {
            background: #3a3a3a;
            border-left-color: #888;
            box-shadow: inset 0 0 8px rgba(136, 136, 136, 0.2);
        }

        .message-info {
            font-size: 9px;
            color: #999;
            margin-bottom: 2px;
        }

        .username {
            color: #888;
            font-weight: 400;
            margin-right: 6px;
            cursor: pointer;
        }

        .message-content {
            margin: 0;
            font-size: 12px;
            color: #b0b0b0;
            line-height: 1.3;
            flex: 1;
        }

        .message-image {
            max-width: 110px;
            max-height: 80px;
            border: 1px solid #444;
            margin-top: 4px;
            border-radius: 2px;
            cursor: pointer;
            display: block;
        }

        .message-video {
            max-width: 260px;
            max-height: 200px;
            border: 1px solid #444;
            margin-top: 4px;
            border-radius: 2px;
            display: block;
            background: #000;
        }

        /* AUDIO PLAYER CARD */
        .audio-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #242424;
            border: 1px solid #3a3a3a;
            border-radius: 4px;
            padding: 8px 10px;
            margin-top: 4px;
            max-width: 260px;
        }

        .audio-play-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 50%;
            background: #444;
            border: 1px solid #666;
            color: #e0e0e0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: background 0.2s;
            padding: 0;
        }

        .audio-play-btn:hover {
            background: #505050;
        }

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

        .audio-title {
            font-size: 12px;
            color: #d0d0d0;
            font-weight: 400;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 5px;
        }

        .audio-progress-bar {
            height: 4px;
            background: #444;
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            margin-bottom: 4px;
        }

        .audio-progress-fill {
            height: 100%;
            background: #999;
            border-radius: 2px;
            width: 0%;
            pointer-events: none;
        }

        .audio-meta {
            font-size: 10px;
            color: #777;
            display: flex;
            justify-content: space-between;
        }


        .message-timestamp {
            color: #555;
            font-size: 11px;
            white-space: nowrap;
            order: 1;
        }

        .message-action-btn {
            background: transparent;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 12px;
            padding: 0 2px;
            transition: color 0.2s;
            order: 2;
        }

        .message-action-btn:hover {
            color: #888;
        }

        .chat-input-area {
            background: #2d2d2d;
            padding: 12px;
            border-top: 1px solid #444;
            flex: 0 0 auto;
        }

        .chat-input-form {
            display: flex;
            gap: 8px;
        }

        .voice-record-bar {
            display: none;
            align-items: center;
            gap: 10px;
            padding: 8px 4px;
        }

        .voice-record-bar.active {
            display: flex;
        }

        .voice-record-dot {
            width: 10px;
            height: 10px;
            min-width: 10px;
            border-radius: 50%;
            background: #ff3b3b;
            animation: recordPulse 1s infinite;
        }

        @keyframes recordPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.25; }
        }

        .voice-record-timer {
            color: #ccc;
            font-size: 13px;
            min-width: 34px;
            font-variant-numeric: tabular-nums;
        }

        .voice-record-hint {
            color: #888;
            font-size: 12px;
            flex: 1;
        }

        .voice-cancel-btn, .voice-send-btn {
            background: transparent;
            border: none;
            color: #999;
            border-radius: 0;
            cursor: pointer;
            padding: 8px 12px;
            font-size: 12px;
            transition: all 0.2s;
            font-weight: 400;
        }

        .voice-cancel-btn:hover {
            color: #ccc;
        }

        .voice-send-btn {
            color: #999;
        }

        .voice-send-btn:hover {
            color: #ccc;
        }

        #micBtn.recording {
            background: #4a2a2a;
            border-color: #ff5c5c;
            color: #ff7b7b;
        }

        .input-icon-btn {
            cursor: pointer;
            padding: 8px 6px;
            background: transparent;
            border: none;
            border-radius: 0;
            color: #999;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }

        .input-icon-btn:hover {
            color: #ccc;
        }

        .emoji-picker-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        .emoji-picker {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            margin-bottom: 8px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 6px;
            padding: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
            grid-template-columns: repeat(6, 1fr);
            gap: 4px;
            width: 216px;
            z-index: 300;
        }

        .emoji-picker.active {
            display: grid;
        }

        .emoji-picker-item {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            padding: 4px;
            transition: background 0.15s;
        }

        .emoji-picker-item:hover {
            background: #3a3a3a;
        }

        .emoji-picker-item img {
            max-width: 100%;
            max-height: 100%;
        }

        .chat-emoji {
            width: 20px;
            height: 20px;
            vertical-align: middle;
            margin: 0 1px;
        }

        .message-input-editable {
            flex: 1;
            padding: 8px;
            border: 1px solid #3a3a3a;
            background: #1a1a1a;
            font-size: 13px;
            color: #b0b0b0;
            min-height: 34px;
            max-height: 120px;
            overflow-y: auto;
            outline: none;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .message-input-editable:focus {
            outline: none;
            border-color: #666;
        }

        .message-input-editable:empty::before {
            content: attr(data-placeholder);
            color: #999;
            pointer-events: none;
        }

        .message-input-editable img.inline-emoji {
            height: 18px;
            vertical-align: middle;
            margin: 0 1px;
            display: inline-block;
            pointer-events: none;
        }

        .btn-send {
            padding: 8px 10px;
            background: transparent;
            color: #999;
            border: none;
            border-radius: 0;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            font-weight: 400;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-send:hover {
            color: #ccc;
        }

        .btn-send.has-content {
            background: #3a3a3a;
            border-radius: 4px;
        }

        .btn-send.has-content:hover {
            background: #444;
        }

        .btn-send:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            color: #444;
        }

        .sending {
            opacity: 0.5;
            pointer-events: none;
        }

        .cooldown-locked {
            opacity: 0.35;
            pointer-events: none;
        }

        /* MEMBERS SIDEBAR */
        .members-column {
            width: 250px;
            background: #2d2d2d;
            border-left: 2px solid #444;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Auf Desktop unsichtbar — der Umschalter ist nur auf schmalen
           Bildschirmen relevant, wo die Mitgliederliste sonst zu viel
           Platz vom eigentlichen Chat wegnehmen würde (siehe Media Query
           weiter unten). */
        .mobile-members-btn {
            display: none;
            background: transparent;
            border: none;
            color: #999;
            cursor: pointer;
            padding: 4px 6px;
            align-items: center;
            justify-content: center;
        }

        .mobile-members-btn:hover {
            color: #ccc;
        }

        .members-backdrop {
            display: none;
        }

        /* Handy-/schmale Tablet-Breite: Eine feste 250px-Sidebar würde auf
           z.B. einem 375px breiten Bildschirm nur 125px für den Chat selbst
           übrig lassen — praktisch unbenutzbar. Die Mitgliederliste wird
           hier stattdessen zu einem einblendbaren Overlay, das per Icon im
           Header geöffnet wird (siehe mobileMembersBtn), ähnlich wie bei den
           meisten Chat-Apps auf dem Handy üblich. */
        @media (max-width: 768px) {
            .mobile-members-btn {
                display: flex;
            }

            .members-column {
                position: fixed;
                top: 0;
                right: 0;
                height: 100%;
                height: 100dvh;
                width: min(280px, 80vw);
                z-index: 250;
                transform: translateX(100%);
                transition: transform 0.25s ease;
                box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
            }

            .members-column.mobile-open {
                transform: translateX(0);
            }

            .members-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 240;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.25s ease;
            }

            .members-backdrop.mobile-open {
                opacity: 1;
                pointer-events: auto;
            }

            /* Diese Popup-Menüs haben feste Mindestbreiten (bis zu 300px)
               und sind rechtsbündig positioniert — auf einem 320-360px
               breiten Handy-Bildschirm würden sie sonst über den linken
               Bildschirmrand hinausragen und horizontales Scrollen der
               ganzen Seite auslösen. */
            .user-menu,
            .notif-dropdown,
            .context-menu,
            .emoji-picker {
                max-width: calc(100vw - 24px);
                min-width: 0;
            }
        }

        .members-header {
            height: 52px;
            padding: 6px 12px;
            border-bottom: 1px solid #444;
            color: #a3a3a3;
            font-size: 12px;
            font-weight: 400;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .member-search-toggle {
            background: transparent;
            border: none;
            color: #888;
            cursor: pointer;
            padding: 2px;
            display: flex;
            align-items: center;
            transition: color 0.2s;
        }

        .member-search-toggle:hover {
            color: #ccc;
        }

        .member-search-bar {
            display: none;
            padding: 8px 12px;
            border-bottom: 1px solid #444;
            flex: 0 0 auto;
        }

        .member-search-bar.active {
            display: block;
        }

        .member-search-bar input {
            width: 100%;
            padding: 6px 8px;
            background: #1a1a1a;
            border: 1px solid #3a3a3a;
            border-radius: 2px;
            color: #b0b0b0;
            font-size: 12px;
        }

        .member-search-bar input:focus {
            outline: none;
            border-color: #666;
        }

        .members-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .member-item {
            padding: 8px;
            margin-bottom: 4px;
            background: #3a3a3a;
            border-radius: 2px;
            font-size: 12px;
            color: #b0b0b0;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
        }

        .member-item-banned {
            opacity: 0.55;
        }

        .member-rank-banned {
            color: #999;
            font-weight: 400;
            font-size: 10px;
        }

        .member-ban-btn {
            margin-left: auto;
            background: transparent;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 12px;
            padding: 2px 6px;
            transition: color 0.2s;
            flex-shrink: 0;
        }

        .member-ban-btn:hover {
            color: #999;
        }

        .member-item-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            cursor: pointer;
        }

        .member-username {
            color: #d0d0d0;
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .member-rank {
            font-size: 10px;
            font-weight: 400;
            letter-spacing: 0.3px;
        }

        .member-avatar {
            width: 24px;
            height: 24px;
            border-radius: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            cursor: pointer;
        }

        /* CONTEXT MENU */
        .context-menu {
            display: none;
            position: fixed;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
            z-index: 300;
            min-width: 150px;
            overflow: hidden;
        }

        .context-menu.active {
            display: block;
        }

        .context-menu-item {
            padding: 10px 16px;
            color: #b0b0b0;
            cursor: pointer;
            border-bottom: 1px solid #3a3a3a;
            font-size: 13px;
        }

        .context-menu-item:last-child {
            border-bottom: none;
        }

        .context-menu-item:hover {
            background: #3a3a3a;
            color: #e0e0e0;
        }

        .context-menu-item-danger {
            color: #ff5c5c;
        }

        .context-menu-item-danger:hover {
            background: rgba(255, 92, 92, 0.15);
            color: #ff7b7b;
        }

        .rank-option-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .rank-option-btn {
            padding: 12px 16px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 400;
            text-align: left;
            transition: all 0.2s;
        }

        .rank-option-btn:hover {
            background: #3a3a3a;
            border-color: #666;
        }

        .rank-option-btn.current {
            border-color: #888;
            box-shadow: inset 0 0 0 1px #888;
        }

        .custom-rank-input-row {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .custom-rank-input-row input {
            flex: 1;
            padding: 8px 10px;
            background: #1a1a1a;
            border: 1px solid #3a3a3a;
            border-radius: 2px;
            color: #b0b0b0;
            font-size: 13px;
        }

        .custom-rank-input-row input:focus {
            outline: none;
            border-color: #ffd23f;
        }

        .custom-rank-confirm-btn {
            padding: 8px 14px;
            background: #ffd23f;
            border: none;
            border-radius: 2px;
            color: #1a1a1a;
            font-weight: 400;
            font-size: 13px;
            cursor: pointer;
        }

        .custom-rank-confirm-btn:hover {
            background: #ffdd66;
        }

        /* ACCOUNT MODAL */
        .account-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 400;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .account-modal-overlay.active {
            display: flex;
        }

        .account-modal {
            background: #1a1a1a;
            border: 1px solid #444;
            border-radius: 6px;
            width: 100%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .account-modal-title {
            padding: 20px 24px;
            font-size: 22px;
            color: #e0e0e0;
            font-weight: 400;
        }

        .account-modal-body {
            padding: 0 24px;
        }

        .account-row {
            display: flex;
            align-items: center;
            padding: 20px 0;
            border-top: 1px solid #333;
            gap: 20px;
        }

        .account-row-label {
            width: 120px;
            min-width: 120px;
            color: #999;
            font-size: 13px;
            text-align: right;
        }

        .account-row-value {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #e0e0e0;
            font-size: 13px;
        }

        .account-input {
            flex: 1;
            padding: 8px 10px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            color: #e0e0e0;
            font-size: 13px;
        }

        .account-input:focus {
            outline: none;
            border-color: #666;
        }

        .account-change-btn {
            padding: 8px 16px;
            background: #3a3a3a;
            color: #e0e0e0;
            border: 1px solid #666;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .account-change-btn:hover {
            background: #454545;
        }

        .account-avatar-wrap {
            position: relative;
            width: 90px;
            height: 90px;
        }

        .account-avatar-preview {
            width: 90px;
            height: 90px;
            border-radius: 4px;
            background: #2d2d2d;
            border: 1px solid #444;
            background-size: cover;
            background-position: center;
        }

        .account-avatar-edit {
            position: absolute;
            bottom: -6px;
            right: -6px;
            width: 28px;
            height: 28px;
            border-radius: 4px;
            background: #3a3a3a;
            border: 1px solid #666;
            color: #e0e0e0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.2s;
        }

        .account-avatar-edit:hover {
            background: #454545;
        }

        .account-modal-footer {
            padding: 20px 24px;
            border-top: 1px solid #333;
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        /* PROFILE CARD (User Info Popup) */
        .profile-modal {
            max-width: 380px;
        }

        .profile-card-header {
            display: flex;
            gap: 14px;
            padding: 22px 22px 16px 22px;
            align-items: flex-start;
        }

        .profile-card-avatar {
            width: 72px;
            height: 72px;
            min-width: 72px;
            border-radius: 8px;
            background-color: #2d2d2d;
            border: 1px solid #444;
            background-size: cover;
            background-position: center;
        }

        .profile-card-meta {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            padding-top: 2px;
            min-width: 0;
        }

        .profile-card-name {
            font-size: 17px;
            font-weight: 400;
            color: #ececec;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .profile-card-rank {
            font-size: 11px;
            font-weight: 400;
        }

        .profile-card-line {
            font-size: 12px;
            color: #888;
        }

        .profile-card-line b {
            color: #ccc;
        }

        .profile-card-contacts {
            margin: 0 22px 20px 22px;
            background: #242424;
            border: 1px solid #3a3a3a;
            border-radius: 6px;
            overflow: hidden;
        }

        .profile-contact-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid #333;
            font-size: 12px;
        }

        .profile-contact-row:last-child {
            border-bottom: none;
        }

        .profile-contact-label {
            color: #888;
            font-weight: 400;
        }

        .profile-contact-value {
            color: #ccc;
        }

        /* USER REVIEWS (Bewertungen im Profil) */
        .profile-reviews-section {
            margin: 0 22px 20px 22px;
        }

        .profile-reviews-label {
            color: #888;
            font-size: 11px;
            margin-bottom: 8px;
        }

        .review-color-picker {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
        }

        .review-choice-btn {
            padding: 6px 12px;
            background: transparent;
            border: 1px solid #444;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 400;
            transition: all 0.2s;
        }

        .review-choice-btn.positive { color: #6bbf6b; }
        .review-choice-btn.neutral { color: #999; }
        .review-choice-btn.negative { color: #d96b6b; }

        .review-choice-btn.positive:hover { border-color: #3ddc5c; }
        .review-choice-btn.neutral:hover { border-color: #999; }
        .review-choice-btn.negative:hover { border-color: #ff3b3b; }

        .review-choice-btn.selected.positive { background: rgba(61, 220, 92, 0.12); border-color: #3ddc5c; color: #3ddc5c; }
        .review-choice-btn.selected.neutral { background: rgba(153, 153, 153, 0.12); border-color: #999; color: #ccc; }
        .review-choice-btn.selected.negative { background: rgba(255, 59, 59, 0.12); border-color: #ff3b3b; color: #ff3b3b; }

        .review-comment-input {
            width: 100%;
            padding: 8px 10px;
            background: #2d2d2d;
            border: 1px solid #444;
            border-radius: 4px;
            color: #e0e0e0;
            font-size: 12px;
            font-family: inherit;
            resize: vertical;
            min-height: 44px;
            margin-bottom: 8px;
        }

        .review-comment-input:focus {
            outline: none;
            border-color: #666;
        }

        .review-submit-btn {
            padding: 7px 12px;
            background: transparent;
            color: #666;
            border: 1px solid #444;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 400;
            transition: all 0.2s;
        }

        .review-submit-btn:hover { color: #999; border-color: #666; }
        .review-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

        .review-list {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 200px;
            overflow-y: auto;
        }

        .review-item {
            display: flex;
            gap: 8px;
            padding: 8px 10px;
            background: #242424;
            border: 1px solid #3a3a3a;
            border-radius: 4px;
            align-items: flex-start;
        }

        .review-item-dot {
            width: 9px;
            height: 9px;
            min-width: 9px;
            border-radius: 50%;
            margin-top: 4px;
        }

        .review-item-dot.green { background: #3ddc5c; }
        .review-item-dot.gray { background: #999; }
        .review-item-dot.red { background: #ff3b3b; }

        .review-item-body { flex: 1; min-width: 0; }

        .review-item-text {
            color: #ccc;
            font-size: 12px;
            line-height: 1.4;
            word-break: break-word;
        }

        .review-item-meta {
            color: #666;
            font-size: 10px;
            margin-top: 3px;
        }

        .review-item-author {
            color: #888;
            cursor: pointer;
        }

        .review-item-author:hover { color: #ccc; }

        .review-item-delete {
            background: transparent;
            border: none;
            color: #555;
            cursor: pointer;
            font-size: 12px;
            padding: 2px 4px;
            transition: color 0.2s;
        }

        .review-item-delete:hover { color: #ff5c5c; }

        .review-empty {
            color: #666;
            font-size: 12px;
            text-align: center;
            padding: 8px 0;
        }

        .account-close-btn {
            padding: 10px 12px;
            background: transparent;
            color: #666;
            border: none;
            border-radius: 0;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            font-weight: 400;
        }

        .account-close-btn:hover {
            color: #999;
        }

        .account-save-btn {
            padding: 10px 12px;
            background: transparent;
            color: #666;
            border: none;
            border-radius: 0;
            cursor: pointer;
            font-size: 13px;
            font-weight: 400;
            transition: all 0.2s;
        }

        .account-save-btn:hover {
            color: #999;
        }

        /* IMAGE MODAL */
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 200;
            align-items: center;
            justify-content: center;
        }

        .image-modal.active {
            display: flex;
        }

        .image-modal img {
            max-width: 90vw;
            max-height: 90vh;
            border-radius: 4px;
        }

        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #2d2d2d;
        }

        ::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
