:root{
  --bg-color:#0f1115;
  --card:#121417;
  --accent:#6ee7b7;
  --text:#e6eef3;
}

@font-face{
  font-family:'LifeCraft';
  src:url('/assets/font/LifeCraft_Font.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,Segoe UI,Arial;background:var(--bg-color);color:var(--text)}

/* Background image full screen */
.bg{
  position:fixed;
  inset:0;
  background-image:url('/assets/img/bg.jpg');
  background-size:cover;
  background-position:center;
  filter:brightness(0.45);
  z-index:1;
}

/* Language switcher (fixed top-right, outside cards) */
.lang-switcher{
  position:fixed;
  top:16px;
  right:16px;
  z-index:200;
  display:flex;
  gap:10px;
  padding:8px;
  border-radius:10px;
  background: rgba(10,12,15,0.72);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 30px rgba(2,6,23,0.35);
}
.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  text-decoration:none;
  background: rgba(255,255,255,0.01);
}
.lang-btn:hover,
.lang-btn:focus-visible{
  transform: translateY(-1px);
}
.lang-btn.active{
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* CSS flags (no external assets needed) */
.flag{
  width:22px;
  height:14px;
  border-radius:3px;
  display:inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.flag-de{
  background: linear-gradient(to bottom, #000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}
/* Simplified UK-style flag for English */
.flag-en{
  background:
    linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 48.5%, #c8102e 48.5% 51.5%, transparent 51.5%),
    linear-gradient(-45deg, transparent 48.5%, #c8102e 48.5% 51.5%, transparent 51.5%),
    linear-gradient(to right, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(to bottom, transparent 41%, #fff 41% 59%, transparent 59%),
    linear-gradient(to right, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(to bottom, transparent 45%, #c8102e 45% 55%, transparent 55%),
    #012169;
}

/* Center container (Bezugspunkt für Inhalte) */
.center{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:2;
  flex-direction:column;
}

/* Brand / Site title (verlinkt auf index.php) */
/* Auf der Landing-Seite sorgt margin-top:30vh für 30% Abstand vom oberen Rand.
   Auf inneren Seiten kann dieser Abstand bei Bedarf per Media-Query reduziert werden. */
.brand{
  display:block;
  font-size:48px;
  font-family:'LifeCraft', Inter, Segoe UI, Arial, sans-serif;
  letter-spacing:2px;
  color:var(--text);
  text-decoration:none;
  text-align:center;
  margin:30vh 0 20px 0; /* 30% vom Viewport oben */
  z-index:3;
}

.brandOnMenu{
  display:block;
  font-size:48px;
  font-family:'LifeCraft', Inter, Segoe UI, Arial, sans-serif;
  letter-spacing:2px;
  color:var(--text);
  text-decoration:none;
  text-align:center;
  margin:0vh 0 20px 0;
  z-index:3;
}

/* Aktionen (Buttons) zentriert, getrennt von der Brand */
.actions{
  display:flex;
  gap:16px;
  margin-top:2rem;
  z-index:2;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  background:linear-gradient(90deg,#1f2937,#111827);
  color:var(--text);
  text-decoration:none;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.04);
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
  box-sizing:border-box;
}

.btn:hover,
.btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,0.10);
  background: linear-gradient(90deg,#232b33,#0f1417);
}

button.btn:disabled:hover,
button.btn[disabled]:hover{
  transform:none;
  box-shadow:none;
}

/* Success button variant (green accent) */
.btn-success{
  box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-success:hover,
.btn-success:focus{
  box-shadow: inset 0 0 0 1px var(--accent), 0 10px 20px rgba(2,6,23,0.10);
}

button.btn:disabled,
button.btn[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}

/* Danger / Logout button variant */
.btn-danger{
  background: linear-gradient(90deg,#3b0f12,#2a0b0d);
  border: 1px solid rgba(255,77,79,0.22);
}
.btn-danger:hover,
.btn-danger:focus{
  background: linear-gradient(90deg,#451215,#320d10);
}

/* Page center wrapper for forms */
.page-center {
  min-height: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 2;
  flex-direction: column;
}

/* Outer container (wider) */
.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Three equal columns: left = admin, center = settings, right = stats */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Unified card style for all three columns */
.card {
  background: rgba(10,12,15,0.72);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  color: var(--text);
}

/* Slightly wider layout to accommodate new UI */
.container-wide { max-width: 1400px; }

/* Icon-Buttons: gleiche Optik wie .btn, quadratisch */
.icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border-radius:8px;
  background: linear-gradient(90deg,#1f2937,#111827);
  color: var(--text);
  border:1px solid rgba(255,255,255,0.04);
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
  box-shadow: 0 6px 12px rgba(2,6,23,0.06);
  font-weight:600;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(2,6,23,0.10); }
.icon-btn:active { transform: translateY(0); }
.icon-btn.delete:hover { background: linear-gradient(90deg,#3b0f12,#2a0b0d); }

/* SVG Styling */
.icon-btn svg { width:18px; height:18px; fill: none; stroke: currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.icon-btn + .icon-btn { margin-left:8px; }

/* Downloads dropdown minimal layout */
.downloads-dropdown { position: relative; display: inline-block; margin-left:6px; }
.downloads-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width:220px;
  background: rgba(10,12,15,0.96);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius:8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  z-index: 60;
  padding:6px;
  display:none;
}
.downloads-menu a { display:block; padding:8px 10px; color:var(--text); text-decoration:none; border-radius:6px; font-size:14px; }
.downloads-menu a:hover { background: rgba(255,255,255,0.02); }
.downloads-menu .muted { font-size:12px; color:var(--muted); padding:6px 10px; }

/* Live search input */
#user-search, #char-search, #auction-search { width: 100%; max-width: 420px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); color: var(--text); margin-bottom: 10px; box-sizing: border-box; }
.user-count { font-size:13px; color:var(--muted); margin-left:8px; }

/* Make the header row of the users table sticky inside its scroll container */
.card.sidebox .table thead th {
  position: sticky;
  top: 0;
  background: rgba(8,10,12,0.96);
  backdrop-filter: blur(4px);
  z-index: 6;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-top:10px;
  padding-bottom:10px;
}

/* Dark scrollbar for the users scroll container */
.card.sidebox > div::-webkit-scrollbar { width: 12px; height: 12px; }
.card.sidebox > div::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; margin: 6px 0; }
.card.sidebox > div::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(11,114,133,0.65), rgba(3,37,43,0.65)); border-radius: 10px; border: 2px solid rgba(0,0,0,0.18); min-height: 28px; }
.card.sidebox > div::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(11,114,133,0.85), rgba(3,37,43,0.85)); }
.card.sidebox > div { scrollbar-width: thin; scrollbar-color: rgba(11,114,133,0.65) rgba(255,255,255,0.02); }

/* Mail-System: Popover für lange "Inhalt"-Texte (per Klick) */
.mail-popover {
  position: fixed;
  z-index: 260;
  display: none;
  max-width: min(560px, calc(100vw - 24px));
  max-height: min(50vh, 360px);
  overflow: auto;
  white-space: pre-wrap;
  padding: 10px 12px;
  background: rgba(10,12,15,0.96);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: auto;
  user-select: text;
}

.mail-body-cell { position: relative; padding-right: 44px; }
.mail-body-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  background: linear-gradient(90deg,#1f2937,#111827);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  line-height: 26px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(2,6,23,0.06);
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
}
.mail-body-btn:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 20px rgba(2,6,23,0.10);
  background: linear-gradient(90deg,#232b33,#0f1417);
}
.mail-body-btn:active { transform: translateY(-50%); }

/* Modal / frame for character list */
#char-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

/* Modal / frame for styled confirm dialogs */
#confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 320;
}

#confirm-modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.6);
  backdrop-filter: blur(4px);
}

#confirm-modal .frame {
  position: relative;
  width: min(520px, calc(100% - 48px));
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(6,8,10,0.98), rgba(10,12,14,0.98));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.6);
  overflow: auto;
  z-index: 325;
}

#confirm-modal .frame h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

#confirm-modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

#char-modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.6);
  backdrop-filter: blur(4px);
}

#char-modal .frame {
  position: relative;
  width: min(980px, calc(100% - 48px));
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(6,8,10,0.98), rgba(10,12,14,0.98));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.6);
  overflow: auto;
  z-index: 125;
}

#char-modal .frame h3 {
   margin:0 0 10px 0; font-size:16px;
}

#char-modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;
}

/* GM Commands modal close button should match other modals */
#gmcmd-modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Backup-Manager modal close button should match other modals */
#backup-modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

#backup-modal .close-btn:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

/* How to Play modal close button: black design + hover */
#howto-modal .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  padding: 6px 9px;
  border-radius: 6px;
  cursor: pointer;
}

#howto-modal .close-btn:hover {
  background: rgba(0,0,0,0.75);
  border-color: rgba(255,255,255,0.10);
}

/* sanftes Ausblenden der Flash-Nachricht */
#account-flash.fade-out {
  transition: opacity 0.6s ease, max-height 0.6s ease, margin 0.6s ease;
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

#admin-flash.fade-out {
  transition: opacity 0.6s ease, max-height 0.6s ease, margin 0.6s ease;
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

/* Character table styling */
.char-table { width:100%; border-collapse: collapse; margin-top:8px; }
.char-table th, .char-table td { padding:8px 10px; border-bottom:1px solid rgba(255,255,255,0.03); text-align:left; font-size:14px; }
.char-table th { font-weight:700; color:var(--muted); font-size:13px; background:transparent; position:sticky; top:0; z-index:2; }

/* Character money formatting: Gold/Silber/Kupfer nebeneinander */
.char-table th.money-cell { text-align: center; }
.char-table td.money-cell { text-align: right; }
.coin-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
}
.coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: calc(3ch + 14px + 8px);
  justify-content: flex-end;
}
.coin-value {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.coin-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  display: inline-block;
}

/* small responsive tweaks */
@media (max-width:720px) {
  .icon-btn { width:36px; height:36px; }
  #char-modal .frame { width: calc(100% - 24px); padding:10px; }
}

/* Ensure consistent padding/typography */
.adminbox, .formbox, .sidebox {
  padding: 20px;
}

/* Headings */
.formbox h2, .adminbox h3, .sidebox h3 { margin-top: 0; }

/* Form elements */
label{display:block;margin:10px 0}
input,select,textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.06);background:#0b0c0f;color:var(--text)}
.msg{background:#1b2a2a;padding:8px;border-radius:6px;margin-bottom:10px}
.msg-maintenance{background:rgba(255,206,0,0.08);border:1px solid rgba(255,206,0,0.18);color:#ffce00}
.pwFeedback{font-size:13px;color:#cbd5e1;margin-top:6px}

/* Expansion cover next to dropdown */
.expansion-select-row{
  display:block;
}
.expansion-cover-col{
  flex:0 0 auto;
  align-self:flex-start;
  margin-top: 22px;
}
.expansion-cover{
  flex:0 0 auto;
  width:182px;
  height:252px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  object-fit:cover;
  background:rgba(255,255,255,0.02);
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.table th, .table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: left;
  font-size: 14px;
  color: var(--text);
}
.table th {
  font-weight: 600;
  color: var(--accent);
}

/* Money cells (z.B. Guilden-Übersicht): Coins rechtsbündig wie im Character-Modal */
.table th.money-cell { text-align: center; }
.table td.money-cell { text-align: right; }

/* Player-Tickets: Status-Färbung (resolved=0 gelb, resolved=1 grün) */
.table tbody tr.ticket-row-open td {
  background: rgba(245,163,32,0.08);
}
.table tbody tr.ticket-row-open td:first-child {
  box-shadow: inset 3px 0 0 #F5A320;
}

.table tbody tr.ticket-row-resolved td {
  background: rgba(110,231,183,0.08);
}
.table tbody tr.ticket-row-resolved td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
.section-title {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--accent);
}
.admin-actions { margin-top: 12px; }
.small-note { font-size: 13px; color: #9fb0b0; margin-top: 8px; }

/* Prozess-Status (realmd/mangosd): kleine grün/rot Punkte */
.proc-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.proc-dot.up{ background: var(--accent); }
.proc-dot.down{ background: #ff4d4f; }
.proc-dot.unknown{ background: rgba(255,255,255,0.12); }

/* Status-Liste (Server-Dienste): Name + Buttons zentriert, gleiche Höhe */
.status-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}
.status-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:100%;
}
.status-label{
  display:inline-flex;
  align-items:center;
  height:32px;
  font-size:13px;
  flex:1;
  min-width:0;
}
.status-controls{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
}
.status-controls .btn{
  padding:6px 10px;
  height:32px;
  line-height:18px;
}

/* Link-Farbe für hervorgehobene Links (z. B. "Neu hier? Registrieren") */
.link-accent {
  color: #F5A320;
  text-decoration: none;
}
.link-accent:hover,
.link-accent:focus {
  text-decoration: underline;
}

/* Delete button (small red X) */
.delete-btn{
  display:inline-block;
  width:28px;
  height:28px;
  line-height:26px;
  border-radius:4px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  transition:transform .08s ease;
}
.delete-btn:hover{
  transform:scale(1.08);
  color:#fff;
  background:rgba(255,0,0,0.12);
}
.delete-btn:active{
  transform:scale(0.98);
}
.delete-btn{
  color:#ff4d4f; /* rot */
  font-weight:700;
}

/* Make the small "+" button match primary .btn styling */
.add-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  border-radius:8px;
  background: linear-gradient(90deg,#1f2937,#111827);
  color: var(--text);
  font-size:20px;
  font-weight:700;
  border: 1px solid rgba(255,255,255,0.04);
  cursor:pointer;
  box-shadow: 0 6px 12px rgba(11,114,133,0.08);
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
}
.add-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11,114,133,0.12);
  background: linear-gradient(90deg,#232b33,#0f1417);
}
.add-btn:active{
  transform: translateY(0);
}

/* Small admin buttons: behalten das .btn Design, sind aber kompakter */
.admin-small-btn {
  /* reuse main .btn visual style */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;               /* kompakter als .btn */
  background: linear-gradient(90deg,#1f2937,#111827);
  color: var(--text);
  text-decoration:none;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.04);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
  box-shadow: 0 6px 12px rgba(2,6,23,0.06);
}

/* Hover / active passend zu .btn */
.admin-small-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,0.10);
  background: linear-gradient(90deg,#232b33,#0f1417);
}
.admin-small-btn:active { transform: translateY(0); }

/* Reset-Variante (transparent) behält kompakte Maße, aber visuelle Abgrenzung */
.admin-small-btn.reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: none;
}

/* Optional: etwas engerer Abstand in der Benutzerverwaltung */
.card.sidebox .table input[type="text"],
.card.sidebox .table input[type="email"],
.card.sidebox .table select {
  padding: 6px 8px;
  font-size: 13px;
}

/* Live-Suche: Suchfeld-Styling */
#user-search,
#char-search,
#auction-search {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
  color: var(--text);
  margin-bottom: 10px;
  box-sizing: border-box;
}
#user-search:focus,
#char-search:focus,
#auction-search:focus { outline: none; box-shadow: 0 6px 12px rgba(11,114,133,0.06); }
.user-count { font-size:13px; color:var(--muted); margin-left:8px; }

/* Dark themed scrollbar for the Benutzerverwaltung scroll container */
/* Targets the scroll wrapper directly inside .card.sidebox (the element with overflow:auto) */

/* Reuse the same scrollbar styling inside the GM Commands modal */
#gmcmd-modal .gmcmd-scroll,
#gmcmd-modal .frame {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(11,114,133,0.65) rgba(255,255,255,0.02);
}

#gmcmd-modal .gmcmd-scroll::-webkit-scrollbar,
#gmcmd-modal .frame::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

#gmcmd-modal .gmcmd-scroll::-webkit-scrollbar-track,
#gmcmd-modal .frame::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  margin: 6px 0;
}

#gmcmd-modal .gmcmd-scroll::-webkit-scrollbar-thumb,
#gmcmd-modal .frame::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(11,114,133,0.65), rgba(3,37,43,0.65));
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.18);
  min-height: 28px;
}

#gmcmd-modal .gmcmd-scroll::-webkit-scrollbar-thumb:hover,
#gmcmd-modal .frame::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(11,114,133,0.85), rgba(3,37,43,0.85));
}

#gmcmd-modal .gmcmd-scroll::-webkit-scrollbar-corner,
#gmcmd-modal .frame::-webkit-scrollbar-corner {
  background: rgba(255,255,255,0.01);
}

/* WebKit browsers (Chrome, Edge, Safari) */
.card.sidebox > div::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.card.sidebox > div::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  margin: 6px 0;
}
.card.sidebox > div::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(11,114,133,0.65), rgba(3,37,43,0.65));
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.18);
  min-height: 28px;
}
.card.sidebox > div::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(11,114,133,0.85), rgba(3,37,43,0.85));
}

/* Firefox */
.card.sidebox > div {
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: rgba(11,114,133,0.65) rgba(255,255,255,0.02);
}

/* Optional: keep the table header visually above the scrollbar thumb */
.card.sidebox .table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(8,10,12,0.96);
}

/* Small tweak for horizontal overflow (if present) */
.card.sidebox > div::-webkit-scrollbar-corner {
  background: rgba(255,255,255,0.01);
}

/* Icon-Buttons: gleiche Optik wie .btn / .admin-small-btn, aber quadratisch */
.icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  box-sizing:border-box;
  line-height:1;
  padding:0;
  border-radius:8px;
  background: linear-gradient(90deg,#1f2937,#111827);
  color: var(--text);
  border:1px solid rgba(255,255,255,0.04);
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .08s ease;
  box-shadow: 0 6px 12px rgba(2,6,23,0.06);
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(2,6,23,0.10); }
.icon-btn:active { transform: translateY(0); }

/* Reset-Variante (transparent look) */
.icon-btn.reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
}

/* Icon-SVG Styling */
.icon-btn svg {
  width:18px;
  height:18px;
  fill: none;
  stroke: currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Optional: kleinerer Abstand zwischen Icon-Buttons */
.icon-btn + .icon-btn { margin-left:6px; }

/* Copyright Hinweis (unten rechts) */
.site-copyright {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 9999;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}

/* Responsive: stack columns on smaller screens and adjust brand/buttons spacing */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .container-wide { max-width: 720px; }
  .brand { margin-top:18vh; font-size:36px; }
  .actions { margin-top:1.5rem; gap:12px; }
  .btn { padding:10px 16px; }
  .site-copyright { right: 8px; bottom: 6px; font-size: 11px; }
}