/* ========== GLOBAL ==========\*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #050608;
  color: #f8f8f8;
  height: 100vh;
  overflow: hidden;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* brand colors
   primary red:   #c1121f
   orange:        #f25c05
   soft orange:   #ff9f1c
   highlight:     #ffd60a
*/

/* ========== HEADER ========== */

header {
  height: 70px;
  border-radius: 10px;
  border: 1px solid #451010;
  background: linear-gradient(90deg, #ffd60a, #f25c05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left {
  flex: 0 0 auto;
  padding-top: 10px;
}

.header-right {
  flex: 0 0 auto;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.45));
}

/* center nav */
.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.95rem;
}

.header-nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  padding: 4px 0;
  letter-spacing: 0.04em;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffd60a;
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.header-nav a:hover::after {
  width: 100%;
}



.header-btn {

  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #ffd60a;
  background: rgba(5, 6, 8, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.header-btn:hover {
  background: #f25c05;
  border-color: #ffe282;
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.45);
  transform: translateY(-1px);
}

/* ========== BODY LAYOUT ========== */

.body {
  margin-top: 12px;
  flex: 1;
  display: flex;
  border-radius: 10px;
  border: 1px solid #262626;
  background: radial-gradient(circle at top left, #1a0b0b 0, #050608 55%);
  overflow: hidden;
}

/* ========== SIDEBAR ========== */

aside {
  width: 18%;
  min-width: 220px;
  border-right: 1px solid #262626;
  background: linear-gradient(180deg, #1c0a0a, #0d0f13);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* search bar */
.sidebar-search input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #343434;
  background: #050608;
  color: #f5f5f5;
  outline: none;
  font-size: 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.sidebar-search input::placeholder {
  color: #737373;
}

.sidebar-search input:focus {
  border-color: #f25c05;
  background: #0a0b0f;
  box-shadow: 0 0 0 1px rgba(242, 92, 5, 0.4);
}

/* tag chips */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  background: #ffe9d1;
  transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease,
    filter 0.15s ease;
}

/* pastel variations */
.tag-jazz { background: #ffd6cf; }
.tag-bossa { background: #ffdcb8; }
.tag-swing { background: #ffe2b3; }
.tag-chill { background: #ffe6bf; }
.tag-tropical { background: #ffe9c7; }
.tag-house { background: #ffefc4; }
.tag-yoga { background: #fff3cf; }
.tag-spiritual { background: #fff7dd; }

.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  filter: brightness(1.02);
}

/* platform buttons at bottom */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #343434;
  background: #101216;
  color: #f5f5f5;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

/* border tints */
.sidebar-link:nth-child(1) { border-color: #c1121f; }
.sidebar-link:nth-child(2) { border-color: #f25c05; }
.sidebar-link:nth-child(3) { border-color: #ff9f1c; }
.sidebar-link:nth-child(4) { border-color: #ffd60a; }

.sidebar-link:hover {
  background: #191c22;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* ========== MAIN CONTENT ========== */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.list-container {
  margin-top: 4px;
  margin-bottom: 4px;
  border-radius: 10px;

  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;              /* spacing between rows */
  overflow-y: auto;

}

/* row card */

.list-item {
  border-radius: 8px;
  border: 1px solid #262626;
  padding: 10px 14px;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, transform 0.1s ease;
}

.list-item:hover {
  border-color: #f25c05;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);

}

.list-item.is-playing {
  border-color: #ffd60a;
  box-shadow: 0 0 0 1px rgba(255, 214, 10, 0.5);
}

/* LEFT SIDE: cover + waveform + title */

.track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

/* cover button */

.track-cover-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
}

.track-cover {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
}

/* WaveSurfer container */

.track-waveform {
  flex: 1 1 auto;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;

}

/* title */

.track-title {
  flex: 0 0 220px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RIGHT SIDE: buttons */

.track-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.track-action-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #343434;
  background: #101216;
  color: #f5f5f5;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease;
}

.track-action-btn:hover {
  background: #191c22;
  border-color: #f25c05;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.track-action-primary {
  border-color: #ffd60a;
  background: #221a05;
}

.track-action-primary:hover {
  background: #f25c05;
  border-color: #ffe58a;
}

/* scrollbar */

.list-container::-webkit-scrollbar {
  width: 8px;
}
.list-container::-webkit-scrollbar-thumb {
  background: #343434;
  border-radius: 999px;
}
.list-container::-webkit-scrollbar-track {
  background: transparent;
}

/* small screens */

@media (max-width: 900px) {
  aside {
    min-width: 190px;
  }
}

/* echte WaveSurfer-Waveform + Hover-Overlay-Container  */
/* echte WaveSurfer-Waveform + Hover-Overlay-Container */
.track-waveform {
  position: relative;      /* für absolute Overlays */
  flex: 1 1 auto;
  height: 32px;            /* etwas mehr Luft für Wave */
  border-radius: 999px;
  overflow: hidden;
  background: transparent; /* ✅ Fake-Wave weg */
  cursor: pointer;
}


/* sicherstellen, dass der WaveSurfer-Canvas unter unseren Overlays liegt */
.track-waveform canvas {
  position: relative;
  z-index: 1;
}


/* sicherstellen, dass WaveSurfer-Canvas unter unseren Overlays liegt */
.track-waveform canvas {
  position: relative;
  z-index: 1;
}
/* Hover-Ghost-Füllung */
/* Hover-Ghost-Füllung über der Waveform */


/* Vertikale Linie unter dem Cursor */
.wave-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #00ffff;         /* DEBUG: cyan, gut sichtbar */
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.9);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transform: translateX(-1px);
  transition: opacity 0.12s ease-out;
}

/* Modal-Backdrop */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;              /* via JS toggeln */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal-Box */
.auth-modal {
  background: #121212;
  border-radius: 16px;
  padding: 24px 28px;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Close-Button */
.auth-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-tab-active {
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  border-color: transparent;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form-hidden {
  display: none;
}

.auth-form h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
}

.auth-form input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  background: #1c1c1c;
  color: #fff;
  outline: none;
}

.auth-form input:focus {
  border-color: #ffb347;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border-radius: 999px;
  border: none;
  padding: 9px 0;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  color: #121212;
  font-weight: 600;
  cursor: pointer;
  
}

.auth-error {
  margin-top: 10px;
  min-height: 18px;
  font-size: 0.8rem;
  color: #ff6b6b;
}

/* Cart-Badge im Header */
.header-cart-btn {
  position: relative;
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid #ffb347;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff5f6d;
  color: #121212;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Sidebar + Backdrop */
.cart-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 9000;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background: #121212;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 9001;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.cart-sidebar-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.cart-sidebar-body {
  padding: 12px 18px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-title {
  font-size: 0.9rem;
  padding-bottom: 10px;
}

.cart-item-qty {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cart-empty {
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Body im Sidebar etwas luftiger */
.cart-sidebar-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

/* Einzelnes Produkt im Warenkorb */
.cart-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #f5f5f5;
  line-height: 1.25;
}

/* Wenn du den Dateinamen in <small> packst, sieht das besser aus */
.cart-item-title small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Lizenz-Button-Reihe */
.cart-item-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-license-option {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f5;
  font-size: 0.75rem;
  padding: 5px 12px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.cart-license-option:hover {
  border-color: rgba(255, 179, 71, 0.8);
  background: rgba(255, 179, 71, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* aktive Option */
.cart-license-option.license-option-active {
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  border-color: transparent;
  color: #151515;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

.cart-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  background: #101010;
}

.cart-totals {
  background: #141414;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-row span:first-child {
  opacity: 0.75;
}

.cart-total-bold {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-total-bold span:last-child {
  font-size: 0.95rem;
}

/* Cashout-Button */
.cart-cashout-btn {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  color: #121212;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.09s ease-out,
    box-shadow 0.15s ease-out,
    filter 0.15s ease-out;
}

.cart-cashout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
  filter: brightness(1.03);
}

.cart-cashout-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.cart-sidebar {
  background: radial-gradient(circle at top left, #1d1110 0, #121212 42%, #0b0b0b 100%);
}

/* schmale Scrollbar im Cart */
.cart-sidebar-body::-webkit-scrollbar {
  width: 6px;
}
.cart-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}
.cart-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Produkt-Card im Warenkorb */
.cart-item {
  background: #101010;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 14px;
}

/* Liste der 4 Buttons (vertikal) */
.cart-license-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Grund-Style der Buttons – Format wie im Mockup */
button.cart-license-option {
  all: unset;                /* resetet alle Default-Buttonstyles */
  box-sizing: border-box;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 7px 14px;
  border-radius: 10px;
  border: 2px solid #f5f5f5;
  border-color: transparent;
  background: #000;          /* dunkler Hintergrund */
  color: #f5f5f5;
  font-size: 0.95rem;

  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.07s ease,
    box-shadow 0.15s ease;
}

button.cart-license-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* aktive Option (orange) */
button.cart-license-option.license-option-active {
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* Text im Button */
.cart-license-name {
  font-weight: 500;
}

.cart-license-price {
  font-weight: 600;
  font-size: 1rem;
}

/* Cart-Item muss relative sein für das absolute X */
.cart-item {
  position: relative;
}

/* Remove-Button oben rechts – super-spezifisch */
button.cart-item-remove {
  all: unset;              /* ALLES an default / vorherigem Button-Styling killen */
  box-sizing: border-box;

  position: absolute;
  top: 10px;
  right: 10px;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  line-height: 1;
  color: #ffffff;

  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

button.cart-item-remove:hover {
  background: rgba(255, 80, 80, 0.9);
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7);
}

button.cart-item-remove:active {
  transform: scale(0.96);
  box-shadow: none;
}

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 16px 10px;
  z-index: 9500;
}

.checkout-modal-backdrop.open {
  display: flex;
}

.checkout-modal {
  width: 420px;
  max-width: 90vw;
  min-height: 0;
  max-height: 700px;
  background: #121212;
  border-radius: 18px;
  padding: 0;
  margin: auto 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-modal > h2 {
  padding: 18px 20px 0 20px;
  margin: 0;
  flex-shrink: 0;
}

.checkout-modal-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px 20px 20px 20px;
}

.checkout-modal-content::-webkit-scrollbar {
  width: 8px;
}

.checkout-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.checkout-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.checkout-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-close {
  all: unset;
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
}

.checkout-summary {
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 14px;
}

.checkout-payments h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.checkout-method {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 4px;
  cursor: pointer;
}

.checkout-method input {
  accent-color: #ffb347;
}

.checkout-confirm-btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  color: #121212;
  font-weight: 600;
  cursor: pointer;
}

.checkout-error {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #ff8080;
}

#paypalButtons {
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}
/* Grundstyle für Header-Buttons (Account + Cart) */
.header-account-btn {
  all: unset;                 /* Browser-Button-Style killen */
  box-sizing: border-box;

  padding: 4px 18px;
  border-radius: 999px;
  border: 1px solid #ffd166;

  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  cursor: pointer;
  text-align: center;

  background: transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.header-account-btn:hover,
.header-cart-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 6px 14px rgba(0,0,0,0.7);
  transform: translateY(-1px);
}

.header-account-btn:active,
.header-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.7);
}

/* Cookie Banner — passend zu deinem Dark + Orange/Yellow UI */
.cookie-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 9998;
}

.cookie-banner{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  width: min(980px, calc(100vw - 24px));
  background: radial-gradient(120% 140% at 10% 0%, rgba(255,170,0,.20) 0%, rgba(255,120,0,.08) 40%, rgba(10,10,10,.92) 100%),
              rgba(12,12,12,.92);
  border: 1px solid rgba(255,170,0,.28);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  border-radius: 18px;
  padding: 16px 16px 14px;
  z-index: 9999;
  color: rgba(255,255,255,.92);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), opacity .45s;
  opacity: 0;
}

.cookie-banner.is-open{
  transform: translate(-50%, 0%);
  opacity: 1;
}

.cookie-head{
  display: grid;
  grid-template-columns: 38px 1fr 36px;
  gap: 12px;
  align-items: start;
  height: 90px;
  padding: 10px;
}

.cookie-badge{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,210,0,.95), rgba(255,120,0,.95));
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255,140,0,.18);
}

.cookie-head-text h2{
  margin: 0;
  font-size: 16px;
  letter-spacing: .2px;
}
.cookie-head-text p{
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}

.cookie-x{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}
.cookie-x:hover{ border-color: rgba(255,170,0,.35); }

.cookie-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}
.cookie-links a{
  font-size: 12px;
  color: rgba(255,210,120,.92);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,170,0,.18);
}
.cookie-links a:hover{ border-color: rgba(255,170,0,.35); }

.cookie-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-actions-right{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons – in deinem Pill Style */
.btn{
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, border-color .2s ease, background .2s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(90deg, rgba(255,210,0,.95), rgba(255,120,0,.95));
  color: #111;
  border-color: rgba(255,170,0,.35);
  box-shadow: 0 10px 30px rgba(255,140,0,.18);
}

.btn-outline{
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.18);
}
.btn-outline:hover{ border-color: rgba(255,170,0,.35); }

.btn-ghost{
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.12);
}
.btn-ghost:hover{ border-color: rgba(255,170,0,.28); }

/* Settings Panel */
.cookie-panel{
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
}
.cookie-panel-inner h3{
  margin: 0 0 6px;
  font-size: 14px;
}
.cookie-small{
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.cookie-toggles{
  display: grid;
  gap: 10px;
}

.toggle{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
}
.toggle:hover{ border-color: rgba(255,170,0,.25); }

.toggle input{ display:none; }

.toggle-ui{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  position: relative;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.toggle-ui::after{
  content:"";
  position:absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  transition: left .18s ease, background .18s ease;
}

.toggle input:checked + .toggle-ui{
  background: rgba(255,170,0,.22);
  border-color: rgba(255,170,0,.35);
}
.toggle input:checked + .toggle-ui::after{
  left: 21px;
  background: linear-gradient(90deg, rgba(255,210,0,.95), rgba(255,120,0,.95));
}

.toggle-text strong{
  display:block;
  font-size: 13px;
}
.toggle-text em{
  display:block;
  font-size: 12px;
  font-style: normal;
  color: rgba(255,255,255,.68);
  margin-top: 2px;
}

.toggle.is-locked{
  opacity: .9;
  border-color: rgba(255,210,0,.18);
}

.cookie-panel-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Mobile spacing */
@media (max-width: 560px){
  .cookie-actions{ flex-direction: column; align-items: stretch; }
  .cookie-actions-right{ justify-content: stretch; }
  .btn{ width: 100%; }
}

.account-modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.7);
  display:none;
  align-items:center; justify-content:center;
  z-index:9999;
}
.account-modal-backdrop.open{ display:flex; }

.account-modal{
  width: 820px;
  max-width: 92vw;
  height: 520px;
  max-height: 85vh;
  background:#121212;
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.85);
  position:relative;
  overflow:hidden;
}

.account-close{
  all:unset;
  position:absolute;
  top:12px; right:14px;
  width:28px; height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}

.account-layout{
  height:100%;
  display:flex;
}

.account-nav{
  width: 190px;
  background: #0f0f0f;
  border-right:1px solid rgba(255,255,255,.08);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.account-tab{
  all:unset;
  box-sizing:border-box;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  color:#f2f2f2;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
  transition: background .15s ease, border-color .15s ease;
}
.account-tab:hover{
  border-color: rgba(255,179,71,0.6);
}
.account-tab.active{
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  border-color: transparent;
  color:#141414;
  font-weight:600;
}

.account-content{
  flex:1;
  padding:18px 20px;
  overflow:auto;
}

.acc-title{
  font-size:1.1rem;
  font-weight:700;
  margin-bottom:14px;
}

.download-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.download-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.download-meta strong{ font-weight:600; }
.download-meta small{ opacity:.7; }

.download-btn{
  all:unset;
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.download-btn:hover{
  border-color: rgba(255,179,71,0.8);
  background: rgba(255,179,71,0.10);
  transform: translateY(-1px);
}
/* === FORCE Account Modal visibility === */
#accountModal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 99999 !important;
}

#accountModal.open {
  display: flex !important;
}
.account-modal {
  background: #121212 !important;
  border-radius: 18px !important;
  width: 820px !important;
  max-width: 92vw !important;
  height: 520px !important;
  max-height: 85vh !important;
  overflow: hidden !important;
}
/* =========================
   ACCOUNT LOGOUT BUTTON
========================= */

.account-logout {
  display: block;
  margin-top: auto;               /* schiebt ihn nach ganz unten */
  padding: 12px 16px;
  margin-bottom: 6px;

  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;

  color: rgba(255, 80, 80, 0.35);
  text-decoration: none;

  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.account-logout:hover {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.35);
  color: #ff6b6b;
}

.account-logout:active {
  transform: translateY(1px);
}
/* Sidebar Layout */
.account-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* HERO WRAPPER */
.rml-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 14px 14px 16px;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 60px rgba(0,0,0,0.45);
  min-height: 260px;
}

/* Background image */
.rml-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../media/photo/Banner2.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);

}

/* Dark overlay + RML gradient glow */
.rml-hero__overlay {
  position: absolute;
  inset: 0;
  background:
  radial-gradient(90% 140% at 20% 40%,
  rgba(0,0,0,0.05) 0%,
  rgba(0,0,0,0.40) 55%,
  rgba(0,0,0,0.60) 100%
),
linear-gradient(90deg,
  rgba(255,179,71,0.22) 0%,
  rgba(255,95,109,0.18) 45%,
  rgba(0,0,0,0.0) 80%
),
linear-gradient(180deg,
  rgba(0,0,0,0.03) 0%,
  rgba(0,0,0,0.40) 100%
);

}

/* Content grid */
.rml-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  padding: 26px 26px 22px;
  align-items: end;
}

.rml-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  width: fit-content;
}

.rml-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  box-shadow: 0 0 0 6px rgba(255,179,71,0.10);
}

.rml-hero__title {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 1.05;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.2px;
}

.rml-hero__title span {
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rml-hero__sub {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.4;
}

.rml-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rml-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}

.rml-hero__btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.rml-hero__btn:active { transform: translateY(1px); }

.rml-hero__btn--primary {
  border: 0;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  color: #101010;
}

.rml-hero__btn--primary:hover { filter: brightness(1.05); }

/* Right side card */
.rml-hero__card {
  justify-self: end;
  width: 100%;
  max-width: 220px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.rml-hero__cardTitle {
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  margin: 0 0 16px;
  font-size: 1rem;
  text-align: center;
}

.rml-hero__pillRow {

  flex-wrap: wrap;
  gap: 8px;
}

.rml-hero__pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .08s ease;
}

.rml-hero__pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}

.rml-hero__pill:active { transform: translateY(1px); }

/* Mobile */
@media (max-width: 900px) {
  .rml-hero__content {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .rml-hero__card {
    justify-self: start;
    max-width: 520px;
  }
  .rml-hero { min-height: 300px; }
}
.rml-hero {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rml-hero.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
/* HERO sits INSIDE the scrollable list like a header */
.rml-hero{
  margin: 14px 14px 16px;
}

/* when not on page 1: remove from layout so songs move up */
.rml-hero.is-hidden{
  display:none !important;
}
/* Give the hero more “bottom area” so the buttons don’t sit on the edge */
/* More specific + guaranteed bottom space (works even if something overrides earlier rules) */
#track-list > .rml-hero{
  padding-bottom: 18px !important;   /* makes the whole hero “longer” */
  min-height: 300px !important;      /* optional but guarantees more room */
}

#track-list > .rml-hero .rml-hero__content{
  padding: 26px 26px 54px !important; /* extra space under the buttons */
  align-items: start !important;      /* prevents content from sitting on the bottom edge */
}
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.filter-dd {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}

.filter-dd__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  cursor: pointer;
  user-select: none;

  color: rgba(255,255,255,0.88);
  background: transparent;
  border: 0;

  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.filter-dd__left {
  display: inline-flex;
  align-items: left;
  gap: 10px;
}

.filter-dd__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.filter-dd__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.55);
  border-bottom: 2px solid rgba(255,255,255,0.55);
  transform: rotate(45deg);
  transition: transform .22s ease, opacity .22s ease;
  opacity: 0.9;
  flex: 0 0 auto;
}

.filter-dd.is-open .filter-dd__chev {
  transform: rotate(-135deg);
  opacity: 1;
}

/* Collapsible area (smooth) */
.filter-dd__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.filter-dd.is-open .filter-dd__panel {
  grid-template-rows: 1fr;
}

.filter-dd__panelInner {
  overflow: hidden;
  padding: 0 14px 0;
}

.filter-dd.is-open .filter-dd__panelInner {
  padding: 0 14px 14px;
}

/* Tags inside dropdown */
.dd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.dd-tag {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);

  border-radius: 999px;
  padding: 1.8% 3.5%;
  font-size: 80%;

  letter-spacing: 0.15px;

  cursor: pointer;
  user-select: none;

  transition: background .18s ease, border-color .18s ease, transform .08s ease;
}

.dd-tag:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}

.dd-tag:active {
  transform: translateY(1px);
}

.dd-tag.is-active {
  border: 0;
  color: #111;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
}

/* Optional: small divider between search and dropdowns */
.sidebar-divider {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.06);
  margin: 10px 0 2px;
}

/* Firefox: remove the annoying blue focus outline on reload */
#track-list,
#track-list:focus,
#track-list:focus-visible,
.list-container,
.list-container:focus,
.list-container:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#track-list *:focus,
#track-list *:focus-visible {
  outline: none;
}


.cart-license-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  width: 100%;
  text-align: left; /* wichtig bei button */
}

.cart-license-option .license-label {
  justify-self: start;
}

.cart-license-option .license-price {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
  font-weight: 600;
}
/* =========================
   LICENSES MODAL (RML Theme)
   Replace your old modal CSS with this block.
========================= */

.licenses-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index: 9999;

  /* animation */
  opacity: 0;
  transition: opacity .22s ease;
}

.licenses-modal-backdrop.open{
  display: flex;
  opacity: 1;
}

.licenses-modal{
  width: min(1100px, calc(100vw - 32px));
  max-height: min(84vh, 920px);
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;

  background:
    radial-gradient(900px 360px at 20% -10%, rgba(255,180,71,.18), transparent 60%),
    radial-gradient(700px 320px at 85% 0%, rgba(255,95,109,.14), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,.98), rgba(10,10,10,.98));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 110px rgba(0,0,0,.70);

  /* animation */
  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.licenses-modal-backdrop.open .licenses-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* header area inside modal */
.licenses-title{
  margin-left: 20px;
  margin-top: 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
}

.licenses-sub{

  margin-left: 20px;
  margin-top: 20px;
  font-size: 14px;
  opacity: .75;
}

.licenses-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.licenses-close:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.licenses-close:active{
  transform: translateY(0);
  opacity: .9;
}

/* scroll area */
.licenses-table-wrap{
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  max-height: calc(84vh - 120px);
  min-height: 0;
  flex: 1 1 auto;

  margin: 20px;
}

/* Firefox scrollbar */
.licenses-table-wrap{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.20) rgba(255,255,255,.04);
}

/* nicer scrollbar (webkit) */
.licenses-table-wrap::-webkit-scrollbar{ width: 10px; height: 10px; }
.licenses-table-wrap::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.licenses-table-wrap::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.20); }
.licenses-table-wrap::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); border-radius: 999px; }

/* table */
.licenses-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.licenses-table th,
.licenses-table td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: middle;
}

/* sticky header row */
.licenses-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(20,20,20,.96), rgba(16,16,16,.92));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* subtle row hover */
.licenses-table tbody tr{
  transition: background .18s ease;
}

.licenses-table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

/* center icons */
.licenses-table td.ok,
.licenses-table td.no{
  text-align: center;
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 16px;
}

/* colors matching your theme */
.licenses-table td.ok{ color: #a78bfa; }   /* purple check */
.licenses-table td.no{ color: #ff5f6d; }   /* red cross */

/* license header cells: name + price pill */
.lic-col{
  display: grid;
  gap: 6px;
  align-items: center;
}

.lic-name{
  font-weight: 900;
  align-items: center;
}

.lic-price{
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;

  background: linear-gradient(90deg, rgba(255,180,71,.22), rgba(255,95,109,.20));
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  align-items: center;
}

/* Responsive: allow smaller padding on small screens */
@media (max-width: 520px){
  .licenses-modal-backdrop{ padding: 14px; }
  .licenses-modal{ border-radius: 16px; }
  .licenses-table th, .licenses-table td{ padding: 12px 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .licenses-modal-backdrop,
  .licenses-modal,
  .licenses-close{
    transition: none !important;
  }
}
/* =========================
   LICENSE HEADER ALIGNMENT
========================= */

/* Header-Zellen mittig */
.licenses-table thead th{
  text-align: center;
}

/* Erste Spalte (Feature) wieder links */
.licenses-table thead th:first-child{
  text-align: left;
}

/* Name + Preis exakt zentriert */
.lic-col{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lic-name{
  font-weight: 900;
  letter-spacing: .2px;
}

.lic-price{
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* =========================
   CLASSY OPEN ANIMATION
========================= */

.licenses-modal{
  transform: translateY(14px) scale(.975);
  opacity: 0;
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    opacity .22s ease;
}

.licenses-modal-backdrop.open .licenses-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Backdrop soft fade */
.licenses-modal-backdrop{
  opacity: 0;
  transition: opacity .25s ease;
}

.licenses-modal-backdrop.open{
  opacity: 1;
}

/* Optional: micro interaction on hover (very subtle) */
.licenses-table thead th:not(:first-child):hover .lic-price{
  transform: translateY(-1px);
  transition: transform .15s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce){
  .licenses-modal,
  .licenses-modal-backdrop{
    transition: none !important;
  }
}
/* =========================
   ABOUT MODAL (RML – clean)
========================= */

.about-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index: 9999;

  opacity: 0;
  transition: opacity .22s ease;
}

.about-modal-backdrop.open{
  display: grid;
  opacity: 1;
}

.about-modal{
  width: min(880px, calc(100vw - 32px));
  max-height: min(82vh, 900px);
  overflow: hidden;

  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 234, 73, 0.18),
      rgba(255,186,73,.06) 120px,
      rgba(14,14,16,.96) 260px
    );
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 100px rgba(0,0,0,.65);

  position: relative;
  padding: 22px;

  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition:
    transform .26s cubic-bezier(.2,.8,.2,1),
    opacity .24s ease;
}

.about-modal-backdrop.open .about-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close */
.about-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.about-close:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.about-close:active{ transform: translateY(1px); }

/* Header */
.about-head{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 8px 18px;
  margin-bottom: 6px;
}

/* LOGO – frei & größer */
.about-logo{
  width: 144px;
  height: auto;
  object-fit: contain;
}

/* Title */
.about-title{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .3px;
}

.about-sub{
  margin: 2px 0 0;
  font-size: 14px;
  opacity: .78;
}

/* Body */
.about-body{
  margin-top: 14px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  max-height: calc(82vh - 200px);
  overflow: hidden;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}

/* scrollbar */
.about-body::-webkit-scrollbar{ width: 10px; }
.about-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.about-body::-webkit-scrollbar-track{ background: transparent; }

.rml-modal-body{
  margin-left: 30px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .about-modal,
  .about-modal-backdrop{
    transition: none !important;
  }
}

/* =========================
   LEGAL MODAL (Account-style)
========================= */

.legal-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index: 9999;

  opacity: 0;
  transition: opacity .22s ease;
}
.legal-modal-backdrop.open{
  display: grid;
  opacity: 1;
}

.legal-modal{
  width: min(980px, calc(100vw - 32px));
  max-height: min(82vh, 900px);
  overflow: hidden;

  border-radius: 20px;
  background: rgba(14,14,16,.96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 100px rgba(0,0,0,.65);

  position: relative;

  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition:
    transform .26s cubic-bezier(.2,.8,.2,1),
    opacity .24s ease;
}
.legal-modal-backdrop.open .legal-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.legal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.legal-close:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.legal-close:active{ transform: translateY(1px); }

.legal-layout{
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: min(82vh, 900px);
}

.legal-nav{
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-tab{
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.90);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .08s ease;
}
.legal-tab:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
.legal-tab:active{ transform: translateY(1px); }

.legal-tab.active{
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  border: 0;
  color: #111;
}

.legal-content{
  padding: 22px 22px 18px;
  overflow: hidden;
}

#legalContentInner{
  height: 100%;
  overflow: hidden;
  padding-right: 6px;
  margin-bottom: 40px;
}

#legalContentInner::-webkit-scrollbar{ width: 10px; }
#legalContentInner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
#legalContentInner::-webkit-scrollbar-track{ background: transparent; }

.legal-title{
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .2px;
}

.legal-section-title{
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .9;
}

.legal-text{
  margin: 0 0 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

@media (max-width: 820px){
  .legal-layout{ grid-template-columns: 1fr; }
  .legal-nav{
    flex-direction: row;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .legal-tab{ white-space: nowrap; }
}
/* =========================
   LEGAL MODAL – SCROLL FIX
========================= */

/* Modal selbst darf NICHT scrollen */
.legal-modal{
  overflow: hidden;
}

/* Layout fixieren */
.legal-layout{
  height: min(82vh, 900px);
}

/* Linke Seite bleibt statisch */
.legal-nav{
  overflow: hidden;
}

/* ✅ NUR der Content scrollt */
.legal-content{
  overflow: hidden;
  height: 100%;
  padding: 22px;
}

/* ✅ Scrollbarer Bereich */
#legalContentInner{
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* Classy Scrollbar */
#legalContentInner::-webkit-scrollbar{
  width: 10px;
}

#legalContentInner::-webkit-scrollbar-thumb{
  background: linear-gradient(
    180deg,
    rgba(255,179,71,.45),
    rgba(255,95,109,.45)
  );
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

#legalContentInner::-webkit-scrollbar-track{
  background: transparent;
}

/* Firefox */
#legalContentInner{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,179,71,.45) transparent;
}

#legalContentInner{
  animation: legalFade .18s ease;
}

@keyframes legalFade{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   LEGAL MODAL – SCROLL FIX v2
========================= */

.legal-content{
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 22px 22px 18px;
}

/* ⬇️ WICHTIG: Abstand nach oben */
#legalContentInner{
  height: 100%;
  overflow-y: auto;
  padding:
    12px   /* top */
    10px   /* right */
    16px   /* bottom */
    0;     /* left */

  margin-top: 48px; /* ✅ schafft Platz für Close + Titel */
  scroll-behavior: smooth;
}
#legalContentInner::-webkit-scrollbar{
  width: 8px;
}

/* Close button MUST be above scroll layer */
#legalClose,
.legal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;          /* ✅ über allem */
  pointer-events: auto; /* ✅ klickbar */
}

/* Scroll area stays below close */
#legalContentInner{
  position: relative;
  z-index: 1;           /* ✅ unter dem Close */
}

/* =========================
   RML MODAL (shared)
========================= */
.rml-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index: 9999;

  opacity: 0;
  transition: opacity .22s ease;
}

.rml-modal-backdrop.open{
  display: grid;
  opacity: 1;
}

.rml-modal{
  width: min(980px, 96vw);
  max-height: min(82vh, 920px);
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(1200px 600px at 20% -20%, rgba(255,179,71,.10), transparent 55%),
              radial-gradient(900px 500px at 120% 0%, rgba(255,95,109,.08), transparent 45%),
              #0b0b0d;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 90px rgba(0,0,0,.70);
  position: relative;

  transform: translateY(12px) scale(.985);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
}

.rml-modal-backdrop.open .rml-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce){
  .rml-modal-backdrop,
  .rml-modal{ transition: none !important; }
}

.rml-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
  z-index: 5;
}
.rml-modal-close:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.rml-modal-close:active{ transform: translateY(1px); }

.rml-modal-head{
  padding: 18px 18px 14px;
  background: linear-gradient(90deg, rgba(255,179,71,.22), rgba(255,95,109,.14));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rml-modal-title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}

.rml-modal-sub{
  margin: 6px 0 0;
  font-size: 13.5px;
  opacity: .85;
}

/* =========================
   SHARE MODAL
========================= */
.rml-modal--share{
  width: min(760px, 96vw);
}

.share-modal-body{
  padding: 16px 18px 18px;
  max-height: calc(82vh - 92px);
  overflow: hidden;
}

.share-modal-song{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  margin-bottom: 14px;
}

/* The share preview is based on the list row template. */
.share-modal-song .list-item{
  background: transparent;
  border: 0;
  padding: 0;
}
/* Waveform stays hidden in the share modal for a clean, compact preview. */
.share-modal-song .track-waveform{
  display: none !important;
}

/* Compact layout: song left, CTA right */
.share-modal-song .share-preview-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.share-modal-song .share-preview-actions{
  display: flex;
  justify-content: flex-end;
}

.share-modal-song .share-preview-actions .add-to-cart-btn{
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 14px;
}

@media (max-width: 560px){
  .share-modal-song .share-preview-row{
    grid-template-columns: 1fr;
  }
  .share-modal-song .share-preview-actions{
    justify-content: stretch;
  }
  .share-modal-song .share-preview-actions .add-to-cart-btn{
    width: 100%;
  }
}

.share-modal-socials{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

@media (max-width: 520px){
  .share-modal-socials{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.share-social{
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.share-social:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.share-social:active{ transform: translateY(1px); }

.share-modal-linkrow{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.share-link{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline: none;
}

.share-copy{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 900;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
}
.share-copy:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.share-copy:active{ transform: translateY(1px); }

.share-copy-status{
  margin: 10px 2px 0;
  font-size: 13px;
  opacity: .86;
  min-height: 18px;
}

/* =========================
   CONTACT FORM
========================= */
.rml-modal--contact{
  width: min(720px, 96vw);
}

.contact-form{
  padding: 16px 18px 18px;
  max-height: calc(82vh - 92px);
  overflow: hidden;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.contact-field{
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.contact-field > span{
  font-size: 12px;
  opacity: .82;
  font-weight: 700;
  letter-spacing: .2px;
}

.contact-field input,
.contact-field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  outline: none;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}

.contact-field textarea{ resize: vertical; min-height: 140px; }

.contact-field input:focus,
.contact-field textarea:focus{
  border-color: rgba(255,179,71,.45);
  background: rgba(255,255,255,.06);
}

.contact-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.contact-submit{
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  color: #171717;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  transition: transform .12s ease, filter .18s ease;
}

.contact-submit:hover{ filter: brightness(1.02); }
.contact-submit:active{ transform: translateY(1px); }

.contact-status{
  margin: 10px 2px 0;
  font-size: 13px;
  opacity: .9;
}
.contact-status.is-error{ color: #ff5f6d; }
.contact-status.is-ok{ color: #ffb347; }

/* honeypot hidden */
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ============================
   AUTH MODAL – Premium styling
   Paste at END of styles2.css
   ============================ */

   :root{
    --auth-bg: rgba(15, 16, 18, 0.88);
    --auth-card: rgba(22, 23, 26, 0.78);
    --auth-border: rgba(255,255,255,0.08);
    --auth-border-strong: rgba(255,255,255,0.12);
    --auth-text: rgba(255,255,255,0.92);
    --auth-muted: rgba(255,255,255,0.65);
  
    /* Website accent (warm gradient like your header/buttons) */
    --accent-a: #FFB23F;  /* warm orange */
    --accent-b: #FF4D8D;  /* pink-ish */
    --accent-glow: rgba(255, 132, 64, 0.35);
  
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.55);
    --shadow-md: 0 14px 34px rgba(0,0,0,0.45);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
  }
  
  /* Backdrop */
  .auth-modal-backdrop{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(1200px 800px at 50% 25%,
      rgba(255, 175, 64, 0.18),
      rgba(0,0,0,0.70) 55%,
      rgba(0,0,0,0.82) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 24px;

  }
  
  /* Modal Card */
  .auth-modal{
    width: min(520px, 92vw);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(30,31,35,0.78), rgba(14,15,18,0.88));
    border: 1px solid var(--auth-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    padding-top: 50px;
  }
  
  .auth-modal::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(700px 260px at 30% 0%,
      rgba(255,178,63,0.25),
      transparent 60%),
      radial-gradient(700px 260px at 85% 15%,
      rgba(255,77,141,0.18),
      transparent 60%);
    pointer-events:none;
  }
  
  .auth-content, .auth-tabs, .auth-close{
    position: relative;
    z-index: 1;
  }
  
  /* Close */
  .auth-close{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--auth-border);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .12s ease, background .18s ease, border-color .18s ease;
  }
  .auth-close:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
    border-color: var(--auth-border-strong);
  }
  
  /* Tabs */
  .auth-tabs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 18px 0;
  }
  
  .auth-tab{
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--auth-border);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
  }
  .auth-tab:hover{
    background: rgba(255,255,255,0.05);
    border-color: var(--auth-border-strong);
    transform: translateY(-1px);
  }
  .auth-tab-active{
    color: #141414;
    border-color: transparent;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 10px 22px rgba(255,110,90,0.20);
  }
  
  /* Content layout */
  .auth-content{
    padding: 16px 22px 22px;
  }
  
  .auth-form h2{
    margin: 10px 0 12px;
    color: var(--auth-text);
    font-size: 28px;
    letter-spacing: -0.4px;
  }
  
  /* Labels + inputs */
  .auth-form label{
    display: grid;
    gap: 7px;
    margin-top: 12px;
    color: var(--auth-muted);
    font-size: 13px;
    letter-spacing: 0.2px;
  }
  
  .auth-form input,
  .auth-form select{
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--auth-text);
    padding: 0 14px;
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  
  .auth-form input::placeholder{
    color: rgba(255,255,255,0.35);
  }
  
  .auth-form input:focus,
  .auth-form select:focus{
    border-color: rgba(255,178,63,0.55);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(255,178,63,0.12);
  }
  
  /* Step visibility (works with your auth-form-hidden / or similar) */
  .auth-form-hidden{ display:none !important; }
  
  /* Buttons row */
  .auth-actions{
    display: flex;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
  }
  
  .auth-btn{
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
    font-weight: 800;
    letter-spacing: 0.15px;
    cursor: pointer;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    user-select: none;
  }
  .auth-btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
  }
  .auth-btn:active{ transform: translateY(0px); }
  
  .auth-btn-primary{
    border: none;
    color: #151515;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 16px 30px rgba(255,110,90,0.22);
  }
  .auth-btn-primary:hover{
    box-shadow: 0 18px 36px rgba(255,110,90,0.28);
  }
  
  .auth-btn-ghost{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
  }
  
  .auth-btn-link{
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.70);
    padding: 0;
    height: auto;
    font-weight: 700;
  }
  .auth-btn-link:hover{
    color: rgba(255,255,255,0.92);
    text-decoration: underline;
    background: transparent;
    transform: none;
  }
  
  /* Error text */
  .auth-error{
    margin-top: 10px;
    color: #ff5f6a;
    font-weight: 700;
    font-size: 13px;
  }
  
  
  .code-box{
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: var(--shadow-md);
  }
  
  .code-inputs{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  
  .code-digit{
    height: 54px;
    width: 100%;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(0,0,0,0.22) !important;
    color: var(--auth-text) !important;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
  }
  .code-digit:focus{
    border-color: rgba(255,178,63,0.65) !important;
    box-shadow: 0 0 0 4px rgba(255,178,63,0.14);
    background: rgba(0,0,0,0.28) !important;
    transform: translateY(-1px);
  }
  .code-digit.filled{
    border-color: rgba(255,77,141,0.40) !important;
  }
  
  /* Mobile: code boxes stack nicer */
  @media (max-width: 420px){
    .auth-content{ padding: 14px 16px 18px; }
    .code-inputs{ gap: 8px; }
    .code-digit{ height: 50px; border-radius: 12px !important; }
  }
  .auth-modal-backdrop { display: none; }
  .auth-modal-backdrop.is-open { display: grid; }
/* ===== Verification code boxes - FORCE override ===== */
.signup-step[data-step="3"] .code-box{
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45) !important;
}

.signup-step[data-step="3"] .code-inputs{
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

.signup-step[data-step="3"] .code-inputs .code-digit{
  /* Hard reset vs global input styles */
  all: unset;
  box-sizing: border-box;
  height: 54px !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(0,0,0,0.22) !important;

  color: rgba(255,255,255,0.92) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-align: center !important;

  outline: none !important;
  caret-color: rgba(255,178,63,0.95) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
}

.signup-step[data-step="3"] .code-inputs .code-digit:focus{
  border-color: rgba(255,178,63,0.70) !important;
  box-shadow: 0 0 0 4px rgba(255,178,63,0.14) !important;
  background: rgba(0,0,0,0.28) !important;
  transform: translateY(-1px) !important;
}

.signup-step[data-step="3"] .code-inputs .code-digit.filled{
  border-color: rgba(255,77,141,0.42) !important;
}

/* Mobile */
@media (max-width: 420px){
  .signup-step[data-step="3"] .code-inputs{ gap: 8px !important; }
  .signup-step[data-step="3"] .code-inputs .code-digit{
    height: 50px !important;
    border-radius: 12px !important;
  }
}
/* ===== FORCE 6-digit code boxes (final override) ===== */
.signup-step[data-step="3"] .code-box {
  display: block !important;
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(0,0,0,0.22) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45) !important;
}

.signup-step[data-step="3"] .code-inputs {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  align-items: center !important;
}

/* this line fixes “one long input” caused by global input styles */
.signup-step[data-step="3"] .code-inputs > input.code-digit {
  all: unset !important;
  box-sizing: border-box !important;

  height: 54px !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.04) !important;

  color: rgba(255,255,255,0.92) !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;

  outline: none !important;
  caret-color: rgba(255,178,63,0.95) !important;
}

.signup-step[data-step="3"] .code-inputs > input.code-digit:focus {
  border-color: rgba(255,178,63,0.70) !important;
  box-shadow: 0 0 0 4px rgba(255,178,63,0.14) !important;
  transform: translateY(-1px) !important;
}

.signup-step[data-step="3"] .code-inputs > input.code-digit.filled {
  border-color: rgba(255,77,141,0.42) !important;
}

@media (max-width: 420px){
  .signup-step[data-step="3"] .code-inputs { gap: 8px !important; }
  .signup-step[data-step="3"] .code-inputs > input.code-digit { height: 50px !important; border-radius: 12px !important; }
}
    
/* =========================
   VERIFICATION CODE INPUTS
========================= */

/* remove global auth-form input styling */
.auth-form .code-digit {
  all: unset;
  box-sizing: border-box;
}

/* container */
.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 6px;
}

/* single digit box */
.code-digit {
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-align: center;

  caret-color: #ffb347;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.code-digit:focus {
  border-color: #ffb347;
  box-shadow: 0 0 0 3px rgba(255,179,71,0.25);
  transform: translateY(-1px);
}

.code-digit.filled {
  border-color: rgba(255,95,109,0.6);
}

/* =========================
   FIX: Auth modal close button
========================= */

.auth-close{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;

  border-radius: 50%;
  cursor: pointer;

  z-index: 10; /* IMPORTANT */
  pointer-events: auto;
}

/* make sure icon/text inside doesn't break hitbox */
.auth-close *{
  pointer-events: none;
}

/* hover/active stays clean */
.auth-close:hover{
  transform: translateY(-1px);
}
.auth-close:active{
  transform: translateY(0);
}


/* =========================
   ACCOUNT – PROFILE FORM
========================= */

.acc-form {
  margin-top: 18px;
  max-width: 720px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

/* Full width rows if needed */
.acc-form label:nth-child(3),
.acc-form label:nth-child(6),
.acc-form label:nth-child(7) {
  grid-column: span 2;
}

/* Labels */
.acc-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Inputs */
.acc-form input {
  height: 42px;
  padding: 0 12px;

  font-size: 0.95rem;
  color: #fff;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Hover / focus (only if editable later) */
.acc-form input:not(:disabled):not([readonly]):focus {
  border-color: #ffb347;
  background: rgba(255, 255, 255, 0.06);
}

/* Disabled fields (Name, Email) */
.acc-form input:disabled {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

/* Readonly fields (Address) */
.acc-form input[readonly] {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Title spacing */
.acc-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
  .acc-form {
    grid-template-columns: 1fr;
  }

  .acc-form label {
    grid-column: span 1 !important;
  }
}

.acc-form-actions{
  grid-column: span 2;
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 6px;
}

.acc-save-btn{
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 0;
  cursor: pointer;
  color: #111;
  background: linear-gradient(90deg, #ffb347, #ff5f6d);
  transition: transform .08s ease, filter .2s ease;
}

.acc-save-btn:hover{ filter: brightness(1.04); }
.acc-save-btn:active{ transform: translateY(1px); }
.acc-save-btn:disabled{ opacity:.55; cursor:not-allowed; }

.acc-save-status{
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

.acc-save-status.ok{ color: rgba(120, 255, 180, .9); }
.acc-save-status.err{ color: rgba(255, 120, 120, .95); }

@media (max-width: 640px){
  .acc-form-actions{ grid-column: span 1; }
}

/* Layout */
.list-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.track-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Titel bleibt wie im Theme */
.track-title {
  font-weight: 600;
  line-height: 1.2;
}

/* Tags: dezent, grau, kein Rahmen */
.track-tags {
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
}

.track-tags__inner {
  display: inline-flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55); /* dezentes Grau */
  font-size: 0.85em;

  animation: none;
  will-change: transform;
}

/* Scroll nur beim Hover */
.track-tags:hover .track-tags__inner {
  animation: tags-marquee 60s linear infinite;
}

/* Keine Chip-Optik */
.tag {
  background: none;
  border: none;
  padding: 0;
}

/* Waveform nimmt Platz ein */
.track-waveform {
  flex: 1;
  min-width: 0;
}

/* Buttons rechts fix */
.track-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Marquee */
@keyframes tags-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.track-title {
  flex: 0 0 auto;        /* ❌ kein fixer Block mehr */
  max-width: 220px;      /* ✅ bleibt begrenzt */
}

/* Standard: keine Animation */
.track-tags__inner {
  animation: none;
}

/* Hover auf der ganzen Zeile startet den Scroll */
.list-item:hover .track-tags__inner {
  animation: tags-marquee 30s linear infinite;
}
.rml-page-cube{
  height:34px !important;
  width:34px !important;
  min-width:34px !important;
  padding:0 !important;

  border-radius:10px !important;   /* CUBE */
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(0,0,0,.25) !important;
  color:#fff !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  cursor:pointer !important;
  font-weight:600 !important;
  white-space:nowrap !important;
}

.rml-page-cube:hover{
  border-color:rgba(255,255,255,.22) !important;
}

.rml-page-cube.is-active{
  border-color:transparent !important;
  background:linear-gradient(90deg,#ffb36b,#ff6b6b) !important;
  color:#111 !important;
}

.rml-page-cube:disabled{
  opacity:.35 !important;
  cursor:not-allowed !important;
}

/* =====================
   FAVORITES / LIKE STAR
===================== */

.track-like-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:44px;
  height:32px;
  padding:0 12px;
}

.track-like-icon{
  width:18px;
  height:18px;
  display:block;
  fill: transparent;
  stroke: rgba(210,210,210,0.75);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill .18s ease, stroke .18s ease, filter .18s ease, transform .12s ease;
}

.track-like-btn:hover .track-like-icon{
  stroke: rgba(235,235,235,0.92);
  transform: translateY(-0.5px);
}

.track-like-btn.is-liked .track-like-icon{
  fill: #f5c84c;
  stroke: #f5c84c;
  filter: drop-shadow(0 0 8px rgba(245,200,76,0.25));
}

.track-like-btn:focus-visible{
  outline: 2px solid rgba(245,200,76,0.55);
  outline-offset: 2px;
  border-radius: 999px;
}

/* =====================
   COVER OVERLAY + PLAY/PAUSE (restored)
   ===================== */

/* ===== COVER WRAPPER ===== */
.track-cover-wrapper{
  position:relative;
  width:56px;
  height:56px;
  border-radius:5%;
  overflow:hidden;
}

/* COVER BUTTON */
.track-cover-btn{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  width:100%;
  height:100%;
}

.track-cover{
  width:100%;
  height:100%;
  display:block;
  transition: opacity 0.2s ease;
}

/* ===== OVERLAY (HOVER ODER PLAYING) ===== */
.track-cover-wrapper::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(88, 88, 88, 0.55);
  opacity:0;
  transition: opacity 0.2s ease;
  z-index:1;
  border-radius: 5%;
}

/* Hover zeigt Overlay */
.track-cover-wrapper:hover::before{
  opacity:1;
}

/* Playing hält Overlay dauerhaft */
.track-cover-wrapper.is-playing::before{
  opacity:1;
}

/* Hover blendet Cover aus */
.track-cover-wrapper:hover .track-cover{
  opacity:0;
}

/* Playing hält Cover dauerhaft ausgeblendet */
.track-cover-wrapper.is-playing .track-cover{
  opacity:0;
}

/* ===== PLAY / PAUSE BUTTON (OVERLAY) ===== */
.track-play-btn{
  position:absolute;
  inset:0;
  margin:auto;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.2s ease;
  z-index:2;
}

/* SHOW BUTTON ON HOVER */
.track-cover-wrapper:hover .track-play-btn{
  opacity:1;
  pointer-events:auto;
}

/* Playing hält Button dauerhaft sichtbar */
.track-cover-wrapper.is-playing .track-play-btn{
  opacity:1;
  pointer-events:auto;
}

/* PLAY ICON */
.track-play-btn::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-35%,-50%);
  width:0;
  height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:13px solid #fff;
}

/* PAUSE ICON (||) */
.track-play-btn.is-paused::before{
  border:0;
  width:14px;
  height:16px;
  background:
    linear-gradient(#fff,#fff) left  center / 4px 100% no-repeat,
    linear-gradient(#fff,#fff) right center / 4px 100% no-repeat;
  transform: translate(-50%,-50%);
}

/* Favorites list inside account modal: hide waveform + make row fit popup */
.account-modal .favorites-list .track-waveform{
  display:none;
}

.account-modal .favorites-list .list-item{
  padding: 10px 12px;
}

.account-modal .favorites-list .track-tags{
  max-width: 220px;
}

/* =========================================================
   Favorites popup list (uses lines_popup.html)
   Scoped to account modal to avoid affecting main list
========================================================= */
.account-modal .favorites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-modal .list-item--popup {
  width: 100%;
}

.account-modal .list-item--popup .track-waveform {
  display: none !important;
}

.account-modal .list-item--popup .track-cover-wrapper {
  /* keep cover smaller in popup */
  transform: none;
}

.account-modal .list-item--popup .track-tags {
  max-width: 420px;
}

@media (max-width: 680px) {
  .account-modal .list-item--popup .track-tags {
    max-width: 260px;
  }
}

.track-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

/* Title */
.track-title {
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Duration */
.track-duration {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* ==============================
   Admin Panel (Studio-like) - update_like
   ============================== */

   :root{
    --bg: #0f0f0f;
    --panel: #181818;
    --panel2: #202020;
    --border: rgba(255,255,255,.08);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --muted2: rgba(255,255,255,.52);
    --accent: #3ea6ff;
    --danger: #ff4d4d;
    --ok: #39d98a;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 16px;
    --radius2: 12px;
  }
  
  .admin-body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    /* Override global `body{overflow:hidden}` so Admin pages can scroll */
    height: auto;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .admin-shell{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
  }
  
  /* Sidebar */
  .admin-sidebar{
    position: sticky;
    top:0;
    height: 100vh;
    background: #121212;
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    display:flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
  }
  
  .admin-brand{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
  }
  
  .admin-brand .logo{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(62,166,255,.95), rgba(57,217,138,.85));
    box-shadow: var(--shadow);
  }
  
  .admin-brand .title{
    display:flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .admin-brand .title strong{ font-size: 14px; }
  .admin-brand .title span{ font-size: 12px; color: var(--muted); }
  
  .admin-nav{
    display:flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
  }
  
  .admin-link{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration:none;
    border: 1px solid transparent;
  }
  .admin-link:hover{
    background: rgba(255,255,255,.04);
    border-color: var(--border);
  }
  .admin-link.active{
    background: rgba(62,166,255,.10);
    border-color: rgba(62,166,255,.25);
  }
  
  .admin-link .dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
  }
  .admin-link.active .dot{ background: var(--accent); }
  
  .admin-section-title{
    margin-top: 10px;
    padding: 8px 12px 4px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted2);
  }
  
  .admin-sidebar-bottom{
    margin-top:auto;
    display:flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Main */
  .admin-main{
    display:flex;
    flex-direction: column;
    min-width: 0;
    /* Ensure content can scroll even when the global body is constrained */
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .admin-topbar{
    position: sticky;
    top:0;
    z-index: 10;
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(15,15,15,.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  
  .admin-topbar .search{
    flex:1;
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    min-width: 200px;
  }
  .admin-topbar input{
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
  }
  .admin-topbar .pill{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }
  
  .admin-content{
    padding: 22px 22px 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Analytics wants more horizontal room.
     Use the full available width (still within the dashboard layout)
     without changing the visual style. */
  .admin-content.analytics-page{
    max-width: none;
    width: 100%;
    margin: 0;
  }
  
  .h1{
    font-size: 22px;
    margin: 6px 0 14px;
  }
  .sub{
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 13px;
  }
  
  .grid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
  }
  @media (max-width: 980px){
    .admin-shell{ grid-template-columns: 1fr; }
    .admin-sidebar{ position: relative; height: auto; }
    .grid{ grid-template-columns: 1fr; }
  }
  
  /* Cards */
  .card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }

  /* Analytics needs more vertical room; keep the same card look but allow scrolling inside. */
  .card.analytics-card{ overflow: visible; width: 100%; }
  .analytics-scroll{
    /* Viewport-aware scroll area inside the dashboard (topbar + headings already take space) */
    max-height: calc(100vh - 260px);
    overflow: hidden;
    padding-right: 2px; /* prevent scrollbar overlap on some browsers */
  }

  /* Tabs look like the rest of the UI */
  .tab-btn.btn{
    padding: 8px 12px;
    font-size: 13px;
  }
  .tab-btn.btn.active{
    background: rgba(62,166,255,.12);
    border-color: rgba(62,166,255,.28);
  }
  .card .card-h{
    padding: 16px 16px 0;
    display:flex;
    align-items:flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .card .card-h h2{
    font-size: 15px;
    margin:0;
  }
  .card .card-h p{
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
  }
  .card .card-b{
    padding: 16px;
  }
  .hr{
    height: 1px;
    background: var(--border);
    margin: 12px 0;
  }
  
  /* Buttons */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    text-decoration:none;
    cursor:pointer;
    font-size: 14px;
  }
  .btn:hover{ background: rgba(255,255,255,.06); }
  .btn.primary{
    background: rgba(62,166,255,.16);
    border-color: rgba(62,166,255,.35);
  }
  .btn.primary:hover{ background: rgba(62,166,255,.22); }
  .btn.danger{
    background: rgba(255,77,77,.14);
    border-color: rgba(255,77,77,.28);
  }
  .btn.danger:hover{ background: rgba(255,77,77,.20); }
  
  /* Tables */
  .table{
    width:100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .table th, .table td{
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    text-align:left;
    vertical-align: middle;
  }
  .table th{ color: var(--muted); font-weight: 600; }
  
  .badge{
    display:inline-flex;
    align-items:center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255,255,255,.03);
    font-size: 12px;
  }
  .badge.ok{ border-color: rgba(57,217,138,.30); color: rgba(57,217,138,.90); background: rgba(57,217,138,.08); }
  .badge.warn{ border-color: rgba(255,204,0,.25); color: rgba(255,204,0,.90); background: rgba(255,204,0,.07); }
  
  /* Forms */
  .form{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  @media (max-width: 980px){ .form{ grid-template-columns: 1fr; } }
  
  .field{
    display:flex;
    flex-direction: column;
    gap: 8px;
    position: relative; /* for tag dropdown anchor */
  }
  .label{
    font-size: 12px;
    color: var(--muted);
  }
  .input, .select, .textarea{
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: 11px 12px;
    outline: none;
    font-size: 14px;
  }
  .textarea{ min-height: 110px; resize: vertical; }
  .help{
    font-size: 12px;
    color: var(--muted2);
  }
  .notice{
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
  }
  .notice strong{ color: var(--text); }
  
  /* Tag dropdown */
  .tag-dd{
    position:absolute;
    left:0;
    right:0;
    top: calc(100% + 8px);
    z-index: 50;
    display:none;
    border: 1px solid var(--border);
    background: rgba(24,24,24,.98);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .tag-item{
    padding: 10px 12px;
    cursor:pointer;
    color: rgba(255,255,255,.9);
  }
  .tag-item:hover,
  .tag-item.active{
    background: rgba(255,255,255,.06);
  }
  

/* Accordion + Tag Pills (Admin Upload) */
.admin-acc{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.acc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
}
.acc-btn:hover{ background: rgba(255,255,255,.05); }
.acc-btn.open{
  background: rgba(62,166,255,.10);
  border-color: rgba(62,166,255,.25);
}
.acc-right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.acc-chev{
  opacity: .75;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.acc-btn.open .acc-chev{ transform: rotate(180deg); }

.acc-panel{
  display:none;
  padding: 10px 2px 2px;
}

.tag-pills{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.tag-pill:hover{
  background: rgba(255,255,255,.06);
}

/* =========================
   Admin Upload: Audio Preview
========================= */
.audio-preview{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.audio-preview__title{
  font-size: 14px;
  margin: 0;
}

.audio-preview__player{
  width: 100%;
  height: 38px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}

.audio-preview__confirm{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  user-select: none;
}

.audio-preview__confirm input{
  width: 16px;
  height: 16px;
  accent-color: #ffb347;
}

/* ========== CONSENT (DSGVO Analytics) ========== */
.consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent-card{
  pointer-events: auto;
  width: min(780px, 96vw);
  border-radius: 14px;
  background: rgba(22, 23, 26, 0.88);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.consent-head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.consent-title{
  font-weight: 800;
  letter-spacing: .2px;
}
.consent-sub{
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.3;
}
.consent-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent-meta{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.consent-link{
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.consent-fab{
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9997;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(22,23,26,0.55);
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.consent-fab:hover{ background: rgba(22,23,26,0.72); }

/* ========== ADMIN · Analytics Tabs ========== */
.tabs{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}
.tab-btn{
  /* Use button reset so site-wide button defaults can't leak into admin */
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
  /* When combined with .btn (recommended), keep it compact */
  padding: 8px 12px;
  font-size: 13px;
}
.tab-btn.btn{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
}
.tab-btn.active{
  background: rgba(62,166,255,.18);
  border-color: rgba(62,166,255,.35);
}
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kpi{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 12px 14px;
}
.kpi .label{ color: var(--muted); font-size: 12px; }
.kpi .value{ font-size: 22px; font-weight: 800; margin-top: 6px; }
.charts-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.chart-wrap{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 12px 14px;
  /* Fixed height prevents Chart.js from creating an ever-growing layout loop
     when maintainAspectRatio=false and canvas is set to 100% height. */
  height: 320px;
}
.chart-wrap canvas{
  width: 100% !important;
  /* Give the canvas a predictable height so the card does not grow infinitely. */
  height: 260px !important;
}
.tab-panel{ margin-top: 8px; }
.chart-title{ font-size: 13px; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 980px){
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .charts-grid{ grid-template-columns: 1fr; }
}


/* =========================================================
   Tracks "dark-glass excel" table (Admin · Songs verwalten)
   ========================================================= */

.glass-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-table-wrap{
  overflow: hidden;
  border-radius: 14px;
}

.glass-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13px;
  letter-spacing: .2px;
}

/* Sticky header */
.glass-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;

  text-align: left;
  font-weight: 800;

  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(180deg, rgba(16,16,16,.92), rgba(14,14,14,.82));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tight rows */
.glass-table td{
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
  line-height: 1.15;
}

.glass-table tbody tr{
  transition: background .12s ease, border-color .12s ease;
}

.glass-table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

/* Clickable header */
.glass-table th.sortable{
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.glass-table th.sortable:hover{
  background: rgba(255,255,255,.04);
}

.glass-table th .sort-ind{
  display:inline-block;
  margin-left: 8px;
  opacity: .7;
  font-size: 11px;
  width: 12px;
  text-align: center;
}

.glass-table th.is-asc .sort-ind,
.glass-table th.is-desc .sort-ind{
  opacity: 1;
}

.glass-table .mono{
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: .92;
}

.glass-table .title-cell{
  max-width: 680px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-actions{
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

/* Small modern buttons (no giant pills) */
.mini-btn{
  height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.mini-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

.mini-btn:active{ transform: translateY(1px); }

.mini-btn.danger{
  border-color: rgba(255,77,77,.32);
  background: rgba(255,77,77,.10);
}

.mini-btn.danger:hover{
  border-color: rgba(255,77,77,.48);
  background: rgba(255,77,77,.14);
}

/* =========================================================
   Glass modals (edit + delete confirm)
   ========================================================= */

.glass-modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 9999;

  background: radial-gradient(1200px 800px at 50% 20%,
    rgba(62,166,255,.12),
    rgba(0,0,0,.68) 55%,
    rgba(0,0,0,.80) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-modal-backdrop.open{ display: grid; }

.glass-modal{
  width: min(920px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18, 18, 18, .78);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  overflow: hidden;

  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.glass-modal-backdrop.open .glass-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.glass-modal--sm{ width: min(520px, 96vw); }

.glass-modal-head{
  padding: 16px 16px 14px;
  background: linear-gradient(90deg, rgba(255,179,71,.14), rgba(255,95,109,.10));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.glass-modal-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}

.glass-modal-sub{
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .85;
}

.glass-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);

  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;

  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.glass-modal-close:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.glass-modal-close:active{ transform: translateY(1px); }

.glass-form{ padding: 14px 16px 16px; }

.glass-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

@media (max-width: 760px){
  .glass-form-grid{ grid-template-columns: 1fr; }
}

.glass-field{
  display: grid;
  gap: 6px;
}

.glass-field--span2{
  grid-column: span 2;
}
@media (max-width: 760px){
  .glass-field--span2{ grid-column: span 1; }
}

.glass-field > span{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
}

.glass-input{
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}

.glass-input:focus{
  border-color: rgba(62,166,255,.55);
  background: rgba(255,255,255,.05);
}

.glass-input[readonly]{
  opacity: .75;
  background: rgba(255,255,255,.03);
}

.glass-form-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.glass-check{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  padding: 6px 2px 0;
  user-select: none;
}

.glass-check input{
  width: 16px;
  height: 16px;
  accent-color: #ffb347;
}
/* Disabled inputs – subtle dark-glass style */
.glass-input:disabled,
input:disabled {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  box-shadow: none;
}

/* Prevent focus glow on disabled fields */
.glass-input:disabled:focus,
input:disabled:focus {
  outline: none;
  box-shadow: none;
}


/* Fix select text color in admin forms */
select.input{ color: var(--text); background: rgba(255,255,255,.03); }
select.input option{ color: #000; }
@media (prefers-color-scheme: dark){
  select.input option{ color: #fff; background: #121212; }
}


/* Admin tabs (Orders detail) */
.admin-tabs{
  display:flex;
  gap:10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  width: fit-content;
  margin-bottom: 14px;
}
.admin-tab{
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.admin-tab:hover{
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.admin-tab.is-active{
  background: rgba(62,166,255,.12);
  border-color: rgba(62,166,255,.25);
}
.admin-tab-panels .admin-tab-panel{ display:none; }
.admin-tab-panels .admin-tab-panel.is-active{ display:block; }

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.kpi{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.kpi-k{ font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); }
.kpi-v{ font-size: 18px; font-weight: 800; margin-top: 4px; }

@media (max-width: 720px){
  .kpis{ grid-template-columns: 1fr; }
}
/* =========================================================
   Reports (pompous) + FIX: charts must NOT grow infinitely
   Scope: body.reports-page
   ========================================================= */

body.reports-page .reports-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  position: relative;
  overflow:hidden;
  margin-bottom: 14px;
}
body.reports-page .reports-hero:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 220px at 12% 10%, rgba(193,18,31,.28), transparent 60%),
    radial-gradient(420px 220px at 78% 0%, rgba(62,166,255,.18), transparent 60%),
    radial-gradient(520px 260px at 55% 120%, rgba(255,214,10,.12), transparent 65%);
  filter: blur(10px);
  pointer-events:none;
}
body.reports-page .reports-hero > *{ position:relative; z-index:1; }

body.reports-page .reports-title{
  margin:0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .2px;
}
body.reports-page .reports-sub{
  margin: 6px 0 0;
  color: var(--muted);
}

body.reports-page .reports-hero-right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body.reports-page .hero-chip{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,248,248,.82);
  font-weight: 700;
  font-size: 12px;
}
body.reports-page .hero-chip-accent{
  border-color: rgba(255,214,10,.22);
  box-shadow: 0 0 0 1px rgba(255,214,10,.10) inset;
}

/* KPI wall */
body.reports-page .reports-kpis{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
body.reports-page .rk{
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  position: relative;
  overflow:hidden;
}
body.reports-page .rk:before{
  content:"";
  position:absolute; inset:-2px;
  opacity:.9;
  background: radial-gradient(260px 140px at 20% 0%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}
body.reports-page .rk > *{ position:relative; z-index:1; }

body.reports-page .rk-k{
  color: rgba(248,248,248,.70);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
body.reports-page .rk-v{
  margin-top: 8px;
  font-weight: 950;
  font-size: 22px;
  letter-spacing: .2px;
}
body.reports-page .rk-s{
  margin-top: 6px;
  color: rgba(248,248,248,.52);
  font-size: 12px;
}

body.reports-page .rk-pink{ box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(193,18,31,.18) inset; }
body.reports-page .rk-cyan{ box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(62,166,255,.18) inset; }
body.reports-page .rk-gold{ box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(255,214,10,.16) inset; }
body.reports-page .rk-violet{ box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(170,120,255,.18) inset; }
body.reports-page .rk-green{ box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(90,255,160,.14) inset; }

/* Reports grid */
body.reports-page .reports-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.reports-page .report-card.span-2{ grid-column: span 2; }

/* Chart box FIX: fixed height + canvas forced to 100% so Chart.js can't loop-grow */
body.reports-page .chart-box{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 10px;
  height: 320px;
  overflow: hidden;
}
body.reports-page .chart-box.chart-md{ height: 260px; }
body.reports-page .chart-box.chart-lg{ height: 320px; }
body.reports-page .chart-box canvas{
  width: 100% !important;
  height: 100% !important;
  display:block;
}

/* Responsive */
@media (max-width: 1200px){
  body.reports-page .reports-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.reports-page .reports-grid{ grid-template-columns: 1fr; }
  body.reports-page .report-card.span-2{ grid-column: span 1; }
}


/* ===== Signup: modern account-type toggle (buttons) ===== */
.account-type-toggle{ margin: 6px 0 12px; }
.account-type-label{ font-size: .9rem; opacity: .85; margin-bottom: 8px; }

.segmented{
  display:flex;
  gap:10px;
}

.seg-btn{
  flex:1;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-weight: 600;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.seg-btn:hover{ transform: translateY(-1px); }
.seg-btn.active{
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(90deg, #ffb347, #ff5aa5);
  color: #111;
}

/* keep signup compact */
.auth-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px){
  .auth-grid-2{ grid-template-columns: 1fr; }
}

/* OTP code inputs (verify step only) */
.code-box{ margin-top: 6px; }
.code-inputs{
  display:flex;
  gap:10px;
  justify-content: space-between;
  margin: 12px 0 6px;
}
.code-digit{
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
}
.code-digit:focus{
  border-color: rgba(255,180,71,0.9);
  background: rgba(255,255,255,0.08);
}

/* === GLASS SEGMENTED + COUNTRY SELECT (injected) START === */
/* ===== Signup: Account-type segmented (GLASS) ===== */
.segmented{
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 14px 40px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.segmented::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events:none;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255,178,63,0.16), transparent 55%),
    radial-gradient(120% 140% at 85% 10%, rgba(255,77,141,0.12), transparent 60%);
}

.seg-btn{
  position: relative;
  flex: 1;
  height: 42px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.88);

  font-weight: 750;
  letter-spacing: 0.2px;
  cursor: pointer;

  transition:
    transform .10s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.seg-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.24);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.seg-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,179,71,0.22);
}

.seg-btn.active{
  border-color: rgba(255,255,255,0.00);
  background: linear-gradient(90deg, var(--accent-a, #FFB23F), var(--accent-b, #FF4D8D));
  color: #141414;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.seg-btn.active:hover{
  filter: brightness(1.02);
}

/* ===== Signup: Country select styling ===== */
.country-select{
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);

  outline: none;
  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.country-select:focus{
  border-color: rgba(255,179,71,0.55);
  box-shadow: 0 0 0 3px rgba(255,179,71,0.18);
  background: rgba(0,0,0,0.28);
}

/* Options (Browser support varies, but helps a lot on Chromium) */
.country-select option{
  background: #121212;
  color: #ffffff;
}
/* === GLASS SEGMENTED + COUNTRY SELECT (injected) END === */

/* === VERIFY CODE BOXES FIX (injected) START === */
/* Your verify step is data-step="4". A later .code-inputs{display:flex} rule was overriding the grid.
   This block force-restores the 6 square boxes without changing the "separate verify page" layout. */
.signup-step[data-step="4"] .code-box{
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45) !important;
}

.signup-step[data-step="4"] .code-inputs{
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: initial !important;
  align-items: initial !important;
}

.signup-step[data-step="4"] .code-inputs .code-digit{
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(0,0,0,0.22) !important;

  color: rgba(255,255,255,0.92) !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;

  outline: none !important;
  caret-color: rgba(255,178,63,0.95) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease !important;
}

.signup-step[data-step="4"] .code-inputs .code-digit:focus{
  border-color: rgba(255,178,63,0.65) !important;
  box-shadow: 0 0 0 4px rgba(255,178,63,0.14) !important;
  background: rgba(0,0,0,0.28) !important;
  transform: translateY(-1px) !important;
}

.signup-step[data-step="4"] .code-inputs .code-digit.filled{
  border-color: rgba(255,77,141,0.42) !important;
}

@media (max-width: 420px){
  .signup-step[data-step="4"] .code-inputs{ gap: 8px !important; }
  .signup-step[data-step="4"] .code-inputs .code-digit{
    height: 50px !important;
    border-radius: 12px !important;
  }
}
/* === VERIFY CODE BOXES FIX (injected) END === */


/* =========================
   COMPANY SETTINGS – layout to match mockup
   (ONLY positioning/typography; no color changes)
========================= */
.acc-form .company-section{
  display: block !important;   /* override any older grid-based rules */
}

.acc-form .company-heading{
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 22px 0;
}

/* Stack the 3 company inputs like the rest of the form */
.acc-form .company-fields{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin: 0 !important;
}

/* Bottom row: "BUY AS A COMPANY      [x]" */
.acc-form .company-check{
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;

  margin-top: 16px !important;
  padding-top: 12px !important;

}

/* keep label subtle and on one line */
.acc-form .company-check .acc-check-text{
  margin: 0 !important;
  white-space: nowrap;
}

/* make sure no other checkbox styles interfere */
.acc-form .company-check{
  gap: 18px !important;
}
/* =========================
   FIX: Checkbox click must NOT resize / hide company fields
   (force stable layout)
========================= */

/* Prevent layout jump when checkbox is focused/clicked */
.company-check,
.acc-check{
  position: relative;
  min-height: 24px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #141414;
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}

.modal-box h2 {
  margin-top: 0;
}

.modal-text {
  opacity: .85;
  margin-bottom: 14px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: #0f0f0f;
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg,#ffb347,#ff5f6d);
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.btn-secondary {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: #fff;
}

.modal-status {
  margin-top: 12px;
  font-size: 14px;
  opacity: .8;
}

/* =========================
   PROFILE – Company settings (closed/open like sketch)
========================= */

.no-upper{ text-transform: none !important; }

/* Apple-style toggle (reused in signup + profile) */
.apple-switch{
  position: relative;
  width: 52px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.apple-switch input{
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  cursor: pointer;
}

.apple-switch .apple-slider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  transition: background 180ms ease, border-color 180ms ease;
}

.apple-switch .apple-slider::before{
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 180ms ease;
}

.apple-switch input:checked + .apple-slider{
  border-color: rgba(255,255,255,0.00);
  background: linear-gradient(90deg, var(--accent-a, #FFB23F), var(--accent-b, #FF4D8D));
  box-shadow:
    0 14px 28px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.apple-switch input:checked + .apple-slider::before{
  transform: translate(22px, -50%);
}

.apple-switch input:focus-visible + .apple-slider{
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 3px;
}

/* Container */
.acc-form .company-settings{
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.acc-form .company-toggle-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.acc-form .company-toggle-label{
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.95;
}

.acc-form .company-body{
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
}

.acc-form .company-settings.is-open .company-body{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* disabled look when toggle is off */
.acc-form .company-body input:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

