* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0e;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --muted: #b9b9c4;
  --accent: #ff5c7a;
  --accent2: #7c5cff;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

.icon svg { display: block; width: 100%; height: 100%; }

/* ================= Profilseite (guns.lol-Stil) ================= */
.profile-body { padding: 0; }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08); /* verhindert helle Ränder bei Blur */
}
.bg-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }

/* Standard-Hintergrund: animierte Farbnebel */
.bg-default { position: absolute; inset: 0; background: #0a0a0e; transform: scale(1.08); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.b1 { width: 55vw; height: 55vw; background: #7c5cff; top: -15%; left: -10%; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 50vw; height: 50vw; background: #ff5c7a; bottom: -20%; right: -10%; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 35vw; height: 35vw; background: #2ea9ff; top: 40%; left: 45%; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, -10vh) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-10vw, 14vh) scale(0.9); } }

/* Eingangs-Overlay */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 0.5s;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--muted);
  animation: pulse 2.2s ease-in-out infinite;
}
.enter-overlay.gone { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { color: #fff; } }

/* Zentrum */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
  animation: pop 0.6s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.avatar-wrap { position: relative; display: inline-block; }
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.avatar-fallback svg { width: 46px; height: 46px; color: var(--muted); }
.status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid rgba(10, 10, 14, 0.9);
  background: #747f8d;
}
.status-dot.online { background: #3ba55d; box-shadow: 0 0 10px rgba(59, 165, 93, 0.8); }
.status-dot.idle { background: #faa81a; }
.status-dot.dnd { background: #ed4245; }
.status-dot.offline { background: #747f8d; }

.glow-name {
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(255, 255, 255, 0.45),
    0 0 80px rgba(255, 255, 255, 0.25);
}

.tagline { color: var(--muted); font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }

.discord-activity {
  font-size: 13px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Info-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  max-width: 560px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  backdrop-filter: blur(8px);
}
.chip .icon { width: 16px; height: 16px; color: #fff; opacity: 0.9; }
.chip .c-label { color: var(--muted); }
.chip .c-value { font-weight: 600; }

/* Link-Icons */
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.link-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.link-icon .icon { width: 22px; height: 22px; }
.link-icon:hover {
  transform: translateY(-3px) scale(1.06);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.visits {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  z-index: 10;
}
.visits .icon { width: 17px; height: 17px; }

.music-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.music-btn:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.14); }
.music-btn svg { width: 20px; height: 20px; }

.volume-box {
  position: fixed;
  top: 26px;
  left: 74px;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}
.volume-box input[type="range"] {
  width: 110px;
  accent-color: #fff;
  cursor: pointer;
}

.spotify-box {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  width: min(340px, calc(100vw - 36px));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.spotify-box iframe { width: 100%; height: 80px; border: 0; display: block; }

.yt-holder { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0.01; pointer-events: none; bottom: 0; right: 0; }
.yt-holder iframe { width: 200px; height: 120px; border: 0; }

.hidden { display: none !important; }

/* ================= Admin ================= */
.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 28px 24px;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: pop 0.5s ease;
}

.admin-body { align-items: flex-start; }
.admin-card { max-width: 680px; text-align: left; padding: 28px; }
.admin-card h1 { font-size: 24px; text-align: center; margin-bottom: 18px; }
.admin-card h2 { font-size: 16px; margin: 22px 0 10px; color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="password"], input[type="url"], select.big {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: var(--accent2); }

input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="file"] { color: var(--muted); font-size: 13px; }

.row-edit {
  display: grid;
  grid-template-columns: 24px 120px 1fr 1.4fr 36px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.row-edit input { padding: 8px 10px; }
.row-edit select {
  width: 100%;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 13px;
}
.icon-preview { width: 20px; height: 20px; color: var(--accent); }
.icon-preview svg { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) {
  .row-edit { grid-template-columns: 24px 1fr 1fr 36px; }
  .row-edit select { grid-column: 2 / 4; }
}
.row-edit .del {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #ff8a8d;
  border-radius: 8px;
  height: 36px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}
.btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.checkbox-row label { margin: 0; font-size: 13.5px; }
.checkbox-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

.msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.msg.ok { color: #3ba55d; }
.msg.err { color: #ed4245; }

.login-box { max-width: 360px; margin: 0 auto; text-align: center; }
