/* === Design Tokens === */
:root {
    --bg-base:       #0a0a14;
    --bg-surface:    #111120;
    --bg-elevated:   #191929;
    --bg-input:      #0d0d1e;
    --bg-hover:      rgba(255,255,255,0.04);
    --accent:        #e94560;
    --accent-hover:  #c73652;
    --accent-glow:   rgba(233,69,96,0.2);
    --accent-2:      #f5a623;
    --vip-color:     #a855f7;
    --admin-color:   #f43f5e;
    --mod-color:     #38bdf8;
    --user-color:    #818cf8;
    --guest-color:   #64748b;
    --gem-color:     #fbbf24;
    --success:       #22c55e;
    --text:          #e2e8f0;
    --text-muted:    #64748b;
    --text-soft:     #94a3b8;
    --border:        rgba(148,163,184,0.08);
    --border-strong: rgba(148,163,184,0.15);
    --radius:        10px;
    --radius-sm:     6px;
    --radius-lg:     16px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
    --shadow:        0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
    --transition:    0.18s ease;
    --header-h:      54px;

    /* Legacy aliases für ältere Komponenten */
    --bg-primary:    var(--bg-base);
    --bg-secondary:  var(--bg-surface);
    --bg-tertiary:   var(--bg-elevated);
    --msg-me-bg:     rgba(56,189,248,0.07);
    --msg-kiss-bg:   rgba(233,69,96,0.07);
    --msg-sys-bg:    rgba(255,255,255,0.04);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.page-chat { overflow: hidden; }
body.page-chat .site-footer { display: none; }

a { color: var(--user-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, textarea, select {
    font-family: inherit;
    font-size: 0.93rem;
    background: var(--bg-input);
    color: var(--text);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.55rem 0.8rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
select option { background: var(--bg-surface); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.35); }

/* === Header === */
.site-header {
    height: var(--header-h);
    background: rgba(10,10,20,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--text); }
.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.nav-avatar-placeholder { font-size: 1.15rem; }
.nav-uname-text { font-weight: 600; font-size: 0.9rem; }
.nav-btn {
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-soft);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.nav-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); }
.nav-register {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.nav-register:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.nav-logout { color: var(--text-muted); }
.nav-vip { color: var(--vip-color); border-color: rgba(168,85,247,0.3); }
.nav-vip:hover { background: rgba(168,85,247,0.15); color: var(--vip-color); }
.ghost-toggle { font-size: 1.1rem; padding: 0.3rem 0.5rem; }
.pm-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 17px;
    text-align: center;
    line-height: 17px;
}
.hamburger { display: none; font-size: 1.3rem; color: var(--text-soft); padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); }
.hamburger:hover { background: var(--bg-hover); color: var(--text); }

/* === Mobile Menu === */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem;
}
.mobile-menu.open { display: flex; }
body.page-chat .mobile-menu.open {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 400;
    box-shadow: var(--shadow);
}
.mobile-menu a {
    padding: 0.65rem 1rem;
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}
.mobile-menu a:hover { background: var(--bg-hover); color: var(--text); }

/* === Main Wrapper === */
.site-main { flex: 1; display: flex; overflow: hidden; }

/* === Chat Layout - Desktop === */
.chat-layout {
    display: grid;
    grid-template-columns: 210px 1fr 190px;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow: hidden;
}

/* === Sidebars === */
.rooms-sidebar, .users-sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.users-sidebar { border-right: none; border-left: 1px solid var(--border); }

.sidebar-title {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.room-list, .users-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0.5rem;
}
.room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-bottom: 1px;
    gap: 0.5rem;
}
.room-item:hover { background: var(--bg-hover); color: var(--text); }
.room-item.active {
    background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(233,69,96,0.1));
    color: var(--text);
    font-weight: 600;
    border: 1px solid rgba(233,69,96,0.2);
}
.room-name { flex: 1; }
.room-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
    color: var(--text-muted);
}
.room-item.active .room-count { background: rgba(233,69,96,0.3); color: var(--accent); }

.guest-hint { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

/* Online Users */
.user-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.83rem;
    margin-bottom: 1px;
}
.user-item:hover { background: var(--bg-hover); }
.user-item.invisible-user { opacity: 0.45; }
.online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 4px #22c55e;
}
.user-avatar-sm {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--border-strong);
}
.user-name-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    min-width: 0;
}
.user-item-loading { padding: 0.75rem; color: var(--text-muted); font-size: 0.82rem; }

/* === Chat Main === */
.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background: var(--bg-base);
}
.chat-topbar {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-room-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
    scroll-behavior: smooth;
}

/* === Messages - Discord-style === */
.msg {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    line-height: 1.55;
    word-break: break-word;
    font-size: 0.9rem;
    transition: background var(--transition);
    position: relative;
}
.msg:hover { background: var(--bg-hover); }
.msg-time {
    color: var(--text-muted);
    font-size: 0.73rem;
    margin-right: 0.45rem;
    font-variant-numeric: tabular-nums;
}
.msg-uname {
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--transition);
    font-size: 0.88rem;
}
.msg-uname:hover { filter: brightness(1.25); text-decoration: underline; }
.msg-text { color: var(--text); }

.uname-admin     { color: var(--admin-color); }
.uname-moderator { color: var(--mod-color); }
.uname-vip       { color: var(--vip-color); }
.uname-user      { color: var(--user-color); }
.uname-guest     { color: var(--guest-color); }

.msg-me {
    background: rgba(56,189,248,0.06);
    border-left: 2px solid var(--mod-color);
    padding-left: 0.75rem;
    font-style: italic;
    color: var(--text-soft);
}
.msg-kiss {
    background: rgba(233,69,96,0.06);
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}
.msg-system {
    background: rgba(255,255,255,0.03);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-radius: var(--radius);
    padding: 0.3rem 1rem;
    margin: 0.25rem 0;
}
.msg-deleted { opacity: 0.4; font-style: italic; }
.kiss-msg    { color: var(--accent); font-weight: 500; }
.admin-rainbow-text { }
.rainbow-name { }
.gem-badge   { font-size: 0.75rem; }

/* === Badges === */
.role-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    vertical-align: middle;
}
.badge-admin { background: rgba(244,63,94,0.2); color: var(--admin-color); border: 1px solid rgba(244,63,94,0.3); }
.badge-mod   { background: rgba(56,189,248,0.15); color: var(--mod-color); border: 1px solid rgba(56,189,248,0.25); }
.badge-vip   { background: rgba(168,85,247,0.15); color: var(--vip-color); border: 1px solid rgba(168,85,247,0.25); }

/* === Input Area === */
.chat-input-wrap {
    flex-shrink: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    position: relative;
}
.chat-input {
    flex: 1;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    border-radius: var(--radius);
    padding: 0.55rem 0.75rem;
    line-height: 1.45;
    background: var(--bg-input);
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.chat-input:focus {
    border-color: rgba(233,69,96,0.5);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}
.chat-input::placeholder { color: var(--text-muted); }
.btn-send {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-send:hover { background: var(--accent-hover); transform: scale(1.04); }
.btn-send:active { transform: scale(0.97); }
.btn-icon {
    font-size: 1.2rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    flex-shrink: 0;
    color: var(--text-muted);
    height: 40px;
    display: flex;
    align-items: center;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text); }
.input-hint {
    padding: 0 0.75rem 0.35rem;
    font-size: 0.75rem;
    color: var(--accent);
    min-height: 1.1em;
}
.guest-bar {
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* === Emoji Picker === */
.emoji-picker-wrap { position: relative; flex-shrink: 0; }
.emoji-picker {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    width: 272px;
    max-height: 210px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}
.emoji-btn {
    font-size: 1.15rem;
    padding: 4px;
    border-radius: 5px;
    text-align: center;
    transition: background var(--transition);
    cursor: pointer;
}
.emoji-btn:hover { background: var(--bg-hover); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-soft); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); }
.btn-danger    { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-success   { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.btn-success:hover { background: rgba(34,197,94,0.25); }
.btn-full  { width: 100%; }
.btn-sm    { padding: 0.28rem 0.65rem; font-size: 0.78rem; }

/* === Auth === */
.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(233,69,96,0.07) 0%, transparent 60%);
}
.auth-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.auth-box-wide { max-width: 600px; }
.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text), var(--text-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-form    { display: flex; flex-direction: column; gap: 1rem; }
.auth-switch  { margin-top: 1rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.form-group   { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === Alerts === */
.alert {
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}
.alert-error   { background: rgba(244,63,94,0.12); border-color: rgba(244,63,94,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac; }
.alert-info    { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); color: #7dd3fc; }

/* === PM Panel === */
.pm-panel {
    position: fixed;
    bottom: 0;
    right: 1rem;
    width: 340px;
    max-height: 470px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    z-index: 300;
    box-shadow: var(--shadow-lg);
}
.pm-header {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: move;
    flex-shrink: 0;
}
.pm-close { font-size: 1rem; color: var(--text-muted); }
.pm-close:hover { color: var(--accent); }
.pm-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.pm-inbox { flex: 1; overflow-y: auto; }
.pm-inbox-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    font-size: 0.85rem;
}
.pm-inbox-item:hover { background: var(--bg-hover); }
.pm-unread-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    min-width: 18px;
    height: 18px;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}
.pm-chat { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pm-back { padding: 0.5rem 1rem; color: var(--text-muted); font-size: 0.82rem; text-align: left; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.pm-back:hover { color: var(--text); }
.pm-messages { flex: 1; overflow-y: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.pm-msg-out { text-align: right; }
.pm-msg-in  { text-align: left; }
.pm-bubble {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    max-width: 82%;
    word-break: break-word;
    font-size: 0.85rem;
    line-height: 1.4;
}
.pm-msg-out .pm-bubble { background: var(--accent); color: #fff; border-radius: var(--radius) var(--radius-sm) var(--radius-sm) var(--radius); }
.pm-msg-in  .pm-bubble { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm); }
.pm-send-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.pm-input { flex: 1; padding: 0.4rem 0.7rem; font-size: 0.85rem; min-height: unset; }

/* === Profile === */
.profile-wrap { max-width: 780px; margin: 2rem auto; padding: 0 1rem 3rem; }
.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.profile-header {
    background: linear-gradient(135deg, rgba(233,69,96,0.12) 0%, rgba(10,10,20,0) 60%), var(--bg-elevated);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.avatar-wrap { flex-shrink: 0; }
.profile-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
}
.profile-avatar-placeholder {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}
.profile-info { flex: 1; }
.profile-username { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.profile-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; }
.profile-body { padding: 1.5rem 2rem; }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.stat-val   { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.profile-about { margin-top: 1rem; }
.profile-about h4 { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem; }
.profile-about p  { font-size: 0.9rem; line-height: 1.65; color: var(--text-soft); }
.profile-actions  { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* === Admin Panel === */
.admin-wrap  { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }
.admin-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--accent); }
.tabs-nav {
    display: flex;
    gap: 0.15rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.tab-btn {
    padding: 0.55rem 1rem;
    background: none;
    color: var(--text-muted);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); background: var(--bg-hover); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--bg-surface); color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:hover td { background: var(--bg-hover); }
.admin-table .actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.admin-search { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: center; }
.admin-search input { max-width: 280px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-widget .val { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat-widget .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* === VIP Page === */
.vip-wrap { max-width: 680px; margin: 3rem auto; padding: 0 1rem; text-align: center; }
.vip-card {
    background: var(--bg-surface);
    border: 1.5px solid rgba(168,85,247,0.4);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 0 40px rgba(168,85,247,0.15);
}
.vip-title { font-size: 1.8rem; font-weight: 700; color: var(--vip-color); margin-bottom: 1rem; }
.vip-price { font-size: 2.4rem; font-weight: 900; color: var(--text); margin: 1rem 0; }
.vip-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.vip-features { list-style: none; margin: 1.5rem 0; text-align: left; display: inline-block; }
.vip-features li { padding: 0.35rem 0; color: var(--text-muted); font-size: 0.92rem; }
.vip-features li::before { content: '✅ '; }
.paypal-btn-wrap { margin-top: 1.5rem; }

/* === Static Pages === */
.static-wrap { max-width: 820px; margin: 2rem auto; padding: 0 1rem 3rem; line-height: 1.75; }
.static-wrap h1 { font-size: 1.7rem; color: var(--accent); margin-bottom: 0.4rem; }
.static-wrap h2 { font-size: 1.05rem; color: var(--accent-2); margin: 2rem 0 0.5rem; font-weight: 600; }
.static-wrap p, .static-wrap li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.static-wrap ul { padding-left: 1.5rem; }
.static-wrap a  { color: var(--user-color); }
.static-date    { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; display: block; }

/* === Hilfe-Seite === */
.help-wrap { max-width: 900px; }
.help-search-wrap { margin-bottom: 2rem; }
.help-search {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.help-section { margin-bottom: 2.5rem; }
.help-intro { color: var(--text-muted); font-size: 0.87rem; margin-bottom: 1rem; }
.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
}
.cmd-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color var(--transition), background var(--transition);
}
.cmd-card:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.cmd-mod  { border-left: 3px solid rgba(56,189,248,0.4); }
.cmd-admin{ border-left: 3px solid rgba(244,63,94,0.4); }
.cmd-name {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}
.cmd-name em { color: var(--text-muted); font-style: normal; font-weight: 400; }
.cmd-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.cmd-desc code { background: var(--bg-input); border-radius: 3px; padding: 1px 4px; color: var(--text-soft); font-size: 0.8rem; }
.help-tip {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(233,69,96,0.06);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    border-left: 2px solid var(--accent);
}
.help-tip-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
@media (max-width: 600px) {
    .cmd-grid { grid-template-columns: 1fr; }
    .help-search { max-width: 100%; }
}

/* === Footer === */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE – Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .chat-layout { grid-template-columns: 185px 1fr 175px; }
}

/* ============================================================
   RESPONSIVE – Mobile  ≤ 768px
   Position: fixed → 100% sichere Lösung für alle vh-Probleme
   ============================================================ */
@media (max-width: 768px) {

    /* Header bleibt sticky */
    .site-header { position: sticky; top: 0; z-index: 100; }

    /* Chat-Layout nimmt exakt den sichtbaren Bereich ein */
    .chat-layout {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;          /* überschreibt alle dvh-Berechnungen */
        display: flex;
        flex-direction: column;
        overflow: hidden;
        grid-template-columns: unset;
    }

    /* Räume: schmale horizontale Tab-Leiste oben */
    .rooms-sidebar {
        flex-direction: row;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        height: 46px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        background: var(--bg-surface);
    }
    .rooms-sidebar::-webkit-scrollbar { display: none; }
    .rooms-sidebar .sidebar-title { display: none; }
    .rooms-sidebar .guest-hint { display: none; } /* Buttons sind schon im Hamburger-Menü */

    .room-list {
        display: flex;
        flex-direction: row;
        padding: 0.3rem 0.4rem;
        gap: 0.25rem;
        align-items: center;
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
    .room-list::-webkit-scrollbar { display: none; }

    .room-item {
        flex-direction: row;
        padding: 0.3rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin-bottom: 0;
        font-size: 0.82rem;
        border-radius: 99px;
        border: 1px solid var(--border);
        background: transparent;
    }
    .room-item:hover { background: var(--bg-hover); }
    .room-item.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        font-weight: 600;
    }
    .room-item.active .room-count { background: rgba(255,255,255,0.25); color: #fff; }
    .room-count { display: none; }

    /* Chat-Main füllt restlichen Platz */
    .chat-main {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* Online-Sidebar: versteckt, nur als Overlay */
    .users-sidebar { display: none; }
    .users-sidebar.mobile-open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: 200px;
        height: calc(100% - var(--header-h));
        z-index: 200;
        box-shadow: -4px 0 24px rgba(0,0,0,0.6);
    }

    /* Hamburger sichtbar */
    .hamburger { display: block; }

    /* Header-Nav: nur wichtige Buttons */
    .header-nav .nav-btn:not(.nav-register):not(.pm-toggle):not(.ghost-toggle) {
        display: none;
    }

    /* PM-Panel: volle Breite */
    .pm-panel { width: 100%; right: 0; left: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

    /* Formulare */
    .form-row { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .admin-table { font-size: 0.78rem; }
    .logo-text { display: none; }
    .auth-wrap { align-items: flex-start; padding-top: 1.5rem; }
}

@media (max-width: 480px) {
    .auth-box { padding: 1.25rem; border-radius: var(--radius); }
    .chat-input-area { padding: 0.5rem; }
    .messages-container { padding: 0.6rem 0.5rem; }
    .admin-wrap { padding: 1rem 0.5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes rainbow {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Message entrance */
.msg { animation: msgIn 0.18s ease both; }

/* Online dot pulse */
.online-dot { animation: pulse-dot 2.5s ease infinite; }

/* Sende-Button Glow beim Hover */
.btn-send:hover { box-shadow: 0 0 14px var(--accent-glow); }

/* Nav-Avatar Border Glow */
.nav-avatar:hover { border-color: var(--accent-2); transition: border-color 0.2s; }

/* Emoji hover scale */
.emoji-btn:hover { transform: scale(1.25); background: var(--bg-hover); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
body.page-landing { overflow-y: auto; }
body.page-landing .site-main {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hero */
.landing-hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, rgba(233,69,96,0.14) 0%, transparent 65%),
                radial-gradient(ellipse at 80% 70%, rgba(168,85,247,0.08) 0%, transparent 50%),
                var(--bg-base);
    padding: 4rem 1.5rem 5rem;
}

.landing-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.landing-particles canvas { width: 100%; height: 100%; }

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    animation: floatIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

.landing-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    background: rgba(233,69,96,0.12);
    border: 1px solid rgba(233,69,96,0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.5s 0.1s ease both;
}

.landing-title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.25rem;
    animation: fadeSlideUp 0.5s 0.2s ease both;
}
.landing-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--vip-color) 60%, var(--accent-2) 100%);
    background-size: 200% auto;
    animation: fadeSlideUp 0.5s 0.2s ease both, shimmer 4s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto 2rem;
    animation: fadeSlideUp 0.5s 0.3s ease both;
}

.landing-cta {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.5s 0.4s ease both;
}
.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-landing-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233,69,96,0.4);
}
.btn-landing-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-landing-secondary:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--accent);
}

.landing-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: fadeSlideUp 0.5s 0.5s ease both;
}
.landing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.stat-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Features Section */
.landing-features {
    padding: 5rem 1.5rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
    animation: floatIn 0.6s ease both;
}
.feature-card:hover {
    border-color: rgba(233,69,96,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }
.feature-card code {
    background: var(--bg-input);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.82rem;
    color: var(--accent);
}

/* Chat Preview */
.landing-preview {
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
    background: var(--bg-base);
}
.preview-window {
    width: 100%;
    max-width: 620px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: floatIn 0.7s ease both;
}
.preview-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.preview-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.preview-dot.red    { background: #f43f5e; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green  { background: #22c55e; }
.preview-title { font-size: 0.82rem; color: var(--text-muted); margin-left: 0.5rem; }
.preview-messages {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 180px;
}
.preview-msg { font-size: 0.88rem; padding: 0.2rem 0.4rem; border-radius: 5px; line-height: 1.55; }
.preview-msg:hover { background: var(--bg-hover); }
.preview-msg-system { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin: 4px 0; }
.preview-time { color: var(--text-muted); font-size: 0.72rem; margin-right: 0.4rem; }
.preview-uname { font-weight: 600; font-size: 0.86rem; }
.preview-text { color: var(--text); }
.preview-input {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-input);
    font-size: 0.88rem;
    color: var(--text-muted);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.preview-cursor { animation: cursor-blink 1s step-end infinite; margin-left: 1px; color: var(--accent); }

/* Bottom CTA */
.landing-bottom-cta {
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border);
}
.landing-bottom-cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.landing-bottom-cta p  { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 1rem; }

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 2.5rem 1.25rem 3rem;
    }
    .landing-badge { font-size: 0.72rem; }
    .landing-title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
    .landing-subtitle { font-size: 0.92rem; }
    .landing-stats { gap: 1rem; }
    .stat-num { font-size: 1.3rem; }
    .landing-cta { flex-direction: column; align-items: stretch; }
    .btn-landing-primary, .btn-landing-secondary { width: 100%; justify-content: center; padding: 0.9rem 1rem; }
    .landing-features { padding: 3rem 1rem; }
    .features-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .feature-card { padding: 1.1rem; }
    .landing-preview { padding: 2.5rem 1rem; }
    .preview-messages { min-height: 140px; }
    .preview-msg { font-size: 0.82rem; }
    .landing-bottom-cta { padding: 3rem 1.25rem; }
    .landing-bottom-cta h2 { font-size: 1.5rem; }
    /* Partikel auf Mobile deaktivieren (Performance) */
    .landing-particles { display: none; }
}
@media (max-width: 400px) {
    .landing-title { font-size: 1.5rem; }
    .landing-stats { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .landing-stat { min-width: 80px; }
}

/* === @-Mention Autocomplete === */
.mention-dropdown {
    position: fixed;
    z-index: 9998;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: ctxIn 0.12s ease both;
    max-width: 260px;
}
.mention-item {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    color: var(--user-color);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition);
}
.mention-item:hover { background: var(--bg-hover); color: var(--accent); }

/* AFK */
.afk-dot { background: #94a3b8 !important; box-shadow: none !important; animation: none !important; }
.afk-tag { font-size: 0.78rem; opacity: 0.8; cursor: default; }

/* Profil AFK-Banner */
.profile-afk-banner {
    background: rgba(148,163,184,0.1);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ============================================================
   NUTZER-KONTEXT-MENÜ
   ============================================================ */
.user-ctx-menu {
    position: fixed;
    z-index: 9999;
    width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: ctxIn 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ctxIn {
    from { opacity: 0; transform: scale(0.93) translateY(-6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 600px) {
    .user-ctx-menu {
        animation: ctxSlideUp 0.2s cubic-bezier(0.22,1,0.36,1) both;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    }
    @keyframes ctxSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
.ctx-header {
    padding: 0.65rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}
.ctx-uname {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.ctx-body {
    padding: 0.35rem 0;
    max-height: 360px;
    overflow-y: auto;
}
.ctx-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    color: var(--text-soft);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    border-radius: 0;
}
.ctx-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}
.ctx-btn:active {
    background: rgba(233,69,96,0.1);
    color: var(--accent);
}
.ctx-sep {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0;
}
