:root {
  --kb-content-max: 1200px;
  --bg: #060a12;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.52);
  --muted2: rgba(255, 255, 255, 0.30);
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.16);
  --accent-border: rgba(96, 165, 250, 0.40);
  --ok: #34d399;
  --ok-glow: rgba(52, 211, 153, 0.35);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --scrollbar-size: 6px;
  --scrollbar-radius: 999px;
  --scrollbar-track: rgba(255, 255, 255, 0.03);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(96, 165, 250, 0.50);
  --scrollbar-thumb-active: rgba(96, 165, 250, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html { scrollbar-gutter: stable; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); color: var(--text); background: var(--bg); }
body { min-height: 100vh; }

*::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
*::-webkit-scrollbar-track { margin: 4px; background: var(--scrollbar-track); border-radius: var(--scrollbar-radius); }
*::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--scrollbar-radius); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:active { background: var(--scrollbar-thumb-active); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

.boot-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 99999; background: transparent; overflow: hidden;
  pointer-events: none; opacity: 0; transition: opacity 0.28s ease;
}
body.is-booting .boot-bar { opacity: 1; }
body.is-booting .boot-bar::after {
  content: ""; position: absolute; inset: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), rgba(147, 197, 253, 0.95), rgba(96, 165, 250, 0.3), transparent);
  animation: boot-slide 1.05s ease-in-out infinite;
}
@keyframes boot-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Login ---- */
.login-screen {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--bg);
}
.login-card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 32px 80px rgba(0,0,0,0.6);
}
.login-title { margin: 0 0 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.login-text { margin: 0 0 22px; font-size: 0.95rem; font-weight: 500; line-height: 1.55; color: var(--muted); }

.alert { border-radius: var(--radius); padding: 12px 14px; font-weight: 600; font-size: 0.88rem; }
.alert--login { margin: 0 0 16px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; }

.btn { font-family: inherit; font-weight: 700; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); }
.btn-discord { background: linear-gradient(135deg, #5865f2, #4752c4); color: #fff; box-shadow: 0 8px 24px rgba(88,101,242,0.4), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-discord:hover { filter: brightness(1.08); }
.btn-discord-block { width: 100%; padding: 13px 16px; font-size: 0.95rem; }

/* ---- Background ---- */
.bg-grid {
  pointer-events: none; position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size: 40px 40px; opacity: 0.5; z-index: 0;
  transition: opacity 0.35s ease;
}
.bg-glow {
  pointer-events: none; position: fixed; inset: 0;
  background:
    radial-gradient(900px 700px at 10% 15%, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(700px 600px at 90% 75%, rgba(59,130,246,0.16), transparent 60%),
    radial-gradient(600px 500px at 55% 95%, rgba(16,185,129,0.12), transparent 60%);
  z-index: 0;
  transition: opacity 0.35s ease;
}
body.is-guild-view .bg-grid { opacity: 0.55; }
body.is-guild-view .bg-glow {
  opacity: 1;
  background:
    radial-gradient(900px 700px at 8% 12%, rgba(59,130,246,0.28), transparent 58%),
    radial-gradient(720px 620px at 92% 78%, rgba(59,130,246,0.2), transparent 58%),
    radial-gradient(640px 520px at 50% 100%, rgba(16,185,129,0.14), transparent 55%);
}

/* ---- App shell ---- */
.app { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.app.app--guild { height: 100vh; overflow: hidden; }
.app.app--guild .home-layout { display: none; }

/* ---- Top Navigation ---- */
.topnav {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 0 20px; height: 52px; flex-shrink: 0; gap: 16px;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 20;
}
.topnav-left { display: flex; align-items: center; gap: 8px; }
.topnav-brand {
  display: flex; align-items: center; gap: 9px;
  background: transparent; border: none; color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  letter-spacing: -0.02em; cursor: pointer; padding: 0;
  transition: opacity 0.15s;
}
.topnav-brand:hover { opacity: 0.75; }
.topnav-logo {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: conic-gradient(from 200deg, #1d4ed8, #60a5fa, #3b82f6, #1e3a8a);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.4), 0 2px 8px rgba(59,130,246,0.3);
  display: grid; place-items: center; color: #fff;
}
.topnav-name { font-weight: 800; }
.topnav-beta {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(96,165,250,0.12); color: var(--accent); border: 1px solid var(--accent-border);
}
.topnav-center { display: flex; align-items: center; justify-content: center; }
.topnav-search {
  display: flex; align-items: center; gap: 8px;
  width: min(400px, 100%); height: 34px; padding: 0 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  border-radius: 8px; cursor: text;
  transition: border-color 0.15s, background 0.15s;
}
.topnav-search:focus-within { border-color: var(--accent-border); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(96,165,250,0.1); }
.topnav-search-ico { flex-shrink: 0; color: var(--muted2); }
.topnav-search-inp { flex: 1; background: transparent; border: none; outline: none; font: inherit; font-size: 0.85rem; font-weight: 500; color: #fff; }
.topnav-search-inp::placeholder { color: var(--muted2); }
.topnav-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.topnav-vote {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(59, 130, 246, 0.16); border: 1px solid rgba(96, 165, 250, 0.38);
  color: #93c5fd; font-family: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.topnav-vote:hover { background: rgba(59, 130, 246, 0.26); border-color: rgba(96, 165, 250, 0.55); }
.topnav-premium-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 11px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(245,158,11,0.14));
  border: 1px solid rgba(251,191,36,0.45);
  color: #fde68a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(251,191,36,0.12);
}
.topnav-premium-badge.hidden { display: none !important; }
.topnav-premium-badge svg { color: #fbbf24; }
.topnav-user-wrap { position: relative; }
.topnav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 6px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: #fff; font-family: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.topnav-user-btn:hover, .topnav-user-btn[aria-expanded="true"] { background: rgba(255,255,255,0.09); border-color: var(--glass-border-strong); }
.topnav-av { border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18); }
.topnav-username { font-size: 0.86rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.topnav-chev { color: var(--muted2); transition: transform 0.2s ease; flex-shrink: 0; }
.topnav-user-btn[aria-expanded="true"] .topnav-chev { transform: rotate(180deg); }
.topnav-userid { display: none; }

/* ---- Profile Dropdown ---- */
.profile-drop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 100;
  width: 240px;
  background: rgba(8,14,28,0.96);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 6px;
  animation: drop-in 0.18s cubic-bezier(0.22,0.82,0.24,1);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
.profile-drop.hidden { display: none !important; }
.profile-drop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px;
}
.profile-drop-av { border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); flex-shrink: 0; }
.profile-drop-head-info { min-width: 0; }
.profile-drop-name { display: block; font-size: 0.9rem; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-drop-sub { display: block; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-top: 2px; cursor: pointer; transition: color 0.15s; }
.profile-drop-sub:hover { color: rgba(255,255,255,0.75); }
.profile-drop-sep { height: 1px; background: var(--glass-border); margin: 4px 0; }
.profile-drop-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 8px; border: none;
  background: transparent; color: rgba(255,255,255,0.82); font-family: inherit;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: background 0.12s, color 0.12s;
}
.profile-drop-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.profile-drop-item--val { justify-content: flex-start; }
.profile-drop-item--val .profile-drop-right { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted2); font-size: 0.82rem; font-weight: 600; }
.profile-drop-item--danger { color: rgba(248,113,113,0.85); }
.profile-drop-item--danger:hover { background: rgba(248,113,113,0.1); color: #fca5a5; }

/* ---- Home Layout ---- */
.home-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.home-layout.hidden { display: none !important; }
.home-main { flex: 1; max-width: var(--kb-content-max); width: 100%; margin: 0 auto; padding: 48px 32px 64px; }

.home-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.home-hero-ico {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  display: grid; place-items: center; color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}
.home-title { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.home-sub { margin: 4px 0 0; font-size: 0.92rem; font-weight: 500; color: var(--muted); }

.home-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.home-search {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 0 13px; height: 40px;
  background: rgba(255,255,255,0.045); border: 1px solid var(--glass-border);
  border-radius: 12px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  cursor: text; transition: border-color 0.15s, background 0.15s;
}
.home-search:focus-within { border-color: var(--accent-border); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(96,165,250,0.1); }
.home-search-ico { flex-shrink: 0; color: var(--muted2); }
.home-search-inp { flex: 1; background: transparent; border: none; outline: none; font: inherit; font-size: 0.88rem; font-weight: 500; color: #fff; }
.home-search-inp::placeholder { color: var(--muted2); }
.home-view-btns { display: flex; gap: 4px; }
.view-btn {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.045); border: 1px solid var(--glass-border);
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.view-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.view-btn.is-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }

.home-section { margin-bottom: 32px; }
.home-section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
.home-section-label { font-size: 0.69rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted2); }
.home-section-count {
  font-size: 0.69rem; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--muted2);
}
.home-section-hint {
  margin: -6px 0 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted2);
  line-height: 1.45;
}
.sc-hero-sub--owner {
  color: rgba(255, 255, 255, 0.55);
}
body.is-light .sc-hero-sub--owner {
  color: rgba(26, 16, 51, 0.55);
}

.home-footer {
  margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.76rem; font-weight: 600; color: var(--muted2);
}
.home-footer-sep { opacity: 0.38; }
.home-footer-link { color: var(--muted2); text-decoration: none; transition: color 0.15s; }
.home-footer-link:hover { color: rgba(255,255,255,0.65); }

.empty-board { text-align: center; padding: 40px 16px; color: var(--muted); font-weight: 600; border: 1px dashed var(--glass-border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.025); }

/* ---- Server Cards ---- */
.server-row--hero { display: flex; flex-direction: column; gap: 10px; }

.home-servers--list .server-row--hero { gap: 8px; }
.home-servers--list .server-row--grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-servers--list .sc-hero {
  padding: 14px 18px;
  gap: 14px;
  border-radius: 12px;
}
.home-servers--list .sc-hero-ico { width: 44px; height: 44px; }
.home-servers--list .sc-hero-ico .server-icon { width: 44px; height: 44px; }
.home-servers--list .sc-hero-name { font-size: 0.98rem; }
.home-servers--list .sc-hero-manage { padding: 7px 16px; font-size: 0.82rem; }
.home-servers--list .sc-grid {
  padding: 14px 18px;
  gap: 14px;
  border-radius: 12px;
}
.home-servers--list .sc-grid-ico { width: 44px; height: 44px; }
.home-servers--list .sc-grid-ico .server-icon { width: 44px; height: 44px; }

.sc-hero {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  border-radius: 16px; cursor: pointer;
  background: linear-gradient(160deg, rgba(40,18,80,0.85) 0%, rgba(12,9,25,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sc-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 60%;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 25% 0%, rgba(109,40,217,0.4) 0%, transparent 70%);
}
.sc-hero:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 36px rgba(0,0,0,0.55); }
.sc-hero.is-focus { border-color: var(--accent-border); }

.sc-hero-ico { position: relative; flex-shrink: 0; width: 54px; height: 54px; z-index: 1; }
.sc-hero-ico .server-icon { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.18); }
.sc-hero-ico .server-icon.ph { display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: rgba(255,220,160,0.9); }
.sc-hero-ico .sc-dot { position: absolute; bottom: 1px; right: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid #0c0919; box-shadow: 0 0 8px var(--ok-glow); }

.sc-hero-body { flex: 1; min-width: 0; z-index: 1; }
.sc-hero-name-row, .sc-grid-name-row {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
}
.sc-hero-name { display: block; flex: 1; min-width: 0; font-size: 1.08rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.sc-premium-badge {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(245,158,11,0.12));
  border: 1px solid rgba(251,191,36,0.45);
  color: #fde68a; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.sc-premium-badge svg { color: #fbbf24; flex-shrink: 0; }
.sc-card--premium {
  border-color: rgba(251,191,36,0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(251,191,36,0.12) !important;
}
.sc-card--premium::before {
  background: radial-gradient(ellipse 90% 70% at 25% 0%, rgba(251,191,36,0.14) 0%, transparent 70%) !important;
}
.sc-hero-sub { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--ok); margin-top: 5px; }

.sc-hero-manage {
  flex-shrink: 0; z-index: 1; padding: 9px 22px; border-radius: 9px;
  font-family: inherit; font-size: 0.86rem; font-weight: 700;
  color: #fff; background: rgba(124,58,237,0.88); border: 1px solid rgba(96,165,250,0.5);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(109,40,217,0.4);
}
.sc-hero-manage:hover { background: rgba(124,58,237,1); box-shadow: 0 4px 20px rgba(109,40,217,0.55); }

.server-row--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }

.sc-grid {
  display: flex; align-items: center; gap: 15px; padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(30,14,60,0.82) 0%, rgba(10,8,22,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 3px 16px rgba(0,0,0,0.38);
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sc-grid::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 60%;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 65% at 25% 0%, rgba(90,30,180,0.32) 0%, transparent 70%);
}
.sc-grid:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 10px 28px rgba(0,0,0,0.5); }
.sc-grid.is-focus { border-color: var(--accent-border); }

.sc-grid-ico { position: relative; flex-shrink: 0; width: 48px; height: 48px; z-index: 1; }
.sc-grid-ico .server-icon { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.14); }
.sc-grid-ico .server-icon.ph { display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: rgba(255,220,160,0.9); }

.sc-grid-body { flex: 1; min-width: 0; z-index: 1; }
.sc-grid-name { display: block; flex: 1; min-width: 0; font-size: 0.97rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.sidebar-dd-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.sidebar-dd-premium {
  flex-shrink: 0; margin-left: auto;
  padding: 2px 7px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35); color: #fde68a;
}
.sidebar-dd-item--premium { border-color: rgba(251,191,36,0.22); }
.sc-grid-sub { display: flex; align-items: center; gap: 5px; font-size: 0.77rem; font-weight: 600; color: var(--ok); margin-top: 4px; }

.sc-grid-invite {
  flex-shrink: 0; z-index: 1;
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 9px; font-size: 0.81rem; font-weight: 700;
  color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sc-grid-invite:hover { background: rgba(124,58,237,0.35); border-color: rgba(96,165,250,0.5); color: #fff; }

.guild-layout--invite-only .guild-rail-nav { display: none; }
.guild-layout--invite-only .guild-head-badge { display: none; }
.guild-bot-invite-panel { margin: 0 0 1.25rem; }
.guild-bot-invite-panel-inner {
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(96,165,250,0.28);
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(59,130,246,0.08));
}
.guild-bot-invite-title { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.guild-bot-invite-lead { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; max-width: 52ch; }

.sc-hero.card-enter, .sc-grid.card-enter { animation: card-rise 0.48s cubic-bezier(0.22, 0.82, 0.24, 1) backwards; }

/* ---- Light Theme ---- */
body.is-light {
  --bg: #f2f0fc;
  --text: #1c1830;
  --muted: rgba(28,24,48,0.52);
  --muted2: rgba(28,24,48,0.35);
  --glass: rgba(0,0,0,0.04);
  --glass-hover: rgba(0,0,0,0.07);
  --glass-border: rgba(0,0,0,0.1);
  --glass-border-strong: rgba(0,0,0,0.18);
  --scrollbar-thumb: rgba(0,0,0,0.14);
  --scrollbar-thumb-hover: rgba(109,40,217,0.35);
  background: var(--bg);
}
body.is-light .topnav { background: rgba(242,240,252,0.94); }
body.is-light .guild-rail { border-right-color: rgba(0, 0, 0, 0.08); }
body.is-light .guild-rail-inner {
  background: rgba(248, 247, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.08);
}
body.is-light .guild-rail-picker {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1033;
}
body.is-light .guild-rail-picker-prefix { color: #1a1033; }
body.is-light .guild-rail-picker-server { color: rgba(26, 16, 51, 0.62); }
body.is-light .guild-nav-btn { color: rgba(26, 16, 51, 0.58); }
body.is-light .guild-nav-btn.is-active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1033;
}
body.is-light .guild-nav-group-label { color: rgba(26, 16, 51, 0.38); }
body.is-light .guild-nav-group {
  border-top-color: rgba(0, 0, 0, 0.06);
}
body.is-light .guild-nav-group--soon {
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.is-light.is-guild-view .bg-grid { opacity: 0.4; }
body.is-light.is-guild-view .bg-glow {
  background:
    radial-gradient(900px 700px at 8% 12%, rgba(59,130,246,0.18), transparent 58%),
    radial-gradient(720px 620px at 92% 78%, rgba(59,130,246,0.12), transparent 58%);
}
body.is-light .guild-page:not(.hidden) {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.06);
}
body.is-light .guild-nav-btn--indent.is-active {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}
body.is-light .guild-nav-btn--indent.is-active::after { background: #1d4ed8; }
body.is-light .guild-head { background: rgba(242,240,252,0.7); }
body.is-light .guild-body { background: transparent; }
body.is-light .profile-drop { background: rgba(248,247,255,0.98); border-color: rgba(0,0,0,0.12); box-shadow: 0 24px 64px rgba(0,0,0,0.18); }
body.is-light .sc-hero { background: linear-gradient(160deg, rgba(180,150,255,0.22) 0%, rgba(245,242,255,0.92) 100%); border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 20px rgba(109,40,217,0.1); }
body.is-light .sc-hero::before { background: radial-gradient(ellipse 90% 70% at 25% 0%, rgba(109,40,217,0.18) 0%, transparent 70%); }
body.is-light .sc-grid { background: linear-gradient(160deg, rgba(160,130,240,0.18) 0%, rgba(244,242,255,0.94) 100%); border-color: rgba(0,0,0,0.08); box-shadow: 0 3px 14px rgba(0,0,0,0.08); }
body.is-light .sc-grid::before { background: radial-gradient(ellipse 85% 65% at 25% 0%, rgba(90,30,180,0.12) 0%, transparent 70%); }
body.is-light .sc-hero-ico .sc-dot { border-color: #f2f0fc; }
body.is-light .sc-hero-name, body.is-light .sc-grid-name { color: #1c1830; }
body.is-light .sc-card--premium { border-color: rgba(217,119,6,0.35) !important; box-shadow: 0 4px 20px rgba(217,119,6,0.12) !important; }
body.is-light .stat-card { background: rgba(0,0,0,0.04); }
body.is-light .toast { background: rgba(248,247,255,0.98); border-color: rgba(0,0,0,0.12); }
body.is-light .welcome-card, body.is-light .giveaway-create-form { background: rgba(0,0,0,0.03); }
body.is-light .inp-text, body.is-light .inp-area, body.is-light .inp-select { background: rgba(0,0,0,0.05); color: #1c1830; border-color: rgba(0,0,0,0.14); }
body.is-light .guild-rail-premium {
  background: rgba(244, 240, 255, 0.98);
  border-color: rgba(109, 40, 217, 0.2);
}
body.is-light .guild-rail-premium-kicker { color: #1a1033; }
body.is-light .guild-rail-premium-desc { color: rgba(26, 16, 51, 0.55); }

/* ---- Guild nav folds (Tickets, Leveling, Moderation) ---- */
.guild-nav-btn--section {
  font-size: 0.82rem;
}
.guild-nav-chevron--fold {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.15s;
}
.guild-nav-btn--section[aria-expanded="true"] .guild-nav-chevron--fold {
  transform: rotate(90deg);
  opacity: 0.75;
}
.guild-nav-group-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px 22px;
}
.guild-nav-group-sub.hidden { display: none !important; }
.guild-nav-btn--indent {
  font-size: 0.78rem;
  padding: 7px 10px 7px 14px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}
.guild-nav-btn--indent.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.guild-nav-btn--indent.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  min-height: 14px;
  max-height: 22px;
  border-radius: 999px;
  background: #fff;
}

/* ---- Moderation Pages ---- */
.mod-page-header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
}
.mod-page-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(109,40,217,0.22); color: rgba(96,165,250,0.9);
  border: 1px solid rgba(109,40,217,0.3);
}
.mod-page-icon--automod { background: rgba(52,211,153,0.12); color: rgba(52,211,153,0.85); border-color: rgba(52,211,153,0.25); }
.mod-page-icon--eskalation { background: rgba(251,191,36,0.12); color: rgba(251,191,36,0.85); border-color: rgba(251,191,36,0.25); }
.mod-page-icon--faelle { background: rgba(96,165,250,0.12); color: rgba(96,165,250,0.85); border-color: rgba(96,165,250,0.25); }
.mod-page-icon--audit { background: rgba(96,165,250,0.12); color: rgba(96,165,250,0.9); border-color: rgba(96,165,250,0.28); }
.mod-page-icon--bot { background: rgba(109,40,217,0.22); color: rgba(96,165,250,0.95); border-color: rgba(109,40,217,0.35); }
.mod-page-icon--overview { background: rgba(96,165,250,0.12); color: rgba(96,165,250,0.9); border-color: rgba(96,165,250,0.28); }
.mod-page-icon--tickets { background: rgba(96,165,250,0.14); color: rgba(147,197,253,0.95); border-color: rgba(96,165,250,0.32); }
.mod-page-icon--structure { background: rgba(96,165,250,0.12); color: rgba(147,197,253,0.95); border-color: rgba(96,165,250,0.3); }
.mod-page-icon--welcome { background: rgba(52,211,153,0.12); color: rgba(110,231,183,0.95); border-color: rgba(52,211,153,0.28); }
.mod-page-icon--verify { background: rgba(34,197,94,0.12); color: rgba(134,239,172,0.95); border-color: rgba(34,197,94,0.28); }
.mod-page-icon--teamlist { background: rgba(96,165,250,0.12); color: rgba(147,197,253,0.95); border-color: rgba(96,165,250,0.3); }
.mod-page-icon--birthday { background: rgba(251,191,36,0.12); color: rgba(253,224,71,0.95); border-color: rgba(251,191,36,0.3); }
.mod-page-icon--selfroles { background: rgba(96,165,250,0.14); color: rgba(147,197,253,0.95); border-color: rgba(96,165,250,0.32); }
.mod-page-icon--booster { background: rgba(236,72,153,0.12); color: rgba(244,114,182,0.95); border-color: rgba(236,72,153,0.28); }
.mod-page-icon--giveaway { background: rgba(251,146,60,0.12); color: rgba(253,186,116,0.95); border-color: rgba(251,146,60,0.3); }
.st-hint-card {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}
.st-hint-card .welcome-field-hint { margin: 0; max-width: none; }
.dash-section--premium {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(255, 255, 255, 0.04));
}
.dash-badge--premium {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.18));
}
.st-page-premium-pill {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1408;
}
.st-premium-lock {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.06);
}
.st-premium-lock.hidden { display: none !important; }
.st-templates--locked { opacity: 0.88; }
.ov-structure-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ov-structure-grid .ov-template-card { position: relative; align-items: flex-start; }
.ov-structure-card--premium {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.05), rgba(255, 255, 255, 0.04));
}
.ov-structure-card--premium:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.7);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.08));
  box-shadow: 0 10px 32px rgba(251, 191, 36, 0.28);
  transform: translateY(-3px);
}
.st-card-premium-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1408;
}
.ov-template-icon--premium {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
}

/* Server-Struktur Bestätigungs-Modal */
.st-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.st-modal.hidden { display: none !important; }
.st-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.st-modal-box {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(28, 22, 48, 0.98), rgba(18, 14, 32, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.st-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--glass-border);
}
.st-modal-head-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.st-modal-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.st-modal-sub { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.st-modal-body { padding: 14px 18px 18px; }
.st-modal-warn {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.st-modal-warn strong { color: #fde68a; }
.st-modal-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.st-modal-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  user-select: none;
}
.st-modal-ack input { width: 18px; height: 18px; margin-top: 2px; accent-color: #fbbf24; flex-shrink: 0; }
.st-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--glass-border);
}
.st-modal-apply-btn:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: rgba(251, 191, 36, 0.6);
  color: #1c1408;
  font-weight: 800;
}
.st-modal-apply-btn:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}
body.st-modal-open { overflow: hidden; }

/* ---- Dashboard sections & tabs ---- */
.dash-section {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 3px 18px rgba(0,0,0,0.22);
}
.dash-section--highlight {
  border-color: rgba(96,165,250,0.28);
  background: linear-gradient(145deg, rgba(109,40,217,0.12), rgba(255,255,255,0.04));
}
.dash-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dash-section-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.dash-section-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 52ch;
}
.dash-section-meta {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
}
.dash-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(147,197,253,0.95);
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(109,40,217,0.18);
}
.dash-section--structure {
  border-color: rgba(96,165,250,0.28);
  background: linear-gradient(145deg, rgba(37,99,235,0.1), rgba(255,255,255,0.04));
}
.dash-badge--structure {
  color: rgba(147,197,253,0.95);
  border-color: rgba(96,165,250,0.4);
  background: rgba(37,99,235,0.2);
}
.ov-structure-grid .ov-template-card { align-items: flex-start; }
.ov-template-icon--structure {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.32);
  color: rgba(147,197,253,0.95);
}
.ov-st-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 0.02em;
}
.ov-st-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ov-st-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
.ov-st-tag--role { color: rgba(147,197,253,0.9); border-color: rgba(96,165,250,0.25); }
.ov-st-tag--ch { color: rgba(147,197,253,0.9); border-color: rgba(96,165,250,0.25); }
.dash-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.dash-tab {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dash-tab:hover { color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.06); }
.dash-tab.is-active {
  background: rgba(96,165,250,0.18);
  border-color: rgba(96,165,250,0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(109,40,217,0.2);
}
.guild-stats-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .guild-stats-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Bot-Einstellungen (Zeilen-Layout) ---- */
.bs-rows {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}
.bs-row {
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(220px, 340px);
  gap: 20px 28px; align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--glass-border);
}
.bs-row:last-child { border-bottom: none; }
.bs-row--stack { grid-template-columns: 1fr; }
.bs-row--stack .bs-row-control--wide { max-width: none; }
.bs-row-text { min-width: 0; }
.bs-row-title {
  margin: 0 0 6px; font-size: 0.98rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bs-row-desc { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; max-width: 42ch; }
.bs-row-control { min-width: 0; width: 100%; }
.bs-row-control--wide { width: 100%; }
.bs-nick-inp { width: 100%; }
.bs-toolbar { margin-top: 18px; }
.bs-premium-pill {
  display: inline-flex; padding: 2px 8px; border-radius: 5px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1408;
  vertical-align: middle;
}
.bs-premium-lock {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(251,191,36,0.45);
  background: rgba(251,191,36,0.04);
}
.bs-premium-lock.hidden { display: none !important; }
.bs-premium-lock-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.08); color: #fbbf24;
}
.bs-premium-lock-copy { flex: 1; min-width: 180px; }
.bs-premium-lock-title { display: block; font-size: 0.9rem; font-weight: 800; color: #fde68a; margin-bottom: 4px; }
.bs-premium-lock-sub { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.bs-premium-upgrade-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 16px; border-radius: 8px;
  background: transparent; border: 1px solid rgba(251,191,36,0.55);
  color: #fde68a; font-family: inherit; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bs-premium-upgrade-btn:hover { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.75); color: #fff; }
.bs-profile-form { display: flex; flex-direction: column; gap: 10px; }
.bs-profile-form.hidden { display: none !important; }
.bs-lang-options { display: flex; flex-direction: column; gap: 12px; }
.bs-lang-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.88);
  user-select: none;
}
.bs-lang-radio {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bs-lang-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.22);
  background: transparent; transition: border-color 0.15s, box-shadow 0.15s;
}
.bs-lang-radio:checked + .bs-lang-dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.bs-lang-radio:focus-visible + .bs-lang-dot { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .bs-row { grid-template-columns: 1fr; }
  .bs-premium-upgrade-btn { width: 100%; justify-content: center; }
}
.mod-page-icon--invite { background: rgba(109,40,217,0.22); color: rgba(96,165,250,0.95); border-color: rgba(109,40,217,0.35); }

/* ---- Invite Tracker ---- */
.it-option-card { align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.it-option-card .switch { flex-shrink: 0; margin-top: 2px; }
.it-option-body { flex: 1; min-width: 0; }
.it-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin: 22px 0 12px;
}
.it-board-title { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.it-board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.it-period-select { min-width: 168px; margin: 0; padding: 8px 12px; font-size: 0.84rem; }
.it-search-wrap { margin: 0; min-width: 200px; max-width: 280px; flex: 1; }
.it-leaderboard {
  min-height: 280px; border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}
.it-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 56px 24px; text-align: center;
}
.it-empty.hidden { display: none !important; }
.it-empty-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 300; color: var(--muted2);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.it-empty-text { margin: 0; max-width: 42ch; font-size: 0.88rem; font-weight: 500; color: var(--muted); line-height: 1.55; }
.it-list { padding: 8px; }
.it-list.hidden { display: none !important; }
.it-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px 14px;
  align-items: center; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}
.it-row-rank {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800; color: var(--muted);
  background: rgba(255,255,255,0.06);
}
.it-row-rank--top { background: rgba(96,165,250,0.18); color: #93c5fd; }
.it-row-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.it-row-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: rgba(255,255,255,0.08);
}
.it-row-av.ph {
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 800;
  color: rgba(255,220,160,0.9);
}
.it-row-name { font-size: 0.9rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-row-handle { font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
.it-row-stats { display: flex; gap: 16px; flex-shrink: 0; }
.it-stat { text-align: right; }
.it-stat-val { display: block; font-size: 0.95rem; font-weight: 800; color: #fff; }
.it-stat-lbl { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted2); margin-top: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Aktivitätsprotokoll (ORBT-Layout) ---- */
.audit-page-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.audit-page-head-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(109, 40, 217, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: rgba(147, 197, 253, 0.95);
}
.audit-page-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.audit-page-lead {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.audit-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
}
.audit-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.audit-filter-tab:hover { color: rgba(255, 255, 255, 0.72); }
.audit-filter-tab.is-active {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.audit-filter-ico { flex-shrink: 0; opacity: 0.85; }
.audit-filter-tab.is-active .audit-filter-ico { opacity: 1; }
.audit-filter-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}
.audit-feed-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111214;
  padding: 20px 24px 16px;
  min-height: 220px;
}
.audit-feed-list { display: flex; flex-direction: column; gap: 0; }
.audit-feed-empty {
  padding: 40px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
}
.audit-day-group { margin-bottom: 4px; }
.audit-day-group:last-child { margin-bottom: 0; }
.audit-day-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  margin: 16px 0 8px;
  padding: 0;
}
.audit-day-group:first-child .audit-day-label { margin-top: 0; }
.audit-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 6px;
  min-height: 52px;
  border-radius: 8px;
  transition: background 0.12s;
}
.audit-entry:hover { background: rgba(255, 255, 255, 0.02); }
.audit-entry-type {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.audit-entry-type--module {
  background: rgba(109, 40, 217, 0.32);
  color: rgba(216, 180, 254, 0.98);
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.audit-entry-type--settings {
  background: rgba(234, 179, 8, 0.16);
  color: rgba(250, 204, 21, 0.98);
  border: 1px solid rgba(234, 179, 8, 0.28);
}
.audit-entry-type--member {
  background: rgba(34, 197, 94, 0.14);
  color: rgba(134, 239, 172, 0.98);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.audit-entry-type--moderation {
  background: rgba(239, 68, 68, 0.14);
  color: rgba(252, 165, 165, 0.98);
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.al-entry-main {
  flex: 1;
  min-width: 0;
}
.al-entry-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.al-entry-module-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(191, 219, 254, 0.95);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.al-entry-user-static {
  cursor: default;
}
.al-entry-summary {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.al-entry-detail {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
}
.al-entry .al-entry-time {
  margin-left: auto;
  padding-left: 8px;
}
.audit-entry-avatar-btn {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}
.audit-entry-avatar-btn:hover { opacity: 0.88; }
.audit-entry-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: rgba(59, 130, 246, 0.25);
}
.audit-entry-body {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
}
.audit-entry-user {
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
}
.audit-entry-user:hover { text-decoration: underline; text-underline-offset: 2px; }
.audit-entry-action { color: rgba(255, 255, 255, 0.38); }
.audit-entry-target {
  color: #fff;
  font-weight: 700;
}
.audit-entry-time {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  padding-left: 16px;
  min-width: 72px;
  text-align: right;
}
/* Nutzer-Popover (Discord-Profil) */
.al-user-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: transparent;
}
.al-user-popover-backdrop.hidden { display: none; }
.al-user-popover {
  position: fixed;
  z-index: 1410;
  width: 300px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111214;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.al-user-popover.hidden { display: none; }
.al-user-popover-banner {
  height: 60px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  background-size: cover;
  background-position: center;
}
.al-user-popover-inner {
  padding: 0 16px 14px;
  margin-top: -36px;
  position: relative;
}
.al-user-popover-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #111214;
  object-fit: cover;
  display: block;
  background: #1e1f22;
}
.al-user-popover-name {
  margin: 10px 0 2px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.al-user-popover-username {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
}
.al-user-popover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.al-user-popover-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 4px;
}
.al-user-popover-value {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}
.al-user-popover-roles-block { margin-bottom: 4px; }
.al-user-popover-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  min-height: 22px;
}
.al-user-popover-role {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-user-popover-role--empty {
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}
.al-user-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0a0b0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.al-user-popover-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-user-popover-copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s, color 0.12s;
}
.al-user-popover-copy:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.al-user-popover.is-loading .al-user-popover-inner { opacity: 0.45; pointer-events: none; }
.audit-feed-more {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}
.audit-feed-more-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
}
.audit-feed-more-btn:hover { color: rgba(255, 255, 255, 0.65); }
.tk-transcript-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tk-transcript-modal.hidden { display: none; }
.tk-transcript-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.tk-transcript-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: #0c0c12;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.tk-transcript-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tk-transcript-modal-title { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.tk-transcript-modal-actions { display: flex; gap: 8px; }
.tk-transcript-modal-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  background: #111118;
}
.tk-transcript-modal-body iframe {
  width: 100%;
  min-height: 60vh;
  border: 0;
  display: block;
}
.audit-stats-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.audit-stat-pill {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.22);
  color: var(--muted);
}
.audit-settings-grid { margin-bottom: 16px; }
.audit-list { margin-top: 8px; }
.audit-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px 14px;
  align-items: start; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}
.audit-badge {
  display: inline-flex; padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  white-space: nowrap;
}
.audit-badge--dashboard { background: rgba(96,165,250,0.15); color: #93c5fd; }
.audit-badge--access { background: rgba(251,191,36,0.12); color: #fcd34d; }
.audit-badge--welcome { background: rgba(52,211,153,0.12); color: #6ee7b7; }
.audit-badge--verify { background: rgba(34,197,94,0.12); color: #86efac; }
.audit-badge--giveaway { background: rgba(96,165,250,0.12); color: #93c5fd; }
.audit-badge--moderation { background: rgba(248,113,113,0.12); color: #fca5a5; }
.audit-info-summary { font-size: 0.9rem; font-weight: 600; color: #fff; line-height: 1.35; }
.audit-info-meta { font-size: 0.76rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.audit-time { font-size: 0.76rem; color: var(--muted2); white-space: nowrap; }
.audit-load-more-wrap { text-align: center; margin: 12px 0 4px; }
.mod-page-header > div:nth-child(2) { flex: 1; min-width: 0; }
.mod-page-title { margin: 0 0 4px; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.mod-page-lead { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; max-width: 62ch; }
.mod-page-lead a { color: var(--accent); text-decoration: none; }
.mod-page-lead code { font-size: 0.82em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border); color: rgba(255,255,255,0.9); }
.mod-page-toggle { margin-left: auto; flex-shrink: 0; align-self: center; }
.mod-header-btn { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; white-space: nowrap; }

.mod-card {
  padding: 20px 22px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mod-card--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mod-card--clickable { cursor: default; }
.mod-card-head { flex: 1; min-width: 0; }
.mod-card-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mod-card-title { display: block; font-size: 0.97rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mod-card-desc { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.mod-card-hint { display: block; font-size: 0.78rem; color: var(--muted2); margin-top: 6px; }
.mod-card-action-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.72); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.mod-card-action-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.mod-select { margin-top: 12px; width: 100%; }
.mod-number-inp { width: 120px; margin-top: 10px; }
.mod-date-inp { padding: 7px 10px; font-size: 0.84rem; }
.mod-save-row { margin-top: 6px; }
.mod-add-inline-btn {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.25);
  color: rgba(96,165,250,0.9); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mod-add-inline-btn:hover { background: rgba(96,165,250,0.22); color: #fff; }

/* Search + tags */
.mod-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9px; margin-top: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  transition: border-color 0.15s;
}
.mod-search-wrap:focus-within { border-color: var(--accent-border); }
.mod-search-ico { flex-shrink: 0; color: var(--muted); }
.mod-search-inp { flex: 1; background: transparent; border: none; outline: none; font: inherit; font-size: 0.85rem; color: var(--text); }
.mod-search-inp::placeholder { color: var(--muted2); }
.mod-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 0; }
.mod-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 10px; border-radius: 99px;
  background: rgba(96,165,250,0.15); border: 1px solid rgba(96,165,250,0.28);
  font-size: 0.78rem; font-weight: 600; color: rgba(96,165,250,0.9);
}
.mod-tag-x { width: 16px; height: 16px; border-radius: 50%; border: none; background: rgba(96,165,250,0.2); color: rgba(96,165,250,0.8); font-size: 0.7rem; cursor: pointer; display: grid; place-items: center; line-height: 1; transition: background 0.12s; }
.mod-tag-x:hover { background: rgba(248,113,113,0.3); color: #fca5a5; }
.mod-dropdown {
  margin-top: 6px; border-radius: 10px; overflow: hidden;
  background: rgba(8,14,28,0.98); border: 1px solid var(--glass-border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); max-height: 220px; overflow-y: auto;
}
.mod-dropdown.hidden { display: none !important; }
.mod-dropdown-item { padding: 9px 14px; font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.75); cursor: pointer; transition: background 0.1s; }
.mod-dropdown-item:hover { background: rgba(96,165,250,0.15); color: #fff; }

/* Preset bar */
.mod-preset-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mod-preset-btn {
  padding: 8px 16px; border-radius: 8px; font-size: 0.83rem; font-weight: 700;
  background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.72); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mod-preset-btn:hover { background: rgba(96,165,250,0.15); border-color: rgba(96,165,250,0.3); color: #fff; }
.mod-preset-btn--words { display: inline-flex; align-items: center; gap: 6px; }
.mod-preset-btn--words:hover { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); color: rgba(52,211,153,0.95); }

/* ── Badwords Modal ── */
.bw-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
}
.bw-modal.hidden { display: none !important; }
.bw-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  animation: fadein 0.2s ease;
}
.bw-modal-box {
  position: relative; z-index: 1;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #18181f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  animation: drop-in 0.22s cubic-bezier(0.22,1,0.36,1);
}
.bw-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(52,211,153,0.18), rgba(16,185,129,0.08));
  border-bottom: 1px solid rgba(52,211,153,0.2);
  border-radius: 18px 18px 0 0;
  flex-shrink: 0;
  color: rgba(110,231,183,0.9);
}
.bw-modal-title { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.bw-modal-desc {
  margin: 0; padding: 12px 18px 8px;
  font-size: 0.83rem; color: var(--muted); line-height: 1.5;
  flex-shrink: 0;
}
.bw-modal-desc strong { color: rgba(96,165,250,0.9); font-weight: 700; }
.bw-modal-add {
  display: flex; gap: 8px; padding: 0 18px 10px;
  flex-shrink: 0;
}
.bw-add-input {
  flex: 1; padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: #fff; font-size: 0.88rem;
  outline: none; transition: border-color 0.15s;
}
.bw-add-input:focus { border-color: rgba(52,211,153,0.4); }
.bw-add-btn {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: rgba(52,211,153,0.18); border: 1px solid rgba(52,211,153,0.3);
  color: rgba(110,231,183,0.9); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.bw-add-btn:hover { background: rgba(52,211,153,0.28); }
.bw-modal-filter {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 10px;
  color: var(--muted); flex-shrink: 0;
}
.bw-filter-input {
  flex: 1; padding: 7px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: #fff; font-size: 0.82rem; outline: none;
  transition: border-color 0.15s;
}
.bw-filter-input:focus { border-color: rgba(255,255,255,0.2); }
.bw-word-count { font-size: 0.78rem; font-weight: 700; color: var(--muted2); white-space: nowrap; margin-left: auto; }
.bw-tags-scroll {
  flex: 1; overflow-y: auto; min-height: 80px; max-height: 320px;
  padding: 4px 18px 12px;
  display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start;
  scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent;
}
.bw-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 12px; border-radius: 99px;
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.22);
  color: rgba(110,231,183,0.9); font-size: 0.8rem; font-weight: 700;
  transition: background 0.12s;
}
.bw-tag-x {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: rgba(52,211,153,0.12); color: rgba(110,231,183,0.7);
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
  padding: 0;
}
.bw-tag-x:hover { background: rgba(248,113,113,0.2); color: #fca5a5; }
.bw-modal-foot {
  display: flex; align-items: center; padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0; gap: 8px;
  border-radius: 0 0 18px 18px;
  background: rgba(0,0,0,0.2);
}
.bw-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 0.85rem; width: 100%; }

/* AutoMod rule items */
.automod-rule-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  transition: border-color 0.15s;
}
.automod-rule-item:hover { border-color: var(--glass-border-strong); }
.automod-rule-name { flex: 1; font-size: 0.9rem; font-weight: 700; color: #fff; }
.automod-rule-type {
  padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em;
  background: rgba(96,165,250,0.15); color: rgba(96,165,250,0.9); border: 1px solid rgba(96,165,250,0.25);
}
.automod-rule-action {
  padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  background: rgba(251,191,36,0.12); color: rgba(251,191,36,0.85); border: 1px solid rgba(251,191,36,0.25);
}
.automod-rule-delete {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--glass-border);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: background 0.12s, color 0.12s;
}
.automod-rule-delete:hover { background: rgba(248,113,113,0.15); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

/* Rule form */
.mod-rule-form {
  padding: 18px 20px; border-radius: 12px; margin-top: 14px;
  background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.2);
}
.mod-rule-form.hidden { display: none !important; }
.mod-rule-form-title { margin: 0 0 14px; font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.mod-rule-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mod-rule-form-actions { display: flex; gap: 8px; }
.mod-form-field { display: flex; flex-direction: column; gap: 5px; }
.esk-rule-form-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.esk-rule-form-btns { display: flex; gap: 6px; align-items: flex-end; padding-bottom: 1px; }

/* Escalation rules list */
.esk-rules-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.esk-rule-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.esk-rule-strikes { font-size: 0.88rem; font-weight: 700; color: #fff; }
.esk-rule-arrow { color: var(--muted); font-size: 0.82rem; }
.esk-rule-action { padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; background: rgba(251,191,36,0.12); color: rgba(251,191,36,0.85); border: 1px solid rgba(251,191,36,0.25); }
.esk-rule-del { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--glass-border); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background 0.12s, color 0.12s; }
.esk-rule-del:hover { background: rgba(248,113,113,0.15); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

/* Cases filters */
.mod-cases-filters {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.mod-cases-filter-field { display: flex; flex-direction: column; gap: 5px; }
.mod-cases-filter-field--wide { flex: 1; min-width: 200px; }
.mod-cases-filter-lbl { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mod-cases-apply { align-self: flex-end; }

/* Cases list */
.case-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  transition: border-color 0.15s;
}
.case-item:hover { border-color: var(--glass-border-strong); }
.case-badge { padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.case-badge--warn { background: rgba(251,191,36,0.14); color: rgba(251,191,36,0.9); border: 1px solid rgba(251,191,36,0.25); }
.case-badge--mute { background: rgba(96,165,250,0.14); color: rgba(96,165,250,0.9); border: 1px solid rgba(96,165,250,0.25); }
.case-badge--kick { background: rgba(251,146,60,0.14); color: rgba(251,146,60,0.9); border: 1px solid rgba(251,146,60,0.25); }
.case-badge--ban { background: rgba(248,113,113,0.14); color: rgba(248,113,113,0.9); border: 1px solid rgba(248,113,113,0.25); }
.case-badge--delete { background: rgba(255,255,255,0.08); color: var(--muted); border: 1px solid var(--glass-border); }
.case-info { flex: 1; min-width: 0; }
.case-user { font-size: 0.88rem; font-weight: 700; color: #fff; }
.case-reason { font-size: 0.78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-time { font-size: 0.76rem; color: var(--muted2); flex-shrink: 0; white-space: nowrap; }

/* Empty state */
.mod-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 52px 20px; border-radius: 14px; text-align: center;
  border: 1px dashed var(--glass-border); background: rgba(255,255,255,0.02);
  color: var(--muted);
}
.mod-empty svg { opacity: 0.35; }
.mod-empty p { margin: 0; font-size: 0.9rem; font-weight: 600; }

/* ---- Toast ---- */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: flex; align-items: stretch; gap: 0;
  min-width: min(360px, calc(100vw - 32px)); max-width: 420px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 24px 64px rgba(0,0,0,0.55);
  overflow: hidden;
}
.toast-check { width: 52px; flex-shrink: 0; display: grid; place-items: center; background: rgba(52,211,153,0.1); color: var(--ok); border-right: 1px solid rgba(52,211,153,0.2); }
.toast-body { position: relative; flex: 1; padding: 16px 38px 12px 14px; min-width: 0; }
.toast-msg { margin: 0 0 10px; font-size: 0.92rem; font-weight: 700; line-height: 1.45; color: #fff; }
.toast-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: color 0.12s, background 0.12s; }
.toast-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.toast-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.toast-progress { height: 100%; width: 100%; transform-origin: left center; background: linear-gradient(90deg, #10b981, #34d399); transform: scaleX(1); }
.toast.is-visible .toast-progress { animation: toast-progress 5.2s linear forwards; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---- Guild dashboard ---- */
.guild-layout {
  display: none;
  flex: 1;
  flex-direction: row;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  gap: 0;
}
.guild-layout:not(.hidden) { display: flex; }

.guild-rail {
  width: 272px;
  min-width: 272px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 10px 12px 12px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.guild-rail-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.guild-rail-picker-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.guild-rail-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.guild-rail-picker:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.guild-rail-picker-bot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.9), rgba(76, 29, 149, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.35);
  overflow: hidden;
}
.guild-rail-picker-bot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.guild-rail-picker-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.guild-rail-picker-prefix {
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}
.guild-rail-picker-sep {
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}
.guild-rail-picker-server {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}
.guild-rail-picker-chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s;
}
.guild-rail-picker-wrap.is-open .guild-rail-picker-chevron {
  transform: rotate(180deg);
}
.guild-rail-picker-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(100% - 2px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 18, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  max-height: min(320px, 50vh);
  overflow-y: auto;
}
.guild-rail-picker-item,
.guild-rail-picker-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.guild-rail-picker-item:hover,
.guild-rail-picker-all:hover {
  background: rgba(255, 255, 255, 0.08);
}
.guild-rail-picker-item.is-picked {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.guild-rail-picker-ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
}
.guild-rail-picker-section {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  list-style: none;
  pointer-events: none;
}
.guild-rail-picker-item-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  gap: 2px;
  text-align: left;
}
.guild-rail-picker-owner {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.is-light .guild-rail-picker-section {
  color: rgba(26, 16, 51, 0.45);
}
body.is-light .guild-rail-picker-owner {
  color: rgba(26, 16, 51, 0.5);
}
.guild-rail-picker-all {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
}

.guild-rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 8px;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.guild-nav-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.guild-nav-group:first-of-type {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}
.guild-nav-group--soon {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.guild-nav-group--soon .guild-nav-group-label {
  color: rgba(255, 255, 255, 0.22);
}
.guild-nav-group-label {
  display: block;
  margin: 0 8px 5px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.guild-nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.guild-nav-btn svg:first-of-type {
  flex-shrink: 0;
  opacity: 0.88;
}
.guild-nav-btn--sub { font-size: 0.82rem; }
.guild-nav-btn--overview { margin-bottom: 4px; }
.guild-nav-btn:hover:not(:disabled):not(.guild-nav-btn--soon) {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}
.guild-nav-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.guild-nav-btn:disabled,
.guild-nav-btn--soon {
  opacity: 0.34;
  cursor: not-allowed;
}
.guild-nav-btn-text { flex: 1; min-width: 0; }
.guild-nav-soon-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.guild-nav-btn--soon .guild-nav-soon-badge {
  opacity: 1;
}

.guild-nav-group .guild-nav-btn--module.guild-nav-btn--sub::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  flex-shrink: 0;
}
.guild-nav-btn--section.guild-nav-btn--module::before {
  display: none;
}

.guild-nav-fold { display: flex; flex-direction: column; gap: 1px; }

.guild-nav-tooltip {
  position: fixed;
  z-index: 160;
  pointer-events: none;
  max-width: min(280px, calc(100vw - 24px));
  opacity: 0;
  transform: translateX(-8px) scale(0.97);
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.guild-nav-tooltip:not(.hidden) { display: block; }
.guild-nav-tooltip.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.guild-nav-tooltip.is-hiding {
  opacity: 0;
  transform: translateX(-6px) scale(0.98);
  transition-duration: 0.14s;
}
.guild-nav-tooltip-inner {
  padding: 11px 13px 12px;
  border-radius: 12px;
  background: rgba(12, 12, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.guild-nav-tooltip-arrow {
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  transform: rotate(45deg);
  background: rgba(12, 12, 22, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: top 0.15s ease;
}
.guild-nav-tooltip.is-flipped .guild-nav-tooltip-arrow {
  left: auto;
  right: -6px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.guild-nav-tooltip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.guild-nav-tooltip-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}
.guild-nav-tooltip-icon svg { display: block; }
.guild-nav-tooltip-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.guild-nav-tooltip-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
}
body.is-light .guild-nav-tooltip-inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(109, 40, 217, 0.14);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.12);
}
body.is-light .guild-nav-tooltip-arrow {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(109, 40, 217, 0.14);
}
body.is-light .guild-nav-tooltip-title { color: #1a1033; }
body.is-light .guild-nav-tooltip-desc { color: rgba(26, 16, 51, 0.58); }

.guild-rail-premium {
  position: relative;
  flex-shrink: 0;
  margin: 6px 8px 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(12, 10, 22, 0.95);
}
.guild-rail-premium.hidden { display: none !important; }
.guild-rail-premium-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(192, 132, 252, 0.35) 0%, transparent 72%);
}
.guild-rail-premium-inner {
  position: relative;
  padding: 14px 12px 12px;
}
.guild-rail-premium-crown { display: block; margin-bottom: 8px; }
.guild-rail-premium-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.guild-rail-premium-desc {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}
.guild-rail-premium-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: rgba(88, 28, 135, 0.55);
  color: #f5d0fe;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 14px rgba(109, 40, 217, 0.25);
}
.guild-rail-premium-cta:hover {
  background: rgba(109, 40, 217, 0.65);
  border-color: rgba(216, 180, 254, 0.65);
  color: #fff;
}
.guild-rail-premium-cta svg { flex-shrink: 0; opacity: 0.9; }

/* ---- Owner Premium Panel ---- */
.account-subs-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.account-sub-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03);
}
.account-sub-ico { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.account-sub-ico--ph {
  display: grid; place-items: center; background: rgba(96,165,250,0.2); color: #93c5fd; font-weight: 800;
}
.account-sub-body { flex: 1; min-width: 0; }
.account-sub-name { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #fff; }
.account-sub-meta { margin: 0; font-size: 0.82rem; color: var(--muted); }
.account-sub-plan { color: #fcd34d; font-weight: 700; }
.account-credit-hint {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
  font-size: 0.84rem; color: #6ee7b7;
}
.account-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.account-empty-btn-secondary { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); }
.account-page-icon--shop {
  background: rgba(251,191,36,0.12); color: #fcd34d;
  border-color: rgba(251,191,36,0.28);
}
/* ---- Shop ---- */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 22px;
  align-items: start;
}
.shop-hero {
  position: sticky;
  top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(155deg, rgba(251, 191, 36, 0.14), rgba(109, 40, 217, 0.12) 55%, rgba(255, 255, 255, 0.03));
  overflow: hidden;
}
.shop-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  pointer-events: none;
}
.shop-hero-inner { position: relative; padding: 20px 18px; }
.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}
.shop-hero-badge i { color: #fbbf24; font-size: 0.62rem; }
.shop-hero-title { margin: 12px 0 8px; font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.25; }
.shop-hero-lead { margin: 0 0 14px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.shop-hero-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-hero-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}
.shop-hero-perks i {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  text-align: center;
  color: #93c5fd;
}
.shop-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.shop-wallet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.24);
}
.shop-wallet-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.shop-wallet-body { flex: 1; min-width: 140px; }
.shop-wallet-label { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 2px; }
.shop-wallet-amount { font-size: 1.35rem; font-weight: 800; color: #6ee7b7; letter-spacing: -0.02em; }
.shop-wallet-amount--low { color: #fcd34d; }
.shop-wallet-hint { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--muted2); }
.shop-wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.shop-wallet-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.shop-wallet-btn--primary {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.35), rgba(16, 185, 129, 0.22));
  border-color: rgba(52, 211, 153, 0.45);
  color: #ecfdf5;
}
.shop-wallet-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: rgba(255, 255, 255, 0.85);
}
.shop-wallet-btn:hover { filter: brightness(1.08); }
.shop-loading,
.shop-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
.shop-empty--err { color: #fca5a5; }
.shop-category { margin-bottom: 8px; }
.shop-category-head { margin-bottom: 16px; }
.shop-category-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.shop-category-desc { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; max-width: 720px; }
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.shop-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.shop-product-card:hover {
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.shop-product-card--featured {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}
.shop-product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.shop-product-duration-wrap { display: flex; flex-direction: column; line-height: 1; }
.shop-product-duration {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}
.shop-product-duration-unit {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.shop-product-badge {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.shop-product-card--featured .shop-product-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1408;
  border-color: transparent;
}
.shop-product-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.shop-price-main { font-size: 1.4rem; font-weight: 800; color: #fcd34d; letter-spacing: -0.02em; }
.shop-price-compare { font-size: 0.8rem; color: var(--muted2); text-decoration: line-through; }
.shop-product-savings {
  font-size: 0.68rem;
  font-weight: 800;
  color: #6ee7b7;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.shop-product-monthly { margin: 0; font-size: 0.74rem; color: var(--muted2); }
.shop-product-buy {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(109, 40, 217, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.shop-product-card--featured .shop-product-buy {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.85));
  border-color: rgba(251, 191, 36, 0.6);
  color: #1c1408;
}
.shop-product-buy:hover { filter: brightness(1.06); }
.shop-category--credit { margin-top: 8px; }
.shop-credit-steps {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-credit-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.shop-credit-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(96, 165, 250, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.shop-credit-step strong { display: block; font-size: 0.88rem; color: #fff; margin-bottom: 2px; }
.shop-credit-step p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.shop-credit-cta {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: rgba(109, 40, 217, 0.3);
  color: #fff;
  cursor: pointer;
}
.shop-inline-link {
  border: none;
  background: none;
  padding: 0;
  color: #93c5fd;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.shop-inline-link:hover { color: #e9d5ff; }
.shop-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted2);
  line-height: 1.5;
}
.shop-footnote i { margin-top: 2px; color: var(--muted); flex-shrink: 0; }
/* Checkout modal */
.shop-checkout-body { display: flex; flex-direction: column; gap: 16px; }
.shop-checkout-product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(109, 40, 217, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.shop-checkout-product-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  min-width: 48px;
}
.shop-checkout-duration-num { font-size: 1.75rem; font-weight: 800; color: #fff; }
.shop-checkout-duration-unit {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.shop-checkout-product-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-checkout-badge {
  align-self: flex-start;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.25);
  color: #fde68a;
}
.shop-checkout-product-name { font-weight: 800; font-size: 0.95rem; color: #fff; }
.shop-checkout-product-sub { font-size: 0.76rem; color: var(--muted); }
.shop-checkout-product-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.shop-checkout-product-price { font-size: 1.25rem; font-weight: 800; color: #fcd34d; }
.shop-checkout-block { display: flex; flex-direction: column; gap: 10px; }
.shop-checkout-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}
.shop-checkout-step {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.72rem;
  background: rgba(96, 165, 250, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.shop-checkout-optional { font-weight: 600; font-size: 0.72rem; color: var(--muted2); }
.shop-partner-code-inp { width: 100%; }
.shop-purchase-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.shop-purchase-credit--ok { border-color: rgba(52, 211, 153, 0.3); color: #a7f3d0; }
.shop-purchase-credit--ok i { color: #6ee7b7; }
.shop-purchase-credit--low { border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.shop-purchase-credit--low i { color: #f87171; }
.shop-purchase-credit strong { color: #fff; }
.shop-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}
.shop-server-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.shop-server-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.08);
}
.shop-server-card.is-selected {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(96, 165, 250, 0.16);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.shop-server-card-icon,
.shop-server-card-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.shop-server-card-ph {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(109, 40, 217, 0.35);
  color: #e9d5ff;
}
.shop-server-card-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-server-card-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-server-card.is-selected .shop-server-card-check {
  background: #60a5fa;
  border-color: #60a5fa;
  color: #1e1033;
}
.shop-checkout-empty {
  margin: 0;
  padding: 12px;
  font-size: 0.84rem;
  color: #fca5a5;
  text-align: center;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.shop-purchase-confirm {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  transition: filter 0.15s, transform 0.15s;
}
.shop-purchase-confirm:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.shop-purchase-confirm:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.shop-purchase-confirm--warn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.85));
  color: #1c1408;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-hero { position: static; }
}
@media (max-width: 520px) {
  .shop-product-grid { grid-template-columns: 1fr 1fr; }
  .shop-checkout-product { grid-template-columns: auto 1fr; }
  .shop-checkout-product-price-wrap { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
}
.account-payments-list { display: flex; flex-direction: column; gap: 10px; }
.account-payment-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px;
}
.account-payment-title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 800; color: #fff; }
.account-payment-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.account-payment-side { text-align: right; flex-shrink: 0; }
.account-payment-row .account-payment-main {
  display: flex; align-items: flex-start; gap: 10px;
}
.account-payment-cp-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.account-payment-price { display: block; font-size: 1rem; font-weight: 800; }
.account-payment-price--in { color: #6ee7b7; }
.account-payment-price--out { color: #fca5a5; }
.account-payment-method { font-size: 0.72rem; color: var(--muted2); }
.shop-transfer-balance,
#creditTransferBalance {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
  font-size: 0.88rem; color: #6ee7b7; font-weight: 600;
}
.credit-transfer-user-pick {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 160px; overflow-y: auto; margin: 0 0 10px;
}
.credit-transfer-submit { width: 100%; margin-top: 4px; }
#creditTransferModal .inp-text { margin-bottom: 10px; }
.account-billing-form { max-width: 560px; }
.account-billing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px;
}
.account-billing-field--full { grid-column: 1 / -1; }
.account-billing-saved {
  margin: 0 0 10px; font-size: 0.84rem; color: #6ee7b7;
}
.account-billing-saved.hidden { display: none !important; }
.account-payment-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.account-payment-delete {
  padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.1); color: #fca5a5; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.account-payment-delete:hover { background: rgba(248,113,113,0.22); color: #fff; }
.admin-user-payments-section { margin: 16px 0; }
.admin-user-payments-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-user-payments-head .admin-user-guilds-title { margin: 0; }
.admin-user-payments-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.admin-user-payments-list.hidden { display: none !important; }
.account-payment-row--admin { margin: 0; }
.account-redeem-card { max-width: 520px; margin-bottom: 16px; }
.crypto-topup-card { border-color: rgba(96,165,250,0.28); background: linear-gradient(145deg, rgba(30,41,59,0.55), rgba(15,23,42,0.4)); }
.crypto-topup-card--soon { opacity: 0.92; }
.crypto-topup-soon-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.35);
}
.crypto-topup-head { margin-bottom: 12px; }
.crypto-topup-title { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: #fff; }
.crypto-topup-lead { margin: 0; }
.crypto-topup-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.crypto-topup-amt {
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #ececf4;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.crypto-topup-amt:hover { border-color: rgba(96,165,250,0.45); background: rgba(96,165,250,0.1); }
.crypto-topup-amt.is-selected {
  border-color: rgba(96,165,250,0.65);
  background: rgba(96,165,250,0.18);
  color: #fff;
}
.crypto-topup-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.crypto-topup-custom-row .inp-text { flex: 1; margin: 0; }
.crypto-topup-custom-suffix { font-weight: 700; color: #a1a1b5; }
.crypto-topup-limits { margin: 0 0 12px; }
.crypto-topup-pay { width: 100%; }
.crypto-topup-pay:disabled { opacity: 0.45; cursor: not-allowed; }
.account-page-icon--admin { background: rgba(251,191,36,0.12); color: #fcd34d; border-color: rgba(251,191,36,0.28); }
.admin-section { margin-bottom: 18px; }
.admin-section-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.admin-premium-search { margin-top: 10px; }
.admin-voucher-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 10px;
}
.admin-voucher-form .btn { grid-column: 1 / -1; justify-self: start; }
.admin-voucher-form .lbl.hidden,
.admin-voucher-form .inp-select.hidden,
.admin-voucher-form .inp-text.hidden { display: none; }
.oauth-join-chip {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  font-size: 0.82rem;
  color: #a5b4fc;
  font-weight: 600;
}
.admin-voucher-created {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 10px;
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25);
  font-size: 0.88rem; color: #a7f3d0;
}
.admin-voucher-created code { font-weight: 800; color: #fff; }
.admin-voucher-table-wrap { overflow-x: auto; margin-top: 10px; }
.admin-voucher-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.admin-voucher-table th,
.admin-voucher-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-voucher-table th { color: var(--muted2); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; }
.admin-voucher-table code { font-size: 0.78rem; color: #e9d5ff; }
.admin-voucher-redeemer { min-width: 140px; }
.admin-voucher-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.admin-voucher-del {
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}
.admin-voucher-del:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fecaca !important;
}
.admin-partner-list-wrap {
  margin-top: 14px;
}
.admin-partner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-partner-table th,
.admin-partner-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.admin-partner-table th {
  color: var(--muted2);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.admin-partner-actions {
  white-space: nowrap;
  text-align: right;
}
.acct-partner-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.acct-partner-pick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.acct-partner-pick-btn.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.12);
}
.acct-partner-pick-btn img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.acct-partner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.acct-partner-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.acct-partner-code-row .inp-text {
  flex: 1;
  min-width: 160px;
}
.acct-partner-credit-banner {
  margin-bottom: 16px;
}
.acct-partner-credit-val {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: #e9d5ff;
}
/* Partner-Bewerbung (Dashboard + /partners) */
.partner-apply-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 18, 32, 0.85);
  overflow: hidden;
}
.partner-apply-glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 200px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.35), transparent 70%);
  pointer-events: none;
}
.partner-apply-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px 28px;
  gap: 12px;
}
.partner-apply-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}
.partner-apply-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.partner-apply-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
}
.partner-apply-cta {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  margin-top: 4px;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.35);
}
.partner-apply-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0 4px;
  color: var(--muted2);
  font-size: 0.78rem;
}
.partner-apply-divider::before,
.partner-apply-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.partner-apply-owners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.partner-apply-owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e9d5ff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.partner-apply-owner-chip:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  color: #fff;
}
.partner-apply-no-owners {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted2);
}
.acct-partner-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
  margin-bottom: 14px;
}
@media (min-width: 560px) {
  .acct-partner-profile-grid {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}
.acct-partner-sales-card .audit-entry-user,
.acct-partner-sales-card .audit-entry-guild-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.acct-partner-sales-card .audit-entry-user:hover,
.acct-partner-sales-card .audit-entry-guild-link:hover {
  color: #e9d5ff;
}
.acct-creator-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.acct-creator-status--ok {
  color: #6ee7b7;
}
.acct-creator-status--warn {
  color: #fcd34d;
}
.kb-creator-bio {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted2);
  text-align: center;
}
.kb-creator-meta {
  margin: 0 0 6px;
  text-align: center;
}
.kb-creator-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 6px;
}
.kb-creator-badge--live {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}
.kb-creator-badge--video {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

/* ── Risiko-Server ── */
.rw-info-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.06));
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.rw-info-banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #93c5fd;
}
.rw-info-banner p {
  margin: 0;
}
.rw-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .rw-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rw-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.rw-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.rw-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rw-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.rw-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.rw-page-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.rw-page-tab.is-active {
  color: #fff;
  background: rgba(96, 165, 250, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.rw-page-panel.hidden {
  display: none !important;
}
.rw-settings-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .rw-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.rw-settings-card .lbl {
  margin-top: 12px;
}
.rw-save-btn {
  width: 100%;
  margin-top: 14px;
}
.rw-check-card {
  margin-top: 0;
}
.rw-check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.rw-check-input {
  flex: 1;
  min-width: 200px;
}
.rw-check-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rw-result-box {
  min-height: 88px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}
.rw-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.rw-result-placeholder svg {
  opacity: 0.35;
}
.rw-result-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.rw-result-card--ok {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}
.rw-result-card--hit {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}
.rw-result-card--warn {
  border-color: rgba(252, 211, 77, 0.28);
  background: rgba(252, 211, 77, 0.07);
}
.rw-result-card--loading {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  align-items: center;
}
.rw-result-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.rw-result-card--ok .rw-result-icon { color: #6ee7b7; }
.rw-result-card--hit .rw-result-icon { color: #fca5a5; }
.rw-result-card--warn .rw-result-icon { color: #fcd34d; }
.rw-result-body {
  flex: 1;
  min-width: 0;
}
.rw-result-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
}
.rw-result-card--ok .rw-result-title { color: #6ee7b7; }
.rw-result-card--hit .rw-result-title { color: #fca5a5; }
.rw-result-card--warn .rw-result-title { color: #fcd34d; }
.rw-result-hits {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rw-result-hit-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.86rem;
}
.rw-result-hit-item strong {
  font-weight: 700;
}
.rw-list-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.rw-list-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rw-list-tab:hover {
  color: #fff;
}
.rw-list-tab.is-active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.14);
}
.rw-list-panel.hidden {
  display: none !important;
}
.rw-add-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .rw-add-form {
    grid-template-columns: 1.2fr 1fr 1.2fr auto;
    align-items: center;
  }
}
.rw-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rw-server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.rw-server-card-main {
  min-width: 0;
  flex: 1;
}
.rw-server-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.rw-server-card-id {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.rw-server-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rw-cat-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rw-cat-pill--cheating { color: #fecaca; background: rgba(239, 68, 68, 0.18); }
.rw-cat-pill--selling { color: #fdba74; background: rgba(249, 115, 22, 0.18); }
.rw-cat-pill--leak { color: #93c5fd; background: rgba(59, 130, 246, 0.2); }
.rw-cat-pill--scam { color: #fde047; background: rgba(234, 179, 8, 0.15); }
.rw-cat-pill--other { color: #d1d5db; background: rgba(255, 255, 255, 0.1); }
.rw-source-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.rw-disabled-hint {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.2);
  color: #fcd34d;
  font-size: 0.86rem;
}
.rw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.rw-empty svg {
  opacity: 0.3;
}
.rw-activity-layout {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .rw-activity-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }
}
.rw-activity-list-card,
.rw-activity-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.rw-join-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.rw-join-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.rw-join-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.rw-join-row.is-selected {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.15);
}
.rw-join-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.rw-join-avatar--placeholder {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.2));
}
.rw-join-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rw-join-name {
  font-size: 0.92rem;
  font-weight: 700;
}
.rw-join-main .admin-muted-id {
  font-size: 0.72rem;
}
.rw-join-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.rw-join-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}
.rw-join-badge--hit {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.18);
}
.rw-join-badge--ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
}
.rw-join-action {
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.7rem;
}
.rw-detail-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.rw-detail-placeholder svg {
  opacity: 0.25;
}
.rw-detail-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rw-detail-panel.hidden,
.rw-detail-placeholder.hidden {
  display: none !important;
}
.rw-activity-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rw-detail-heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.rw-join-detail-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.rw-join-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}
.rw-join-detail-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.rw-join-detail-meta {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  font-size: 0.86rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rw-join-detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rw-join-detail-meta div:last-child {
  border-bottom: none;
}
.rw-join-detail-meta dt {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.rw-join-detail-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.rw-detail-recheck {
  margin-top: auto;
  width: 100%;
}
.rw-detail-hits {
  margin-bottom: 14px;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  min-height: 0;
}

.risk-watch-recent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.mod-settings-tabs {
  margin-bottom: 20px;
}

.mod-settings-subtabs {
  margin-top: 4px;
  margin-bottom: 14px;
}

.mod-settings-tab-panel.hidden {
  display: none;
}

.admin-rw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.admin-rw-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-rw-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-rw-tab.is-active {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: #fff;
}
.admin-rw-panel.hidden {
  display: none !important;
}
.admin-rw-sub-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.admin-rw-tab .account-nav-badge {
  margin-left: 0;
  font-size: 0.58rem;
}
.admin-rw-sub-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.acct-partner-sale-time {
  font-size: 0.82rem;
  color: var(--muted2);
  font-style: normal;
}
.shop-partner-code-lbl {
  margin-top: 12px;
}
.shop-partner-code-inp {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.shop-partner-preview {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}
.shop-partner-preview--ok {
  color: #86efac;
}
.shop-partner-preview--err {
  color: #fca5a5;
}
.shop-partner-preview strong {
  color: #fff;
}
.admin-link-user {
  border: none; background: none; padding: 0; color: #93c5fd; font-weight: 700;
  cursor: pointer; text-decoration: underline; font-size: inherit;
}
.admin-link-user:hover { color: #e9d5ff; }
.admin-muted-id { display: block; font-size: 0.68rem; color: var(--muted2); margin-top: 2px; }
.admin-user-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 220px; overflow-y: auto; }
.admin-user-hit {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; text-align: left;
}
.admin-user-hit:hover { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.3); }
.admin-user-hit-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-user-hit-av--ph {
  display: grid; place-items: center; background: rgba(96,165,250,0.2); font-weight: 800;
}
.admin-user-hit-name { display: block; font-weight: 700; font-size: 0.9rem; }
.admin-user-hit-meta { display: block; font-size: 0.72rem; color: var(--muted2); }
.admin-user-profile {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-user-profile-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 20px; margin-bottom: 14px;
}
.admin-user-profile-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-user-profile-av--ph {
  display: grid; place-items: center; background: rgba(96,165,250,0.2);
  font-weight: 800; font-size: 1.2rem;
}
.admin-user-profile-info { flex: 1; min-width: 180px; }
.admin-user-profile-name { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.admin-user-profile-meta { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.admin-user-profile-meta code { font-size: 0.78rem; color: #e9d5ff; }
.admin-discord-open { padding: 6px 12px; font-size: 0.78rem; }
.admin-user-credit-box {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.22);
  text-align: center; min-width: 100px;
}
.admin-user-credit-label { display: block; font-size: 0.72rem; color: var(--muted); }
.admin-user-credit-val { display: block; font-size: 1.2rem; color: #6ee7b7; }
.admin-user-credit-actions { margin-bottom: 16px; max-width: 480px; }
.admin-user-guilds-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 800; color: #fff; }
.admin-user-guild-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-user-guild-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
}
.admin-user-guild-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.admin-user-guild-ph {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(96,165,250,0.2); font-weight: 800; flex-shrink: 0;
}
.admin-user-guild-body { flex: 1; min-width: 0; }
.admin-user-guild-name { display: block; font-weight: 700; font-size: 0.88rem; color: #fff; }
.admin-user-guild-meta { display: block; font-size: 0.72rem; color: var(--muted2); margin-top: 2px; }
.admin-user-guild-premium { color: #fcd34d; font-weight: 700; }
.admin-user-guild-free { color: var(--muted2); }
.admin-guild-premium-btn { padding: 5px 10px; font-size: 0.72rem; flex-shrink: 0; }
.pm-modal-box--narrow { max-width: 400px; }
.redeem-server-list { display: flex; flex-direction: column; gap: 8px; }
.redeem-server-hit {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; text-align: left;
}
.redeem-server-hit:hover { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.35); }
.redeem-server-hit img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.redeem-server-hit-ph {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(96,165,250,0.2); font-weight: 800;
}
.redeem-server-hit-name { font-weight: 700; font-size: 0.92rem; }
.owner-premium-panel {
  margin-bottom: 28px; padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(109,40,217,0.12));
  border: 1px solid rgba(251,191,36,0.28);
}
.owner-premium-panel.hidden { display: none !important; }
.owner-premium-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.owner-premium-lead { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.owner-premium-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 0 14px; height: 42px;
  border-radius: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
}
.owner-premium-search:focus-within { border-color: rgba(251,191,36,0.45); }
.owner-premium-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.owner-premium-hit {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: inherit; font-family: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.owner-premium-hit:hover { background: rgba(255,255,255,0.08); border-color: rgba(96,165,250,0.35); }
.owner-premium-hit-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); object-fit: cover;
  display: grid; place-items: center; font-weight: 800; color: rgba(255,220,160,0.9);
}
.owner-premium-hit-body { flex: 1; min-width: 0; }
.owner-premium-hit-name { display: block; font-size: 0.92rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-premium-hit-meta { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.owner-premium-hit-badge {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35); color: #fde68a;
}
.owner-premium-hit-badge--muted {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #e9d5ff;
}
.owner-premium-empty { margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); }

/* ---- Premium Guild Modal ---- */
.pm-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.pm-modal.hidden { display: none !important; }
body.shop-modal-open { overflow: hidden; }
#shopPurchaseModal.pm-modal:not(.hidden) { z-index: 250; }
.pm-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
}
.pm-modal-box {
  position: relative; width: min(480px, 100%);
  border-radius: 16px; overflow: hidden;
  background: rgba(8,14,28,0.98);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
}
.pm-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--glass-border);
}
.pm-modal-head-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pm-modal-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); object-fit: cover;
  display: grid; place-items: center; font-weight: 800; color: rgba(255,220,160,0.9);
}
.pm-modal-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; }
.pm-modal-sub { margin: 4px 0 0; font-size: 0.76rem; color: var(--muted2); font-variant-numeric: tabular-nums; }
.pm-modal-body { padding: 18px 20px 22px; }
.pm-modal-loading { font-size: 0.88rem; color: var(--muted); }
.pm-modal-content.hidden { display: none !important; }
.pm-stats-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pm-stat-pill {
  padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: var(--muted);
}
.pm-owner-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.pm-owner-row.hidden { display: none !important; }
.pm-owner-av { border-radius: 50%; border: 1px solid var(--glass-border); }
.pm-owner-av--sm { width: 24px; height: 24px; }
.pm-owner-lbl { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted2); }
.pm-owner-name { display: block; font-size: 0.88rem; font-weight: 700; color: #fff; margin-top: 2px; }
/* Owner override card */
.pm-owner-override-card {
  margin-bottom: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(59, 130, 246, 0.07); border: 1px solid rgba(59, 130, 246, 0.25);
}
.pm-owner-override-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 10px;
}
.pm-owner-override-current {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.05); margin-bottom: 8px;
  font-size: 0.88rem; color: #fff; font-weight: 600;
}
.pm-owner-override-current.hidden { display: none !important; }
.pm-override-clear-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--muted2); padding: 2px; display: flex; align-items: center;
  border-radius: 4px; transition: color 0.15s;
}
.pm-override-clear-btn:hover { color: #ff6b6b; }
.pm-owner-override-form { display: flex; gap: 8px; align-items: center; }
.pm-owner-inp { flex: 1; font-size: 0.85rem; }
.btn-welcome--sm { padding: 7px 14px; font-size: 0.82rem; white-space: nowrap; }
.pm-override-hint {
  margin: 8px 0 0; font-size: 0.75rem; color: var(--muted2); line-height: 1.4;
}
.pm-status-card {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.pm-status-card.is-premium {
  background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.35);
}
.pm-status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.08); color: var(--muted);
}
.pm-status-card.is-premium .pm-status-badge {
  background: rgba(251,191,36,0.2); color: #fde68a;
}
.pm-status-meta { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.pm-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.guild-work {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px 14px 10px 6px;
  background: transparent;
}
.app.app--guild .guild-head--compact { display: none; }
.guild-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 18px 24px; flex-shrink: 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.guild-head-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.guild-head-iconwrap { width: 52px; height: 52px; flex-shrink: 0; }
.guild-head-ico { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); }
.guild-head-ico.ph { display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: rgba(255,220,160,0.9); }
.guild-head-name { margin: 0; font-size: 1.28rem; font-weight: 800; letter-spacing: -0.03em; }
.guild-head-id { margin: 3px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--muted2); font-variant-numeric: tabular-nums; }
.guild-head-badge { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); box-shadow: 0 0 10px rgba(52,211,153,0.1); }
.guild-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guild-page.hidden { display: none !important; }
.guild-page:not(.hidden) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 22px 26px 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.2);
}
.guild-page-title { margin: 0 0 18px; font-size: 1.05rem; font-weight: 800; }
.guild-stats-block { margin-bottom: 24px; }
.guild-stats-title { margin: 0 0 10px; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); }
.guild-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guild-stats-error { margin: 0; padding: 14px 16px; grid-column: 1 / -1; border-radius: var(--radius); border: 1px solid rgba(251,191,36,0.3); background: rgba(251,191,36,0.07); color: #fde68a; font-size: 0.88rem; font-weight: 600; line-height: 1.45; }
.stat-card {
  padding: 16px 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  display: flex; flex-direction: column; gap: 5px; min-height: 90px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 3px 16px rgba(0,0,0,0.25);
}
.stat-card-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-card-value { font-size: 1.38rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.stat-card--skeleton { pointer-events: none; }
.stat-skel { border-radius: 8px; background: linear-gradient(110deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 45%, rgba(255,255,255,0.04) 90%); background-size: 200% 100%; animation: kf-shimmer 1.15s ease-in-out infinite; }
.stat-skel--label { height: 10px; width: 52%; }
.stat-skel--value { height: 24px; width: 68%; margin-top: 6px; }
@keyframes kf-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.stat-card--enter { animation: stat-rise 0.55s cubic-bezier(0.22, 0.82, 0.24, 1) backwards; }
@keyframes stat-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.guild-work.page-snap-in { animation: guild-pane-in 0.45s ease-out; }
@keyframes guild-pane-in { from { opacity: 0.4; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes card-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.guild-page-lead { margin: 0 0 20px; max-width: 62ch; font-size: 0.92rem; line-height: 1.55; font-weight: 500; color: var(--muted); }
.guild-info-list { margin: 0; padding-left: 1.1rem; max-width: 62ch; color: rgba(255,255,255,0.72); font-size: 0.88rem; line-height: 1.65; font-weight: 500; }
.guild-info-list li { margin-bottom: 10px; }
.guild-page-lead--tight { margin-bottom: 14px; }
.guild-page-lead code { font-size: 0.82em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border); color: rgba(255,255,255,0.9); }

/* ---- Welcome system ---- */
.welcome-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 20px; }
.toggle-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--muted); cursor: pointer; user-select: none; }
.toggle-line input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 600; font-size: 0.92rem; color: rgba(255,255,255,0.88); }
.switch--inline { margin-bottom: 6px; }
.switch-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.switch-track { position: relative; flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #fff, #e0e0e0); box-shadow: 0 1px 4px rgba(0,0,0,0.35); transition: transform 0.22s cubic-bezier(0.22, 0.82, 0.24, 1); }
.switch-input:checked + .switch-track { background: linear-gradient(135deg, var(--accent), #2563eb); border-color: rgba(255,255,255,0.2); box-shadow: 0 0 12px rgba(96,165,250,0.35); }
.switch-input:checked + .switch-track::after { transform: translate(20px, -50%); }
.switch-input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(96,165,250,0.4); }
.switch-input:disabled + .switch-track { opacity: 0.45; cursor: not-allowed; }
.switch-input:disabled ~ .switch-label { opacity: 0.55; }
.switch-label { line-height: 1.35; }
.welcome-field-hint { margin: 6px 0 0; font-size: 0.8rem; font-weight: 600; line-height: 1.45; color: rgba(253,230,138,0.95); }
.welcome-field-hint.hidden { display: none; }
.inp-select--channel-list { padding: 6px 8px; min-height: 168px; line-height: 1.35; }
.inp-select--channel-list option { padding: 6px 8px; border-radius: 6px; }
.btn-welcome { padding: 10px 18px; font-size: 0.9rem; border-radius: var(--radius); background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); transition: background 0.15s, border-color 0.15s; }
.btn-welcome:hover { background: rgba(255,255,255,0.13); border-color: var(--glass-border-strong); }
.btn-welcome--ghost { gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); }
.btn-welcome--ghost:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.btn-welcome--ghost:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.welcome-reload-ico { flex-shrink: 0; }
.welcome-meta-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.welcome-loading-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.welcome-loading-inline.hidden { display: none; }
.welcome-loading-text { letter-spacing: 0.02em; }
.welcome-load-ring,
.btn-load-ring,
.giveaway-load-ring {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent, #60a5fa);
  animation: welcome-spin 0.65s linear infinite;
}
.btn-discord .btn-load-ring { border-color: rgba(255,255,255,0.25); border-top-color: #fff; }
@keyframes welcome-spin { to { transform: rotate(360deg); } }

/* ---- Button loading state ---- */
.btn.is-loading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.92;
}
.btn-load-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 1.2em;
}
.btn-load-text { line-height: 1.2; }
.btn-discord.is-loading { filter: none; }
.btn-discord-block.is-loading { justify-content: center; }
.welcome-save-hint { font-size: 0.85rem; color: var(--muted); min-height: 1.2em; }
.welcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; } }
.welcome-card {
  margin: 0; padding: 16px 18px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: visible;
}
.welcome-card legend, .welcome-preview-title { font-weight: 700; font-size: 0.95rem; padding: 0 8px; color: rgba(255,255,255,0.92); }
.welcome-preview-title { margin: 0 0 12px; padding: 0; }
.welcome-card .lbl { display: block; margin: 12px 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.welcome-card .switch { margin-bottom: 2px; }
.inp-text, .inp-area, .inp-select {
  width: 100%; box-sizing: border-box; font: inherit;
  border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.28); color: #fff; padding: 10px 12px;
  transition: border-color 0.15s, background 0.15s;
}
.inp-text:focus, .inp-area:focus, .inp-select:focus { outline: none; border-color: var(--accent-border); background: rgba(0,0,0,0.38); box-shadow: 0 0 0 3px rgba(96,165,250,0.18); }
.inp-area { resize: vertical; min-height: 96px; line-height: 1.45; }
.inp-select--multi { padding: 8px; min-height: 160px; }
/* Volle Breite nur wenn genug Karten davor (z. B. Welcome/Verify); bei 2 Spalten nebeneinander */
.welcome-card--preview { grid-column: 1 / -1; }
.welcome-grid > .welcome-card--preview:nth-child(2):last-child {
  grid-column: auto;
}
.welcome-card:has(.kb-picker-trigger[aria-expanded="true"]) {
  position: relative;
  z-index: 40;
}
.welcome-card--preview .v2-preview--mt { margin-top: 14px; }
.sr-roles-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.sr-role-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 700px) {
  .sr-role-row { grid-template-columns: 1fr; }
}
.sr-role-remove { padding: 8px 12px; min-width: 40px; }
.v2-preview-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.v2-preview-box { border-radius: var(--radius); border: 1px solid var(--glass-border); background: rgba(0,0,0,0.25); padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.v2-preview-h { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #fff; white-space: pre-wrap; word-break: break-word; }
.v2-preview-body { font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.78); white-space: pre-wrap; word-break: break-word; }

/* ---- Embed Creator ---- */
.ec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 18px;
  align-items: start;
}
@media (max-width: 960px) {
  .ec-layout { grid-template-columns: 1fr; }
}
.ec-editor-card { min-width: 0; }
.ec-preview-card { position: sticky; top: 12px; }

/* Discord-Chat-Vorschau */
.ec-discord-chat {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e1f22;
  background: #313338;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ec-discord-channel-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #2b2d31;
  border-bottom: 1px solid #1e1f22;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f2f3f5;
}
.ec-discord-channel-hash { color: #949ba4; font-weight: 700; }
.ec-discord-channel-name { color: #dbdee1; }
.ec-discord-messages {
  padding: 16px 16px 20px;
  min-height: 160px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 40%),
    #313338;
}
.ec-discord-msg {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ec-discord-avatar-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-discord-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}
.ec-discord-avatar-ph {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.ec-discord-msg-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.ec-discord-msg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  line-height: 1.2;
}
.ec-discord-name {
  font-size: 1rem;
  font-weight: 600;
  color: #f2f3f5;
}
.ec-discord-bot-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  vertical-align: middle;
}
.ec-discord-time {
  font-size: 0.72rem;
  font-weight: 500;
  color: #949ba4;
}
.ec-v2-container {
  max-width: 520px;
  border-radius: 8px;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  padding: 12px 14px 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.ec-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 48px;
  transition: box-shadow 0.15s ease;
}
.ec-preview-stack.ec-drop-top { box-shadow: inset 0 3px 0 rgba(88, 101, 242, 0.9); }
.ec-preview-stack.ec-drop-bottom { box-shadow: inset 0 -3px 0 rgba(88, 101, 242, 0.9); }
.ec-v2-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.35;
  margin-bottom: 2px;
}
.ec-v2-body {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #dbdee1;
  word-break: break-word;
}
.ec-v2-body strong { color: #f2f3f5; font-weight: 600; }
.ec-preview-block--banner {
  border-radius: 8px;
  border: 1px dashed rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}
.ec-preview-block--banner.is-dragging {
  cursor: grabbing;
  opacity: 0.92;
  transform: scale(1.01);
}
.ec-banner-drag-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #949ba4;
}
.ec-preview-banner-img {
  height: 140px;
  background: center/cover no-repeat #1e1f22;
}
.ec-preview-sep {
  height: 1px;
  margin: 10px 0;
  background: #3f4147;
}
.ec-preview-buttons {
  margin-top: 2px;
  padding-top: 4px;
}
.ec-preview-buttons .v2-preview-btn-pair {
  flex-wrap: wrap;
  margin-top: 4px;
}
.ec-v2-container .v2-preview-btn {
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
}
.ec-v2-container .v2-preview-btn.is-verify,
.ec-v2-container .v2-preview-btn.is-primary {
  background: #248046;
  border: none;
  color: #fff;
}
.ec-v2-container .v2-preview-btn.is-stats,
.ec-v2-container .v2-preview-btn.is-secondary {
  background: #4e5058;
  border: none;
  color: #dbdee1;
}
.ec-v2-container .v2-preview-btn.is-danger {
  background: #da373c;
  border: none;
  color: #fff;
}
.ec-banner-pos-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ec-banner-pos-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted2);
  margin-right: auto;
}
.btn-welcome--sm { padding: 7px 12px; font-size: 0.82rem; }
.ec-placeholder-hint code { margin-right: 6px; }

/* Embed-Creator Hinweise auf Modul-Seiten */
.ec-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.28);
}
.ec-cta--compact {
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ec-cta-copy strong {
  display: block;
  font-size: 0.88rem;
  color: #f2f3f5;
  margin-bottom: 2px;
}
.ec-cta-copy span,
.ec-cta-hint {
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.45;
}
.ec-cta-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: #949cf0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ec-cta-link:hover { color: #93c5fd; }

/* Nachrichten: AutoMod-Wortliste */
.mt-automod-block {
  margin-bottom: 18px;
  padding: 14px 16px;
}
.mt-automod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mt-automod-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted2);
}
.mt-automod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.mt-automod-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f2f3f5;
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.35);
  cursor: default;
  user-select: none;
}
.mt-automod-tag::before {
  content: "🔒";
  margin-right: 5px;
  font-size: 0.65rem;
  opacity: 0.85;
}

/* ---- Nutzer (Mitglieder) ---- */
.mod-page-icon--users {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.35);
  color: #949cf0;
}
.us-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.us-search-wrap { flex: 1; min-width: 220px; max-width: 420px; }
.us-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted2);
}
.us-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.us-loading.hidden { display: none; }
.us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.us-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  text-align: center;
}
.us-card:hover {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.08);
  transform: translateY(-1px);
}
.us-card-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}
.us-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e1f22;
  background: #2b2d31;
}
.us-card-banner-chip {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5865f2;
  border: 2px solid #1e1f22;
  font-size: 0.55rem;
  line-height: 14px;
  text-align: center;
}
.us-card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f2f3f5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.us-card-user {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.us-card-bot {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.2);
  color: #949cf0;
}
.us-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0.01em;
}
.us-kruemel-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: 8px;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.52), rgba(59, 130, 246, 0.26));
  border: 1px solid rgba(125, 211, 252, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 10px rgba(37, 99, 235, 0.22);
  vertical-align: middle;
}
.us-kruemel-owner-badge--card {
  margin-top: 2px;
}
.us-kruemel-owner-badge--profile {
  /* inherits base */
}
.us-kruemel-owner-crown {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(37, 99, 235, 0.55));
}
.us-kruemel-owner-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.us-kruemel-owner-badge--profile .us-kruemel-owner-text {
  font-size: 0.7rem;
}
.us-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.us-empty.hidden { display: none; }
.us-load-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.us-load-more.hidden { display: none; }

.us-card-role {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}
.us-profile-modal .gv-modal-box.us-profile-box {
  max-width: 540px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 14, 28, 0.98);
}
.us-profile-hero {
  position: relative;
  height: 132px;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(8, 14, 28, 0.95) 100%);
}
.us-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8, 14, 28, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.us-profile-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}
.us-profile-banner-img.hidden { display: none; }
.us-profile-banner-fallback {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 48%, rgba(8, 14, 28, 0.2) 100%);
}
.us-profile-banner-fallback.hidden { display: none; }
.us-profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  margin: 0;
}
.us-profile-body {
  padding: 52px 20px 22px !important;
}
.us-profile-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.us-profile-loading.hidden,
.us-profile-main.hidden,
.us-profile-head.hidden { display: none !important; }
.us-profile-head {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  transform: translateY(50%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}
.us-profile-head-text {
  pointer-events: auto;
  padding-bottom: 4px;
  min-width: 0;
}
.us-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 5px solid rgba(8, 14, 28, 0.98);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.us-profile-name { margin: 0 0 2px; font-size: 1.2rem; }
.us-profile-username { margin: 0; }
.us-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.us-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.us-badge--ban { background: rgba(237, 66, 69, 0.2); color: #f47a7c; border: 1px solid rgba(237, 66, 69, 0.35); }
.us-badge--mute { background: rgba(250, 166, 26, 0.15); color: #fbbf24; border: 1px solid rgba(250, 166, 26, 0.35); }
.us-badge--bot { background: rgba(88, 101, 242, 0.2); color: #949cf0; border: 1px solid rgba(88, 101, 242, 0.35); }
.us-badge--left { background: rgba(148, 155, 164, 0.15); color: #b5bac1; border: 1px solid rgba(148, 155, 164, 0.3); }
.us-profile-meta,
.us-profile-roles,
.us-profile-actions {
  margin-bottom: 12px;
  padding: 14px 16px;
}
.us-profile-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  margin-bottom: 6px;
}
.us-profile-label-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.65rem;
}
.us-profile-meta-row--id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.us-profile-meta-row--id .us-profile-label { margin: 0; flex: 0 0 100%; }
.us-profile-id {
  font-size: 0.82rem;
  color: #f2f3f5;
  background: rgba(0, 0, 0, 0.22);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.us-profile-copy { flex-shrink: 0; }
.us-profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.us-profile-value {
  font-size: 0.88rem;
  color: #f2f3f5;
}
.us-profile-roles-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
}
.us-profile-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: #f2f3f5;
}
.us-profile-role--top {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.1);
}
.us-profile-role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}
.us-profile-role--empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 4px 0;
  border: none;
  background: none;
}
.us-profile-section-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}
.us-mod-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}
.us-mod-btn--danger {
  background: rgba(237, 66, 69, 0.2) !important;
  border-color: rgba(237, 66, 69, 0.45) !important;
  color: #f47a7c !important;
}
.us-mod-btn--danger:hover { background: rgba(237, 66, 69, 0.35) !important; }
.us-profile-modal.is-loading .us-profile-main {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .guild-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-main { padding: 32px 20px 48px; }
  .guild-stats-grid { grid-template-columns: 1fr 1fr; }
  .guild-rail { width: 240px; min-width: 240px; padding: 8px 6px 8px 8px; }
  .topnav-username { display: none; }
}

/* ---- Giveaway ---- */
.giveaway-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.giveaway-loading-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.giveaway-loading-inline.hidden { display: none; }
.giveaway-loading-text { letter-spacing: 0.02em; }
.giveaway-create-form { margin: 24px 0; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.giveaway-create-form.hidden { display: none; }
.giveaway-form-title { margin: 0 0 16px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.giveaway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 20px; }
@media (max-width: 900px) { .giveaway-grid { grid-template-columns: 1fr; } }
.giveaway-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .giveaway-form-grid { grid-template-columns: 1fr; } }
.giveaway-form-field { display: flex; flex-direction: column; }
.giveaway-form-field .lbl { display: block; margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.giveaway-form-actions { display: flex; gap: 12px; }
.giveaway-list { margin-top: 28px; }
.giveaway-list-title { margin: 0 0 16px; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.giveaway-list-items { display: flex; flex-direction: column; gap: 12px; }
.giveaway-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.giveaway-item-info { flex: 1; min-width: 0; }
.giveaway-item-prize { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.giveaway-item-meta { font-size: 0.85rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.giveaway-item-meta span { display: flex; align-items: center; gap: 4px; }
.giveaway-item-status { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.giveaway-item-status.active { background: rgba(52,211,153,0.15); color: #34d399; }
.giveaway-item-status.ended { background: rgba(255,255,255,0.1); color: var(--muted); }
.giveaway-item-actions { display: flex; gap: 8px; margin-left: 16px; }
.giveaway-item-actions .btn-welcome { padding: 8px 12px; font-size: 0.85rem; }
.giveaway-item { transition: border-color 0.15s, background 0.15s; }
.mod-page-icon--umfrage { background: rgba(96,165,250,0.12); color: #93c5fd; border-color: rgba(96,165,250,0.28); }
.umfrage-options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.umfrage-option-row { display: flex; gap: 8px; align-items: center; }
.umfrage-option-row .inp-text { flex: 1; margin: 0; }
.umfrage-switches { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.umfrage-result-bar { margin-bottom: 14px; }
.umfrage-result-label { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; color: #fff; }
.umfrage-result-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.umfrage-result-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.umfrage-result-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #60a5fa); border-radius: 4px; transition: width 0.2s; }
.umfrage-voters { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.giveaway-item:hover { background: rgba(255,255,255,0.07); border-color: var(--glass-border-strong); }
.giveaway-empty { padding: 32px; text-align: center; color: var(--muted); font-size: 0.95rem; border-radius: var(--radius); border: 1px dashed var(--glass-border); background: rgba(255,255,255,0.02); }

/* ---- Participants Modal ---- */
.gv-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.gv-modal.hidden { display: none !important; }
.gv-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gv-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; max-height: 80vh;
  display: flex; flex-direction: column;
  background: rgba(8,14,28,0.97);
  border: 1px solid var(--glass-border-strong);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: drop-in 0.22s cubic-bezier(0.22,0.82,0.24,1);
  overflow: hidden;
}
.gv-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 22px 16px; border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.gv-modal-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #fff; }
.gv-modal-sub { margin: 4px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.gv-modal-close {
  width: 32px; height: 32px; flex-shrink: 0; margin-left: 12px;
  border-radius: 8px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06); color: var(--muted);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.gv-modal-close:hover { background: rgba(248,113,113,0.15); color: #fca5a5; border-color: rgba(248,113,113,0.3); }
.gv-modal-body {
  flex: 1; overflow-y: auto; padding: 16px 22px 22px;
  scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent;
}
.gv-modal-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 0; justify-content: center; color: var(--muted); font-size: 0.9rem;
}
.gv-modal-loading.hidden { display: none !important; }
.gv-empty { text-align: center; padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.gv-empty.hidden { display: none !important; }
.gv-participant-list { display: flex; flex-direction: column; gap: 8px; }
.gv-participant {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  transition: background 0.15s;
}
.gv-participant:hover { background: rgba(255,255,255,0.07); }
.gv-participant-av {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}
.gv-participant-info { flex: 1; min-width: 0; }
.gv-participant-name { font-size: 0.9rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-participant-handle { font-size: 0.76rem; font-weight: 600; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-participant-kick {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--muted);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gv-participant-kick:hover { background: rgba(248,113,113,0.15); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

/* ---- Dashboard-Zugriff ---- */
.access-page-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.access-page-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(109,40,217,0.22); color: rgba(96,165,250,0.95);
  border: 1px solid rgba(109,40,217,0.32);
}
.access-page-title { margin: 0 0 4px; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.access-page-lead { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; max-width: 640px; }

.access-info-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 22px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.28);
  color: rgba(191,219,254,0.92);
}
.access-info-banner svg { flex-shrink: 0; margin-top: 1px; color: rgba(96,165,250,0.9); }
.access-info-banner p { margin: 0; font-size: 0.84rem; line-height: 1.55; font-weight: 500; }
.access-info-banner strong { color: #fff; font-weight: 700; }

.btn-access-primary {
  padding: 10px 18px; border-radius: 10px; font-size: 0.88rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: 1px solid rgba(96,165,250,0.35);
  box-shadow: 0 8px 24px rgba(109,40,217,0.35);
  transition: filter 0.15s, transform 0.12s;
}
.btn-access-primary:hover { filter: brightness(1.08); }
.btn-access-ghost {
  padding: 10px 18px; border-radius: 10px; font-size: 0.88rem; font-weight: 700;
  background: transparent; color: rgba(255,255,255,0.72);
  border: 1px solid var(--glass-border);
  transition: background 0.15s, color 0.15s;
}
.btn-access-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }

.access-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 56px 24px; border-radius: 16px; text-align: center;
  border: 1px dashed var(--glass-border); background: rgba(255,255,255,0.02);
}
.access-empty.hidden { display: none !important; }
.access-empty-ico { color: rgba(96,165,250,0.35); margin-bottom: 4px; }
.access-empty-title { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.access-empty-sub { margin: 0 0 8px; font-size: 0.84rem; color: var(--muted); max-width: 360px; line-height: 1.5; }

.access-toolbar { display: flex; justify-content: flex-end; margin-top: 16px; }
.access-toolbar.hidden { display: none !important; }

.access-role-list { display: flex; flex-direction: column; gap: 10px; }
.access-role-list.hidden { display: none !important; }
.access-role-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  transition: border-color 0.15s, background 0.15s;
}
.access-role-card:hover { border-color: var(--glass-border-strong); background: rgba(255,255,255,0.06); }
.access-role-card-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 800;
  background: rgba(96,165,250,0.18); border: 2px solid rgba(96,165,250,0.35);
  color: rgba(147,197,253,0.95);
}
.access-role-card-body { flex: 1; min-width: 0; }
.access-role-card-name { font-size: 0.95rem; font-weight: 800; color: #fff; }
.access-role-card-meta { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.access-role-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.access-role-card-btn {
  padding: 7px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.75); cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.access-role-card-btn:hover { background: rgba(96,165,250,0.15); color: #fff; }
.access-role-card-btn--danger:hover { background: rgba(248,113,113,0.15); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

/* Slide-over drawer */
.access-drawer {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
}
.access-drawer.is-open { pointer-events: auto; }
.access-drawer.hidden { display: none !important; }
.access-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.access-drawer.is-open .access-drawer-backdrop { opacity: 1; }
.access-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: #14141a;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -24px 0 64px rgba(0,0,0,0.55);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.access-drawer.is-open .access-drawer-panel { transform: translateX(0); }

.access-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(109,40,217,0.45), rgba(76,29,149,0.28));
  border-bottom: 1px solid rgba(96,165,250,0.2);
  flex-shrink: 0;
}
.access-drawer-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.access-drawer-head-title h2 {
  margin: 0; font-size: 1rem; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.access-drawer-head-title svg { flex-shrink: 0; color: rgba(147,197,253,0.95); }
.access-drawer-close {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.7); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.12s, color 0.12s;
}
.access-drawer-close:hover { background: rgba(248,113,113,0.18); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

.access-drawer-body {
  flex: 1; overflow-y: auto; padding: 18px 18px 12px;
  scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent;
}
.access-lbl {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.access-role-select { width: 100%; margin-bottom: 18px; padding: 10px 12px; border-radius: 10px; }

.access-templates { margin-bottom: 18px; }
.access-templates-label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted);
  margin-bottom: 8px;
}
.access-template-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.access-pill {
  padding: 7px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 700;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.72); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.access-pill:hover { background: rgba(96,165,250,0.14); border-color: rgba(96,165,250,0.35); color: #fff; }
.access-pill.is-active {
  background: rgba(96,165,250,0.22); border-color: rgba(96,165,250,0.5); color: #fff;
}

.access-perm-section { margin-bottom: 20px; }
.access-perm-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.access-perm-section-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--muted2); text-transform: uppercase;
}
.access-perm-select-all {
  font-size: 0.78rem; font-weight: 700; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.12s;
}
.access-perm-select-all:hover { color: #93c5fd; }

.access-perm-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.access-perm-item:last-child { border-bottom: none; }
.access-perm-item.is-nested { padding-left: 28px; }
.access-perm-check {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.22);
  background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.access-perm-check:checked {
  background: var(--accent); border-color: var(--accent);
}
.access-perm-check:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.access-perm-body { flex: 1; min-width: 0; }
.access-perm-label { display: block; font-size: 0.9rem; font-weight: 700; color: #fff; }
.access-perm-desc { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.access-perm-expand {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  margin-top: 2px;
}
.access-perm-expand:hover { color: #fff; }
.access-perm-sub { overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.access-perm-sub.is-open { max-height: 800px; }

.access-drawer-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 18px; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}

body.access-drawer-open { overflow: hidden; }

/* ---- Verify ---- */
.verify-status {
  margin: 0 0 14px; font-size: 0.84rem; font-weight: 600; color: var(--muted);
}
/* ---- Tickets (ORBT-style) ---- */
.btn-tk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(109, 40, 217, 0.85));
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 2px 14px rgba(109, 40, 217, 0.3);
}
.btn-tk:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(124, 58, 237, 1));
  border-color: rgba(216, 180, 254, 0.55);
}
.btn-tk--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}
.btn-tk--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.35);
}
.tk-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}
.tk-callout-ico {
  flex-shrink: 0;
  color: #60a5fa;
  margin-top: 1px;
}
.tk-callout-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.tk-callout-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}
.tk-section { margin-top: 8px; }
.tk-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tk-section-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.tk-section-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42ch;
}
.tk-panels-wrap {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  min-height: 160px;
}
.tk-panels-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 28px 20px;
  text-align: center;
}
.tk-panels-empty p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
}
.tk-panel-card {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tk-panel-card:last-child { border-bottom: none; }
.tk-panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.tk-panel-card-head strong {
  font-size: 0.92rem;
  color: #fff;
}
.tk-panel-card-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}
.tk-panel-card-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tk-panel-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.tk-back-link:hover { color: #fff; }
.tk-editor-head { margin-bottom: 8px; }
.tk-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.tk-editor-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tk-transcripts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tk-transcripts-search { flex: 1; min-width: 220px; max-width: 480px; }
.tk-transcripts-list {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  min-height: 200px;
}
.tk-transcript-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.tk-transcript-row:last-child { border-bottom: none; }
.tk-transcript-main { min-width: 0; }
.tk-transcript-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}
.tk-transcript-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 900px) {
  .tk-editor-grid { grid-template-columns: 1fr; }
}

/* ---- KB Picker (Kanal / Rolle / Kategorie) ---- */
.kb-picker-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.kb-picker { position: relative; margin-bottom: 12px; }
.kb-picker-row { display: flex; gap: 8px; align-items: stretch; }
.kb-picker-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.55);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.kb-picker-trigger:hover,
.kb-picker-trigger[aria-expanded="true"] {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
  background: rgba(124, 58, 237, 0.12);
}
.kb-picker-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kb-picker-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s;
}
.kb-picker-trigger[aria-expanded="true"] .kb-picker-chevron {
  transform: rotate(180deg);
}
.kb-picker-reload {
  width: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kb-picker-reload:hover { background: rgba(96, 165, 250, 0.15); border-color: rgba(96, 165, 250, 0.35); color: #fff; }
.kb-picker-reload.is-loading svg { animation: welcome-spin 0.65s linear infinite; }
.kb-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.55);
  background: rgba(8, 8, 14, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.kb-picker-search-wrap {
  padding: 8px 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kb-picker-search {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}
.kb-picker-search:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
}
.kb-picker-list {
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: min(220px, 40vh);
  overflow-y: auto;
}
.kb-scroll { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
.kb-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.kb-picker-option:hover { background: rgba(255, 255, 255, 0.06); }
.kb-picker-option.is-active {
  background: rgba(124, 58, 237, 0.45);
  color: #fff;
}
.kb-picker-check {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.35;
}
.kb-picker-check.is-on { opacity: 1; color: #fff; }
.kb-picker-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-picker-empty {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Ticket panel form (ORBT) ---- */
.tk-form-head { margin-bottom: 18px; }
.tk-form-stack { display: flex; flex-direction: column; gap: 14px; }
.tk-form-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.tk-form-card-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}
.tk-form-card-desc {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}
.tk-container-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tk-container-opt {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.tk-container-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tk-container-opt-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.tk-container-opt-desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}
.tk-container-opt.is-active {
  border-color: rgba(124, 58, 237, 0.65);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}
.tk-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.tk-form-advanced summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 12px;
}
.tk-form-advanced summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .tk-container-pick,
  .tk-form-row-2 { grid-template-columns: 1fr; }
}

.tk-tab-panel.hidden { display: none; }
.tk-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.tk-cat-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.tk-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tk-cat-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  margin-bottom: 8px;
}
.tk-list-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tk-list-search { min-width: 200px; flex: 1; max-width: 280px; }
.tk-filter-select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.tk-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tk-ticket-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 12px rgba(0,0,0,0.2);
  transition: border-color 0.15s, transform 0.15s;
}
.tk-ticket-card:hover { border-color: var(--glass-border-strong); transform: translateY(-1px); }
.tk-ticket-card--open { border-left: 3px solid var(--accent); }
.tk-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tk-ticket-idline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk-ticket-num {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.tk-ticket-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
}
.tk-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.tk-status-pill--open {
  color: rgba(52,211,153,0.95);
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.1);
}
.tk-status-pill--closed {
  color: var(--muted);
  border-color: var(--glass-border);
  background: rgba(255,255,255,0.04);
}
.tk-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 10px;
}
.tk-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
}
.tk-meta-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted2);
}
.tk-meta-item code {
  font-size: 0.76rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.88);
}
.tk-empty-state,
.tk-empty-list {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--glass-border);
  background: rgba(255,255,255,0.025);
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.welcome-card--wide { grid-column: 1 / -1; }
.verify-stats-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* Overview */
.ov-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ov-template-skeleton {
  min-height: 88px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(110deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.03) 90%);
  background-size: 200% 100%;
  animation: kf-shimmer 1.15s ease-in-out infinite;
}
.ov-template-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ov-template-card:hover:not(:disabled) {
  border-color: rgba(96,165,250,0.45);
  background: rgba(109,40,217,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,40,217,0.2);
}
.ov-template-card:disabled { opacity: 0.55; cursor: wait; transform: none; }
.ov-template-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(96,165,250,0.14);
  border: 1px solid rgba(96,165,250,0.28);
  color: rgba(147,197,253,0.95);
}
.ov-template-copy { flex: 1; min-width: 0; }
.ov-template-card strong { display: block; margin-bottom: 4px; font-size: 0.92rem; color: #fff; }
.ov-template-copy > span { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.ov-template-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--muted2);
  margin-top: 2px;
  transition: transform 0.15s, color 0.15s;
}
.ov-template-card:hover:not(:disabled) .ov-template-arrow { transform: translateX(3px); color: rgba(147,197,253,0.9); }
.ov-setup-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(52,211,153,0.28);
  background: rgba(52,211,153,0.06);
  font-size: 0.84rem;
  line-height: 1.55;
}
.ov-setup-result.hidden { display: none; }
.ov-setup-result ul { margin: 8px 0 0; padding-left: 18px; }
.ov-setup-result .ov-warn { color: #fbbf24; margin-top: 8px; }
.ov-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .ov-charts-row { grid-template-columns: 1fr; }
}
.ov-chart-section { margin-bottom: 0; }
.ov-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 128px;
  padding-top: 8px;
}
.ov-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ov-bar-fill {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(96,165,250,0.95), rgba(96,165,250,0.4));
  min-height: 4px;
  transition: height 0.35s ease;
  box-shadow: 0 0 12px rgba(96,165,250,0.25);
}
.ov-bar-lbl { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.ov-bar-val { font-size: 0.72rem; font-weight: 700; color: #fff; }
.ov-module-bars { display: flex; flex-direction: column; gap: 10px; min-height: 80px; }
.ov-mod-row {
  display: grid;
  grid-template-columns: minmax(72px, 96px) 1fr 28px;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.ov-mod-row > span:first-child { color: var(--muted); }
.ov-mod-row > span:last-child { text-align: right; font-weight: 800; color: #fff; }
.ov-mod-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.ov-mod-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(96,165,250,0.75));
}
.ov-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ov-mini-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ov-mini-card--wide { grid-column: 1 / -1; }
.ov-mini-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted2);
}
.ov-mini-value { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ov-mini-list { margin: 6px 0 0; padding-left: 16px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.ov-invite-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ov-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
}
.ov-invite-av {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
.ov-invite-av.ph {
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(147,197,253,0.95);
  background: rgba(96,165,250,0.18);
}
.ov-invite-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ov-invite-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-invite-handle {
  font-size: 0.72rem;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-invite-count {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(147,197,253,0.95);
  font-variant-numeric: tabular-nums;
}
.tk-ticket-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}
.verify-stat-pill {
  padding: 6px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.28);
  color: rgba(52,211,153,0.95);
}
.v2-preview-btn-pair {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.v2-preview-btn {
  display: inline-flex; padding: 8px 14px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
}
.v2-preview-btn.is-verify {
  background: rgba(52,211,153,0.2); border: 1px solid rgba(52,211,153,0.35); color: #fff;
}
.v2-preview-btn.is-stats {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--muted); cursor: not-allowed; opacity: 0.85;
}
.v2-preview-btn.is-giveaway-join {
  background: rgba(52,211,153,0.2); border: 1px solid rgba(52,211,153,0.35); color: #fff;
}
.v2-preview-btn.is-giveaway-stats {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--muted); cursor: not-allowed; opacity: 0.85;
}

.access-target-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  padding: 4px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
}
.access-target-tabs.hidden { display: none !important; }
.access-target-tab {
  flex: 1; padding: 8px 12px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 0.82rem; font-weight: 700;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.access-target-tab:hover { color: #fff; }
.access-target-tab.is-active {
  background: rgba(96,165,250,0.22); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,0.35);
}

.access-user-search-wrap {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
}
.access-user-search-wrap:focus-within { border-color: var(--accent-border); }
.access-user-search-wrap.hidden { display: none !important; }
.access-user-search-ico { flex-shrink: 0; color: var(--muted); }
.access-user-search-inp {
  flex: 1; background: transparent; border: none; outline: none;
  font: inherit; font-size: 0.88rem; color: var(--text);
}
.access-user-search-inp::placeholder { color: var(--muted2); }
.access-user-hint { margin: 8px 0 0; font-size: 0.76rem; color: var(--muted2); line-height: 1.4; }
.access-user-hint.hidden { display: none !important; }

.access-user-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  max-height: 220px; overflow-y: auto; border-radius: 10px;
  background: rgba(8,14,28,0.98); border: 1px solid var(--glass-border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.access-user-dropdown.hidden { display: none !important; }
.access-user-dropdown-empty {
  padding: 12px 14px; font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.access-user-dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: none; background: transparent;
  font-family: inherit; text-align: left; cursor: pointer;
  transition: background 0.12s;
}
.access-user-dropdown-item:hover { background: rgba(96,165,250,0.12); }
.access-user-dropdown-av { border-radius: 50%; flex-shrink: 0; }
.access-user-dropdown-info { min-width: 0; }
.access-user-dropdown-name { display: block; font-size: 0.86rem; font-weight: 700; color: #fff; }
.access-user-dropdown-sub { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 1px; }

.access-user-selected {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 10px;
  background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.28);
}
.access-user-selected.hidden { display: none !important; }
.access-user-selected-av { border-radius: 50%; flex-shrink: 0; }
.access-user-selected-info { flex: 1; min-width: 0; }
.access-user-selected-name { display: block; font-size: 0.9rem; font-weight: 700; color: #fff; }
.access-user-selected-sub { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
.access-user-selected-clear {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06);
  color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.access-user-selected-clear:hover { background: rgba(248,113,113,0.15); color: #fca5a5; }

.access-role-card-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 2px solid rgba(96,165,250,0.35); }
.access-role-card-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.access-entry-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 99px; text-transform: uppercase;
}
.access-entry-badge--role { background: rgba(96,165,250,0.18); color: rgba(147,197,253,0.95); border: 1px solid rgba(96,165,250,0.3); }
.access-entry-badge--user { background: rgba(59,130,246,0.15); color: rgba(147,197,253,0.95); border: 1px solid rgba(59,130,246,0.3); }

/* Befehle */
.guild-nav-premium-pill {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  flex-shrink: 0;
}

.mod-page-icon--ai {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(96, 165, 250, 0.22));
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.kai-api-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.86rem;
  color: var(--muted);
}
.kai-api-banner strong { color: #fde68a; }
.kai-api-banner code { color: #93c5fd; font-size: 0.82em; }

.kai-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
  align-items: start;
}
.kai-layout--chat {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#guildPageKruemelAi .kai-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}
#guildPageKruemelAi .mod-page-lead {
  max-width: 72ch;
}
.kai-chat-shell {
  width: 100%;
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.kai-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.kai-chat-toolbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kai-mkt-demo--live {
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(560px, calc(100vh - 280px));
}
.kai-mkt-demo--live .kai-messages {
  flex: 1;
  min-height: 320px;
  max-height: none;
  margin-bottom: 12px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kai-chat-empty {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted2);
}
.kai-chat-compose {
  margin-top: 0;
}
.kai-mkt-bubble--loading {
  opacity: 0.75;
}
@media (max-width: 900px) {
  .kai-layout { grid-template-columns: 1fr; }
}
.kai-prompt { min-height: 120px; }
.kai-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.kai-chat { display: flex; flex-direction: column; min-height: 420px; }
.kai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.kai-messages {
  flex: 1;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
}
.kai-msg {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.kai-msg--user {
  align-self: flex-end;
  background: rgba(88, 101, 242, 0.25);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #fff;
}
.kai-msg--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.kai-msg--system {
  align-self: center;
  font-size: 0.8rem;
  color: var(--muted2);
  text-align: center;
  padding: 6px;
}
.kai-msg--loading {
  opacity: 0.7;
  font-style: italic;
}
.kai-api-banner a {
  color: #93c5fd;
  text-decoration: underline;
}
.kai-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.kai-chat-inp { flex: 1; min-height: 52px; resize: vertical; }
.kai-compose .btn { flex-shrink: 0; }
.kai-send-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.kai-chat-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kai-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.kai-avatar-img--sm {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}
.kai-msg--assistant .kai-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.04em;
}
.kai-msg-body { white-space: pre-wrap; }

/* Krümel AI — Marketing (ohne Premium) */
.kai-marketing {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.kai-mkt-hero { text-align: center; margin-bottom: 28px; }
.kai-mkt-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.kai-mkt-gradient {
  background: linear-gradient(90deg, #93c5fd, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kai-mkt-lead {
  margin: 0 auto 20px;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.kai-mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.kai-mkt-btn {
  padding: 12px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
}
.kai-mkt-btn--premium {
  color: #eff6ff;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45), 0 4px 20px rgba(0, 0, 0, 0.35);
}
.kai-mkt-btn--premium:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.kai-mkt-btn--ghost {
  background: transparent;
  color: var(--muted);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}
.kai-mkt-btn--ghost:hover { color: #fff; }

.kai-mkt-demo-wrap { margin-bottom: 32px; }
.kai-mkt-demo {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.kai-mkt-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.kai-mkt-demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.kai-mkt-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 8px;
}
.kai-mkt-bubble--user {
  margin-left: auto;
  max-width: 88%;
  background: #1e293b;
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #f1f5f9;
  text-align: left;
}
.kai-mkt-bubble--ai {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  width: 100%;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  line-height: 1.5;
}
.kai-mkt-bubble-inner {
  flex: 1;
  min-width: 0;
}
.kai-mkt-bubble-head {
  font-size: 0.8rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.kai-mkt-bubble-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.kai-mkt-bubble-body em {
  color: #93c5fd;
  font-style: italic;
}
.kai-mkt-action-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: #86efac;
  margin: 4px 0 12px;
  opacity: 0.9;
}
.kai-mkt-demo-static { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); }
.kai-mkt-demo-msgs {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.kai-mkt-demo-compose {
  display: flex;
  gap: 8px;
  align-items: center;
}
.kai-mkt-demo-inp {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}
.kai-mkt-demo-inp::placeholder { color: var(--muted2); }
.kai-mkt-demo-inp:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
}
.kai-mkt-demo-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.kai-mkt-features-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}
.kai-mkt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.kai-mkt-feat {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.kai-mkt-feat h4 {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.kai-mkt-feat p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.kai-mkt-feat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.kai-mkt-feat-ico--pink { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.3); }
.kai-mkt-feat-ico--orange { background: rgba(251, 146, 60, 0.15); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.3); }
.kai-mkt-feat-ico--green { background: rgba(74, 222, 128, 0.12); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.3); }
.kai-mkt-feat-ico--blue { background: rgba(96, 165, 250, 0.12); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.3); }
.kai-mkt-footer-cta {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.1), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(249, 168, 212, 0.25);
}
.kai-mkt-footer-cta h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.kai-mkt-footer-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mod-page-icon--cmd {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.28);
  color: #93c5fd;
}
.cmd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.cmd-search-wrap { flex: 1; min-width: 200px; }
.cmd-module-filter { min-width: 180px; }
.cmd-section { margin-bottom: 22px; }
.cmd-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cmd-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.cmd-module-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(248,113,113,0.12);
  color: #fca5a5;
  border: 1px solid rgba(248,113,113,0.25);
}
.cmd-module-badge.hidden { display: none !important; }
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cmd-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}
.cmd-card--off { opacity: 0.45; }
.cmd-card--soon { opacity: 0.55; }
.cmd-card-ico {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96,165,250,0.14); color: #93c5fd;
  font-size: 0.72rem; font-weight: 800;
}
.cmd-card-body { flex: 1; min-width: 0; }
.cmd-card-name { font-size: 0.9rem; font-weight: 800; color: #fff; }
.cmd-card-desc { font-size: 0.76rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.cmd-soon-tag {
  font-size: 0.65rem; font-weight: 700; color: var(--muted2); margin-top: 4px;
}
@media (max-width: 760px) {
  .cmd-grid { grid-template-columns: 1fr; }
}

/* ---- Eigene Befehle (Blockly, Admin) ---- */
.cc-panel {
  margin-top: 28px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cc-panel.hidden { display: none !important; }
.cc-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.cc-panel-brand { display: flex; align-items: flex-start; gap: 12px; }
.cc-panel-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.32);
}
.cc-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.cc-panel-desc {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.cc-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.cc-premium-badge i { font-size: 0.62rem; color: #fbbf24; }
.cc-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.32);
  vertical-align: middle;
}
.cc-new-btn { display: inline-flex; align-items: center; gap: 8px; }
.cc-panel .bs-premium-lock { margin-bottom: 12px; }
.cc-premium-app.hidden { display: none !important; }
.cc-list { display: flex; flex-direction: column; gap: 8px; }
.cc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, background 0.15s;
}
.cc-item:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
}
.cc-item--off { opacity: 0.5; }
.cc-item-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.cc-item-body { flex: 1; min-width: 0; }
.cc-item-name { font-weight: 800; color: #fff; font-size: 0.9rem; }
.cc-item-desc { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.cc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--muted2);
  margin-top: 6px;
}
.cc-item-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cc-item-meta i { font-size: 0.62rem; opacity: 0.85; }
.cc-item-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.cc-edit-btn { display: inline-flex; align-items: center; gap: 6px; }
.cc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border: 1px dashed rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.04);
}
.cc-empty-ico { font-size: 1.6rem; color: rgba(96, 165, 250, 0.55); margin-bottom: 4px; }
.cc-empty p { margin: 0; font-weight: 700; color: rgba(255, 255, 255, 0.88); }
.cc-empty span { font-size: 0.8rem; color: var(--muted); }
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal.hidden { display: none !important; }
.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cc-modal-box {
  position: relative;
  width: min(1280px, 96vw);
  height: min(920px, 94vh);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-strong);
  background: rgba(12, 11, 20, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(96, 165, 250, 0.08);
  overflow: hidden;
}
.cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}
.cc-modal-head-brand { display: flex; align-items: center; gap: 12px; }
.cc-modal-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.12);
}
.cc-modal-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.cc-modal-sub {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.cc-modal-close:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}
.cc-form-card {
  margin: 0;
  padding: 14px 16px 12px;
  flex-shrink: 0;
}
.cc-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}
.cc-modal-foot .welcome-save-hint { flex: 1; min-width: 120px; }
.cc-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
}
.cc-delete-btn:hover {
  background: rgba(248, 113, 113, 0.12) !important;
}
#ccSaveBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cc-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 0;
  flex-shrink: 0;
}
.cc-form-field { min-width: 140px; }
.cc-form-field--grow { flex: 1; min-width: 200px; }
.cc-name-wrap { display: flex; align-items: center; gap: 4px; }
.cc-name-prefix { font-weight: 800; color: #93c5fd; font-size: 1rem; }
.cc-options-block { margin-bottom: 0; flex-shrink: 0; max-height: 140px; overflow-y: auto; }
.cc-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cc-options-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cc-options-title i { color: var(--accent); font-size: 0.72rem; }
.cc-option-row {
  display: grid;
  grid-template-columns: 1fr 120px auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.cc-editor-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.cc-editor-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 900px) {
  .cc-editor-layout { grid-template-columns: 1fr; }
  .cc-option-row { grid-template-columns: 1fr; }
  .cc-sidebar { max-height: 200px; overflow-y: auto; }
}
.cc-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.cc-sidebar-label, .cc-preview-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc-sidebar-label i, .cc-preview-label i { color: var(--accent); font-size: 0.68rem; }
.cc-sidebar.welcome-card { padding: 14px 12px; margin: 0; }
.cc-palette { display: flex; flex-direction: column; gap: 6px; }
.cc-palette-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.cc-palette-btn:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.1);
  transform: translateX(2px);
}
.cc-palette-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
}
.cc-palette-btn--green .cc-palette-ico { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.28); }
.cc-palette-btn--blue .cc-palette-ico { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.28); }
.cc-palette-btn--amber .cc-palette-ico { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.28); }
.cc-palette-btn--pink .cc-palette-ico { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; border: 1px solid rgba(244, 114, 182, 0.28); }
.cc-palette-btn--slate .cc-palette-ico { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.28); }
.cc-palette-label { flex: 1; min-width: 0; }
.cc-hints {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-hints-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-hints-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cc-hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.28);
  color: #93c5fd;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.cc-hint-chip:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.cc-hint-chip.is-copied { border-color: rgba(52, 211, 153, 0.45); color: #6ee7b7; background: rgba(52, 211, 153, 0.1); }
.cc-hint-chip i { font-size: 0.62rem; opacity: 0.9; }
.cc-hints-tip {
  font-size: 0.66rem;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cc-fit-btn { width: 100%; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cc-workspace-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: #060a12;
  min-height: min(58vh, 520px);
}
.cc-workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}
.cc-block-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.cc-block-count i { color: var(--accent); }
.cc-workspace-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 600;
}
.cc-workspace {
  flex: 1;
  min-height: 420px;
  width: 100%;
  position: relative;
}
.cc-workspace .blocklyDiv,
.cc-workspace .injectionDiv {
  width: 100% !important;
  height: 100% !important;
}
.cc-workspace .blocklySvg {
  width: 100% !important;
  height: 100% !important;
}
.cc-workspace .blocklyBlockCanvas,
.cc-workspace .blocklyBubbleCanvas {
  transform-origin: 0 0;
}
.cc-preview-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(96, 165, 250, 0.05);
  max-height: 120px;
}
.cc-preview-bar .cc-preview-label { margin: 4px 0 0; white-space: nowrap; }
.cc-preview-text {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 96px;
  overflow: auto;
}
/* Leveling */
.mod-page-icon--level {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.28);
  color: #6ee7b7;
}
.lv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lv-card { margin-bottom: 0; }
.lv-card--wide { grid-column: 1 / -1; }
.lv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lv-card-head--toggle { align-items: flex-start; }
.lv-card-head--toggle .mod-card-desc { margin-top: 4px; }
.lv-xp-form { margin-top: 4px; }
.lv-xp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.lv-num-inp { max-width: 100%; }
.lv-msg-inp { width: 100%; min-height: 56px; resize: vertical; }
.lv-levelup-body { margin-top: 8px; }
.lv-levelup-body.disabled { opacity: 0.45; pointer-events: none; }
.lv-reward-list { margin: 10px 0 12px; }
.lv-reward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}
.lv-reward-item .inp-select,
.lv-reward-item .inp-text { flex: 1; min-width: 120px; }
.lv-reward-lvl { width: 72px; flex: 0 0 72px; }
.lv-reward-mult { width: 88px; flex: 0 0 88px; }
.lv-reward-del {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--glass-border); background: rgba(248,113,113,0.08);
  color: #fca5a5; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.lv-reward-del:hover { background: rgba(248,113,113,0.18); }
.lv-empty-hint { margin: 0; font-size: 0.84rem; color: var(--muted2); }
.lv-empty-hint.hidden { display: none !important; }
.lv-add-btn { margin-top: 4px; }
.lv-lb-xp { font-size: 0.95rem; font-weight: 800; color: #93c5fd; min-width: 64px; text-align: right; }
.lv-lb-lvl { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) {
  .lv-grid { grid-template-columns: 1fr; }
  .lv-card--wide { grid-column: auto; }
  .lv-xp-row { grid-template-columns: 1fr; }
}

/* Konto / Profil */
.profile-drop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.profile-drop-head:hover { background: rgba(255,255,255,0.05); }

.account-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  min-height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  box-sizing: border-box;
}
.account-layout.hidden { display: none !important; }
.account-shell {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  align-items: start;
}
.account-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  height: fit-content;
  position: sticky;
  top: 12px;
}
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-group-label {
  margin: 14px 0 4px 11px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}
.account-nav-group-label:first-child { margin-top: 0; }
.account-nav-group-label.hidden { display: none !important; }
.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.account-nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.account-nav-btn.is-active {
  background: rgba(96,165,250,0.14);
  color: #fff;
  border: 1px solid rgba(96,165,250,0.22);
}
.account-nav-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(59,130,246,0.2);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.35);
}
.account-nav-btn--logout { margin-top: 8px; color: rgba(248,113,113,0.85); }
.account-nav-btn--logout:hover { background: rgba(248,113,113,0.1); color: #fca5a5; }

.account-main { min-width: 0; width: 100%; }
.account-page { width: 100%; }
.account-page.hidden { display: none !important; }
.account-page-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.account-page-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.28);
  color: #93c5fd;
}
.account-page-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.account-page-lead { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  padding: 22px 26px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
.account-profile-av-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.account-profile-av {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.account-profile-av.hidden { display: none !important; }
.account-profile-av-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(96,165,250,0.35), rgba(59,130,246,0.25));
  border: 2px solid rgba(96,165,250,0.35);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}
.account-profile-av-fallback.hidden { display: none !important; }
.account-profile-info { flex: 1; min-width: 0; }
.account-profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-profile-name { margin: 0; font-size: 1.2rem; font-weight: 800; }
.account-profile-badge {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(52,211,153,0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,0.28);
}
.account-profile-id { margin: 6px 0 12px; font-size: 0.82rem; color: var(--muted); font-family: ui-monospace, monospace; }
.account-discord-btn { display: inline-flex; }

.account-settings-card {
  padding: 22px 26px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  width: 100%;
  box-sizing: border-box;
}
.account-settings-title { margin: 0 0 18px; font-size: 1rem; font-weight: 800; color: #fff; }
.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.account-setting-row:first-of-type { border-top: none; padding-top: 0; }
.account-setting-row--stack { flex-direction: column; align-items: stretch; }
.account-setting-label { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.88); }

.account-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.account-pill:hover { background: rgba(255,255,255,0.08); color: #fff; }
.account-pill.is-active {
  background: rgba(96,165,250,0.18);
  border-color: rgba(96,165,250,0.45);
  color: #fff;
}

.account-width-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.account-width-slider-wrap.hidden { display: none !important; }
.account-width-slider { flex: 1; accent-color: #60a5fa; }
.account-width-val { font-size: 0.8rem; color: var(--muted); min-width: 52px; text-align: right; }

.account-empty-card {
  padding: 48px 28px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  width: 100%;
  box-sizing: border-box;
}
.account-referral-card { width: 100%; box-sizing: border-box; }
.account-empty-ico {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(96,165,250,0.12);
  color: #93c5fd;
  font-size: 1.4rem;
}
.account-empty-ico--blue { background: rgba(59,130,246,0.15); color: #93c5fd; }
.account-empty-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.account-empty-text { margin: 0 0 18px; font-size: 0.86rem; color: var(--muted); max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.5; }

.account-referral-card { margin-bottom: 14px; }
.account-referral-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.account-referral-row .inp-text { flex: 1; min-width: 200px; }
.account-referral-list-card { margin-top: 8px; }
.account-referral-list-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.account-referral-list-hint { margin: 0 0 14px; }
.account-referral-empty {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--glass-border);
  color: var(--muted);
  font-size: 0.88rem;
}
.account-referral-empty.hidden { display: none !important; }
.account-referral-list { display: flex; flex-direction: column; gap: 10px; }
.account-referral-user {
  display: flex;
  align-items: stretch;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}
.account-referral-user-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.account-referral-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.78rem;
  color: var(--muted);
}
.account-referral-user-meta strong { color: rgba(255,255,255,0.55); font-weight: 700; }
@media (max-width: 640px) {
  .account-referral-user-meta { flex-direction: column; gap: 4px; }
}
.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-stat-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.account-stat-val { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.account-stat-lbl { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-rail { position: static; width: 100%; }
  .account-stats-row { grid-template-columns: 1fr; }
  .account-profile-card { flex-wrap: wrap; }
}

/* ---- Marketing / Login shell ---- */
.is-home-page,
.is-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 8, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-topbar-nav { display: flex; align-items: center; gap: 12px; }
.site-topbar-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.site-topbar-link:hover { color: #fff; }
.site-topbar-cta { padding: 8px 14px; font-size: 0.84rem; }
.is-login-page .login-screen {
  flex: 1;
  position: relative;
  z-index: 1;
  min-height: auto;
}
.join-discord-card { text-align: center; }
.join-discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(88, 101, 242, 0.2);
  color: #aab2ff;
}
.join-discord-hint {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}
.join-discord-hint--err { color: #fca5a5; }
.join-discord-recheck { margin-top: 12px; width: 100%; }
.join-discord-logout {
  margin-top: 8px;
  width: 100%;
  font-size: 0.82rem;
  opacity: 0.75;
}
.site-home {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 48px) 72px;
  box-sizing: border-box;
}
.site-hero { max-width: 720px; margin-bottom: 48px; }
.site-hero-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.site-hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
}
.site-hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.site-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.site-feature-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}
.site-feature-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.site-feature-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.site-footer {
  position: relative;
  z-index: 1;
  padding: 20px clamp(20px, 4vw, 40px) 28px;
  border-top: 1px solid var(--glass-border);
  color: var(--muted2);
  font-size: 0.82rem;
  text-align: center;
}

/* ---- Owner-Aktivität (Admin) ---- */
.audit-entry-guild-link {
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #22d3ee;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.audit-entry-guild-link:hover { color: #67e8f9; }
.oa-pop-guild-chip {
  display: inline-flex;
  margin: 4px 6px 0 0;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.oa-pop-guild-chip:hover { background: rgba(96, 165, 250, 0.15); }
.oa-popover-guilds { margin-top: 12px; }
.oa-guild-popover-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 0;
}
.oa-guild-popover-text {
  min-width: 0;
  flex: 1;
}
.oa-guild-popover-text .al-user-popover-name,
.oa-guild-popover-text .al-user-popover-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.oa-guild-popover .al-user-popover-grid {
  grid-template-columns: 1fr 1fr;
}
.oa-guild-popover .al-user-popover-field {
  min-width: 0;
}
.oa-guild-popover .al-user-popover-value {
  word-break: break-word;
}
.oa-guild-popover-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.oa-guild-popover-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(96, 165, 250, 0.2);
  color: #fff;
  flex-shrink: 0;
}
.oa-guild-popover-body { padding-top: 8px !important; }
.oa-guild-popover-owner {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.oa-filter-tabs { margin-bottom: 16px; }

.oa-entry-type {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.oa-entry-type svg { display: block; }
.oa-icon--join {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
  color: #22d3ee;
}
.oa-icon--leave {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #f87171;
}
.oa-icon--login {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}
.oa-icon--credit-out {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.28);
  color: #fb923c;
}
.oa-icon--credit-in {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #34d399;
}
.oa-icon--credit-admin,
.oa-icon--credit {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
.oa-icon--voucher {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fbbf24;
}
.oa-icon--default {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: var(--muted);
}
.audit-entry-avatar-spacer {
  width: 34px;
  min-width: 34px;
  flex-shrink: 0;
}

/* ---- Mobile Dashboard ---- */
.guild-rail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.guild-rail-backdrop.hidden { display: none !important; }

.guild-rail-toggle {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 16px;
  z-index: 96;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(8, 14, 28, 0.92);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  place-items: center;
}
.guild-rail-toggle.hidden { display: none !important; }

@media (max-width: 900px) {
  .topnav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 12px;
  }
  .topnav-center { display: none; }
  .topnav-vote { display: none; }
  .topnav-premium-badge span:not(svg) { display: none; }

  .home-layout { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .home-main { padding: 24px 16px 40px; }
  .sc-grid { grid-template-columns: 1fr !important; }
  .sc-hero { flex-direction: column; align-items: flex-start; }

  .account-layout { padding: 20px 14px 32px; }
  .account-page-head { flex-wrap: wrap; }
  .audit-filter-tabs { gap: 6px; }
  .audit-filter-tab { padding: 8px 10px; font-size: 0.72rem; }
  .audit-filter-tab span:not(.audit-filter-ico) { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .audit-entry {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .audit-entry-time,
  .al-entry .al-entry-time {
    width: 100%;
    text-align: left;
    white-space: normal;
    margin-left: 42px;
  }
  .audit-entry-body,
  .al-entry-main { min-width: 0; flex: 1 1 100%; }

  body.is-guild-view .guild-rail-toggle:not(.hidden) {
    display: grid;
  }

  .guild-layout {
    flex-direction: column;
    overflow: visible;
  }
  .app.app--guild {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .guild-rail {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    min-width: 0;
    z-index: 90;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
  }
  body.guild-rail-open .guild-rail {
    transform: translateX(0);
  }
  .guild-work {
    width: 100%;
    min-height: calc(100vh - 52px);
    overflow: visible;
  }
  .guild-body {
    overflow-y: visible;
    padding: 16px 14px 80px;
  }
  .guild-page { max-width: 100%; }
  .al-user-popover,
  .oa-user-popover,
  .oa-guild-popover {
    max-width: calc(100vw - 24px);
  }
}

/* ---- Status: Vorfälle & Wartung (Admin) ---- */
.si-public-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.si-public-link:hover { color: #93c5fd; }

.si-live-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
}
.si-live-banner[data-status="operational"] {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
}
.si-live-banner[data-status="degraded"] {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}
.si-live-banner[data-status="outage"],
.si-live-banner[data-status="unknown"] {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}
.si-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}
.si-live-dot[data-status="operational"] { background: #34d399; }
.si-live-dot[data-status="degraded"] { background: #fbbf24; }
.si-live-dot[data-status="outage"],
.si-live-dot[data-status="unknown"] { background: #f87171; }
.si-live-copy { flex: 1; min-width: 160px; }
.si-live-copy strong { display: block; color: #fff; font-size: 1rem; }
.si-live-meta { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }

.si-maintenance-card .si-maint-desc {
  margin: 4px 0 0;
  max-width: 52ch;
}

.si-maint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.si-maint-head .admin-section-title {
  margin-bottom: 0;
}

.si-maint-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .si-maint-toggles {
    grid-template-columns: 1fr;
  }
}

.si-maint-panel {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.si-maint-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.si-maint-panel-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.si-maint-panel-ico--dash {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.si-maint-panel-title {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.si-maint-panel-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted2);
  line-height: 1.35;
}

.si-maint-panel-meta code {
  font-size: 0.72rem;
}

.si-maint-switch {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.si-maint-end-lbl {
  margin: 12px 0 4px;
  font-size: 0.78rem;
}

.si-maint-end-inp {
  width: 100%;
  max-width: 100%;
}

.si-maint-copy {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.si-maint-copy > .lbl:first-child {
  margin-top: 16px;
}

.si-maint-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .si-maint-text-grid {
    grid-template-columns: 1fr;
  }
}

.si-maint-text-col .lbl {
  margin-top: 0;
}

.si-maint-area {
  min-height: 88px;
  resize: vertical;
}

.si-maint-foot {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted2);
}

.si-maint-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.si-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.si-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.si-list-head .admin-section-title { margin: 0; }
.si-incident-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.si-incident-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}
.si-incident-card--active {
  border-color: rgba(251, 191, 36, 0.28);
}
.si-incident-card--active.si-incident-card--critical {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
}
.si-incident-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.si-incident-card-title {
  flex: 1;
  min-width: 140px;
  font-size: 0.95rem;
  color: #fff;
}
.si-incident-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--muted2);
}
.si-incident-pill--active {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}
.si-incident-pill--resolved {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}
.si-incident-pill--impact { color: #cbd5e1; }
.si-incident-card-msg {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
}
.si-incident-card-time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted2);
  margin-bottom: 10px;
}
.si-incident-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  .admin-voucher-form {
    grid-template-columns: 1fr;
  }
  .st-shell {
    min-height: 0;
  }
}
