/* ===========================================================
   Onimai Suno — Design-System
   Dunkles Studio-Layout: Aura-Hintergrund, Glas-Flächen,
   Sidebar + Inhalt + Player. Mobile-first abgesichert.
   =========================================================== */

:root {
  /* Flächen */
  --bg:            #07070b;
  --bg-deep:       #050508;
  --surface:       #0f0f15;
  --surface-2:     #15151d;
  --surface-3:     #1c1c26;
  --glass:         rgba(20, 20, 28, .72);
  --glass-strong:  rgba(12, 12, 18, .88);

  /* Linien */
  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --line-hard: rgba(255, 255, 255, .16);

  /* Text */
  --fg:   #f6f6fa;
  --fg-2: #a9a9bb;
  --fg-3: #6e6e82;

  /* Akzente */
  --pink:   #ff2e93;
  --violet: #a855f7;
  --sky:    #38bdf8;
  --aura:       linear-gradient(115deg, #ff2e93 0%, #a855f7 52%, #38bdf8 100%);
  --aura-flip:  linear-gradient(115deg, #38bdf8 0%, #a855f7 48%, #ff2e93 100%);
  --aura-soft:  linear-gradient(115deg, rgba(255,46,147,.16), rgba(168,85,247,.14) 52%, rgba(56,189,248,.12));
  --glow:       0 10px 34px -8px rgba(255, 46, 147, .55), 0 4px 14px -6px rgba(168, 85, 247, .45);

  /* Status */
  --ok:   #34d399;
  --warn: #fbbf24;
  --err:  #fb7185;

  /* Form */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sidebar-w: 16rem;
  --player-h: 78px;
  --nav-h: 68px;
  --shadow:    0 20px 50px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);

  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-dp: 'Space Grotesk', var(--font);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0; line-height: 1.14; font-weight: 700;
  letter-spacing: -0.03em; font-family: var(--font-dp);
}
p { margin: 0 0 1em; }
::selection { background: rgba(255, 46, 147, .38); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; background-clip: content-box; }

/* ── Ambient-Aura im Hintergrund ──────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -8%,  rgba(255, 46, 147, .17), transparent 62%),
    radial-gradient(52rem 38rem at 88% 6%,   rgba(56, 189, 248, .13), transparent 60%),
    radial-gradient(46rem 34rem at 55% 108%, rgba(168, 85, 247, .15), transparent 62%);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ── Grundgerüst ─────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 20px 14px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10,10,15,.95), rgba(7,7,11,.98));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid var(--line-soft);
  z-index: 60;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-spacer { flex: 1 1 auto; min-height: 14px; }
.sidebar-foot {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 16px 12px 2px;
  font-size: 12px; color: var(--fg-3);
}
.sidebar-foot a { transition: color .16s var(--ease); }
.sidebar-foot a:hover { color: var(--fg-2); }

/* ── Marke ───────────────────────────────────────────────── */
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 10px 20px;
  font-weight: 700; font-size: 20px;
  font-family: var(--font-dp); letter-spacing: -0.04em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--aura);
  display: grid; place-items: center;
  font-size: 17px; color: #fff;
  box-shadow: var(--glow);
  flex: 0 0 auto;
  position: relative;
  transition: transform .3s var(--ease);
}
.brand-mark::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 15px; background: var(--aura);
  filter: blur(11px); opacity: .5; z-index: -1;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { line-height: 1.1; }
.brand-text small {
  display: block; font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--fg-3);
  font-weight: 600; font-family: var(--font); margin-top: 2px;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  padding: 18px 12px 6px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--fg-2);
  font-size: 14.5px; font-weight: 500;
  position: relative;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.nav-item.active { background: rgba(255,255,255,.075); color: var(--fg); font-weight: 600; }
.nav-item.active svg { color: var(--pink); opacity: 1; }
.nav-item.accent {
  background: var(--aura); color: #fff; font-weight: 650;
  box-shadow: var(--glow);
  margin: 6px 0;
}
.nav-item.accent svg { opacity: 1; }
.nav-item.accent:hover { transform: translateY(-1px); filter: brightness(1.08); background: var(--aura); }

/* ── Hauptbereich ────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  padding-bottom: calc(var(--player-h) + 40px);
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(18px, 3vw, 38px);
  background: linear-gradient(180deg, rgba(7,7,11,.9), rgba(7,7,11,.6));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  min-height: 66px;
}
.topbar h1 { font-size: clamp(19px, 2.2vw, 24px); }
.spacer { flex: 1 1 auto; }

.mobile-top { display: none; }

.page {
  padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 38px) 40px;
  max-width: 1360px;
  animation: rise .5s var(--ease) both;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0; border-radius: 99px;
  background: rgba(255,255,255,.07);
  color: var(--fg);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  transition: transform .18s var(--ease), filter .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.btn-primary { background: var(--aura); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--aura); filter: brightness(1.09); box-shadow: 0 14px 40px -10px rgba(255,46,147,.62); }

.btn-ghost { background: transparent; border: 1px solid var(--line-hard); color: var(--fg-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--fg); border-color: var(--line-hard); }

.btn-danger { background: rgba(251,113,133,.14); color: var(--err); border: 1px solid rgba(251,113,133,.3); }
.btn-danger:hover { background: rgba(251,113,133,.22); }

.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { display: flex; width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-soft); border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: var(--fg-2);
  transition: all .18s var(--ease);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: rgba(255,255,255,.1); color: var(--fg); transform: translateY(-1px); }
.icon-btn.on { background: rgba(255,46,147,.16); border-color: rgba(255,46,147,.4); color: var(--pink); }

/* ── Badges & Chips ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line-soft);
  font-size: 11.5px; font-weight: 650;
  letter-spacing: .02em; color: var(--fg-2);
  white-space: nowrap;
}
.badge.pro { background: var(--aura); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -6px rgba(255,46,147,.6); }
.badge.ok   { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.28); color: var(--ok); }
.badge.warn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.28); color: var(--warn); }
.badge.err  { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.28); color: var(--err); }
.badge.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; animation: pulse 1.4s ease-in-out infinite;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-hard);
  background: rgba(255,255,255,.03);
  color: var(--fg-2);
  font-size: 13px; font-weight: 550;
  transition: all .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: rgba(255,255,255,.08); color: var(--fg); transform: translateY(-1px); }
.chip.active {
  background: var(--aura); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255,46,147,.55);
}

/* ── Karten & Raster ─────────────────────────────────────── */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.card > h2 { font-size: 19px; margin-bottom: 4px; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-size: 20px; font-weight: 700; font-family: var(--font-dp); letter-spacing: -0.03em; line-height: 1.2; }
.stat span { font-size: 11.5px; color: var(--fg-3); font-weight: 500; }
.stat-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.stat .value, .value { font-size: 26px; font-weight: 800; font-family: var(--font-dp); letter-spacing: -0.04em; }
.value small { font-size: 12.5px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; font-family: var(--font); }

/* Trenner – auch mit Text ("oder", "noch kein Konto?") */
.divider {
  border: 0; margin: 22px 0;
  display: flex; align-items: center; gap: 14px;
  color: var(--fg-3); font-size: 12.5px; font-weight: 600;
  text-transform: none; white-space: nowrap;
}
.divider::before, .divider::after {
  content: ''; flex: 1 1 auto; height: 1px; background: var(--line-soft);
}
.divider:empty { display: block; height: 1px; background: var(--line-soft); }
.divider:empty::before, .divider:empty::after { display: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(38rem 26rem at 8% 0%,   rgba(255,46,147,.34), transparent 62%),
    radial-gradient(34rem 24rem at 92% 12%, rgba(56,189,248,.26), transparent 60%),
    radial-gradient(30rem 22rem at 60% 110%, rgba(168,85,247,.3), transparent 62%),
    linear-gradient(160deg, #16101f, #0a0a10 70%);
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(255,46,147,.28), rgba(168,85,247,.22), rgba(56,189,248,.24), rgba(255,46,147,.28));
  filter: blur(70px); opacity: .55; z-index: -1;
  animation: drift 18s linear infinite;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 56px);
  letter-spacing: -0.045em; line-height: 1.03;
  margin-bottom: 16px; max-width: 20ch;
}
.hero p { color: var(--fg-2); font-size: clamp(15px, 1.6vw, 18px); max-width: 52ch; margin-bottom: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-inner { position: relative; z-index: 2; }
.hero-inner > .badge { margin-bottom: 16px; }

.stat-card { padding: 18px; }
.stat-card .value { margin-top: 2px; }

.gradient-text {
  background: var(--aura);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Prompt-Direkteinstieg im Hero */
.hero-prompt {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 22px;
  padding: 8px 8px 8px 18px;
  border-radius: 99px;
  background: rgba(6,6,10,.62);
  border: 1px solid var(--line-hard);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: 560px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-prompt:focus-within {
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 0 0 4px rgba(168,85,247,.14);
}
.hero-prompt input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: none;
  font-size: 15px; color: var(--fg); padding: 8px 0;
}
.hero-prompt input::placeholder { color: var(--fg-3); }

/* ── Sektionen ───────────────────────────────────────────── */
.section { margin-top: clamp(28px, 4vw, 44px); }
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(18px, 2vw, 22px); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* ── Track-Karten ────────────────────────────────────────── */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.track-card {
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  animation: rise .45s var(--ease) both;
}
.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hard);
  box-shadow: var(--shadow);
}
.track-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #241833, #101018);
  display: grid; place-items: center;
  overflow: hidden;
}
.track-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.track-card:hover .track-cover img { transform: scale(1.06); }
.track-cover .placeholder { font-size: 40px; opacity: .3; }
.track-play {
  position: absolute; right: 12px; bottom: 12px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--aura); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--glow);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: all .24s var(--ease);
}
.track-play svg { width: 20px; height: 20px; margin-left: 2px; }
.track-card:hover .track-play, .track-play:focus-visible { opacity: 1; transform: translateY(0) scale(1); }
.track-body { padding: 14px 15px 15px; }
.track-title {
  font-weight: 650; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 7px;
}
.track-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-3);
  min-height: 22px;
}
.track-meta a:hover { color: var(--fg-2); }
.track-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.track-actions .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.track-actions .icon-btn svg { width: 15px; height: 15px; }

.progress-line {
  height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden; margin-top: 9px;
}
.progress-line i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--aura);
  transition: width .6s var(--ease);
  position: relative;
}
.progress-line i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.6s linear infinite;
}

/* Track-Zeile (Studio) */
.track-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.track-row + .track-row { margin-top: 4px; }
.track-row:hover { background: rgba(255,255,255,.04); border-color: var(--line-soft); }
.track-row .thumb {
  width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(150deg, #241833, #101018);
  display: grid; place-items: center; overflow: hidden;
  flex: 0 0 auto; font-size: 20px;
}
.track-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-row .info { flex: 1 1 auto; min-width: 0; }
.track-row .track-title { margin-bottom: 4px; }

/* ── Formulare ───────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-2);
}
.field label .sub { font-weight: 400; color: var(--fg-3); }

.input, .textarea, .select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-hard);
  background: rgba(255,255,255,.035);
  color: var(--fg);
  font-size: 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  outline: none;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(168,85,247,.65);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(168,85,247,.13);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e6e82'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 42px;
}
.select option { background: #14141c; color: var(--fg); }

.hint { color: var(--fg-3); font-size: 13.5px; }
.small { font-size: 12.5px; }
.muted { color: var(--fg-3); }
.center { text-align: center; }

/* Schalter */
.switch {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--fg-2);
  -webkit-tap-highlight-color: transparent;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 44px; height: 26px; border-radius: 99px;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--line-soft);
  position: relative; flex: 0 0 auto;
  transition: background .2s var(--ease);
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  transition: transform .22s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.switch input:checked + .track { background: var(--aura); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(168,85,247,.2); }

/* Kopierfeld (Suno-ID / Token) */
.copy-field {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-hard);
  background: rgba(0,0,0,.32);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  overflow: hidden;
}
.copy-field .value {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 500; font-family: inherit; letter-spacing: 0;
}

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 16px;
  border: 0; border-radius: 99px;
  background: transparent;
  color: var(--fg-3);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  transition: all .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--fg-2); background: rgba(255,255,255,.05); }
.tab.active { background: var(--aura); color: #fff; box-shadow: 0 6px 16px -6px rgba(255,46,147,.6); }

/* ── Kontingent-Karte ────────────────────────────────────── */
.credit-card {
  margin: 10px 2px 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(20rem 12rem at 0% 0%, rgba(255,46,147,.2), transparent 68%),
    linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.credit-card .row { justify-content: space-between; }
.plan-name {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 700;
}
.credit-card .value { font-size: 24px; margin: 4px 0 10px; }
.meter {
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.1);
  overflow: hidden; margin-bottom: 14px;
}
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--aura); transition: width .5s var(--ease); }

/* ── Preistabelle ────────────────────────────────────────── */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-hard); }
.plan.current {
  border-color: rgba(255,46,147,.45);
  background:
    radial-gradient(20rem 14rem at 50% 0%, rgba(255,46,147,.16), transparent 70%),
    linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.plan h3 { font-size: 18px; }
.plan .price { font-size: 28px; font-weight: 800; font-family: var(--font-dp); letter-spacing: -0.04em; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 7px; }
.plan li {
  font-size: 13.5px; color: var(--fg-2);
  padding-left: 22px; position: relative;
}
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--pink); font-weight: 700;
}
.plan .btn { margin-top: auto; }

/* ── Profil-Hero ─────────────────────────────────────────── */
.profile-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(200px, 30vw, 300px);
  display: flex; align-items: flex-end;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(30rem 20rem at 15% 0%, rgba(255,46,147,.32), transparent 62%),
    radial-gradient(28rem 18rem at 85% 20%, rgba(56,189,248,.24), transparent 60%),
    linear-gradient(160deg, #1a1226, #0a0a10 72%);
}
.profile-hero .cover { position: absolute; inset: 0; }
.profile-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(7,7,11,.9));
  pointer-events: none;
}
.profile-hero .inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.profile-hero h1 { font-size: clamp(24px, 4vw, 42px); }
.profile-hero .handle { color: var(--fg-2); font-size: 15px; }

.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--aura);
  display: grid; place-items: center;
  font-weight: 700; font-size: 19px; color: #fff;
  object-fit: cover; flex: 0 0 auto;
  font-family: var(--font-dp);
}
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.lg { width: clamp(72px, 12vw, 104px); height: clamp(72px, 12vw, 104px); font-size: 34px; border: 3px solid rgba(255,255,255,.12); }

/* ── Leerzustand ─────────────────────────────────────────── */
.empty {
  padding: clamp(34px, 6vw, 64px) 24px;
  text-align: center;
  border: 1px dashed var(--line-hard);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.014);
}
.empty .em, .empty .big-icon { font-size: 44px; margin-bottom: 12px; opacity: .8; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--fg-3); max-width: 44ch; margin: 6px auto 0; }

/* ── Hinweise ────────────────────────────────────────────── */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.04);
  font-size: 14px; color: var(--fg-2);
  margin-bottom: 18px;
}
.alert.ok   { background: rgba(52,211,153,.1);  border-color: rgba(52,211,153,.26); color: #a7f3d0; }
.alert.warn { background: rgba(251,191,36,.1);  border-color: rgba(251,191,36,.26); color: #fde68a; }
.alert.err  { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.26); color: #fecdd3; }
.alert.info { background: rgba(56,189,248,.1);  border-color: rgba(56,189,248,.26); color: #bae6fd; }

/* ── Player ──────────────────────────────────────────────── */
.player {
  position: fixed;
  left: var(--sidebar-w); right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2fr) auto;
  align-items: center;
  gap: 16px;
  height: var(--player-h);
  padding: 0 clamp(16px, 2.5vw, 28px);
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .38s var(--ease);
}
.player.on, .player.active { transform: translateY(0); }
.player .cover {
  width: 50px; height: 50px; border-radius: 11px;
  object-fit: cover; background: #1a1a24;
}
.player .meta { min-width: 0; }
.player .meta .t {
  font-weight: 650; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player .meta .a { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .controls { display: flex; align-items: center; gap: 8px; }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--aura); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--glow);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.play-btn svg { width: 19px; height: 19px; }
.play-btn:hover { transform: scale(1.06); filter: brightness(1.08); }
.player .bar { display: flex; align-items: center; gap: 11px; min-width: 0; }
.player .time { font-size: 11.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.player .seek {
  flex: 1 1 auto; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.13);
  cursor: pointer; position: relative;
  min-width: 60px;
}
.player .seek i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--aura); width: 0; position: relative;
}
.player .seek i::after {
  content: ''; position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  transition: transform .18s var(--ease);
}
.player .seek:hover i::after { transform: translateY(-50%) scale(1); }
.player .extra { display: flex; align-items: center; gap: 8px; }

/* ── Mobile-Navigation ───────────────────────────────────── */
.mobile-nav { display: none; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: calc(var(--player-h) + 18px);
  right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 13px 17px;
  border-radius: var(--r);
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500;
  animation: toastIn .32s var(--ease) both;
  pointer-events: auto;
  border-left: 3px solid var(--violet);
}
.toast.ok  { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.warn{ border-left-color: var(--warn); }
.toast.out { animation: toastOut .28s var(--ease) both; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: clamp(20px, 5vw, 48px) 20px;
  position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 430px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(26rem 18rem at 50% -10%, rgba(255,46,147,.2), transparent 68%),
    linear-gradient(170deg, rgba(22,22,32,.94), rgba(10,10,16,.96));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: rise .5s var(--ease) both;
}
.auth-card .brand { justify-content: center; padding: 0 0 26px; }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; text-align: center; }
.auth-card > p { color: var(--fg-3); font-size: 14px; text-align: center; margin-bottom: 26px; }
.auth-foot {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center; font-size: 13.5px; color: var(--fg-3);
  display: flex; flex-direction: column; gap: 8px;
}
.auth-foot a { color: var(--fg-2); font-weight: 600; }
.auth-foot a:hover { color: var(--pink); }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ── Animationen ─────────────────────────────────────────── */
@keyframes rise    { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes drift   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut{ to { opacity: 0; transform: translateX(24px) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===========================================================
   Tablet
   =========================================================== */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================
   Handy
   =========================================================== */
@media (max-width: 900px) {
  :root { --player-h: 66px; }

  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--player-h) + var(--nav-h) + env(safe-area-inset-bottom) + 24px); }

  /* Kopfzeile: mobile Leiste bleibt sticky, der Seitentitel läuft im Fluss mit */
  .topbar {
    position: static;
    background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0;
    min-height: 0;
    padding: 18px 16px 0;
    flex-wrap: wrap;
  }
  .topbar h1 { font-size: 24px; }
  .topbar .btn { margin-left: auto; }
  .mobile-top {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 50;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(7,7,11,.94), rgba(7,7,11,.7));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    min-height: 58px;
  }
  .mobile-top .brand { padding: 0; font-size: 17px; }
  .mobile-top .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
  .mobile-top .brand-text small { display: none; }

  .page { padding: 18px 16px 26px; }

  .hero { padding: 26px 20px 28px; border-radius: var(--r-lg); }
  .hero h1 { font-size: clamp(27px, 8.4vw, 38px); max-width: none; }
  .hero p { font-size: 15px; margin-bottom: 22px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
  .hero-prompt { max-width: none; padding-left: 15px; }
  .hero-prompt .btn { padding: 10px 14px; }
  .hero-prompt .btn span { display: none; }

  .card { padding: 18px; border-radius: var(--r-lg); }
  .grid { gap: 12px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-layout { grid-template-columns: 1fr !important; gap: 14px; }

  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .track-body { padding: 11px 12px 12px; }
  .track-title { font-size: 13.5px; }
  /* Auf dem Handy gibt es kein Hover — Play-Button dauerhaft zeigen */
  .track-play { opacity: 1; transform: none; width: 40px; height: 40px; right: 9px; bottom: 9px; }
  .track-actions .icon-btn { width: 34px; height: 34px; }

  .track-row { gap: 11px; padding: 10px; }
  .track-row .thumb { width: 46px; height: 46px; border-radius: 10px; }
  .track-row .track-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 45vw; }
  .track-row .track-actions::-webkit-scrollbar { display: none; }

  .section-head { flex-wrap: wrap; }
  .row-between { gap: 10px; }

  /* Player über der Bottom-Nav */
  .player {
    left: 8px; right: 8px;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px);
    height: var(--player-h);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .player .cover { width: 44px; height: 44px; border-radius: 10px; }
  .player .extra { display: none; }
  .player .bar {
    position: absolute; left: 12px; right: 12px; bottom: -1px;
    height: 3px; gap: 0;
  }
  .player .time { display: none; }
  .player .seek { height: 3px; border-radius: 0 0 18px 18px; background: rgba(255,255,255,.1); }
  .play-btn { width: 40px; height: 40px; }

  /* Bottom-Navigation */
  .mobile-nav {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 80;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    color: var(--fg-3);
    font-size: 10.5px; font-weight: 600;
    transition: color .16s var(--ease);
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .mobile-nav a svg { width: 23px; height: 23px; }
  .mobile-nav a.active { color: var(--fg); }
  .mobile-nav a.active::after {
    content: ''; position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 99px; background: var(--aura);
  }
  .mobile-nav a.accent { color: #fff; }
  .mobile-nav a.accent svg {
    width: 46px; height: 46px; padding: 11px;
    border-radius: 16px; background: var(--aura);
    box-shadow: var(--glow);
    margin-top: -14px;
  }
  .mobile-nav a.accent::after { display: none; }

  .toast-wrap {
    right: 12px; left: 12px;
    bottom: calc(var(--nav-h) + var(--player-h) + env(safe-area-inset-bottom) + 14px);
    max-width: none;
  }

  .tabs { margin-bottom: 18px; }
  .chips { gap: 7px; }
  .chip { padding: 6px 12px; font-size: 12.5px; }
  .plan-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .profile-hero { min-height: 190px; border-radius: var(--r-lg); }
  .empty { padding: 34px 18px; border-radius: var(--r-lg); }
}

@media (max-width: 420px) {
  .track-grid { gap: 10px; }
  .cols-4 { gap: 10px; }
}
@media (max-width: 344px) {
  .mobile-top .brand-text { display: none; }
}

/* Sehr breite Bildschirme */
@media (min-width: 1600px) {
  .page { max-width: 1500px; }
}
