@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#070d1b;--panel:#0c172b;--line:rgba(91,151,222,.18);--text:#edf4ff;--muted:#8da4c2;--blue:#39a7ff;font-family:Inter,Segoe UI,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(ellipse at 78% 8%,rgba(26,105,196,.22),transparent 34%),var(--bg)}
a{color:#62c8ff;text-decoration:none}a:hover{color:#b8eaff}
.top{min-height:82px;padding:15px clamp(18px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:rgba(7,14,29,.9)}
.brand{display:flex;align-items:center;gap:13px;color:var(--text);font-weight:900;letter-spacing:3px;font-size:15px}.brand small{display:block;color:#79a8d8;font-size:9px;letter-spacing:3px;margin-top:5px}
.logo{display:grid;place-items:center;width:48px;height:48px;border:1px solid #2c8fff80;border-radius:14px;background:linear-gradient(145deg,#102d50,#0a1930);color:#75caff;font-size:13px}
.logout,.danger{background:#10233e;border:1px solid #31577f;color:#dcecff;padding:10px 17px;border-radius:10px;cursor:pointer;font:600 12px Inter,Arial}
.dash{width:min(1440px,100%);margin:0 auto;padding:34px clamp(18px,3vw,42px) 54px;display:grid;grid-template-columns:235px minmax(0,1fr);gap:25px}
.sidebar{height:max-content;position:sticky;top:24px;background:linear-gradient(160deg,#0f1f37,#091426);border:1px solid var(--line);border-radius:17px;padding:18px 13px}
.side-title{font-size:10px;letter-spacing:2px;font-weight:800;color:#6f91b9;margin:2px 10px 14px}.sidebar a{display:flex;align-items:center;min-height:40px;padding:10px 12px;border-radius:9px;color:#9db2ce;font-size:12px;font-weight:600;margin:4px 0}.sidebar a.active,.sidebar a:hover{color:#eff8ff;background:rgba(27,126,218,.18);box-shadow:inset 3px 0 0 var(--blue)}
.content{min-width:0}.eyebrow{color:#58baff;letter-spacing:3px;font-size:10px;font-weight:900}.dash-title{font-size:clamp(38px,5vw,58px);line-height:1.05;letter-spacing:-2.8px;margin:13px 0 10px;font-weight:900}.muted{color:var(--muted);font-size:13px;line-height:1.7}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0}.stat,.table-panel{background:linear-gradient(145deg,rgba(16,32,57,.96),rgba(10,22,41,.96));border:1px solid var(--line);border-radius:16px;padding:21px;box-shadow:0 16px 42px #0002;min-width:0}.stat span{display:block;color:#91a8c6;font-size:12px;font-weight:600}.stat strong{display:block;font-size:35px;margin-top:12px;color:#6bc4ff}.stat .server-name{font-size:22px;color:#edf4ff}
.table-panel{padding:22px;margin:18px 0;scroll-margin-top:18px}.table-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.table-head h2{font-size:17px;margin:0;font-weight:800}.table-head span{color:#7893b4;font-size:11px}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:650px}#recent{overflow-x:auto}th,td{text-align:left;padding:13px;border-bottom:1px solid rgba(91,135,184,.14);white-space:nowrap}th{color:#72c5ff;font-size:10px;text-transform:uppercase;letter-spacing:1px}td{color:#c5d3e6;font-size:11px}
.settings-panel form{width:100%}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px}
fieldset{border:1px solid rgba(91,151,222,.2);border-radius:12px;padding:16px;min-width:0;background:rgba(4,13,27,.26)}legend{padding:0 7px;color:#7bcaff;font-weight:800;font-size:13px}
label{display:flex;flex-direction:column;gap:7px;color:#b7c9df;font-size:12px;font-weight:600;margin:11px 0}
input:not([type=checkbox]),textarea,select{width:100%;min-width:0;background:#081427;border:1px solid #294463;border-radius:8px;color:#eaf4ff;padding:11px 12px;font:13px Inter,Arial;outline:none}
input:focus,textarea:focus,select:focus{border-color:#39a7ff;box-shadow:0 0 0 3px #39a7ff20}
textarea{resize:vertical;line-height:1.5}.switch-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;margin:0;border-bottom:1px solid rgba(91,135,184,.12)}.switch-row span{display:flex;flex-direction:column;gap:4px}.switch-row small,fieldset small{color:#8099b8;font-size:11px;line-height:1.5}.switch-row input{width:19px;height:19px;accent-color:#2997ef;flex:0 0 auto}
.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.primary{border:0;border-radius:9px;padding:12px 17px;background:linear-gradient(100deg,#0878ed,#2363d7);color:#fff;font:700 12px Inter;cursor:pointer}.form-message{font-size:12px;color:#80d7a8}.form-message.error{color:#ff8d9a}
.custom-form{max-width:780px}.custom-list{margin-top:20px}.custom-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;margin:8px 0;background:#081427}.custom-item div{display:flex;flex-direction:column;gap:4px;min-width:0}.custom-item strong{color:#e7f3ff}.custom-item small{color:#8099b8;font-size:11px;overflow-wrap:anywhere}.danger{border-color:#743e55;background:#321b2b;color:#ffb5c0;flex:0 0 auto}.danger:hover{background:#512238}
footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#637b99;font-size:11px;padding:20px clamp(18px,4vw,64px);border-top:1px solid var(--line)}
@media(max-width:900px){.dash{grid-template-columns:1fr;gap:18px}.sidebar{position:static;display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:12px}.side-title{width:100%;margin:2px 8px 5px}.sidebar a{margin:0;min-height:36px}}
@media(max-width:650px){.top{min-height:70px;padding:12px 16px}.brand{font-size:12px;letter-spacing:2px}.logo{width:42px;height:42px}.dash{padding:22px 14px 35px}.cards,.feature-grid{grid-template-columns:1fr;gap:11px}.stat{padding:17px}.table-panel{padding:15px}.table-head{align-items:flex-start;flex-direction:column}.custom-item{align-items:flex-start}.logout{padding:9px 12px}footer{padding:17px;flex-direction:column}}

.inbox-layout{display:grid;grid-template-columns:minmax(220px, .75fr) minmax(0,1.5fr);gap:14px;min-height:430px}
.dm-list,.dm-chat{background:#081427;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}
.dm-list{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}
.dm-conversation{display:flex;flex-direction:column;gap:5px;text-align:left;padding:12px;background:#101f35;border:1px solid #294463;border-radius:9px;color:var(--text);cursor:pointer}
.dm-conversation.selected{border-color:var(--blue);background:#142d4c}
.dm-conversation small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.dm-chat{display:flex;flex-direction:column;gap:10px}
.dm-title{font-weight:800;padding:5px 2px}
.dm-messages{display:flex;flex-direction:column;gap:10px;flex:1;min-height:250px;max-height:390px;overflow:auto;padding:8px}
.dm-bubble{max-width:85%;padding:10px 12px;border-radius:12px;overflow-wrap:anywhere}
.dm-bubble.in{align-self:flex-start;background:#142844}
.dm-bubble.out{align-self:flex-end;background:#104b43}
.dm-bubble small{font-size:10px;color:#9bb2cc}
.dm-bubble p{margin:5px 0 0;white-space:pre-wrap;font-size:13px}
.dm-reply{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:end}
.dm-reply textarea{grid-column:1/-1}
@media(max-width:700px){.inbox-layout{grid-template-columns:1fr}.dm-list{max-height:220px}.dm-reply{grid-template-columns:1fr 1fr}.dm-reply textarea{grid-column:1/-1}}

/* v2.6 dashboard refinement */
:root{--txc-blue:#238cff}
html{scroll-behavior:smooth}
.top{position:sticky;top:0;z-index:20;backdrop-filter:blur(18px);background:rgba(7,14,29,.92)}
.brand{min-width:0}
.sidebar{position:sticky;top:96px;max-height:calc(100vh - 112px);overflow:auto}
.sidebar a{transition:background .18s ease,border-color .18s ease,transform .18s ease}
.sidebar a:hover{transform:translateX(2px)}
.stat,.table-panel,.feature-grid fieldset{box-shadow:0 14px 38px rgba(0,0,0,.13)}
button,.primary,.logout{transition:filter .18s ease,transform .18s ease,border-color .18s ease}
button:hover,.primary:hover{filter:brightness(1.08)}
@media(max-width:800px){.top{padding:12px 16px}.dash{display:block}.sidebar{position:relative;top:auto;max-height:none;display:flex;overflow-x:auto;gap:8px;white-space:nowrap}.sidebar a{flex:0 0 auto}.content{min-width:0;padding:18px 14px}.cards{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.cards{grid-template-columns:1fr}.top{gap:10px}.brand small{font-size:8px}}


/* v3.0 – übersichtlicheres Moderations-Dashboard */
:root{--bg:#070b14;--panel:#0d1626;--line:rgba(132,169,216,.14);--muted:#91a4bf;--blue:#48b4ff;--text:#edf5ff}
body{background:radial-gradient(ellipse at 80% 0%,rgba(35,126,214,.16),transparent 38%),linear-gradient(180deg,#080e1a 0%,#070b14 65%);background-attachment:fixed}
.top{min-height:72px;padding:12px clamp(18px,4vw,58px);border-bottom:1px solid var(--line);box-shadow:0 8px 28px #0002}
.logo{width:44px;height:44px;border-radius:13px}
.dash{width:min(1540px,100%);grid-template-columns:220px minmax(0,1fr);gap:28px;padding-top:30px}
.sidebar{top:92px;padding:15px 11px;border-radius:15px;background:rgba(13,23,40,.88);backdrop-filter:blur(14px)}
.sidebar a{min-height:39px;padding:9px 12px;font-size:12px;border:1px solid transparent}
.sidebar a.active{background:linear-gradient(90deg,rgba(37,143,230,.2),rgba(37,143,230,.07));border-color:rgba(72,180,255,.12);box-shadow:inset 3px 0 0 var(--blue)}
.eyebrow{font-size:10px;letter-spacing:2.6px}
.dash-title{font-size:clamp(36px,4vw,52px);letter-spacing:-2px;margin:10px 0 8px}
#welcome{margin:0;color:#91a7c2}
.cards{gap:13px;margin:22px 0 20px}
.stat,.table-panel{background:linear-gradient(145deg,rgba(15,27,46,.97),rgba(10,19,33,.97));border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.stat{padding:18px 20px;min-height:98px}
.stat span{font-size:11px;letter-spacing:.15px}
.stat strong{font-size:32px;margin-top:9px;color:#69c5ff}
.stat .server-name{font-size:20px;line-height:1.35;overflow-wrap:anywhere}
.table-panel{padding:20px;margin:16px 0;scroll-margin-top:90px}
.table-head{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(132,169,216,.1)}
.table-head h2{font-size:15px;letter-spacing:.1px}
.table-head span{font-size:10px}
.feature-grid{gap:12px;margin-top:13px}
fieldset{padding:14px 15px;background:rgba(5,13,24,.38);border-color:rgba(132,169,216,.13);border-radius:11px}
legend{font-size:12px}
label{font-size:11px;margin:9px 0}
input:not([type=checkbox]),textarea,select{padding:10px 11px;border-radius:8px;background:#080f1d;border-color:#263b56;font-size:12px}
.switch-row{padding:10px 0}
.primary{padding:11px 15px;border-radius:8px;background:linear-gradient(110deg,#168fe9,#286edb);box-shadow:0 5px 14px rgba(20,119,219,.16)}
.logout{padding:9px 14px;border-radius:8px}
.custom-item,.dm-list,.dm-chat{background:rgba(6,14,26,.68);border-color:var(--line)}
.custom-item{border-radius:9px}
#recent{border-radius:10px}
#recent:has(table){overflow-x:auto}
@media(max-width:900px){.dash{grid-template-columns:1fr;gap:14px}.sidebar{top:auto;position:relative;max-height:none;display:flex;flex-wrap:wrap}.side-title{width:100%}}
@media(max-width:650px){.dash{padding:18px 12px 30px}.cards{grid-template-columns:1fr 1fr}.stat{min-height:84px;padding:14px}.stat strong{font-size:27px}.stat .server-name{font-size:17px}.table-panel{padding:15px}.feature-grid{grid-template-columns:1fr}}
@media(max-width:420px){.cards{grid-template-columns:1fr}.top{padding:10px 12px}.brand{letter-spacing:1.5px}}

/* Ticket builder */
.ticket-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;padding:6px;background:rgba(255,255,255,.035);border:1px solid var(--border,rgba(130,170,220,.14));border-radius:14px}
.ticket-tab{border:0;background:transparent;color:var(--muted,#9fb1c8);padding:11px 16px;border-radius:10px;cursor:pointer;font:inherit}
.ticket-tab.active{background:#123d68;color:#d9efff;box-shadow:inset 0 0 0 1px rgba(80,180,255,.22)}
.ticket-pane{display:none;padding:8px 2px}.ticket-pane.active{display:block}
.ticket-builder-head,.ticket-category-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ticket-builder-head h3{margin-bottom:4px}.ticket-categories{display:grid;gap:16px;margin:16px 0}
.ticket-category-card{padding:20px;border:1px solid rgba(110,160,220,.2);border-radius:16px;background:rgba(7,20,38,.45)}
.ticket-category-title{padding-bottom:14px;border-bottom:1px solid rgba(130,170,220,.12);margin-bottom:16px}.ticket-category-title strong{font-size:17px}
.ticket-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ticket-category-grid label,.ticket-form-edit{display:flex;flex-direction:column;gap:7px}.ticket-category-grid .wide{grid-column:1/-1}
.ticket-category-grid input,.ticket-category-grid textarea,.ticket-form-edit textarea{width:100%;box-sizing:border-box;background:rgba(3,12,25,.72);border:1px solid rgba(115,160,220,.24);border-radius:9px;color:#e7f2ff;padding:11px;font:inherit}
.ticket-form-edit{margin-top:18px;padding-top:16px;border-top:1px solid rgba(130,170,220,.12)}.ticket-form-edit h4{margin:4px 0}.ticket-form-edit textarea{resize:vertical;min-height:80px}
.ticket-info{padding:20px;border:1px solid rgba(110,160,220,.2);border-radius:14px;background:rgba(7,20,38,.45)}
button.danger{border:1px solid rgba(255,90,110,.3);background:rgba(130,20,40,.2);color:#ff9aa8;border-radius:9px;padding:9px 12px;cursor:pointer}
@media(max-width:700px){.ticket-category-grid{grid-template-columns:1fr}.ticket-category-grid .wide{grid-column:auto}.ticket-tabs{display:grid;grid-template-columns:1fr 1fr}.ticket-tab{padding:10px 8px}}

/* Ticket builder refresh: category navigation and Galaxy-style form editor */
.txc-category-nav{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 18px}.txc-category-pill{border:1px solid rgba(110,170,230,.2);background:rgba(8,22,42,.72);color:var(--muted,#9fb1c8);border-radius:10px;padding:10px 14px;cursor:pointer;font:inherit}.txc-category-pill.active{background:linear-gradient(135deg,#103d69,#11578a);color:#eaf6ff;border-color:#39bdf8}.txc-editor-card{background:linear-gradient(145deg,rgba(12,29,51,.96),rgba(6,17,33,.96));border-color:rgba(80,160,230,.24)}.txc-eyebrow{display:block;font-size:10px;letter-spacing:.18em;color:#55c8ff;font-weight:800;margin-bottom:5px}.txc-form-builder{margin-top:24px;padding-top:20px;border-top:1px solid rgba(130,170,220,.15)}.txc-form-heading h3{margin:4px 0}.txc-form-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:6px;background:rgba(2,10,22,.55);border:1px solid rgba(130,170,220,.13);border-radius:12px;margin:16px 0}.txc-form-tab{flex:1;min-width:145px;border:0;border-radius:8px;padding:11px 13px;background:transparent;color:var(--muted,#9fb1c8);font:inherit;cursor:pointer}.txc-form-tab span{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:8px;border-radius:7px;background:rgba(120,160,210,.15);font-size:12px}.txc-form-tab.active{background:#123d68;color:#e7f5ff}.txc-field-card{padding:18px;margin:12px 0;border:1px solid rgba(110,160,220,.18);border-radius:13px;background:rgba(3,13,27,.52)}.txc-field-card>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.txc-field-card>header>div:first-child{display:flex;align-items:center;gap:10px}.txc-field-number{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:8px;background:#1476b7;color:white;font-weight:800}.txc-field-actions{display:flex;gap:5px}.txc-field-actions button{border:1px solid rgba(100,160,220,.2);background:rgba(15,40,68,.8);color:#8bcaff;border-radius:7px;padding:6px 10px;cursor:pointer}.txc-field-actions button:disabled{opacity:.3;cursor:not-allowed}.txc-field-card select{width:100%;box-sizing:border-box;background:rgba(3,12,25,.72);border:1px solid rgba(115,160,220,.24);border-radius:9px;color:#e7f2ff;padding:11px;font:inherit}.txc-check-label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important}.txc-options{margin-top:17px;padding:15px;border-radius:11px;background:rgba(255,255,255,.025);border:1px solid rgba(110,160,220,.13)}.txc-options-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.txc-option-row{display:grid;grid-template-columns:minmax(80px,.6fr) minmax(150px,1.2fr) minmax(150px,1.2fr) auto;gap:10px;align-items:end;padding:10px 0;border-top:1px solid rgba(130,170,220,.1)}.txc-option-row label{display:flex;flex-direction:column;gap:6px}.txc-option-row input{width:100%;box-sizing:border-box;background:rgba(3,12,25,.72);border:1px solid rgba(115,160,220,.24);border-radius:8px;color:#e7f2ff;padding:10px;font:inherit}.txc-empty-field{padding:25px;text-align:center;border:1px dashed rgba(110,160,220,.25);border-radius:12px;color:var(--muted,#9fb1c8)}
@media(max-width:760px){.txc-option-row{grid-template-columns:1fr 1fr}.txc-form-tab{min-width:100%;text-align:left}.txc-field-card>header{align-items:flex-start}}
