﻿/* ============================================================
   VALENCIA STARTER — UI.CSS (Desktop + Global)
   Theme: valencia_dark
   ============================================================ */

/* ---------- Reset / Base ---------- */
:root{
  --bg0:#050510;
  --bg1:#070716;
  --panel:#0f1022;
  --panel2:#111225;
  --border:rgba(255,255,255,0.08);
  --border2:rgba(255,255,255,0.06);
  --text:rgba(245,245,255,0.94);
  --muted:rgba(180,180,230,0.72);

  --purple:#7b2cff;
  --pink:#ff2bd6;
  --blue:#55b7ff;

  --shadow:0 10px 26px rgba(0,0,0,0.55);
  --shadow2:0 18px 50px rgba(0,0,0,0.55);

  --r12:12px;
  --r14:14px;

  --topbar-h:56px;
  --sidebar-w:220px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: radial-gradient(circle at 30% 10%, rgba(123,44,255,0.12), transparent 55%),
              radial-gradient(circle at 70% 30%, rgba(255,43,214,0.08), transparent 60%),
              linear-gradient(180deg, var(--bg0), #04040c 60%, #030309);
  color:var(--text);
}

/* ---------- Utility ---------- */
/* Safety: Mobile-Sheet nie global sichtbar machen */
.mobile-sheet{ display:none; }

.hidden{ display:none !important; }
.muted{ opacity:.7; }
.hint{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}
.path-cell{
  font-size:11px;
  color:rgba(180,180,230,0.85);
  word-break:break-all;
}
code.path-cell{
  display:inline-block;
  padding:4px 6px;
  border-radius:10px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
}

/* Wichtig: NICHT global mit !important zerstören */
.desktop-only{ display:block; }
.mobile-only{ display:none; }
.show-on-mobile{ display:none; }

/* ---------- Toast ---------- */
.toast{
  position:fixed;
  top:16px;
  right:16px;
  z-index:9999;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(15,16,34,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  animation: toastIn .25s ease, toastOut .35s ease 3.2s forwards;
  max-width:320px;
}
.toast.success{ border-color: rgba(47,165,107,0.45); }
.toast.error{ border-color: rgba(192,50,75,0.55); }
@keyframes toastIn { from{ transform:translateY(-8px); opacity:0 } to{ transform:translateY(0); opacity:1 } }
@keyframes toastOut { to{ opacity:0; transform:translateY(-8px) } }

/* ---------- Topbar ---------- */
.topbar{
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 4000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(20,20,43,0.98), rgba(25,25,55,0.98));
  border-bottom:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.logo-circle{
  width:32px; height:32px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; letter-spacing:.02em;
  background: radial-gradient(circle at 30% 30%, rgba(255,122,246,1), rgba(123,44,255,1));
  box-shadow: 0 10px 22px rgba(123,44,255,0.25);
}
.topbar-title{ line-height:1.05; }
.topbar-title .app-name{
  font-weight:700;
  font-size:14px;
}
.topbar-title .app-version{
  font-size:11px;
  color:rgba(180,180,230,0.75);
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.user-label{
  font-size:13px;
  color:rgba(190,190,240,0.85);
  white-space:nowrap;
}

/* ---------- Layout (Desktop) ---------- */
.layout{
  display:flex;
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar{
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(10,10,24,0.96), rgba(8,8,18,0.96));
  border-right:1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}
.sidebar ul{ list-style:none; margin:0; padding:0; }
.nav-separator{
  list-style:none;
  border-top:1px solid rgba(255,255,255,0.05);
  margin:14px 0;
}
.nav-section-title{
  list-style:none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .45;
  padding: 6px 16px 8px;
}
.sidebar li a{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 9px 14px;
  margin: 2px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  color: rgba(200,200,255,0.92);
  text-decoration:none;
  border:1px solid transparent;
}
.nav-icon{ opacity:.9; width:18px; display:inline-flex; justify-content:center; }
.sidebar li.active a{
  background: rgba(123,44,255,0.18);
  border-color: rgba(123,44,255,0.25);
}
.sidebar li a:hover{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.content{
  flex:1;
  padding: 16px 20px 40px;
  min-width:0;
}

/* ---------- Page Header ---------- */
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom: 14px;
}
.page-header h1{
  margin:0 0 6px;
  font-size: 34px;
  letter-spacing: .01em;
}
.page-header .hint{ margin:0; }

/* ---------- Cards ---------- */
.card{
  background:
    radial-gradient(circle at 25% 30%, rgba(123,44,255,0.12), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(255,43,214,0.08), transparent 60%),
    linear-gradient(180deg, rgba(18,19,40,0.92), rgba(12,12,24,0.92));
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.card + .card{ margin-top: 12px; }

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.card-body{ font-size: 14px; }

/* ---------- Content Width (Keys / Giveaways Fix) ---------- */
.content-narrow{
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================================================
   V-CARDS (Mobile/Valencia Cards) — für programmes/webhooks
   ============================================================ */

.v-card{
  background:
    radial-gradient(circle at 25% 30%, rgba(123,44,255,0.12), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(255,43,214,0.08), transparent 60%),
    linear-gradient(180deg, rgba(18,19,40,0.92), rgba(12,12,24,0.92));
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.v-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.v-title{
  font-weight: 800;
  letter-spacing: .01em;
}

.v-sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(180,180,230,0.78);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.v-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.v-details{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.v-kv{
  display:flex;
  gap:8px;
  align-items:baseline;
  margin: 6px 0;
  font-size: 13px;
}

.v-k{
  width: 110px;
  color: rgba(180,180,230,0.78);
  flex: 0 0 auto;
}

.v-v{
  flex: 1 1 auto;
  color: rgba(245,245,255,0.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding: 3px 10px;
  font-size: 11px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: rgba(230,230,255,0.92);
}

.v-badge.ok{
  background: rgba(47,165,107,0.20);
  border-color: rgba(47,165,107,0.35);
  color: rgba(245,255,250,0.92);
}

.v-badge.off{
  background: rgba(148,163,184,0.10);
  border-color: rgba(148,163,184,0.18);
  color: rgba(230,230,255,0.82);
}

/* =========================
   Filter-Bar: smarter/kompakter
   ========================= */
.filter-bar{
  /* statt full-width: kompakt wie eine Card */
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Selects nicht 100% breit ziehen */
.filter-bar select{
  width: auto;
  min-width: 220px;      /* nice Standard */
}

/* Button kompakt */
.filter-bar .btn{
  width: auto;
  white-space: nowrap;
}

/* Auf kleineren Screens darf es wieder breiter/stapelnd werden */
@media (max-width: 820px){
  .filter-bar{
    width: 100%;
  }
  .filter-bar select{
    width: 100%;
    min-width: 0;
  }
  .filter-bar .btn{
    width: 100%;
  }
}

.server-card .card-body{
  font-size: 13px;
  line-height: 1.4;
}

.server-card .card-footer{
  display:flex;
  gap:8px;
  margin-top: 10px;
}


/* =========================
   GRID SYSTEM (UI.CSS ONLY)
   ========================= */

/* Base grids */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(340px,1fr));
  gap:16px;
}

.card-grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}

.card-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.card-grid-4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
}

.card-grid-auto{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:16px;
}

/* =========================
   Responsive Breakpoints
   ========================= */

@media (max-width: 1100px){
  .card-grid-4{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 900px){
  .grid-3,
  .card-grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .card-grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 740px){
  .grid-2,
  .grid-3,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4{
    grid-template-columns: 1fr;
  }
}



/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  color: rgba(245,245,255,0.95);
  background: rgba(255,255,255,0.05);
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); opacity: .97; }
.btn:active{ transform: translateY(0px); opacity: .92; }

.btn-xs{ padding: 4px 8px; font-size:12px; border-radius:10px; }
.btn-sm{ padding: 6px 10px; font-size:12px; border-radius:12px; }
.btn-full{ width:100%; }

.btn-primary{
  background: linear-gradient(90deg, rgba(123,44,255,0.95), rgba(255,43,214,0.55));
  border-color: rgba(123,44,255,0.25);
  box-shadow: 0 12px 24px rgba(123,44,255,0.18);
}
.btn-outline{
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.12);
}
.btn-danger{
  background: rgba(192,50,75,0.85);
  border-color: rgba(255,90,110,0.30);
}
.btn-success{
  background: rgba(47,165,107,0.82);
  border-color: rgba(47,165,107,0.30);
  color: #07130c;
}
.btn-warning{
  background: rgba(224,161,27,0.88);
  border-color: rgba(224,161,27,0.32);
  color: #1a1202;
}
.btn-info{
  background: rgba(36,134,201,0.9);
  border-color: rgba(36,134,201,0.35);
}

/* ---------- Badges / Status ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding: 3px 10px;
  font-size: 11px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: rgba(230,230,255,0.92);
}
.badge-soft{
  background: rgba(123,44,255,0.12);
  border-color: rgba(123,44,255,0.22);
}
.badge-success{
  background: rgba(47,165,107,0.20);
  border-color: rgba(47,165,107,0.35);
  color: rgba(245,255,250,0.92);
}
.badge-muted{
  background: rgba(148,163,184,0.10);
  border-color: rgba(148,163,184,0.18);
  color: rgba(230,230,255,0.82);
}
.badge-danger{
  background: rgba(255,77,77,0.18);
  border-color: rgba(255,77,77,0.35);
}
.badge-warning{
  background: rgba(255,184,77,0.22);
  border-color: rgba(255,184,77,0.40);
  color:#1b1b2a;
}

.status-dot{
  display:inline-block;
  width:10px; height:10px;
  border-radius:999px;
  margin-right:6px;
  border:1px solid rgba(255,255,255,0.10);
}
.status-ok{ background: rgba(47,165,107,0.95); }
.status-off{ background: rgba(148,163,184,0.65); }

/* ---------- Inputs ---------- */
.input, input[type="text"], input[type="password"], input[type="number"], select, textarea{
  width:100%;
  border-radius: 12px;
  padding: 9px 10px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(245,245,255,0.95);
  outline:none;
}
textarea{ min-height:110px; resize:vertical; }
input::placeholder, textarea::placeholder{ color: rgba(200,200,240,0.45); }
.input:focus, input:focus, select:focus, textarea:focus{
  border-color: rgba(255,43,214,0.55);
  box-shadow: 0 0 0 1px rgba(255,43,214,0.35), 0 0 18px rgba(123,44,255,0.20);
}

/* Checkbox / Accent */
input[type="checkbox"]{ accent-color: var(--pink); }

/* ---------- Tables ---------- */
.table-wrap, .table-responsive{ overflow-x:auto; }
.table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  font-size: 13px;
  margin-top: 10px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
}
.table thead{ background: rgba(255,255,255,0.04); }
.table th{
  text-align:left;
  font-weight: 750;
  color: rgba(245,245,255,0.92);
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.table td{
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(245,245,255,0.88);
  vertical-align: middle;
}
.table tbody tr:nth-child(odd){ background: rgba(255,255,255,0.02); }
.table tbody tr:nth-child(even){ background: rgba(255,255,255,0.04); }
.table tbody tr:hover{
  background: rgba(123,44,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(123,44,255,0.18);
}
.table.table-compact th,
.table.table-compact td{
  padding: 7px 9px;
  font-size: 12.6px;
}

/* Fix: Select Dropdown Farben (Valencia Dark) */
select,
select.input{
  color: rgba(245,245,255,0.95);
  background-color: rgba(255,255,255,0.04);
}

/* Optionen im Dropdown */
select option{
  color: #111;
  background-color: #fff;
}

/* Hover / Focus */
select:focus{
  border-color: rgba(255,43,214,0.55);
  box-shadow: 0 0 0 1px rgba(255,43,214,0.35);
}


/* ---------- Inline forms / toolbars ---------- */
.toolbar{ margin-bottom: 10px; }
.inline-form{ display:inline-block; margin-right:6px; }

/* ---------- Server Cards helpers ---------- */
.server-card{ display:flex; flex-direction:column; gap:6px; }
.btn-row{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.server-header{ display:flex; flex-direction:column; gap:2px; }
.server-name{ font-weight:800; letter-spacing:.01em; }
.server-subtitle{ font-size:12px; color: rgba(180,180,230,0.75); }
.server-status-row{ display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.server-buttons{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
/* =========================
   Server Buttons zentrieren
   ========================= */

/* Primäre Button-Reihe */
.server-card .btn-row{
  justify-content: center;
}

/* Sekundäre Button-Reihe */
.server-card .btn-row.btn-row-secondary{
  justify-content: center;
}


/* ---------- User / Role Page widths ---------- */
.user-list-page{ max-width:1100px; margin:0 auto 32px; }
.user-edit-page{ max-width:980px; margin:0 auto 40px; }
.role-list-page{ max-width:1100px; margin:0 auto 32px; }
.role-edit-page{ max-width:1100px; margin:0 auto 32px; }

/* ---------- Sticky action bar (User edit) ---------- */
.user-edit-actions{
  position: sticky;
  bottom: 0;
  z-index: 50;
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px 0;
  background: rgba(10,10,24,0.80);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-edit-actions .btn-save{
  flex:1;
  min-width: 180px;
  font-weight: 800;
  letter-spacing: .02em;
}
.user-edit-actions .btn-cancel{ opacity:.9; }

/* ---------- Danger Zone ---------- */
.danger-zone{
  border: 1px solid rgba(255, 90, 110, 0.35);
  background: rgba(255, 90, 110, 0.06);
}

/* ---------- Modals / Popups ---------- */
.popup-overlay{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.popup-overlay.is-visible{ display:flex; }
.popup{
  width: min(520px, 92vw);
  max-height: 80vh;
  overflow:auto;
  background: rgba(10,10,24,0.95);
  border: 1px solid rgba(123,44,255,0.35);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow2);
}
.popup-close{
  float:right;
  border:none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,43,214,0.8);
  color: #fff;
  cursor:pointer;
}

/* ---------- Discord Badge (Servers list) ---------- */
.badge-discord{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.4;
  background: rgba(114, 137, 218, 0.18);
  color: #7289da;
  border: 1px solid rgba(114, 137, 218, 0.6);
}

/* ---------- Manual layout ---------- */
.manual-layout{
  display:grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap:16px;
  align-items:start;
}
.manual-toc{
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  max-height: calc(100vh - 92px);
  overflow:hidden;
}
.manual-toc .manual-toc-body{
  max-height: calc(100vh - 170px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.manual-toc-list{ list-style:none; padding-left:0; margin:0; }
.manual-toc-list li{ margin-bottom:8px; }
.manual-toc-list a{
  display:block;
  padding: 9px 10px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(210,230,255,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.manual-toc-list a:hover{
  background: rgba(123,44,255,0.14);
  border-color: rgba(123,44,255,0.22);
}
.manual-section{ margin-bottom:14px; }
.manual-section.hidden{ display:none; }
#manual-search{ min-width: 260px; border-radius: 14px; }

/* --- Anti horizontal bleed (global) --- */
html, body { max-width: 100%; overflow-x: hidden; }
.layout, .content { max-width: 100%; }
.table-wrap, .table-responsive { max-width: 100%; }
code, pre, .path-cell { overflow-wrap: anywhere; word-break: break-word; }

/* ============================================================
   LOGIN PAGE (Desktop + Mobile)
   ============================================================ */
body.login-page{
  min-height: 100vh;
  display:block;
}

.login-shell{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px;
}

.login-card{
  width: min(520px, 94vw);
  border-radius: 18px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 25% 30%, rgba(123,44,255,0.14), transparent 60%),
    radial-gradient(circle at 75% 35%, rgba(255,43,214,0.10), transparent 60%),
    rgba(12,12,24,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.60);
}

.login-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
}

.login-logo img{
  width: 100%;
  max-width: 360px;      /* <- stoppt dein Riesen-Logo */
  height: auto;
  border-radius: 16px;
  display:block;
}

.login-head h1{
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: .01em;
}
.login-head p{
  margin: 0 0 14px;
  color: rgba(180,180,230,0.75);
  font-size: 13px;
}

.login-alert{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,77,77,0.35);
  background: rgba(255,77,77,0.10);
  color: rgba(255,220,225,0.95);
  font-size: 13px;
}

.login-form{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.login-label{
  font-size: 12px;
  color: rgba(200,200,255,0.85);
  margin-top: 6px;
}

.login-input{
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(245,245,255,0.95);
  outline: none;
}

.login-input:focus{
  border-color: rgba(255,43,214,0.55);
  box-shadow: 0 0 0 1px rgba(255,43,214,0.30), 0 0 18px rgba(123,44,255,0.18);
}

.login-passrow{
  position: relative;
  display:flex;
  align-items:center;
}

.login-passrow .login-input{
  padding-right: 44px;
}

.login-eye{
  position:absolute;
  right: 8px;
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(245,245,255,0.92);
  cursor:pointer;
}

.login-btn{
  margin-top: 10px;
}

.login-footer{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(180,180,230,0.70);
  display:flex;
  justify-content:flex-start;
}

/* Mobile: Logo etwas kleiner, mehr Luft unten */
@media (max-width: 820px){
  .login-logo img{ max-width: 320px; }
  .login-shell{ padding: 18px 14px; }
}


/* =========================
   SERVERS GRID (Fix + Responsive)
   ========================= */

/* Servers: Cards NICHT über alle Spalten ziehen */
.server-card{
  grid-column: auto !important;
  width: auto !important;
  min-width: 0;          /* wichtig: lange Pfade dürfen nicht das Grid sprengen */
}

/* Fix: globales ".card + .card { margin-top:12px; }" darf im Grid nicht wirken */
.server-grid .card + .card{
  margin-top: 0 !important;
}

/* Grid */
.server-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items: start;     /* verhindert „Stretch“/komische Höhen */
}

/* Optional: Falls Cards trotzdem irgendwie breit werden (lange Zeilen) */
.server-grid > .server-card{
  overflow: hidden;       /* hält Layout stabil */
}

/* Breakpoints */
@media (max-width: 1600px){
  .server-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1200px){
  .server-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px){
  .server-grid{ grid-template-columns: 1fr; }
}
