/* Globales Layout + Hintergrund */
  body {
  font-family: Arial, sans-serif;
  background-image: url('images/empirebackground.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  margin: 0;
  padding: 0;
  }

  /* Logo oben Index */
  .logo-container {
    text-align: center;
    margin-bottom: 20px;
  }

  .logo {
    max-width: 80%;
    height: auto;
  }

  /* Logo oben Dashboard */
  .logo-container {
  text-align: center;
  margin: 40px 0;
  }

  .logo-container img {
  max-width: 350px; /* passt die Größe an */
  height: auto;
  }

  /* Hauptcontainer */
  .container {
  max-width: 400px;
  margin: 40px auto 120px auto;
  padding: 30px 20px;
  background-color: rgba(28, 28, 28, 0.2); /* transparenter Box-Hintergrund */
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  }

  input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
  }

  /* Tier-Badge über der E-Mail */
  .tier-block { margin-bottom: 8px; }
  .tier-badge{
    display:inline-flex; align-items:center; gap:8px;
    padding:6px 12px; border-radius:999px;
    font-weight:700;
  }

  /* Farbakzente pro Tier */
  .tier-badge.starter { color:#9ad1ff; border-color:#2a4b66; }
  .tier-badge.bronze  { color:#d2a679; border-color:#5a3c23; }
  .tier-badge.silver  { color:#dfe4ea; border-color:#6b6f74; }
  .tier-badge.gold    { color:#ffd166; border-color:#7a5a00; }

  /* Formularbutton separat */
  .form-button {
    width: 100%;
    padding: 12px;
    background-color: gold;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
  }

  .form-button:hover {
    background-color: gold;
  }

  /* Info-Boxen im Dashboard */
  .info-box {
    margin-bottom: 2rem;
  }

  .label {
    font-weight: bold;
    color: #aaa;
  }

  .value {
    font-size: 1.2rem;
    margin-top: 0.2rem;
  }

  .profit-change {
    font-size: 1rem;
    font-weight: bold;
  }
  /* Rendite auf Dashboard */
  .value .profit-change.up {
    color: #00ff80 !important;
  }
  .value .profit-change.down {
    color: #ff4d4d !important;
  }
  .value .profit-change.neutral {
    color: #aaa !important;
  }
  /* Rendite-Box: $ + % nebeneinander */
  .profit-box{ display:flex; align-items:center; gap:10px; }

/* Passwortfeld mit Auge */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 10px; /* Platz für das Auge */
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
}

/* Goldene Labels im Dashboard */
.info-box strong,
.info-box .label {
  color: gold;
}

/* Versteckter Inhalt */
.settings-content {
  display: none;
  position: absolute;
  right: 0; top: 110%;
  background-color: #2a2a2a;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  z-index: 10;
}
.settings-content a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}
.settings-content a:hover { background-color: #444; }

.settings-dropdown.show .settings-content { display: block; }

/* --- Modals --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal.show { display: flex; }

.modal-box {
  width: min(92vw, 420px);
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.modal-box h3 {
  margin: 0 0 12px 0;
  color: gold;
}
.modal-box label {
  display:block;
  margin: 10px 0 6px;
  color:#ccc;
}
.modal-box input, .modal-box select {
  width: 100%;
  padding: 10px;
  background:#2a2a2a;
  color:#fff;
  border:1px solid #444;
  border-radius:6px;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary:hover { background:#555; }

/* iOS Fix: kein fixed-Background auf kleinen Screens */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}

/* Nur für die Login-Seite (index.html) */
body.login-page .ticker,
body.login-page .footer-nav,
body.login-page .spacer {
  display: none !important;
}

/* Optional: Hauptcontainer mittig platzieren auf Login-Seite */
body.login-page .container {
  margin: 60px auto !important;
}

/* Obere Leiste auf Login-Seite komplett entfernen */
body.login-page {
  margin: 0 !important;
  padding: 0 !important;
}

body.login-page .ticker {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Login-Seite aufräumen: keine Ticker/Footer, kein Box-Shadow/Abstand */
body.login-page .ticker,
body.login-page .footer-nav {
  display: none !important;
}

body.login-page .container {
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.login-page .logo-container {
  margin-top: 0 !important;
}

/* ===== Login/Registrieren (nur index.html) ===== */
body.login-page .container{
  max-width: 420px;
  margin: 0 auto 32px;
  padding: 24px 16px;
}

/* Felder & Buttons kompakt, volle Breite */
body.login-page input,
body.login-page button{
  width: 100%;
  max-width: none;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 16px;      /* verhindert iOS-Zoom */
  line-height: 1.2;
}

/* Eingabefelder */
body.login-page input{
  height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #222;
  color: #ebebeb;
  border: 1px solid #444;
}

/* Platz fürs Auge */
body.login-page .password-wrapper input{
  padding-right: 40px;
}

/* Auge sauber positionieren */
body.login-page .password-wrapper .toggle-password{
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Button */
body.login-page button{
  height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
}

/* Platzhalter etwas feiner */
body.login-page input::placeholder{
  font-size: 15px;
  color: antiquewhite;
}

/* Überschrift kleiner auf Phone */
@media (max-width: 480px){
  body.login-page h2{ font-size: 24px; margin: 12px 0 18px; }
  body.login-page input{ height: 40px; }
}

/* Glänzender Gold-Effekt für Login & Registrieren */
.login-page h2 {
  font-weight: bold;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

/* Luxuriöse Gold-Buttons (gilt für Footer-Buttons und Formular-Buttons) */
.footer-nav button,
.btn-primary,
.btn-secondary,
.toggle-link {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt */
.footer-nav button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.toggle-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

/* Speichern-Button – goldener Luxus */
.btn-primary {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 10px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

/* Abbrechen-Button – silberner Glanz */
.btn-secondary {
  background: linear-gradient(90deg, #a0a0a0, #d9d9d9, #f5f5f5, #d9d9d9, #a0a0a0);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  animation: silverShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(200,200,200,0.4), 0 0 10px rgba(180,180,180,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: #c0c0c0 !important; /* leicht dunkler Silber-Ton */
  color: #000 !important;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.5);
}

/* Gold-Glanz-Animation */
@keyframes goldShine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Silber-Schimmer für Umschalt-Links (Login/Registrieren) */
.toggle-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #a0a0a0, #d9d9d9, #f5f5f5, #d9d9d9, #a0a0a0);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  animation: silverShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(200,200,200,0.4), 0 0 10px rgba(180,180,180,0.3);
  padding: 10px 14px;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none !important;
}

.toggle-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.5);
}

/* Silber-Animation */
@keyframes silverShine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Silber-Schimmer NUR für Login-/Registrieren-Umschalt-Links */
body.login-page .toggle-link,
body.register-page .toggle-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #a0a0a0, #d9d9d9, #f5f5f5, #d9d9d9, #a0a0a0) !important;
  background-size: 300% auto !important;
  color: #000 !important; /* Schwarzer Text */
  font-weight: bold;
  border: none !important;
  border-radius: 6px !important;
  animation: silverShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(200,200,200,0.4), 0 0 10px rgba(180,180,180,0.3);
  padding: 10px 14px !important;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none !important;
}

body.login-page .toggle-link:hover,
body.register-page .toggle-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.5);
}

/* Gold-Button auch beim Drücken behalten */
.btn-primary:active,
.btn-primary:focus {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d) !important;
  background-size: 300% auto;
  color: #000 !important;
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6) !important;
}

/* Silber-Button auch beim Drücken behalten */
.btn-secondary:active,
.btn-secondary:focus {
  background: linear-gradient(90deg, #a0a0a0, #d9d9d9, #f5f5f5, #d9d9d9, #a0a0a0) !important;
  background-size: 300% auto;
  color: #000 !important;
  box-shadow: 0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.5) !important;
}

/* Goldener Glanzeffekt für Business Center Titel */
.gold-title {
  font-weight: bold;
  font-size: 2rem; /* etwas größer für Business Center */
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

/* Goldener Glanzeffekt für Dein Einladungslink */
.gold-link {
  font-weight: bold;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

/* Goldene Knöpfe auf der Business Center Seite */
.business-page .btn-gold {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-page .btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

/* Goldene Balken bei Invitecode und Mitglieder ID suchen */
input[type="text"],
#searchInput {
  width: 95%;           /* statt 100%, damit sie nicht überstehen */
  max-width: 500px;     /* optional, um sie zentrierter zu machen */
  margin: 0 auto;       /* mittig ausrichten */
  display: block;       /* für zentrierung nötig */
}

input[type="text"],
#searchInput {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: normal;
  font-size: 12px;
  box-shadow: none;
}

input[type="text"]::placeholder,
#searchInput::placeholder {
  color: rgba(0, 0, 0, 0.9);
}

/* Obere Box auf der Trading Seite */
.section {
  background-color: rgba(28, 28, 28, 0.0);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.0);
  text-align: center;
}

:root { --cta-width: 380px; }

#signalCodeInput {
  width: var(--cta-width);
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
  background: #222;
  color: white;
  border: 1px solid #444;
  box-sizing: border-box;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-row button {
  width: var(--cta-width);
  padding: 10px;
  height: 45px;
  background-color: #ffcc00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-row button:hover {
  background-color: #ffdd33;
}

/* Einheitlicher Gold-Look für Eingabefelder (Business + Copytrade) */
body.business-page #refLink,
body.business-page #searchInput,
body.copytrade-page #signalCodeInput {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 12px;
  display: block;

  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d) !important;
  color: #000 !important;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  text-align: center;
  box-sizing: border-box;
}

/* Platzhalterfarbe passend */
body.business-page #refLink::placeholder,
body.business-page #searchInput::placeholder,
body.copytrade-page #signalCodeInput::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

/* Business-Seite: Mitglieder-ID-Suche angleichen */
.business-page #searchInput {
  font-size: 14px !important;
  height: 33px;
  padding: 8px 12px;
}
.business-page #searchInput::placeholder { font-size: 14px; }

/* Karte wie im Business Center */
.section.chart-only{
  background-color: rgba(28,28,28,0,2);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
  max-width: 980px;
  margin: 20px auto;
}

/* Chart-Fläche */
.chart-canvas {
  width: 100%;
  height: 420px;        /* oder 360–480px nach Geschmack */
  margin: 8px auto 0;
  border-radius: 10px;
  position: relative;   /* egal, aber solide Basis */
}

.chart-controls {
  text-align: center;
  margin-bottom: 12px;
}

.chart-controls button {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 3px;
  cursor: pointer;
  font-weight: bold;
}

.symbol-buttons, .interval-buttons {
  margin: 6px 0;
}

/* Bereich für die beiden Dropdown-Buttons */
.chart-controls{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:8px 0 12px;
  flex-wrap:wrap;
}

.chart-controls .dd-menu button{
  width:100%; margin:6px 0; padding:10px 12px;
  border:none; border-radius:6px; font-weight:700; cursor:pointer;
  background:linear-gradient(90deg,#8b6f1d,#d4af37,#f8e473,#d4af37,#8b6f1d)!important;
  color:#000!important;
  box-shadow:0 0 10px rgba(212,175,55,.5),0 0 18px rgba(212,175,55,.35);
}
.chart-controls .dd-menu button:hover{
  transform:translateY(-1px);
  box-shadow:0 0 14px rgba(248,228,115,.8),0 0 28px rgba(248,228,115,.6);
}

/* Container & Toggle */
.dropdown{ position:relative; }
.dd-toggle{
  min-width: 160px;           /* gleiche Breite */
  height: 42px;
  display:flex; align-items:center; justify-content:center;
  padding: 8px 12px;
  font-weight:700;
  border: none;
  border-radius: 6px;
  cursor:pointer;
}

/* Aufklappmenü */
.dd-menu{
  position:absolute;
  left:0; right:0; top: calc(100% + 6px);
  background:#1f1f1f;
  border:1px solid #333;
  border-radius:8px;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  padding:6px;
  display:none;
  z-index:50;
}
.dd-menu button{
  width:100%;
  background:#2b2b2b;
  color:#fff;
  border:none;
  padding:8px 10px;
  margin:4px 0;
  border-radius:6px;
  text-align:left;
  cursor:pointer;
}
.dd-menu button:hover{ background:#3a3a3a; }

/* Chartfläche (passt sich per JS an) */
.chart-canvas{
  width: min(95vw, 800px);
  height: 360px;
  margin: 0 auto;
  border-radius: 10px;
  background: rgba(0,0,0,.15);
  box-shadow: 0 0 10px rgba(0,0,0,.35) inset;
}
@media (max-width:480px){
  .chart-canvas{ height: 300px; }
  .dd-toggle{ min-width: 140px; }
}

/* ==================== Chartbereich ==================== */
.chart-only {
  margin-top: 20px;
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

/* Goldene Buttons (Dropdown-Toggle & Items) */
.btn-gold, 
.dd-toggle.btn-gold {
  background: linear-gradient(145deg, #FFD700, #FFA500);
  border: 1px solid #d4af37;
  color: #000;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-gold:hover, 
.dd-toggle.btn-gold:hover {
  background: linear-gradient(145deg, #ffea00, #ffb700);
  transform: translateY(-1px);
}

/* Dropdown-Menüs */
.dropdown {
  position: relative;
}

.dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background-color: #222;
  border: 1px solid #d4af37;
  border-radius: 5px;
  overflow: hidden;
  z-index: 100;
  min-width: 120px;
}

.dd-menu .btn-gold {
  background: #222;
  color: #FFD700;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px;
  text-align: left;
}

.dd-menu .btn-gold:hover {
  background-color: rgba(255, 215, 0, 0.15);
}

/* Chart Container */
.chart-canvas {
  width: 100%;
  height: 420px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

/* Tooltip im Chart */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 6px 8px;
  border-radius: 6px;
  font: 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
  display: none;
}

/* Volumenbalken */
.volume-bar {
  background-color: rgba(0, 255, 100, 0.5);
  height: 4px;
}

/* gleicher Gold-Look wie im Business Center */
.copytrade-page .btn-gold {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.copytrade-page .btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

/* Dropdown-Wrapper */
.copytrade-page .dropdown { position: relative; }

/* Toggle-Buttons (oben) – gleiche Optik + fixe Breite, damit beide gleich groß sind */
.copytrade-page .dd-toggle {
  min-width: 180px;                 /* bei Bedarf anpassen */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

/* Dropdown-Menü-Panel */
.copytrade-page .dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;                    /* JS blendet ein/aus */
  padding: 6px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(248, 228, 115, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 12px rgba(248,228,115,0.25);
  z-index: 50;
  backdrop-filter: blur(4px);
  min-width: 180px;                 /* mindestens so breit wie der Toggle */
}

/* Menü-Einträge im gleichen Gold-Look */
.copytrade-page .dd-menu button {
  width: 100%;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(212,175,55,0.45), 0 0 16px rgba(212,175,55,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.copytrade-page .dd-menu button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(248,228,115,0.7), 0 0 24px rgba(248,228,115,0.5);
}

/* (Optional) Pfeilchen etwas Abstand */
.copytrade-page .dd-toggle::after {
  content: '';
  margin-left: .25rem;
}

/* Filer Transaktionshistorie */
.tx-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.tx-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.tx-filter input[type="date"] {
  padding: 6px 8px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  outline: 1px solid #444;
}


/* NEU: Button+Hinweis gruppiert */
.tx-apply {
  display: flex;
  flex-direction: column;     /* Hinweis unter dem Button */
  align-items: flex-start;     /* Linksbündig an der Buttonkante */
}

.tx-apply .btn-secondary {
  height: 20px;
  padding: 0 18px;
}

.tx-apply .muted {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1;
  color: #9aa0a6;             /* etwas grauer */
  white-space: nowrap;        /* nicht umbrechen */
}

/* Mobil freundlich: stapeln */
@media (max-width: 480px) {
  .tx-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Historie Tablette Goldene Schrift */

table thead th {
  font-weight: bold;
  font-size: 0.8rem;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
  }

.th-left { text-align: left; }
.th-right { text-align: right; }

/* Container der beiden Dropdowns */
.chart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;   /* Desktop darf umbrechen, falls nötig */
}

/* Mobile: Buttons kompakter und je 50% Breite */
@media (max-width: 480px) {
  #symbolToggle,
  #intervalToggle {
    /* kompakter */
    padding: 8px 25px;
    font-size: 14px;
    height: 38px;
    border-radius: 8px;

    /* nebeneinander */
    flex: 1 1 calc(50% - 10px);
    min-width: 0;         /* verhindert zu große Mindestbreite */
  }
}

/* Mobile: Dropdown-Menü kleiner */
@media (max-width: 480px) {
  #symbolMenu button,
  #intervalMenu button {
    padding: 3px 5px;   /* weniger Innenabstand */
    font-size: 10px;     /* kleinere Schrift */
    height: auto;        /* passt sich dem Inhalt an */
    min-height: 15px;    /* nicht zu klein, für Klickfläche */
  }

  #symbolMenu,
  #intervalMenu {
    border-radius: 8px;  /* weniger abgerundet */
    padding: 4px 0;      /* weniger Abstand oben/unten */
  }
}

/* Dropdown-Listen kürzer machen */
#symbolMenu,
#intervalMenu {
  min-width: unset !important; /* Entfernt Mindestbreite */
  width: auto !important;      /* passt sich Inhalt an */
}

/* Menü-Buttons innen kleiner machen */
#symbolMenu button,
#intervalMenu button {
  padding: 6px 14px;
  font-size: 14px;
}

#txFilterContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.txFilterRow {
  display: flex;
  align-items: center;
  gap: 6px;
}

#txFilterContainer label {
  font-size: 0.9rem;
  color: gold;
}

#txFilterContainer input[type="date"] {
  padding: 4px 6px;
  font-size: 0.9rem;
}

#txFilterContainer button {
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.txNote {
  font-size: 0.8rem;
  color: #aaa;
}

/* Mini-Badge für Gewinn/Verlust in der Historie */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255,255,255,0.06);
}
.chip .arrow {
  font-size: 12px;
  line-height: 1;
}
.chip.up   { color: #00f900; }  /* Grün */
.chip.down { color: #e74c3c; }  /* Rot  */

/* Umbuchungsseite */
.card {
  background: rgba(28, 28, 28, 0.4);
  border: 1px solid rgba(43, 43, 43, 0.4);
  border-radius: 10px;
  padding: 14px;
}

.transfer-box {
  background: rgba(28, 28, 28, 0.4);
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 10px;
  padding: 14px;
}

/* Ticker neu und mit richtigen Daten */
.ticker-wrap{ 
  position:relative; 
  overflow:hidden; 
  background: rgba(28, 28, 28, 0.4); 
  border-top:1px solid #222; 
  border-bottom:1px solid #222; 
  height:46px; }
.ticker-wrap::before,.ticker-wrap::after{ content:""; position:absolute; top:0; width:60px; height:100%; background:linear-gradient(to right,#0e0e0e,rgba(14,14,14,0)); pointer-events:none; }
.ticker-wrap::after{ right:0; transform:scaleX(-1); }
.ticker-wrap::before{ left:0; }

.ti{ display:inline-flex; align-items:center; gap:10px; font-size:14px; color:#eaeaea; opacity:.95; }
.ti .sym{ font-weight:700; letter-spacing:.3px; }
.ti .px{ font-variant-numeric:tabular-nums; }
.ti .chg{ font-variant-numeric:tabular-nums; font-weight:700; }
.ti .arrow{ font-size:12px; opacity:.9; }

/* stärkere Spezifität innerhalb des Tickers */
.ticker-wrap .ti.up .chg, .ticker-wrap .ti.up .arrow{ color:#2ee5a2; }
.ticker-wrap .ti.down .chg, .ticker-wrap .ti.down .arrow{ color:#ff6b6b; }

@keyframes ticker-move{
  from{ transform:translateX(0); }
  to{ transform:translateX(var(--ticker-shift,-50%)); }
}
.ticker-wrap:hover .ticker-track{ animation-play-state:paused; }
@media (prefers-reduced-motion:reduce){ .ticker-track{ animation:none; } }

/* Logos im Ticker */
.ti .logo{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.4));
}
.ti{ gap: 10px; } /* minimal größer, damit Logo Luft hat */
.ticker-wrap::before,
.ticker-wrap::after {
  z-index: 2;        /* oben drüber */
}

.ticker-track{
  position: relative; 
  z-index: 1; 
  display:inline-flex; 
  align-items:center; 
  white-space:nowrap; 
  will-change:transform; 
  gap:28px; 
  padding:0 12px; 
  height:46px;
  animation: ticker-move var(--ticker-duration, 60s) linear infinite;
  transform: translate3d(0,0,0);
}

.ti .px,
.ti .chg {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Dashboard nochmal feinarbeiten */
/* Top-Bereich: Status oben, darunter 2 Spalten */
.top-row { display:flex; flex-direction:column; gap:14px; }

/* Status mittig */
.tier-block.center { text-align: center; }
.tier-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border-radius:999px; font-weight:700;
  background:rgba(255,215,0,.08); border:1px solid rgba(255,215,0,.25);
}

/* Container auf Desktop breiter, damit 2 Spalten Platz haben */
@media (min-width: 700px){
  .container { max-width: 720px; }
}
/* Inhalte dezenter als Labels */
.info-box .value{
  font-size: 1.0rem !important;   /* statt 1.2rem */
  color: #ddd;                     /* etwas softer als reinweiß */
  letter-spacing: .2px;
}
/* === Icon-Leiste oben rechts === */
.container { position: relative; } /* Anker für absolute Positionierung */

.top-actions{
  position: absolute;
  top: 8px;
  right: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  z-index: 5;
}

.icon-btn{
  appearance: none;
  background: transparent;
  border: none;
  color: gold;
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255,215,0,.15);
  background-color: rgba(255,255,255,0.04);
}
.icon-btn:active{ transform: translateY(0); }

/* Dropdown unter dem Zahnrad */
.settings-menu{
  position: absolute;
  top: 36px;              /* fällt sauber unter die Icons */
  right: 0;
  display: none;
  min-width: 120px;
  padding: 8px 0;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 4px;
  box-shadow: 0 28px 1px rgba(0,0,0,.4);
}
.settings-menu a{
  display: block;
  padding: 10px 14px;
  color: #eee;
  text-decoration: none;
  font-size: 0.75rem;
}
.settings-menu a:hover{ background:#2a2a2a; }

/* sichtbar schalten */
.settings-menu.open{ display: block; }

/* Mobile: Icons etwas größer antippbar */
@media (max-width: 480px){
  .icon-btn{ font-size: 16px; padding: 8px; }
}
/* Label + Pfeil in einer Linie */
.label[data-field="profitLabel"]{
  display:flex; align-items:center; gap:2px;
}

/* Mini-Schalter: NICHT wie ein normaler Button stylen */
.perf-cycle{
  all: unset;                    /* killt alle geerbten button-Styles */
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px;                  /* minimaler Klickbereich */
}

/* Goldener Chevron */
.perf-cycle svg{
  width: 16px; height: 16px;
  fill: gold;                    /* Farbe */
  transition: transform .15s, opacity .15s;
}

/* (Optional) Fokus-Styling für Tastatur-Nutzer */
.perf-cycle:focus-visible{
  outline: 2px solid rgba(255,215,0,.6);
  outline-offset: 2px;
}

/* KYC */
.kyc-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 10px; border-radius:999px;
  border:1px solid #555; font-weight:600; font-size:.75rem;
}
.kyc-unverified { color:#bbb; border-color:#666; }
.kyc-pending    { color:#ffcf66; border-color:#7a6100; }
.kyc-rejected   { color:#ff6b6b; border-color:#7a1e1e; }
.kyc-level1     { color:#00ff80; border-color:#0d5; }
.linklike { background:none; border:none; color:gold; cursor:pointer; padding:0; }

/* Einheilticher Abstand zwischen Boxen */
.info-box { margin: 0 0 2rem; }
.info-box + .info-box { margin-top: 2rem; }

/* ID + KYC nebeneinander: links/rechts */
.info-pair{
  display:flex;
  align-items:flex-start;
  justify-content:space-between; /* ID links, KYC rechts */
  gap:16px;
}

/* KYC: Titel über Badge, rechtsbündig */
.kyc-block{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:1px;
}

/* KYC-Trigger als Text */
#kycOpen{
  all:unset;
  display:inline;
  color: gold;
  font-weight:600;
  font-size:.98rem;
  cursor:pointer;
}
#kycOpen:hover,#kycOpen:focus{ text-decoration: underline; outline: none; }

/* Performance-Toggle (damit er nicht verschwindet) */
.label[data-field="profitLabel"]{ display:flex; align-items:center; gap:4px; }
#perfCycle{
  all:unset; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; margin-left:2px;
}
#perfCycle svg{ width:16px; height:16px; fill:gold; }


/* ===== Einzahlung / Deposit ===== */
/* ===== ganze Seite CSS */
.deposit-container { max-width: 720px; }
/* Toggle */
.deposit-toggle{
  display:flex; gap:8px; justify-content:center; margin: 10px 0 16px;
}
.asset-btn{
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,.35);
  background: rgba(28,28,28,.5);
  color: #eee;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, opacity .12s ease;
}
.asset-btn.active{
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000;
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.asset-btn:not(.active){ opacity:.7; }
.asset-btn:hover{ transform: translateY(-1px); }

/* QR + Adresse Box */
.deposit-box{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(28, 28, 28, 0.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25) inset;
}
.qr-col{
  display:flex; align-items:center; justify-content:center;
}
.addr-col .addr-label{ color:#ccc; margin-bottom:6px; }
.addr-row{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border:1px dashed rgba(255,255,255,.2);
  border-radius:8px; background: rgba(0,0,0,.25);
}
.addr-code{
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .95rem; color: #fff;
}
.copy-btn{
  appearance: none; border: none; background: transparent; color: gold;
  font-size: 18px; cursor: pointer; padding: 4px; border-radius: 6px;
}
.copy-btn:hover{ background: rgba(255,255,255,.06); }

.addr-state.muted{ color:#9aa0a6; margin-top: 6px; font-size: .9rem; }

/* Hinweise */
.rules{
  margin-top: 18px;
  background: rgba(28,28,28,.2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.rules h3{ margin: 0 0 8px; color: gold; font-size: 1rem; }
.rules ul{ margin: 0; padding-left: 18px; }
.rules li{ margin: 6px 0; color: #ddd; }

/* Helper row */
.helper-row{
  display:flex; align-items:center; gap:10px; justify-content: space-between;
  margin-top: 10px;
}
.helper-row .muted{ color:#9aa0a6; font-size:.9rem; }

/* Toast */
.toast{
  position: fixed; left:50%; bottom: 90px; transform: translateX(-50%) scale(.98);
  background: rgba(0,0,0,.8); color:#fff; padding: 10px 14px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.15);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  z-index: 99999;
}
.toast.show{ opacity: 1; transform: translateX(-50%) scale(1); }

/* Responsive */
@media (max-width: 560px){
  .deposit-box{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .addr-row{ justify-content: center; }
}
.addr-code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.addr-row{ display:flex; align-items:center; gap:8px; }
.copy-btn[disabled]{ opacity:.6; cursor:not-allowed; }
.toast{ position:fixed; left:50%; bottom:90px; transform:translateX(-50%); padding:8px 12px; background:#222; border:1px solid #444; border-radius:6px; display:none; }
.toast.show{ display:block; }

/* QR wirklich mittig platzieren, egal ob <img> oder <canvas> */
#qrBox { width: 220px; height: 220px; margin: 0 auto; }
#qrBox canvas, 
#qrBox img { display: block; margin: 0 auto; }

/* Überschrift Einzahlung mittig */
.gold-title {
  text-align: center;
  display: block;
  margin: 0 auto 20px auto; /* oben 0, unten etwas Abstand */
}

/* 2 Faktor Verifizierung 2SF im Dashboard */
/* === 2FA-Modal – HARTE ISOLATION (ganz ans Ende der CSS!) === */
#twofaModal { display:none; }
#twofaModal.show { display:flex; }

#twofaModal .modal-box{
  width: min(92vw, 560px);
  max-width: 560px;
  box-sizing: border-box;
}

/* Alles im 2FA-Modal zurück auf „normal“ zwingen */
#twofaModal .modal-box,
#twofaModal .modal-box *{
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  direction: ltr !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;

  transform: none !important;
  float: none !important;
  position: static !important;
}

/* Nur Checkbox-Zeilen im Grid layouten */
#twofaModal .modal-box label.twofa-row{
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: .6rem 0 !important;
}

/* Normale Labels (ohne Checkbox) einfach blockig anzeigen */
#twofaModal .modal-box label:not(.twofa-row){
  display: block !important;
  margin: .6rem 0 !important;
}
#twofaModal .modal-box label.twofa-row > input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
}

/* Typografie & Inputs im Modal */
#twofaModal .modal-box p{ margin:.3rem 0 .8rem !important; }
#twofaModal .modal-actions{ display:flex; justify-content:flex-end; gap:10px; }
#twofaModal input[type="text"]{ width:100%; }
#twofaSecret{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ================================= */
/* ===== Auszahlung / Withdraw ===== */
.withdraw-container { max-width: 720px; }

.withdraw-toggle{
  display:flex; gap:8px; justify-content:center; margin: 10px 0 16px;
}
.withdraw-wallet{
  margin: 16px 0;
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.withdraw-wallet .addr-label{ color:#ccc; margin-bottom:6px; }
.withdraw-wallet .addr-row{ display:flex; gap:10px; align-items:center; }
.withdraw-wallet input{ flex:1; padding:8px; border-radius:6px; border:1px solid #555; background:#111; color:#fff; }

.withdraw-box{
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
}
.withdraw-box label{ display:block; margin: 12px 0 4px; }
.withdraw-box select,
.withdraw-box input{ width:100%; padding:10px; border-radius:8px; border:1px solid #555; background:#111; color:#fff; }

.amount-row{ display:flex; gap:10px; }
.amount-row input{ flex:1; }

.fee-box{
  margin-top: 12px;
  padding:10px;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  font-size: .95rem;
  color:#ddd;
}

.agb-row{ display:flex; gap:8px; align-items:center; margin:12px 0; }
.error-msg{ color:#ff6666; font-size:.9rem; margin-top:4px; }

/* Modal */
.modal{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.7); align-items:center; justify-content:center; z-index:1000; }
.modal.show{ display:flex; }
.modal-box{
  background:#1a1a1a;
  padding:20px;
  border-radius:10px;
  max-width:400px;
  width:100%;
  color:#fff;
}
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
.msg{ margin-top:8px; color:#f88; font-size:.9rem; }


/* ===== Admin: Withdraw UI ===== */
.w-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.w-spacer { flex: 1 1 auto; }

.pill { padding:3px 8px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill.pending_admin { color:#e6b800; border-color:#e6b800; background: rgba(230,184,0,.08); }
.pill.approved      { color:#00d084; border-color:#00d084; background: rgba(0,208,132,.08); }
.pill.paid          { color:#76b7ff; border-color:#76b7ff; background: rgba(118,183,255,.12); }
.pill.rejected      { color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.addr, .txid { max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

table.withdraw { width:100%; border-collapse:collapse; margin-top:8px; }
table.withdraw th, table.withdraw td { padding:8px 10px; border-bottom:1px solid #444; text-align:left; }
table.withdraw tr:hover { background:#151515; }

.btn-outline { background:transparent; border:1px solid #555; color:#fff; }

/* ===== Cards (Empire Style) ===== */
.card{
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25) inset;
  margin: 16px 0;
  color:#eee;
}
.card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.card-head .title{ font-weight:700; display:flex; gap:8px; align-items:center; }
.card .card-actions{ display:flex; gap:10px; }

/* Address card */
.address-card .addr-row{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border:1px dashed rgba(255,255,255,.2);
  border-radius:8px; background: rgba(0,0,0,.25);
}
.addr-code{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.btn-chip{ padding:4px 8px; border:1px solid rgba(255,255,255,.15); background:transparent; border-radius:999px; font-size:.85rem; color:#fff; }
.btn-wide{ width:100%; }

/* Pills */
.pill{ padding:4px 10px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill-good{ color:#00d084; border-color:#00d084; background: rgba(0,208,132,.08); }
.pill-bad{ color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }
.pill-warn{ color:#e6b800; border-color:#e6b800; background: rgba(230,184,0,.12); }

/* Action card */
.balance-line{ display:flex; align-items:center; gap:10px; justify-content:flex-end; margin-bottom:6px; }
.field-label{ display:block; margin: 12px 0 6px; color:#ccc; }
.amount-row{ display:flex; gap:10px; align-items:center; }
.amount-row input{ flex: 1 1 auto; padding:12px; border-radius:8px; border:1px solid #555; background:#111; color:#fff; }
.amount-suffix{ min-width:68px; text-align:center; padding:10px 12px; border:1px solid #555; border-radius:8px; background:#111; }

/* Fee box stronger */
.fee-box-strong{ margin-top:12px; background: rgba(0,0,0,.35); }
.fee-row{ display:flex; align-items:center; justify-content:space-between; padding:4px 0; }
.fee-row.total strong{ font-size:1.15rem; color:#f8e473; }

/* Status line */
.status-line{ display:flex; gap:8px; align-items:center; margin-top:12px; }

/* Messages */
.form-msg{ margin-top:10px; color:#ddd; }
.form-msg.ok{ color:#00d084; }
.error-msg{ color:#ff7676; margin-top:6px; }

/* Modals */
.modal{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.7); align-items:center; justify-content:center; z-index:1000; }
.modal.show{ display:flex; }
.modal-box{
  background:#1a1a1a; padding:20px; border-radius:10px; width:min(92vw, 520px); color:#fff;
}
.modal-box .review{ display:grid; grid-template-columns: 1fr auto; gap:8px 12px; padding:10px; background:#111; border:1px solid #333; border-radius:8px; margin:8px 0 12px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }

/* Responsive */
@media (max-width:560px){
  .balance-line{ justify-content:space-between; }
  .amount-suffix{ min-width:58px; }
}

.agb-row{
  display:grid;
  grid-template-columns: 18px 1fr;
  align-items:start;
  gap:10px;
  margin:12px 0;
}
.agb-row input{ width:16px; height:16px; margin-top:2px; }
.agb-row span{ line-height:1.35; }

/* kleine Helfer */
.hidden { display: none !important; }

.w-head { display:flex; align-items:center; gap:10px; }
.w-head .pill { margin-left: auto; }

/* User-facing Pills */
.pill { padding:3px 10px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill-ok   { color:#00d084; border-color:#00d084; background: rgba(0,208,132,.10); }
.pill-warn { color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }

/* Status-Badges Reihe */
.status-badges{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }

/* ===== Withdraw polish (Empire) ===== */
.address-card .btn-compact{
  padding: 6px 10px;
  font-size: .85rem;
  line-height: 1.1;
}

/* dezent goldiger Rahmen für die Adresse-Box */
.address-card .addr-row{
  border-color: rgba(248, 228, 115, .18); /* zarter Gold-Ton */
  background: rgba(0,0,0,.22);
}

/* Zahlen leicht betonen */
.action-card .balance-line strong{
  letter-spacing: .2px;
  font-weight: 800;
}

/* Gold-Link-Labels in diesen Zeilen nicht umbrechen */
.card-head .gold-link,
.balance-line .gold-link{
  display: inline-block;
  white-space: nowrap;
}

/* ===== Tabs (Banking) ===== */
.tabs{
  display:flex; gap:8px; justify-content:center; margin: 10px 0 18px;
}
.tab-btn{
  padding:10px 16px; border-radius:8px;
  border:1px solid rgba(255,215,0,.35);
  background: rgba(28,28,28,.5);
  color:#eee; font-weight:700; cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, opacity .12s ease;
}
.tab-btn.active{
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto; color:#000;
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* Spacer fürs Footer-Overlay */
.spacer{ height: 90px; }

/* Withdraw: kompakter Edit-Button (falls noch nicht vorhanden) */
.address-card .btn-compact{
  padding: 6px 10px; font-size: .85rem; line-height: 1.1;
}

/* ==== TRANSFER: Guthaben-Karten kräftiger ==== */
#panel-transfer .balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
#panel-transfer .balances .card {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#panel-transfer .balances .card h3 {
  margin: 0;
  font-size: 1.05rem;
}
#panel-transfer .balances .amt {
  font-size: 34px;           /* vorher ~26px */
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.1;
  color: #f8e473;             /* leicht goldig */
  text-shadow: 0 0 10px rgba(248,228,115,.12);
}

/* ==== TRANSFER: Regeln-Box wie bei Einzahlung ==== */
.rules-transfer { margin-top: 12px; }

/* ==== TRANSFER: Buttons weiter unten + dezenter ==== */
.transfer-actions{
  margin-top: 16px;           /* Abstand nach Regeln */
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* dezenter Button-Stil speziell für Umbuchung */
.btn-quiet{
  background: rgba(28,28,28,.58);
  border: 1px solid rgba(255,215,0,.28);
  color: #eee !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn-quiet:hover{
  background: rgba(28,28,28,.72);
  transform: translateY(-1px);
}

/* Mobile: Buttons ganze Breite */
@media (max-width: 480px){
  .transfer-actions button{
    flex: 1 1 100%;
  }
}

/* ==== TRANSFER: Letzte Transaktionen – COMPACT ==== */
#panel-transfer .history { margin-top: 16px; }
#panel-transfer .history h3 { margin: 0 0 6px; font-size: .95rem; }

#panel-transfer .history table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;            /* fixe Spaltenbreiten, damit es ruhig bleibt */
}

/* Header kleiner */
#panel-transfer .history thead th{
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: .2px;
}

/* Zellen kompakt + dezenter */
#panel-transfer .history tbody td{
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.15;
  color: #d7d7d7;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#panel-transfer .history tbody tr:hover{ background: rgba(255,255,255,.03); }

/* Spalten-Breiten + Trunkierung */
#panel-transfer .history th:nth-child(1),
#panel-transfer .history td:nth-child(1){ width: 27%; }  /* Datum */
#panel-transfer .history th:nth-child(2),
#panel-transfer .history td:nth-child(2){ width: 15%; }  /* Von */
#panel-transfer .history th:nth-child(3),
#panel-transfer .history td:nth-child(3){ width: 15%; }  /* Nach */
#panel-transfer .history th:nth-child(4),
#panel-transfer .history td:nth-child(4){ width: 25%; }  /* Notiz */
#panel-transfer .history th:nth-child(5),
#panel-transfer .history td:nth-child(5){ width: 18%; }  /* Betrag */

#panel-transfer .history td:nth-child(4){
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Beträge klar rechts & tabular-nums */
#panel-transfer .history td.right{
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ececec;
}

/* Extra klein auf Phone */
@media (max-width: 480px){
  #panel-transfer .history thead th{ font-size: 10px; padding: 5px 6px; }
  #panel-transfer .history tbody td{ font-size: 11px; padding: 4px 6px; }
}

/* ====== Auszahlung: History-Card kompakter & sauber ====== */
#panel-withdraw .history-card {
  margin-top: 16px;
  padding: 12px 14px;
}

#w-historyCard .card-head {
  margin-bottom: 6px;
}

#w-historyCard .card-head .title {
  font-size: 0.95rem;
}

/* Pager schlank */
#w-historyCard .btn-compact {
  font-size: 11,5px;
  line-height: 1;
  padding: 3px 7px;
  height: 24px;
  border-radius: 6px;
}
#w-hPage {
  font-size: 12px;
  opacity: .85;
}

/* Tabelle kompakt, fixe Spaltenbreiten, schöne Ausrichtung */
#w-historyCard .w-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 8px;
  overflow: hidden;
}

#w-historyCard .w-history-table thead th {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .2px;
  text-align: left;
  padding: 8px 10px;
  background: rgba(255,255,255,.06);
}

#w-historyCard .w-history-table th:nth-child(1) { width: 20%; } /* Datum/Uhrzeit  */
#w-historyCard .w-history-table th:nth-child(2) { width: 10%; } /* Währung       */
#w-historyCard .w-history-table th:nth-child(3) { width: 12%; } /* Summe         */
#w-historyCard .w-history-table th:nth-child(4) { width: 10%; } /* Status        */
#w-historyCard .w-history-table th:nth-child(5) { width: 24%; } /* Ziel-Wallet   */
#w-historyCard .w-history-table th:nth-child(6) { width: 24%; } /* ID            */

#w-historyCard .w-history-table td {
  font-size: 13px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

#w-historyCard .w-history-table td.right { text-align: right; }

/* lange Strings hübsch kürzen */
#w-historyCard .w-history-table td.mono,
#w-historyCard .w-history-table td a,
#w-historyCard .w-history-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zebra-Optik leicht */
#w-historyCard .w-history-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,.02);
}

/* Abstand zwischen „Betrag“-Card und History */
.withdraw-container .action-card + .history-card {
  margin-top: 18px;
}

/* "Keine Historie" dezenter */
#w-hEmpty {
  margin-top: 8px;
  opacity: .85;
  font-size: 13px;
}

/* Mobile Optimierungen */
@media (max-width: 560px) {
  #w-historyCard .w-history-table th,
  #w-historyCard .w-history-table td { padding: 6px 8px; font-size: 12px; }


  #w-historyCard .btn-compact { height: 26px; padding: 4px 7px; font-size: 11.5px; }
  #w-hPage { font-size: 11.5px; }
}

/* === Wallet-History: Sichtbare, goldene Header === */
#w-historyCard .w-history-table thead th{
  /* Gold wie überall, ohne Text-Clip-Tricks */
  color:#ffd700 !important;
  background: rgba(255,255,255,.06) !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  animation: none !important;
  font-weight: 700;
}

/* === Wallet-History: horizontales Scrollen erlauben === */
#w-historyCard .history{
  overflow-x: auto;                 /* Scrollbar falls nötig */
  -webkit-overflow-scrolling: touch;/* flüssig auf iOS */
}
#w-historyCard .w-history-table{
  min-width: 820px;                 /* genug Breite für alle Spalten */
  table-layout: fixed;              /* ruhige Layouts */
}

/* Lange Werte: etwas Basisbreite geben */
#w-historyCard .w-history-table th:nth-child(1),
#w-historyCard .w-history-table td:nth-child(1){ width: 15%; } /* Datum/Uhrzeit */
#w-historyCard .w-history-table th:nth-child(2),
#w-historyCard .w-history-table td:nth-child(2){ width: 12%; } /* Währung */
#w-historyCard .w-history-table th:nth-child(3),
#w-historyCard .w-history-table td:nth-child(3){ width: 12%; } /* Summe */
#w-historyCard .w-history-table th:nth-child(4),
#w-historyCard .w-history-table td:nth-child(4){ width: 35%; min-width: 260px; } /* Ziel-Wallet */
#w-historyCard .w-history-table th:nth-child(5),
#w-historyCard .w-history-table td:nth-child(5){ width: 26%; min-width: 180px; } /* ID */

/* Monospace + Trunkierung (Titel zeigt vollen Wert) */
#w-historyCard .w-history-table td.mono,
#w-historyCard .w-history-table td a{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === NIE die Währungsspalte ausblenden – wir scrollen stattdessen === */
@media (max-width: 560px){
  #w-historyCard .w-history-table th:nth-child(2),
  #w-historyCard .w-history-table td:nth-child(2){
    display: table-cell !important;
  }
}

/* Invite-Link: Kopieren-Emoji im Feld */
.copy-field{
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 12px;
}

/* Das eigentliche Feld: volle Breite, kein zusätzliches Margin */
.copy-field input#biz-refLink{
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding-right: 42px;        /* Platz fürs Emoji */
}

/* Emoji-Button */
.copy-emoji{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.copy-emoji:hover { transform: translateY(-50%) scale(1.06); }
.copy-emoji:active{ transform: translateY(-50%) scale(0.98); }

/* Tabelle soll die volle Card-Breite nutzen */
#biz-memberTable{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;      /* Spalten nehmen die zugewiesenen Prozente */
}

/* Lange Inhalte sauber abkürzen (falls nötig) */
#biz-memberTable td{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#biz-memberTable td:nth-child(3){
  width: 30%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ececec;             /* Farbe nur im Body */
}

/* Inhalt kleiner (nur Body) */
#biz-memberTable tbody td{ font-size:13px; }
@media (max-width:480px){
  #biz-memberTable tbody td{ font-size:13px; }
}

/* Mehr Abstand zwischen Suchfeld und Tabellenkopf */
#biz-searchInput{ margin-bottom: 18px !important; }

/* Mehr Abstand zwischen Code-Feld und Button + flacherer Button */
#panel-trading #ct-signalCodeInput{ margin-bottom:14px !important; }
#panel-trading .btn-row{ margin-top:10px !important; }
#panel-trading #ct-submitSignal{
  height:36px !important;
  padding:8px 10px !important;
  font-size:.95rem !important;
  border-radius:6px !important;
}

/* Chart-Dropdowns kleiner & unaufdringlicher (passen nebeneinander) */
#panel-trading .chart-controls{ gap:8px !important; margin:6px 0 8px !important; }
.copytrade-page #ct-symbolToggle,
.copytrade-page #ct-intervalToggle{
  min-width:auto !important;
  width:auto !important;
  height:34px !important;
  padding:6px 10px !important;
  font-size:.9rem !important;
}
@media (max-width:480px){
  .copytrade-page #ct-symbolToggle,
  .copytrade-page #ct-intervalToggle{
    flex:1 1 calc(50% - 8px) !important;  /* sauber nebeneinander */
  }
}

/* Filter-Bereich unten kompakter (nur Inhalt, Überschriften bleiben) */
#panel-trading #ct-txFilterContainer{ margin-top:14px !important; }
#panel-trading #ct-txFilterContainer .txFilterRow{ gap:8px !important; }
#panel-trading #ct-txFilterContainer label{ font-size:12px !important; }
#panel-trading #ct-txFilterContainer input[type="date"]{
  height:28px !important; padding:2px 6px !important; font-size:12px !important;
}
/* „Filtern“-Button kleiner */
#panel-trading #ct-txApply{
  height:30px !important; padding:6px 10px !important; font-size:12px !important; border-radius:6px !important;
}

/* Teilnahme-Historie: Body-Schrift kleiner, Header bleibt */
#panel-trading .tx-table tbody td{
  font-size:12px !important; padding:6px 8px !important;
}
#panel-trading .tx-table .chip{
  font-size:11px !important; padding:2px 6px !important;
}

/* ===== Trading Center: kompakte Dropdowns ===== */

/* Toggle-Buttons (BTC/USDT & 1m) – klein & dezent */
#panel-trading .chart-controls .dd-toggle,
#panel-trading #ct-symbolToggle,
#panel-trading #ct-intervalToggle{
  min-width: 110px !important;
  width: auto !important;
  height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Dropdown-Panel kleiner und dichter */
#panel-trading .chart-controls .dd-menu{
  top: calc(100% + 4px) !important;
  min-width: 100px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}

/* Menü-Einträge schlank (keine fetten Gold-Buttons) */
#panel-trading .chart-controls .dd-menu button{
  background: #1f1f1f !important;
  color: #ffd700 !important;
  border: 1px solid rgba(255,215,0,.22) !important;
  box-shadow: none !important;
  margin: 2px 0 !important;
  padding: 6px 8px !important;
  height: 24px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
  transform: none !important;
}
#panel-trading .chart-controls .dd-menu button:hover{
  background: rgba(255,215,0,.12) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tx-note-row .tx-note-cell{
  padding: 6px 8px;
  font-size: 0.78rem;
  color: #9aa0a6;
  text-align: right;        /* oder center; Geschmackssache */
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ======================= Footer – groß & 2×2 auf Handy ======================= */
:root{
  --footer-btn-h: 35px;            /* Höhe der Buttons auf Handy */
  --footer-gap:   10px;            /* Abstand zwischen Buttons   */
  --footer-pad:   10px;            /* Innenabstand des Footers   */
}

/* Basis (Desktop/Tablet): eine Reihe, etwas höher als vorher */
.footer-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom,0));
  box-shadow: 0 -1px 5px rgba(0,0,0,.5);
  border-top: 1px solid #333;
  z-index: 9999;
  transform: translateZ(0);
}

.footer-nav button{
  height: 35px !important;         /* Desktop-Höhe */
  min-width: 140px;
  font-size: 0.95rem !important;
  padding: 0 16px !important;      /* visuell gleich, aber volle Klickfläche */
  border-radius: 8px;
}

/* Handy: 2×2 Raster, deutlich größer */
@media (max-width: 600px){
  .footer-nav{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: var(--footer-btn-h);
    gap: var(--footer-gap);
    padding: var(--footer-pad) var(--footer-pad)
             calc(var(--footer-pad) + env(safe-area-inset-bottom,0));
  }
  .footer-nav button{
    width: 100%;
    height: 100% !important;        /* echte Touch-Höhe */
    font-size: 1.00rem !important;  /* etwas größerer Text */
    padding: 0 14px !important;
    border-radius: 10px;
  }

  /* Platz schaffen, damit nichts überlappt */
  .spacer{
    height: calc(
      var(--footer-btn-h) * 2 +
      var(--footer-gap) +
      var(--footer-pad) * 2 +
      env(safe-area-inset-bottom,0)
    ) !important; /* ~160px */
  }
}

/* Desktop/Tablet: Spacer nur so hoch wie eine Reihe */
@media (min-width: 601px){
  .spacer{
    height: calc(35px + 24px) !important; /* Buttonhöhe + Footer-Padding */
  }
}

/* Aktionen – Komponenten */
.note { margin-top:12px; color:#bbb; font-size:13px; line-height:1.45; }
.poster.card { padding:0; margin:16px 0; box-shadow:0 0 0 1px rgba(255,255,255,0.02) inset; }
.poster { display:flex; flex-direction:column; align-items:center; gap:14px; }
.poster .frame {
  width:100%; max-width:780px; border:1px dashed var(--border, rgba(255,255,255,.12));
  border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; min-height:220px;
}
.poster .frame img { width:100%; height:100%; object-fit:cover; display:block; }
.poster .empty { color:var(--muted, #9aa0a6); padding:24px; }
.center { text-align:center; }
.actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.muted { color:#9aa0a6; font-size:13px; }

/* Falls noch nicht vorhanden */
.hidden { display:none; }

/* Spenden-spezifisch */
.donate-wrap { display:grid; gap:12px; justify-items:center; }
#don-amount {
  width:min(420px, 95%);
  text-align:center; font-weight:700;
  padding:10px 14px; border-radius:6px;
  background:#222; color:#fff; border:1px solid #444;
}
.don-stats { color:#ccc; font-size:.95rem; }

/* Ersetzt die ehemaligen Inline-Styles */
.title-strong { font-size:20px; font-weight:700; }
.list-tight { margin:6px 0 0 10px; }

/* Aktionen – Optik-Addons */
.meta-chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px 0 4px}
.meta-chips .chip{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  padding:6px 10px;border-radius:999px;font-size:12px;color:#ddd}

.accordion{margin-top:12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;
  background:rgba(255,255,255,.03);overflow:hidden}
.accordion .acc-head{width:100%;display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;font-weight:700;background:transparent;border:none;color:#ffdc66;cursor:pointer}
.accordion .acc-body{max-height:0;overflow:hidden;transition:max-height .25s ease}
.accordion.open .acc-body{max-height:340px}
.accordion .acc-body ul{margin:6px 0 12px 18px}

.progress{position:relative;height:12px;border-radius:999px;background:#222;border:1px solid #444;margin:10px 0 4px}
.progress .bar{height:100%;width:var(--p,0%);background:linear-gradient(90deg,#ffcc00,#ffd966);
  border-radius:inherit;transition:width .25s ease}
.progress-label{text-align:right;font-size:12px;color:#9aa0a6}

.stat-row{display:flex;gap:16px;justify-content:center;align-items:center;margin:8px 0}
.stat-row .vsep{width:1px;height:26px;background:rgba(255,255,255,.1)}
.stat-num{font-size:18px;font-weight:800;text-align:center}
.stat-label{font-size:12px;color:#9aa0a6;margin-top:2px;text-transform:uppercase;letter-spacing:.04em;text-align:center}

.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}
.steps li{list-style:none;background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.12);
  padding:8px;border-radius:8px;font-size:12px;color:#bbb;text-align:center}

.poster .empty{border:2px dashed rgba(255,255,255,.12);border-radius:10px;color:#9aa0a6}
.hidden{display:none;}

/* Alternative: alle Elemente im Poster-Card-Block angleichen */
#panel-donate .poster > * {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: 12px;
}
#panel-donate .poster > .frame { 
  padding-inline: 0 !important; 
}
#panel-raffle .poster > .frame { 
  padding-inline: 0 !important; 
}

/* === Equity Chart === */
.equity-card { position: relative; }
.equity-chart-wrap { position: relative; width: 100%; max-width: 920px; }
#equityCanvas { width: 100%; height: 260px; display: block; }
.equity-empty { margin: .6rem 0; color:#bbb; font-size:.95rem; }
.hidden { display:none; }

.equity-tooltip {
  position:absolute; pointer-events:none; transform:translate(-50%,-100%);
  background:#111; border:1px solid #333; border-radius:8px; padding:10px 12px;
  font-size:12px; color:#eee; min-width:180px; z-index:5; box-shadow:0 6px 22px rgba(0,0,0,.45);
  display:none;
}
.equity-tooltip .t { font-weight:700; margin-bottom:6px; color:#ffec99; }
.equity-tooltip .row { display:flex; justify-content:space-between; gap:10px; }
.equity-tooltip .k { color:#9aa0a6; }
.equity-tooltip .v { font-variant-numeric: tabular-nums; }

.equity-card:focus-within .equity-tooltip { display:block; } /* a11y */

/* Linie/Points subtil aufwerten */
#equityCanvas { width:100%; height:260px; display:block; }

/* Tooltip-Feinschliff */
.equity-tooltip { max-width:280px; }
.equity-tooltip .delta.up   { color:#5bd26a; font-weight:700; }
.equity-tooltip .delta.down { color:#ff7a7a; font-weight:700; }

/* Card dezent umranden, falls du willst */
.equity-card{
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  border-radius: 10px;
  padding-bottom: 12px;
}
/* vorhandenes .equity-tooltip bleibt */
.equity-tooltip.align-left  { transform: translate(0,-100%); }       /* Anker = linke Kante  */
.equity-tooltip.align-right { transform: translate(-100%,-100%); }    /* Anker = rechte Kante */

/* Fix für die Zeile unter dem Passwortfeld */
body.login-page .login-meta{
  width: 95% !important;      /* gleiche Breite wie die Felder */
  max-width: none !important;
  margin: -10px 0 12px !important;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Globale Button-Styles hier explizit neutralisieren */
body.login-page .login-meta > *{
  margin: 0 !important;               /* keine Extra-Abstände */
}

body.login-page .login-meta label.remember{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #ddd;
  cursor: pointer;
  user-select: none;
}
body.login-page .login-meta label.remember input{
  width: 16px; height: 16px; margin: 0;
}
body.login-page .login-meta label.remember span{
  white-space: nowrap;
}

/* Der Link rechts darf KEIN „großer Button“ sein */
body.login-page .login-meta .link-btn{
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  color: #aaaaaa !important;
  text-decoration: underline;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  white-space: nowrap;
}

/* schmaler Secondary bei voller Breite */
body.login-page .toggle-link.btn-thin{
  width:100%;
  height: 34px;              /* deutlich flacher */
  padding: 6px 10px;
  font-size: .92rem;
  line-height: 1.1;
}

/* Login/Reg – Abstand unter dem Logo stark verkleinern */
body.login-page .logo-container{
  margin: 0 0 0px !important;
}

/* Überschrift enger setzen (oder ganz ausblenden, wenn gewünscht) */
body.login-page #loginForm h1,
body.login-page #registrationForm h1{
  margin: 6px 0 8px !important;  /* Standard ~0.67em */
  line-height: 1.1;
}

/* Einmal global – oder nimm direkt die Farbe im Fallback */
:root { --gold: #F6C34F; }

.goldline{
  display:block;
  width:100%;
  height:3px;
  margin:10px 0 10px;
  border:0;                       /* Standardlinie aus */
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold, #F6C34F),         /* Fallback, falls --gold fehlt */
    transparent
  );
  opacity:.7;
}

/* AGB/Datenschutz – sauber neben der Checkbox, nicht umbrechen */
body.login-page .agb-row{
  display:grid;
  grid-template-columns: 18px 1fr;
  align-items:start;
  gap:8px;
  margin:10px 0;
  text-align:left;                 /* nicht zentrieren */
}
body.login-page .agb-row input{ width:16px; height:16px; margin-top:2px; }
body.login-page .agb-row .agb-text{
  font-size:.88rem;
  line-height:1.25;
}

/* der „Link“-Button soll NICHT wie ein großer Button aussehen */
body.login-page .agb-row .linklike{
  width:auto !important;
  display:inline !important;
  padding:0 !important;
  margin:0 !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  animation:none !important;
  font: inherit !important;
  color: inherit !important;       /* übernimmt den Gold-Text vom Elternspan */
  text-decoration: underline;
}

/* kompletter Satz gold (nicht nur das Wort) – falls noch nicht gesetzt */
body.login-page .agb-row .gold-link{
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size:300% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: goldShine 6s ease-in-out infinite;
}

/* optional: auf sehr schmalen Screens noch kompakter oder ohne Animation */
@media (max-width:380px){
  body.login-page .agb-row .agb-text{ font-size:.82rem; }
  body.login-page .agb-row .gold-link{ animation:none; }
}

/* AGB/Datenschutz – vertikal sauber ausrichten */
body.login-page .agb-row{
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;              /* vorher: start */
  gap: 8px;
  margin: 10px 0;
  text-align: left;
}

body.login-page .agb-row input{
  width: 18px;
  height: 18px;
  margin: 0;                        /* den 2px-Top-Margin entfernen */
  transform: translateY(1px);       /* 1px optische Korrektur (optional) */
}

body.login-page .agb-row .agb-text{
  display: flex;                    /* Text auf Checkbox-Mittelpunkt zentrieren */
  align-items: center;
  line-height: 1.1;
  font-size: .88rem;
}

/* Der Link bleibt schlank und bricht nicht um */
body.login-page .agb-row .linklike{
  width: auto !important;
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  text-decoration: underline;
}

/* ===== Legal fullpage ===== */
.legal-view { padding: 16px 16px 56px; }
.legal-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto 12px;
}
.brand-logo-small { height: 56px; width: auto; display: block; }

.back-link {
  background: none; border: 0; cursor: pointer;
  color: #ccc; font-size: 0.95rem; padding: 6px 10px; border-radius: 6px;
}
.back-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

.legal-wrap {
  max-width: 980px; margin: 0 auto;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left; line-height: 1.65;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.legal-wrap .lead { opacity: .85; margin-top: -6px; }
.legal-wrap h2 { margin: 28px 0 8px; font-size: 1.25rem; color: #ffd166; }
.legal-wrap h3 { margin: 18px 0 6px; font-size: 1.05rem; color: #ffd166; }
.legal-wrap p,
.legal-wrap li { color: #e9e9e9; }

.legal-wrap ul, .legal-wrap ol { padding-left: 20px; }
.hidden { display: none !important; }

/* 4 Spalten: ID | Registriert | Guthaben | Direkt-Zahl */
#biz-memberTable th:nth-child(1),
#biz-memberTable td:nth-child(1){ width: 22%; }
#biz-memberTable th:nth-child(2),
#biz-memberTable td:nth-child(2){ width: 28%; }
#biz-memberTable th:nth-child(3),
#biz-memberTable td:nth-child(3){ width: 28%; text-align:right; font-variant-numeric:tabular-nums; font-weight:700; }
#biz-memberTable th:nth-child(4),
#biz-memberTable td:nth-child(4){ width: 22%; text-align:right; }

/* Klickbare Zahl als Link-Button */
a.direct-count {
  cursor: pointer;
  text-decoration: underline;
  color: #ffd700;
}
a.direct-count.disabled {
  text-decoration: none;
  color: #aaa;
  cursor: default;
}

/* Modal (leichtgewichtig, kompatibel zu Banking) */
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:9999; }
.modal.show{ display:flex; }
.modal-box{
  width:min(520px, 92vw); max-height:80vh; overflow:auto;
  background:#111; border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:16px 16px 12px;
}
.modal-actions{ margin-top:12px; display:flex; justify-content:flex-end; gap:8px; }

/* Liste im Modal */
.direct-list{ margin-top:8px; }
.direct-list table{ width:100%; border-collapse:collapse; }
.direct-list th, .direct-list td{ padding:6px 8px; border-bottom:1px solid rgba(255,255,255,.08); }
.direct-flag{ font-size:12px; padding:2px 6px; border-radius:999px; }
.direct-flag.ge{ background:rgba(46,204,113,.15); color:#5bd26a; }   /* >= 500 $ */
.direct-flag.lt{ background:rgba(255,255,255,.1); color:#ddd; }      /* < 500 $ */

.chartBox {
  position: relative;
  width: min(520px, 100%);
  height: 360px;           /* fixe Höhe */
  margin: 0 auto;
}
.chartBox > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Business → Tabelle: "Direkte Mitglieder" Zahl ohne Link-Style */
#biz-memberTable td .direct-count,
#biz-memberTable td .direct-count:link,
#biz-memberTable td .direct-count:visited,
#biz-memberTable td .direct-count:hover,
#biz-memberTable td .direct-count:active,
#biz-memberTable td .direct-count:focus {
  all: unset;           /* setzt alle Link-Styles zurück (Farbe, Unterstrich, etc.) */
  display: inline;
  cursor: pointer;
}

#biz-memberTable td .direct-count.disabled {
  cursor: default;
  opacity: .6;
  pointer-events: none;
}

/* Button-Morph states (dezent, Gold bleibt) */
.btn-primary.state-info    { filter: saturate(.95) brightness(.98); }
.btn-primary.state-success { box-shadow: 0 0 0 2px rgba(46,204,113,.28) inset; }
.btn-primary.state-error   { box-shadow: 0 0 0 2px rgba(231,76,60,.28) inset; }

/* Mini-Pop für kurze Rückmeldung */
.btn-primary.pulse { animation: btn-pop .18s ease-out; }
@keyframes btn-pop {
  0% { transform: scale(1); }
  50%{ transform: scale(1.03); }
  100%{transform: scale(1); }
}