/* ==========================================================================
   xyzbio.lol - Minimalist & Modern Dashboard Stylesheet
   Includes: Full guns.lol Studio Replica with clean xyz aesthetic
   - Sidebar with Konto, Anpassen, Links, Vorlagen, Statistiken
   - Medien-Upload (Hintergrund, Audio, Avatar, Cursor)
   - Allgemeine Anpassung (Deckkraft, Unschärfe, Glow, Effekte)
   - Farb-Anpassung & Weitere Anpassungen Toggles
   - 36+ Social Icons Grid
   - Vorlagenbibliothek mit 1-Klick Theme Anwenden
   - Analytics Dashboard mit interaktiven Charts
   ========================================================================== */

:root {
  --bg-main: #0a0b0e;
  --bg-sidebar: #0f1117;
  --bg-card: rgba(18, 20, 28, 0.75);
  --bg-card-hover: rgba(26, 29, 40, 0.9);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-input: #141721;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #f4f4f7;
  --text-secondary: #9496a1;
  --text-tertiary: #5e606e;
  --accent: #a855f7;
  --accent-rgb: 168, 85, 247;
  --accent-purple: #9333ea;
  --purple-banner: rgba(147, 51, 234, 0.15);
  --card-radius: 20px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Live Customizable Variables */
  --custom-card-bg: rgba(18, 20, 28, 0.75);
  --custom-card-blur: 24px;
  --custom-text-color: #ffffff;
  --custom-accent-color: #a855f7;
  --custom-bg-color: #0a0b0e;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--custom-bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas & Glow */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 20%;
  background: var(--accent);
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  right: 15%;
  background: #3b82f6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Clean Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.05em;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s var(--ease);
}

.brand-logo:hover .logo-badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.logo-domain-dot {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: #ffffff;
  color: #090a0f;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #f0f0f3;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}

.btn-purple {
  background: #9333ea;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-purple:hover {
  background: #a855f7;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 9px;
}

/* ==========================================================================
   STUDIO DASHBOARD (guns.lol Feature Layout)
   ========================================================================== */
.studio-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  background: #08090c;
}

/* Left Sidebar */
.studio-sidebar {
  width: 270px;
  background: #0d0f15;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

/* Search Input */
.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sidebar-search-box:hover {
  border-color: var(--border-hover);
}

.search-shortcut-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Nav Menu */
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}

.sidebar-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav-item.active {
  color: #fff;
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-help-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.sidebar-action-btn.purple {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
}

.sidebar-action-btn.purple:hover {
  background: rgba(147, 51, 234, 0.4);
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-user-uid {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Main Studio Stage */
.studio-main-stage {
  flex: 1;
  padding: 2.2rem 2.8rem;
  overflow-y: auto;
  max-width: 1100px;
}

/* Studio Section Headings */
.studio-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

/* Medien-Upload Grid (4 Big Cards) */
.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 1100px) {
  .media-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.media-upload-card {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s var(--ease);
}

.media-upload-card:hover {
  border-color: var(--border-hover);
  background: #141722;
}

.media-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.media-dropzone {
  flex: 1;
  min-height: 105px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.media-dropzone:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.05);
}

.media-dropzone svg {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
}

.media-dropzone span {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Purple Premium Promo Banner */
.premium-promo-banner {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.3) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 0.9rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e9d5ff;
}

/* Allgemeine Anpassung Grid */
.general-settings-card {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

@media (max-width: 800px) {
  .form-2col-grid {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.info-help-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  cursor: pointer;
}

.field-input, .field-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus, .field-select:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Sliders with Percent Marks */
.slider-group-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.slider-custom {
  width: 100%;
  accent-color: #fff;
  cursor: pointer;
  height: 4px;
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Glow Einstellungen (3 Pills) */
.glow-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.glow-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.glow-pill-toggle.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.glow-pill-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Farb-Anpassung Section */
.color-inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .color-inputs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.color-picker-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-circle-input {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: none;
}

.color-hex-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
}

.gradient-activate-btn {
  width: 100%;
  background: rgba(153, 27, 27, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.gradient-activate-btn:hover {
  background: rgba(153, 27, 27, 0.4);
}

/* Weitere Anpassungen (Toggles Grid) */
.toggles-2col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .toggles-2col-grid {
    grid-template-columns: 1fr;
  }
}

.toggle-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

/* Clean Switch Controls */
.switch-control {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: 0.25s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
}

input:checked + .switch-slider {
  background-color: var(--accent);
}

input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   LINKS TAB (36+ Social Icons Grid)
   ========================================================================== */
.social-selector-container {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.social-selector-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.social-selector-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-icons-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.social-matrix-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.social-matrix-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.social-matrix-btn.added {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.social-matrix-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Custom URL Button */
.custom-url-add-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-url-add-box:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.05);
}

/* Active Links List */
.active-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.active-link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

/* ==========================================================================
   VORLAGEN / TEMPLATES TAB (Screenshot 4)
   ========================================================================== */
.templates-subtabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.template-pills-wrap {
  display: flex;
  gap: 0.4rem;
}

.template-pill-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.template-pill-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.template-item-card {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

.template-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.template-preview-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #181a24;
}

.template-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.template-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.template-card-author {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.template-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.template-use-btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.template-use-btn:hover {
  background: rgba(147, 51, 234, 0.45);
}

/* ==========================================================================
   STATISTIKEN / ANALYTICS TAB (Screenshot 5)
   ========================================================================== */
.stats-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-metric-card {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-metric-sub {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.analytics-charts-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .analytics-charts-split {
    grid-template-columns: 1fr;
  }
}

.chart-card-box {
  background: #11131b;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Donut Chart Styling */
.donut-chart-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-inner-label {
  position: absolute;
  text-align: center;
}

.donut-inner-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.donut-inner-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   PROFILE BIO VIEW (Pure, Modern & Minimalist)
   ========================================================================== */
.profile-view-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
  z-index: 2;
}

.profile-card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.profile-card {
  position: relative;
  width: 100%;
  background: var(--custom-card-bg);
  backdrop-filter: blur(var(--custom-card-blur));
  -webkit-backdrop-filter: blur(var(--custom-card-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.07), transparent 70%);
  border-radius: inherit;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-container {
  position: relative;
  margin-bottom: 1.15rem;
}

.avatar-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #11131a;
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #090a0f;
}
.status-dot.online { background: #10b981; }

.user-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.display-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--custom-text-color);
}

.display-name.glow-active {
  text-shadow: 0 0 16px var(--custom-accent-color);
}

.user-handle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
}

.meta-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.meta-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.badges-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.badge-item.glow-active {
  box-shadow: 0 0 10px currentColor;
}

.badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.badge-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.badge-verified { color: #38bdf8; }
.badge-og { color: #fbbf24; }
.badge-premium { color: #ec4899; }
.badge-booster { color: #a855f7; }
.badge-dev { color: #34d399; }

.badge-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #141721;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.badge-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.user-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 1.25rem;
  line-height: 1.55;
  white-space: pre-line;
}

/* Audio Player */
.audio-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #090a0f;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.audio-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.audio-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.audio-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-artist {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.visualizer-canvas {
  width: 65px;
  height: 24px;
  flex-shrink: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-tertiary);
}

.volume-slider {
  width: 50px;
  accent-color: #fff;
  cursor: pointer;
  height: 3px;
}

/* Socials & Links */
.socials-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.social-pill.glow-active {
  box-shadow: 0 0 10px var(--custom-accent-color);
}

.social-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.social-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.link-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.link-arrow-svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}

.link-card:hover .link-arrow-svg {
  transform: translate(2px, -2px);
  color: #fff;
}

.card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.views-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.views-count svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-brand:hover {
  color: #fff;
}

/* Floating Actions */
.profile-actions {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
}

.action-circle-btn {
  background: rgba(18, 20, 29, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.action-circle-btn:hover {
  color: #fff;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.action-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Enter Overlay */
#enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

#enter-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.enter-card {
  background: rgba(18, 20, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.enter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.enter-prompt {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #141721;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: toastFade 0.25s var(--ease);
}

@keyframes toastFade {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   STUDIO TAB VIEW (Tab-Umschaltung & Studio-spezifische Ergänzungen)
   ========================================================================== */
.studio-tab-view {
  display: none;
}

.studio-tab-view.active {
  display: block;
  animation: studioTabFadeIn 0.3s var(--ease);
}

@keyframes studioTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Studio Main Stage – Scrollbar-Fix, Full Height */
.studio-main-stage {
  height: 100vh;
  overflow-y: auto;
}

/* Sidebar Nav Item Icon Sizing */
.sidebar-nav-item svg {
  flex-shrink: 0;
}

/* Active Link Item – Flexbox Fix */
.active-link-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Textarea Styling */
.field-input[style*="height"] {
  font-family: inherit;
  line-height: 1.5;
}

textarea.field-input {
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

/* Info Help Icon Fix */
.info-help-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.info-help-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-tertiary);
}

/* Studio Preview Modal Overlay Fix */
#studio-preview-modal {
  cursor: default;
}

#studio-preview-modal > div {
  cursor: default;
}

/* ========================================================================
   RESPONSIVE: Mobile Studio (< 900px)
   ======================================================================== */
@media (max-width: 900px) {
  .studio-container {
    flex-direction: column;
  }

  .studio-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .studio-sidebar > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .sidebar-brand-row {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar-search-box {
    display: none;
  }

  .sidebar-nav-list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .sidebar-nav-item {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .sidebar-footer {
    display: none;
  }

  .studio-main-stage {
    padding: 1.25rem;
    height: auto;
  }

  .media-upload-grid {
    grid-template-columns: 1fr 1fr;
  }

  .color-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toggles-2col-grid {
    grid-template-columns: 1fr;
  }

  .templates-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-charts-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .media-upload-grid {
    grid-template-columns: 1fr;
  }

  .color-inputs-grid {
    grid-template-columns: 1fr;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .stats-cards-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-nav-list {
    overflow-x: auto;
  }

  .form-2col-grid {
    grid-template-columns: 1fr;
  }
}
