@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* =========================================================================
   MC-Cloud — Theme (dunkel, Gaming-orientiert). Kein Build-Step, reines CSS.
   ========================================================================= */
:root {
    --bg:        #0e1117;
    --bg-soft:   #151a23;
    --panel:     #1b212c;
    --panel-2:   #222a37;
    --border:    #2b3442;
    --text:      #e6edf3;
    --text-dim:  #9aa7b4;
    --muted:     #6b7785;
    --green:     #3fb950;
    --green-d:   #2ea043;
    --red:       #f85149;
    --amber:     #d29922;
    --blue:      #2f81f7;
    --purple:    #a371f7;
    --accent:    #3fb950;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 8px 30px rgba(0,0,0,.35);
    --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono:      'JetBrains Mono', 'Cascadia Code', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: radial-gradient(1200px 600px at 80% -10%, #16202c 0%, var(--bg) 55%);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0 0 .4em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-dim); }
code, pre { font-family: var(--mono); }

/* ---- Layout-Shell ------------------------------------------------------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex-shrink: 0; background: var(--bg-soft);
    border-right: 1px solid var(--border); padding: 18px 14px;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
    font-size: 1.15rem; padding: 6px 8px 18px; letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--green), #1f6f2e);
    display: grid; place-items: center; font-size: 1.1rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px;
    border-radius: var(--radius-sm); color: var(--text-dim); font-weight: 500; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav .nav-icon { width: 18px; text-align: center; opacity: .9; }
.nav-section { color: var(--muted); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .08em; padding: 16px 11px 6px; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
    font-size: .82rem; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px; border-bottom: 1px solid var(--border); background: rgba(14,17,23,.6);
    backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2);
    display: grid; place-items: center; font-weight: 700; color: var(--text); font-size: .85rem; }
.content { padding: 28px; max-width: 1600px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: .9rem; }

/* ---- Karten & Grid ------------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.tight { padding: 14px 16px; }
.card h3 { font-size: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .label { color: var(--muted); font-size: .82rem; }
.stat .value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; }
.stat .icon { font-size: 1.3rem; }

/* ---- Badges & Status ---------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid transparent; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.running { color: var(--green); background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.3); }
.badge.stopped { color: var(--muted); background: rgba(110,118,129,.12); border-color: rgba(110,118,129,.3); }
.badge.starting,.badge.stopping,.badge.installing,.badge.provisioning { color: var(--amber); background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.3); }
.badge.error,.badge.suspended { color: var(--red); background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.3); }
.badge.paid,.badge.online { color: var(--green); background: rgba(63,185,80,.12); }
.badge.pending,.badge.maintenance { color: var(--amber); background: rgba(210,153,34,.12); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--panel-2); color: var(--text); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: .15s; font-family: inherit; }
.btn:hover { background: #2a3340; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--green-d); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green); }
.btn.danger { background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.4); color: var(--red); }
.btn.danger:hover { background: rgba(248,81,73,.22); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Tabellen ----------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
tr:hover td { background: rgba(255,255,255,.02); }
td .name, td strong { color: var(--text); }

/* ---- Formulare ---------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .85rem; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=time],
select, textarea {
    width: 100%; padding: 10px 12px; background: var(--bg); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit;
    font-size: .92rem; transition: .15s;
}
/* Native Datums-/Zeit-Picker im Dark-Theme lesbar (Text + Kalender-Icon hell) */
input[type=date], input[type=datetime-local], input[type=time] { color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63,185,80,.15); }
/* Aufgeklappte Dropdown-Einträge lesbar machen (sonst je nach Browser/OS unleserlich) */
select option, select optgroup { background-color: #1c2128; color: #f0f3f6; }
textarea { resize: vertical; min-height: 90px; }
.error-text { color: var(--red); font-size: .82rem; margin-top: 5px; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; }

/* ---- Flash-Nachrichten -------------------------------------------------- */
.flash-stack { position: fixed; top: 18px; right: 18px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem;
    box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--panel);
    display: flex; gap: 10px; align-items: flex-start; animation: slidein .3s ease; }
.flash.success { border-color: rgba(63,185,80,.5); }
.flash.error { border-color: rgba(248,81,73,.5); }
.flash.info { border-color: rgba(47,129,247,.5); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Auth-Seiten -------------------------------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 410px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; padding-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* ---- Server-Karten ------------------------------------------------------ */
.server-card { display: flex; flex-direction: column; gap: 14px; transition: .15s; }
.server-card:hover { border-color: #3a4757; transform: translateY(-2px); }
.server-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.server-card .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.server-card .meta b { color: var(--text-dim); font-weight: 600; }
.server-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--panel-2);
    display: grid; place-items: center; font-size: 1.3rem; }

/* ---- Tabs --------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
    overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--text-dim); font-weight: 600; font-size: .9rem;
    border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---- Konsole ------------------------------------------------------------ */
.console { background: #0a0d12; border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--mono); font-size: .82rem; line-height: 1.5; padding: 14px;
    height: 460px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; color: #cdd9e5; }
.console .ln { display: block; }
.console .ln.warn { color: var(--amber); }
.console .ln.err { color: var(--red); }
.console .ln.info { color: #9fb6cc; }
.console-input { display: flex; gap: 10px; margin-top: 12px; }
.console-input input { font-family: var(--mono); }

/* ---- File-Manager ------------------------------------------------------- */
.fm { display: grid; grid-template-columns: 1fr; gap: 0; }
.fm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fm-breadcrumb { display: flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--text-dim);
    flex: 1; min-width: 200px; }
.fm-breadcrumb a { color: var(--blue); }
.fm-breadcrumb .sep { color: var(--muted); }
.fm-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fm-row { display: grid; grid-template-columns: 1fr 110px 160px 120px; align-items: center;
    padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: default; font-size: .88rem; }
.fm-row:last-child { border-bottom: none; }
.fm-row:hover { background: rgba(255,255,255,.025); }
.fm-row .fname { display: flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; }
.fm-row .fname .ficon { width: 18px; text-align: center; }
.fm-row .fsize, .fm-row .fmod { color: var(--muted); }
.fm-row .factions { display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: .15s; }
.fm-row:hover .factions { opacity: 1; }
.fm-dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 22px;
    text-align: center; color: var(--muted); margin-top: 14px; transition: .15s; }
.fm-dropzone.drag { border-color: var(--accent); background: rgba(63,185,80,.06); color: var(--text); }

/* ---- File-Manager: Upload/Download-Fortschritt -------------------------- */
.fm-progress { position: fixed; right: 20px; bottom: 20px; z-index: 200;
    width: 320px; max-width: calc(100vw - 40px); padding: 14px 16px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .2s, transform .2s; }
.fm-progress.open { opacity: 1; transform: translateY(0); }
.fm-progress .fmp-label { font-size: .82rem; color: var(--text-dim); margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-progress .fmp-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.fm-progress .fmp-bar > span { display: block; height: 100%; width: 0;
    background: linear-gradient(90deg,var(--green),var(--blue)); transition: width .15s; }
.fm-progress.indet .fmp-bar > span { width: 40% !important; animation: fmp-slide 1.1s infinite ease-in-out; }
@keyframes fmp-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.fm-progress .fmp-pct { font-size: .78rem; color: var(--muted); text-align: right; margin-top: 6px; }

/* ---- Editor-Modal ------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100;
    display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    width: 100%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 0; flex: 1; overflow: auto; }
.modal-body textarea.code { width: 100%; min-height: 55vh; border: none; border-radius: 0;
    background: #0a0d12; font-family: var(--mono); font-size: .85rem; line-height: 1.55; padding: 16px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-sm { max-width: 460px; }
.modal-sm .modal-body { padding: 20px; }

/* ---- Pläne / Buchung ---------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
    background: var(--panel); cursor: pointer; transition: .15s; position: relative; }
.plan:hover { border-color: #3a4757; }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(63,185,80,.3); }
.plan .pname { font-size: 1.1rem; font-weight: 700; }
.plan .price { font-size: 1.8rem; font-weight: 800; margin: 8px 0; }
.plan .price span { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .86rem; color: var(--text-dim); }
.plan ul li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---- Progress-Bar ------------------------------------------------------- */
.progress { height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg,var(--green),var(--blue)); }

.divider { height: 1px; background: var(--border); margin: 22px 0; }
.muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap { gap: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.right { text-align: right; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 2.6rem; margin-bottom: 10px; }

/* ---- Responsiv ---------------------------------------------------------- */
@media (max-width: 980px) {
    .grid.cols-4 { grid-template-columns: repeat(2,1fr); }
    .grid.cols-3 { grid-template-columns: 1fr; }
    .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: fixed; left: -260px; z-index: 60; transition: left .2s; }
    .sidebar.open { left: 0; }
    .menu-toggle { display: inline-flex !important; }
    .fm-row { grid-template-columns: 1fr 80px; }
    .fm-row .fmod { display: none; }
    .content { padding: 18px; }
}
.menu-toggle { display: none; }

/* ---- Aktions-Overlay (Start/Stop/Neustart/Neuinstallation) ------------- */
.srv-overlay { position: fixed; inset: 0; z-index: 300; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(8,11,16,.72); backdrop-filter: blur(4px); }
.srv-overlay.open { display: flex; }
.srv-overlay .box { width: 100%; max-width: 440px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px;
    box-shadow: var(--shadow); text-align: center; }
.srv-overlay .spinner { width: 54px; height: 54px; margin: 0 auto 18px;
    border: 4px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .8s linear infinite; }
.srv-overlay h3 { font-size: 1.15rem; margin: 0 0 6px; }
.srv-overlay .msg { color: var(--text-dim); font-size: .9rem; min-height: 1.2em; margin-bottom: 18px; }
.srv-overlay .bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.srv-overlay .bar > span { display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width .4s ease; }
.srv-overlay .bar.indet > span { width: 40%; animation: indet 1.1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* kleiner Inline-Spinner für Buttons */
.btn .mini-spin { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }

/* =========================================================================
   MODERN REFRESH (2026) — überschreibt das ältere Theme. Emerald/Lime-Akzent,
   Glas-Panels, charaktervolle Typografie, Pill-Tabs (Umbruch statt Scrollbar).
   ========================================================================= */
:root {
    --bg:        #080b10;
    --bg-soft:   #0d1219;
    --panel:     #121821;
    --panel-2:   #1a2230;
    --border:    rgba(255,255,255,.075);
    --border-2:  rgba(255,255,255,.12);
    --text:      #eaf0f6;
    --text-dim:  #9bacbd;
    --muted:     #66758a;
    --green:     #34d399;
    --green-d:   #10b981;
    --lime:      #a3e635;
    --accent:    #34d399;
    --blue:      #38bdf8;
    --purple:    #c084fc;
    --red:       #fb7185;
    --amber:     #fbbf24;
    --radius:    16px;
    --radius-sm: 11px;
    --shadow:    0 10px 40px -12px rgba(0,0,0,.6);
    --grad:      linear-gradient(135deg, #34d399 0%, #a3e635 100%);
    --font:      'Outfit', system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Outfit', sans-serif;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 520px at 85% -8%, rgba(52,211,153,.10), transparent 60%),
        radial-gradient(760px 480px at 0% 0%, rgba(56,189,248,.07), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
/* feine Gitter-Textur über dem Hintergrund */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 80%);
}
.shell, .auth-wrap, .lp { position: relative; z-index: 1; }

h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-weight: 750; }

/* ---- Sidebar / Topbar ---- */
.sidebar { background: linear-gradient(180deg, rgba(13,18,25,.92), rgba(8,11,16,.92)); backdrop-filter: blur(12px); }
.brand .logo { background: var(--grad); color: #06210f; box-shadow: 0 6px 18px -4px rgba(52,211,153,.5); }
.nav a { border-radius: 11px; transition: .18s; }
.nav a:hover { background: rgba(255,255,255,.04); transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(52,211,153,.16), rgba(163,230,53,.05)); color: #fff;
    box-shadow: inset 2px 0 0 var(--accent); }
.topbar { background: rgba(8,11,16,.55); backdrop-filter: blur(14px) saturate(1.3); }
.avatar { background: var(--grad); color: #06210f; font-weight: 700; }

/* ---- Cards ---- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.server-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.stat .value { font-family: var(--font-display); }

/* ---- Buttons ---- */
.btn { border-radius: var(--radius-sm); border: 1px solid var(--border-2); font-family: var(--font);
    font-weight: 600; transition: .16s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); border: none; color: #06210f; font-weight: 700;
    box-shadow: 0 8px 22px -8px rgba(52,211,153,.6); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -8px rgba(52,211,153,.75); }
.btn.danger { color: #fecdd3; background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.4); }
.btn.ghost { background: rgba(255,255,255,.03); }

/* ---- Badges ---- */
.badge { border-radius: 999px; font-weight: 600; backdrop-filter: blur(4px); }
.badge.running, .badge.paid, .badge.online { color: #6ee7b7; background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); }
.badge.running .dot { box-shadow: 0 0 8px 1px #34d399; }

/* ---- Pill-Tabs: umbrechen statt scrollen ---- */
.tabs { flex-wrap: wrap; overflow: visible; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tabs a { border: 1px solid transparent; border-radius: 11px; padding: 8px 14px; font-weight: 600; }
.tabs a:hover { background: rgba(255,255,255,.05); }
.tabs a.active { background: var(--grad); color: #06210f; border-bottom: 1px solid transparent; }

/* ---- Progress / Inputs ---- */
.progress { background: rgba(255,255,255,.06); }
.progress > span { background: var(--grad); box-shadow: 0 0 12px rgba(52,211,153,.5); }
input, select, textarea { border-radius: var(--radius-sm); background: rgba(255,255,255,.03); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* ---- Plan-Karten ---- */
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(52,211,153,.35), var(--shadow); }
.plan .price { font-family: var(--font-display); }
.plan ul li::before { color: var(--lime); }

/* ---- Custom Scrollbars (auch für Konsole/Dateien) ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

.console { border-radius: var(--radius); }
.modal { border-radius: var(--radius); }

/* =========================================================================
   MOBILE / RESPONSIV — kein ungewolltes Quer-Scrollen, kein iOS-Zoom beim Tippen.
   ========================================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
* { min-width: 0; }                      /* Flex/Grid-Kinder dürfen schrumpfen */
img, video, canvas, pre { max-width: 100%; }
pre { overflow-x: auto; }
code { word-break: break-word; }

/* iOS zoomt automatisch, wenn Formularfelder < 16px sind -> mind. 16px erzwingen */
input, select, textarea { font-size: 16px; }

/* Breite Tabellen scrollen IN ihrer Karte, nicht die ganze Seite */
.card { overflow-x: auto; }

@media (max-width: 760px) {
    .content { padding: 16px; }
    .page-head { gap: 12px; }
    .page-head h1 { font-size: 1.35rem; }
    .topbar { padding: 12px 16px; }
    /* Tabellen einzeln horizontal scrollbar machen */
    table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    /* Buttons/Zeilen brechen sauber um */
    .btn-row { width: 100%; }
    .flex.gap { flex-wrap: wrap; }
    .console { height: 360px; }
}

/* Sidebar-Overlay-Abdunklung auf Mobil, wenn offen */
@media (max-width: 760px) {
    .sidebar { box-shadow: 0 0 0 100vw rgba(0,0,0,.5); }
    .sidebar:not(.open) { box-shadow: none; }
}

/* ── Host-/System-Gesundheit (Admin-Dashboard) ───────────────────── */
.host-panel { background: linear-gradient(160deg, rgba(52,211,153,.05), transparent 60%); }
.host-grid { gap: 22px; }
.host-metric { display: flex; flex-direction: column; }
.host-metric .hm-top { display: flex; justify-content: space-between; align-items: baseline;
    font-size: .82rem; color: var(--muted); margin-bottom: 7px; }
.host-metric .hm-top b { font-size: 1.15rem; color: var(--text); font-weight: 700; }
.host-metric .progress { height: 8px; }
.host-metric .hm-sub { margin-top: 7px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .host-grid { gap: 18px; } }

/* ── Warn-Banner (Admin) ──────────────────────────────────────────── */
.alert-banner { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border-radius:12px;
    margin-bottom:18px; border:1px solid; }
.alert-banner.crit { background:rgba(248,81,73,.10); border-color:rgba(248,81,73,.45); }
.alert-banner.warn { background:rgba(210,153,34,.10); border-color:rgba(210,153,34,.45); }
.alert-banner .ab-icon { font-size:1.5rem; line-height:1; }
.alert-banner .ab-body { flex:1; font-size:.9rem; }
.alert-banner .ab-list { margin:8px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:5px; }
.alert-banner .ab-list li { font-size:.84rem; }
