:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #020506; color: #f3f6f7; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: #020506 url('/admin-bg.png') center/cover fixed no-repeat; }
.backdrop { position: fixed; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.82), rgba(0,9,13,.68)), radial-gradient(circle at 78% 10%, rgba(0,220,255,.13), transparent 32%), radial-gradient(circle at 10% 75%, rgba(239,184,54,.11), transparent 30%); }
.shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 50px; }
.brand { display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand div { display: flex; align-items: baseline; gap: 13px; }
.brand span { color: #efbd45; font-size: 25px; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 0 18px rgba(239,189,69,.35); }
.brand strong, .eyebrow { color: #36e8ff; font-size: 9px; letter-spacing: .24em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ghost { padding: 9px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(0,0,0,.35); color: #c6cbd0; }
.auth-card { width: min(560px, 100%); margin: 7vh auto 0; text-align: center; }
.auth-card .lock, .auth-card .eyebrow, .auth-card h1, .auth-card #auth-copy { display: none; }
.auth-logo { width: min(450px, 92vw); height: auto; margin: 0 auto 26px; display: block; filter: drop-shadow(0 10px 34px rgba(0,0,0,.7)); }
.auth-logo { width: 150px; height: auto; margin: 0 auto 18px; display: block; filter: drop-shadow(0 8px 26px rgba(0,0,0,.65)); }
.lock { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 22px; border: 1px solid rgba(238,189,69,.45); border-radius: 18px; color: #3be9ff; background: rgba(0,0,0,.5); box-shadow: inset 0 0 18px rgba(0,218,255,.08); }
h1, h2, p { margin-top: 0; }
.auth-card h1 { font-size: 26px; }
.auth-card > p:not(.eyebrow):not(.error), .hero-row p, .panel-head p { color: #929ba1; line-height: 1.55; }
#auth-form { display: grid; gap: 12px; margin-top: 0; }
#auth-form input[type="password"] { min-height: 52px; border-radius: 13px; text-align: center; letter-spacing: .12em; }
input, select { min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; outline: none; background: rgba(0,0,0,.58); color: #f6f8f9; }
input:focus, select:focus { border-color: rgba(39,226,255,.62); box-shadow: 0 0 0 3px rgba(39,226,255,.08); }
#auth-form button, .token-form button, .api-form button, .assign-form button { min-height: 46px; border: 1px solid rgba(0,222,255,.58); border-radius: 12px; background: linear-gradient(105deg, rgba(239,185,55,.18), rgba(0,220,255,.18)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-card > button { width: 100%; min-height: 48px; margin-top: 18px; border: 1px solid rgba(0,222,255,.58); border-radius: 12px; background: linear-gradient(105deg, rgba(239,185,55,.18), rgba(0,220,255,.18)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.error { min-height: 18px; margin: 14px 0 0; color: #ff908b; font-size: 12px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; padding: 52px 0 28px; }
.hero-row h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 46px); }
.hero-row p { margin-bottom: 0; }
.live { padding: 9px 13px; border: 1px solid rgba(64,230,155,.25); border-radius: 99px; color: #5ee6a5; background: rgba(30,130,82,.08); font-size: 9px; letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats article { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(1,6,8,.78); backdrop-filter: blur(16px); }
.stats span { color: #858f95; font-size: 9px; letter-spacing: .14em; }
.stats strong { display: block; margin-top: 8px; color: #f4c858; font-size: 30px; }
.tabs { display: flex; gap: 8px; margin: 24px 0 12px; }
.tabs button { padding: 10px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; background: rgba(0,0,0,.45); color: #8f989d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.tabs button.active { border-color: rgba(0,222,255,.48); color: #51e9ff; background: rgba(0,222,255,.08); }
.panel { padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 19px; background: rgba(1,6,8,.84); backdrop-filter: blur(20px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-head h2 { margin-bottom: 5px; font-size: 17px; }
.panel-head p { margin-bottom: 0; font-size: 11px; }
.panel-head input { width: min(280px, 45%); }
.table-list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(100px, .7fr) minmax(120px, .9fr) auto; align-items: center; gap: 12px; min-height: 62px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.025); }
.row strong, .row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { margin-top: 4px; color: #727e84; font-size: 10px; }
.badge { width: fit-content; padding: 5px 8px; border-radius: 99px; color: #4de5ff; background: rgba(0,220,255,.08); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.badge.admin { color: #f1c95e; background: rgba(239,190,72,.09); }
.badge.suspended { color: #ff908b; background: rgba(255,70,70,.08); }
.actions { display: flex; justify-content: flex-end; gap: 7px; }
.actions button, .created-token button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(0,0,0,.45); color: #cbd1d4; font-size: 9px; letter-spacing: .08em; }
.actions button.danger { border-color: rgba(255,80,80,.2); color: #ff9691; }
.token-form { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr .8fr 1.2fr; gap: 9px; margin-bottom: 17px; }
.api-form { display: grid; grid-template-columns: 1.1fr .9fr 1.3fr 1.1fr .8fr auto; gap: 9px; margin-bottom: 12px; }
.api-form button { grid-column: 1 / -1; }
.assign-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; margin-bottom: 15px; padding: 13px; border: 1px solid rgba(0,222,255,.12); border-radius: 14px; background: rgba(0,220,255,.035); }
.check-row { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(0,0,0,.38); color: #aeb8bd; font-size: 11px; }
.check-row input { min-height: 0; accent-color: #35e6ff; }
.rights-row { display: flex; flex-direction: column; gap: 6px; }
.rights-row .check-row { min-height: 0; padding: 6px 11px; }
.config-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; padding: 12px 14px; border: 1px solid rgba(239,190,72,.18); border-radius: 13px; background: rgba(239,190,72,.055); color: #e9c867; font-size: 11px; }
.config-link code, .wide-code { overflow: auto; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.42); color: #52e9ff; white-space: nowrap; }
.api-row { grid-template-rows: auto auto; }
.api-row .wide-code { grid-column: 1 / -1; font-size: 10px; }
.created-token { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px; margin-bottom: 17px; border: 1px solid rgba(239,190,72,.35); border-radius: 13px; background: rgba(239,190,72,.06); }
.created-token p { grid-column: 1 / -1; margin: 0; color: #edca70; font-size: 11px; }
.created-token code { overflow: auto; padding: 10px; color: #54e9ff; background: rgba(0,0,0,.5); white-space: nowrap; }
.empty { padding: 30px; color: #778187; text-align: center; }
.provider-switch { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.provider-switch select { flex: 1; max-width: 340px; }
.provider-switch button { min-height: 46px; padding: 0 16px; border: 1px solid rgba(0,222,255,.58); border-radius: 12px; background: linear-gradient(105deg, rgba(239,185,55,.18), rgba(0,220,255,.18)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.provider-form { display: grid; gap: 10px; margin-bottom: 8px; }
.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.provider-grid .provider-hint { grid-column: 1 / -1; color: #727e84; font-size: 10px; }
.provider-model-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: stretch; }
.provider-model-row .check-row { margin: 0; }
.provider-model-row button { min-height: 46px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(0,0,0,.45); color: #cbd1d4; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.provider-headers { display: grid; gap: 8px; }
.provider-header-row { grid-template-columns: 1fr 1fr auto; }
.provider-header-row button { border-color: rgba(255,80,80,.2); color: #ff9691; }
.provider-actions { display: flex; gap: 9px; }
.legacy-info { margin: 0 0 15px; padding: 11px 13px; border: 1px solid rgba(239,190,72,.18); border-radius: 13px; background: rgba(239,190,72,.05); color: #e9c867; font-size: 11px; line-height: 1.55; }
.provider-actions button { min-height: 46px; flex: 1; padding: 0 16px; border: 1px solid rgba(0,222,255,.58); border-radius: 12px; background: linear-gradient(105deg, rgba(239,185,55,.18), rgba(0,220,255,.18)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.badge.info, .badge.success, .badge.warning, .badge.critical, .badge.maintenance { color: #4de5ff; background: rgba(0,220,255,.08); }
.badge.success { color: #5ee6a5; background: rgba(30,130,82,.14); }
.badge.warning { color: #f1c95e; background: rgba(239,190,72,.12); }
.badge.critical { color: #ff908b; background: rgba(255,70,70,.12); }
.badge.maintenance { color: #c9a7ff; background: rgba(150,90,255,.12); }
@media (max-width: 760px) { .provider-grid, .provider-header-row { grid-template-columns: 1fr; } .provider-switch { align-items: stretch; flex-direction: column; } .provider-switch select { max-width: none; } }
@media (max-width: 960px) { .api-form { grid-template-columns: 1fr 1fr; } .api-form input:nth-child(3), .api-form input:nth-child(4), .api-form button, .assign-form { grid-column: 1 / -1; } }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .hero-row, .panel-head { align-items: stretch; flex-direction: column; } .panel-head input { width: 100%; } .token-form, .api-form, .assign-form { grid-template-columns: 1fr 1fr; } .token-form input:first-child, .token-form button, .api-form input, .api-form label, .api-form button, .assign-form input, .assign-form select, .assign-form button { grid-column: 1 / -1; } .config-link { align-items: stretch; flex-direction: column; } .row { grid-template-columns: 1fr auto; } .row > div:nth-child(3) { display: none; } }

/* ── Aufgeräumte Struktur: Abschnitte, Schnellaktionen, Übersicht ── */
.section-title { margin: 30px 0 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #8f989d; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.tab-panel > .section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.panel-subhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 13px; }
.panel-subhead p { margin: 0; color: #7c878d; font-size: 11px; line-height: 1.5; }
.panel-subhead button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(0,222,255,.4); border-radius: 10px; background: rgba(0,220,255,.07); color: #6fe7ff; font-size: 9px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.quick-actions button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(0,222,255,.5); border-radius: 12px; background: linear-gradient(105deg, rgba(239,185,55,.16), rgba(0,220,255,.16)); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.overview-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 17px; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.025); color: inherit; }
.overview-card:hover { border-color: rgba(0,222,255,.42); background: rgba(0,220,255,.05); }
.overview-card span { color: #858f95; font-size: 9px; letter-spacing: .14em; }
.overview-card strong { color: #f4c858; font-size: 21px; }
.overview-card small { color: #7c878d; font-size: 10.5px; line-height: 1.45; }
.overview-card em { margin-top: 3px; color: #36e8ff; font-size: 8.5px; font-style: normal; font-weight: 800; letter-spacing: .14em; opacity: .75; }
@media (max-width: 760px) { .quick-actions button { flex: 1 1 100%; } .overview-grid { grid-template-columns: 1fr 1fr; } .panel-subhead { align-items: stretch; flex-direction: column; } .panel-subhead button { width: 100%; } }

/* Super-PIN aendern: Dialog ueber allen Tabs */
.brand .brand-actions { display: flex; align-items: center; gap: 8px; }
.pin-change-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 9, 0.74); backdrop-filter: blur(6px); }
.pin-change-card { width: min(430px, 100%); padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: linear-gradient(150deg, rgba(10,16,20,.97), rgba(6,10,13,.97)); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.pin-change-card h2 { margin: 0 0 6px; color: #f4f7f8; font-size: 19px; }
.pin-change-card > p { margin: 0 0 16px; color: #929ba1; font-size: 12.5px; line-height: 1.45; }
.pin-change-card form { display: grid; gap: 10px; }
.pin-change-card input { width: 100%; }
.pin-change-actions { display: flex; gap: 10px; margin-top: 6px; }
.pin-change-actions button[type=submit] { flex: 1; min-height: 46px; border: none; border-radius: 10px; background: linear-gradient(120deg, #efbd45, #d99a1f); color: #10151a; font-weight: 800; letter-spacing: .06em; }
.pin-change-actions button[type=button] { flex: 0 0 auto; }
.pin-change-card #pin-change-status { margin: 12px 0 0; }

/* ── KI-Steuerung: Kill-Switch-Karte, Formulare, Modellliste je Nutzer ── */
.ai-kontroll-card { margin: 0 0 14px; padding: 15px 16px; border: 1px solid rgba(0,222,255,.16); border-radius: 15px; background: rgba(0,220,255,.03); }
.ai-kill-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ai-kill-row > div { display: grid; gap: 4px; }
.ai-kill-row strong { color: #5ee6a5; font-size: 13px; letter-spacing: .1em; }
.ai-kill-row strong.ai-aus { color: #ff908b; }
.ai-kill-row small { color: #7c878d; font-size: 10.5px; line-height: 1.45; }
.ai-kill-row button { min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,70,70,.55); border-radius: 12px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.ai-kontroll-card .provider-grid { margin-bottom: 0; }
.ai-kontroll-card .provider-grid .check-row, .ai-kontroll-card .provider-grid select { margin: 0; }
.ai-form-titel { display: grid; gap: 4px; }
.ai-form-titel strong { color: #f4c858; font-size: 13px; }
.ai-form-titel small { color: #7c878d; font-size: 10.5px; line-height: 1.45; }
.ai-nutzer-modelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ai-nutzer-modelle .check-row { min-height: 0; padding: 9px 12px; }
@media (max-width: 760px) { .ai-kill-row { align-items: stretch; flex-direction: column; } .ai-nutzer-modelle { grid-template-columns: 1fr; } }

