/* Globales Layout + Hintergrund */
body {
  font-family: Arial, sans-serif;
  background-color: #0e0e0e;
  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;

  /* Wichtig für iPhone-Homescreen: zieht Hintergrund bis unter die Statusleiste */
  height: 100%;
  min-height: 100vh;

  /* Safe Area (verhindert weißen Balken bei PWA-Vollbild) */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

  /* 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;
  }

  /* 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; }

/* 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;
}

/* ========================= */
/* Empire Modals – global    */
/* ========================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;

  /* dunkler Overlay + Blur */
  background: radial-gradient(circle at top,
    rgba(212,175,55,0.20) 0,
    rgba(0,0,0,0.75) 40%,
    rgba(0,0,0,0.90) 100%);
  backdrop-filter: blur(6px);
}

.modal.show {
  display: flex;
}

/* Box im Empire-Card-Look */
.modal-box {
  max-width: min(420px);
  width: 100%;
  margin: 0 16px;
  box-sizing: border-box;

  padding: 20px 22px 18px;
  border-radius: 18px;

  background:
    radial-gradient(circle at top,
      rgba(212,175,55,0.15) 0,
      rgba(7,7,7,0.95) 55%,
      rgba(0,0,0,0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.35),
    0 18px 40px rgba(0,0,0,0.85);
}

/* feine innere Kontur */
.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* kleines Glow-Highlight oben */
.modal-box::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto;
  background: radial-gradient(circle at top,
    rgba(245,215,110,0.20) 0,
    transparent 60%);
  opacity: .6;
  pointer-events: none;
}

/* ========================= */
/* Typo                      */
/* ========================= */

.modal-box h3 {
  margin: 0 0 14px 0;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5d76e;
}

.modal-box label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9c0c8;
}

/* Inputs / Selects */
.modal-box input,
.modal-box select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(17,17,17,0.96);
  color: #ffffff;
  font-size: 13px;

  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 6px 14px rgba(0,0,0,0.8);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

.modal-box input::placeholder,
.modal-box select::placeholder {
  color: #6f7a86;
}

.modal-box input:focus,
.modal-box select:focus {
  outline: none;
  border-color: rgba(245,215,110,0.85);
  background: #131313;
  box-shadow:
    0 0 0 1px rgba(245,215,110,0.75),
    0 0 18px rgba(245,215,110,0.45);
  transform: translateY(-1px);
}

/* File Inputs minimal hübscher */
.modal-box input[type="file"] {
  padding: 7px 8px;
  font-size: 12px;
  cursor: pointer;
}

/* ========================= */
/* Actions / Buttons         */
/* ========================= */

.modal-actions {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Falls btn-primary/secondary schon existieren, nur etwas tunen */
.modal-box .btn-primary,
.modal-box .btn-secondary {
  min-width: 110px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border-width: 1px;
  text-transform: none;
}

.modal-box .btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.modal-box .btn-primary:active {
  filter: brightness(0.96);
  transform: translateY(0);
}

.modal-box .btn-secondary:hover {
  filter: brightness(1.06);
}

/* ========================= */
/* Spezielle KYC-Details     */
/* ========================= */

#kycGuide {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #d0d6e2;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

#kycGuide strong {
  color: #f5d76e;
}

#kycHint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ffb37a;
}

/* ========================= */
/* Kleine Fade/Zoom-Anim     */
/* ========================= */

.modal.show .modal-box {
  animation: empireModalIn 0.24s ease-out;
}

@keyframes empireModalIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================= */
/* Calculator-Modal          */
/* ========================= */

.calc-intro {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #d0d6e2;
}

.calc-results {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.18) 0,
    rgba(0,0,0,0.95) 65%
  );
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 8px 20px rgba(0,0,0,0.85);
  font-size: 12px;
  color: #fdfdfd;
}

.calc-results-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.calc-results-pill {
  flex: 1 1 48%;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c0c8;
}

.calc-value {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.calc-highlight {
  font-size: 14px;
  font-weight: 700;
  color: #f5d76e;
}

.calc-results-main {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 8px;
  margin-top: 6px;
}

.calc-results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.calc-results-row.calc-results-sub {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.9;
}

.calc-results-row .calc-value {
  text-align: right;
  white-space: nowrap;
}

.calc-value.up {
  color: #16c784;
}

.calc-value.down {
  color: #e74c3c;
}

.calc-note {
  margin: 8px 0 0;
  font-size: 10px;
  color: #b9c0c8;
  opacity: 0.9;
}
/* ========================= */

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

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

/* 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; }
}

/* 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;
}

/* 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;
}

/* ==================== 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);
}

/* 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);
}

/* 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;
}

/* Label + Pfeil in einer Linie */
.label[data-field="profitLabel"]{
  display:flex; align-items:center; gap: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 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 */
}

/* 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;
}

/* === Saubere Spaltenaufteilung Auszahlungstabelle === */

/* Datum/Uhrzeit */
#w-historyCard .w-history-table th:nth-child(1),
#w-historyCard .w-history-table td:nth-child(1) {
  width: 18%;
  min-width: 130px;
  white-space: nowrap;
  text-align: left;
}

/* Währung */
#w-historyCard .w-history-table th:nth-child(2),
#w-historyCard .w-history-table td:nth-child(2) {
  width: 10%;
  text-align: left;
}

/* Summe */
#w-historyCard .w-history-table th:nth-child(3),
#w-historyCard .w-history-table td:nth-child(3) {
  width: 10%;
  text-align: right;
}

/* Status */
#w-historyCard .w-history-table th:nth-child(4),
#w-historyCard .w-history-table td:nth-child(4) {
  width: 12%;
  text-align: center;
}

/* Ziel-Wallet */
#w-historyCard .w-history-table th:nth-child(5),
#w-historyCard .w-history-table td:nth-child(5) {
  width: 25%;
  min-width: 200px;
  text-align: center;
}

/* TXID */
#w-historyCard .w-history-table th:nth-child(6),
#w-historyCard .w-history-table td:nth-child(6) {
  width: 25%;
  min-width: 180px;
  text-align: center;
}

/* Vertikale Zentrierung */
#w-historyCard .w-history-table td {
  vertical-align: middle;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* === 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;
  }
  /* Datum etwas breiter halten (kein Umbruch) */
  #w-historyCard .w-history-table th:nth-child(1),
  #w-historyCard .w-history-table td:nth-child(1) {
    min-width: 120px;
    white-space: nowrap;
  }

  /* Ziel-Wallet + TXID leicht kompakter für Mobile */
  #w-historyCard .w-history-table th:nth-child(5),
  #w-historyCard .w-history-table td:nth-child(5) {
    width: 23%;
    min-width: 160px;
  }

  #w-historyCard .w-history-table th:nth-child(6),
  #w-historyCard .w-history-table td:nth-child(6) {
    width: 20%;
    min-width: 140px;
  }

  /* Bessere vertikale Lesbarkeit */
  #w-historyCard .w-history-table td {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* 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 */
  }
}

/* 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:50; 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 */

/* 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;
}

/* ===== 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); }
}

/* === Sprachwahl bei Registrierung === */
.lang-switch {
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  user-select: none;
}

.lang-switch .lang-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch .lang-option.active {
  color: #ffd700; /* Gold für aktive Sprache */
  text-shadow: 0 0 6px rgba(255,215,0,0.6);
}

.lang-switch .lang-option:hover {
  color: #fff;
}

.lang-switch .separator {
  margin: 0 6px;
  opacity: 0.6;
}

/* ======= Trading-Historie Tabelle (kompakter & scrollbar) ======= */
.tx-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
  width: 100%;
}

.tx-table th,
.tx-table td {
  padding: 6px 8px !important;    /* kompakter */
  min-width: 80px;                /* vorher 110px */
  white-space: nowrap;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tx-table th:nth-child(1) {min-width: 110px; } /* Datum */
.tx-table th:nth-child(2) {min-width: 90px; } /* Währung */
.tx-table th:nth-child(3) {min-width: 80px; } /* Short/Long */
.tx-table th:nth-child(4),
.tx-table th:nth-child(5),
.tx-table th:nth-child(6),
.tx-table th:nth-child(7),
.tx-table th:nth-child(8),
.tx-table th:nth-child(9),
.tx-table th:nth-child(10) {
  text-align: right;
}

/* ===== Bybit-Style Chart ===== */

.byb-chart {
  background: rgba(0,0,0,0.05); /* ganz leichtes grau 5% */
  border-radius: 12px;
  padding: 12px 14px 10px;
  color: #eee;
}

/* Header oben */
.byb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.byb-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byb-last-label {
  font-size: 11px;
  color: #f5c91a !important;
}

.byb-last-price {
  font-size: 22px;
  font-weight: 700;
  color: #16c784; /* Grün wie Bybit */
  line-height: 1.1;
}

.byb-mark-price {
  font-size: 12px;
  color: #f5c91a !important;
}

.byb-header-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  text-align: right;
}

.byb-stat-row span:first-child {
  color: #f5c91a !important;
  margin-right: 8px;
}

.byb-stat-row span:last-child {
  color: #ddd;
}

/* Toolbar / Timeframes */
.byb-toolbar {
  display: flex;
  align-items: center;
  margin: 6px 0 4px;
  font-size: 12px;
}

.byb-timeframes {
  display: inline-flex;
  gap: 8px;
}

.tf-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
}

.tf-btn.active {
  color: #f5c91a; /* gelb wie Bybit */
  border-bottom: 2px solid #f5c91a;
}

/* MA-Legende */
.byb-ma-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 4px;
}

.byb-ma-legend span {
  white-space: nowrap;
}

.byb-ma-legend .ma7 {
  color: #f1c40f;  /* gelb */
}
.byb-ma-legend .ma14 {
  color: #3498db;  /* blau */
}
.byb-ma-legend .ma28 {
  color: #9b59b6;  /* lila */
}

/* Chart + Price-Tag */
.byb-chart-wrap {
  position: relative;
}

.byb-price-tag {
  position: absolute;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  background: #000;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  color: #fff;
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  pointer-events: none;
}

.byb-price-tag div:first-child {
  color: #fff;
}
.byb-price-tag div:last-child {
  color: #ccc;
  font-size: 10px;
}

/* Volume-Legende */
.byb-volume-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-top: 4px;
}

.byb-volume-legend span {
  white-space: nowrap;
}

.byb-volume-legend #ct-volumeLabel {
  color: #2ecc71; /* grün */
}
.byb-volume-legend #ct-volumeMa5Label {
  color: #f1c40f; /* gelb */
}
.byb-volume-legend #ct-volumeMa10Label {
  color: #3498db; /* blau */
}

/* Bybit-Style: Price-Tag rechts im Chart ausblenden */
.byb-price-tag {
  display: none;
}

.chart-title-empire {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  letter-spacing: .5px;

  /* exakt dieselbe Gold-Optik wie .gold-link */
  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;
  margin-bottom: 8px;
}

.utc-time {
  margin-top: 4px;
  font-size: 13px;
  color: #f5c91a; /* dezentes Gold */
  font-weight: 600;
}

/* Kleine Legende unter Volume für RSI / MACD */
.byb-osc-legend {
  margin-top: 2px;
  padding: 0 4px 2px;
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
}

.byb-osc-legend span {
  color: #e0e0e0;
}

.byb-osc-legend #ct-rsiLabel {
  color: #f1c40f;   /* goldig */
}

.byb-osc-legend #ct-macdLabel {
  color: #9b59b6;   /* lila wie MA28 */
}

/* Standard-Höhe für Desktop / Tablet */
.byb-chart .chart-canvas {
  height: 520px;      /* vorher 360px – etwas mehr Raum */
}

/* Auf Smartphones extra viel Platz für alle Panels */
@media (max-width: 600px) {
  .byb-chart .chart-canvas {
    height: 520px;    /* kannst 480 / 520 / 560 testen */
  }

  /* Optional: außen ein bisschen mehr Luft unten */
  .byb-chart {
    padding-bottom: 14px;
  }
}


/* Aktiver Trade in der Teilnahme-Historie (LIVE) */
.tx-row-active {
  position: relative;
  border-radius: 6px;
  animation: txLivePulse 2.4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.75),
    0 0 14px rgba(212,175,55,0.45),
    0 0 26px rgba(212,175,55,0.25);
  background: radial-gradient(circle at center, rgba(212,175,55,0.12) 0, transparent 60%);
}

/* damit die untere Linie bei der aktiven Zeile auch golden wirkt */
.tx-row-active td {
  border-bottom-color: rgba(212,175,55,0.6) !important;
}

/* Puls-Animation für die LIVE-Zeile */
@keyframes txLivePulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(212,175,55,0.55),
      0 0 6px rgba(212,175,55,0.35),
      0 0 12px rgba(212,175,55,0.15);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,215,0,0.95),
      0 0 20px rgba(255,215,0,0.75),
      0 0 35px rgba(255,215,0,0.45);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(212,175,55,0.55),
      0 0 6px rgba(212,175,55,0.35),
      0 0 12px rgba(212,175,55,0.15);
  }
}

/* Kleines LIVE-Badge in Empire-Gold */
.tx-live-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #8b6f1d,
    #d4af37,
    #f8e473,
    #d4af37,
    #8b6f1d
  );
  background-size: 250% auto;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: goldShine 6s ease-in-out infinite; /* du hast goldShine schon */
  box-shadow: 0 0 6px rgba(212,175,55,0.5);
}

/* ================== Copytrading Panel (High-End Card) ================== */

.ct-card {
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Copytrade-Section: gleiche Breite wie Chart, aber ohne grauen Chart-Rahmen */
.section.chart-only.ct-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;             /* Rahmen/Innenabstand macht die Card selbst */
}

/* dezente Goldkante oben */
.ct-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

.ct-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ct-card-row:last-child {
  margin-bottom: 0;
}

/* Zeile 1: Titel & Status */
.ct-card-header {
  font-size: 13px;
}

.ct-card-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

/* Status-Pill (LIVE / Kein Signal / Loading) */
.ct-status-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.ct-status-live {
  background: linear-gradient(
    90deg,
    #8b6f1d,
    #d4af37,
    #f8e473,
    #d4af37,
    #8b6f1d
  );
  background-size: 250% auto;
  color: #000;
  animation: goldShine 6s ease-in-out infinite;
}

.ct-status-nosignal {
  background: rgba(120,120,120,0.2);
  color: #ccc;
}

.ct-status-loading {
  background: rgba(245,201,26,0.16);
  color: #f5c91a;
}

/* Zeile 2: Symbol & Tier */
.ct-card-symbol {
  align-items: flex-start;
}

.ct-symbol-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-symbol-main {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
}

.ct-symbol-sub {
  font-size: 11px;
  color: #bbb;
}

.ct-symbol-right {
  display: flex;
  align-items: center;
}

.ct-tier-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Tier-Farben */
.ct-tier-starter {
  background: rgba(52, 152, 219, 0.25); /* hellblau-transparent */
  border: 1px solid rgba(52, 152, 219, 0.8);
  color: #d6e9ff;
}

.ct-tier-bronze {
  background: rgba(205, 127, 50, 0.22);
  border: 1px solid #cd7f32;
  color: #ffd3a0;
}

.ct-tier-silver {
  background: rgba(189, 195, 199, 0.22);
  border: 1px solid #bdc3c7;
  color: #f5f7fa;
}

.ct-tier-gold {
  background: rgba(212,175,55,0.24);
  border: 1px solid #d4af37;
  color: #fff9d6;
}

/* Zeile 3: Zeitfenster, Countdown, Progress */
.ct-card-time {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ct-time-window {
  font-size: 13px;
  font-weight: 600;
  color: #f5c91a;
}

.ct-countdown-text {
  font-size: 11px;
  color: #f9e79f;
}

.ct-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 3px;
}

.ct-progress-inner {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6f1d, #ffd700, #16c784);
  transition: width 0.3s ease-out;
}

/* Zeile 4: Stats */
.ct-card-stats {
  gap: 10px;
}

.ct-stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-stat-label {
  font-size: 11px;
  color: #ccc;
}

.ct-stat-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-stat-amount {
  color: #16c784; /* wie byb-last-price */
}

.ct-stat-win {
  color: #f5d76e;
}

.ct-stat-note {
  font-size: 10px;
  color: #aaa;
}

/* Zeile 5: Button + Hinweise */
.ct-card-action {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.ct-join-btn {
  width: 100%;
  font-size: 14px;
}

.ct-join-btn.disabled,
.ct-join-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ct-join-hint {
  font-size: 10px;
  color: #aaa;
}

.ct-join-status {
  font-size: 11px;
}

/* Farben für Status-Text unten */
.ct-join-status.ok {
  color: #2ecc71;
}

.ct-join-status.error {
  color: #e74c3c;
}

/* Mobile: Card etwas kompakter */
@media (max-width: 600px) {
  .ct-card {
    padding: 10px 12px 9px;
  }

  .ct-symbol-main {
    font-size: 15px;
  }

  .ct-card-stats {
    flex-direction: row;
  }
}

/* ==== iOS Anti-Zoom Fix ==== */
input,
select,
textarea {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

/* ===== Teilnahme-Historie: Bybit-Style Filterzeile (hart überschrieben) ===== */

#panel-trading #ct-txFilterContainer .txFilterRow {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

/* Labels */
#panel-trading #ct-txFilterContainer label {
  min-width: 28px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #f5c91a !important;
}

/* Date-Inputs */
#panel-trading #ct-txFrom,
#panel-trading #ct-txTo {
  appearance: none !important;
  -webkit-appearance: none !important;

  flex: 1 1 0 !important;
  min-width: 0 !important;
  line-height: 1.1 !important;

  color: #ffffff !important;
  background: rgb(255, 255, 255,0.05) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

/* Kalender-Icon */
#panel-trading #ct-txFrom::-webkit-calendar-picker-indicator,
#panel-trading #ct-txTo::-webkit-calendar-picker-indicator {
  filter: invert(1) !important;
  opacity: 0.7 !important;
}

/* Filtern-Button */
#panel-trading #ct-txApply.btn-secondary,
#panel-trading #ct-txApply {
  height: 22px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  border-radius: 6px !important;
  background: linear-gradient(
    90deg,
    #b8860b,
    #ffd700,
    #b8860b
  ) !important;
  border: 1px solid rgba(0,0,0,0.85) !important;
  box-shadow: 0 0 10px rgba(212,175,55,0.45) !important;
  color: #000 !important;
  font-weight: 700 !important;
}

/* Date-Felder flacher */
#panel-trading #ct-txFrom,
#panel-trading #ct-txTo{
  height: 14px !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
}

/* ================== TEAM CENTER / BUSINESS PANEL ================== */
/* =======================================
   BUSINESS – EMPIRE TAB-BAR STYLE
   ======================================= */

.business-page .tabs,
.copytrade-page .tabs,
.biz-tabs {
  display: flex;
  gap: 6px;
  margin: 0.8rem 0 1.1rem;
  padding: 4px;
  border-radius: 999px;

  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.85) 70%
  );

  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 6px 16px rgba(0,0,0,0.7);
}

.business-page .tab-btn,
.copytrade-page .tab-btn,
.biz-tabs .tab-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;

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

.business-page .tab-btn:hover,
.biz-tabs .tab-btn:hover {
  color: #ffffff;
}

.business-page .tab-btn.active,
.biz-tabs .tab-btn.active {
  color: #000;

  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);

  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85),
    0 0 14px rgba(255,215,0,0.55);

  transform: translateY(-1px);
}

body.business-page .gold-title {
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
  color: #f5d76e !important;

  margin: 0.4rem 0 1.2rem !important;

  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18) !important;
}

/* Allgemeine Sektion im Team Center */
#panel-business .biz-section {
  margin-top: 0.75rem;
}

/* Titel-Abstand */
#panel-business .biz-section-title {
  margin-bottom: 0.5rem;
}

/* Grund-Card im Empire-Stil (ähnlich Copytrade-Card) */
.biz-card {
  position: relative;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  overflow: hidden;
  box-sizing: border-box;
}

/* dezente Außenkante */
.biz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

/* Headerzeile in Cards */
.biz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Untertitel im Referral-Block */
.biz-subtitle {
  margin: 10px 0 6px;
}

/* ================== Stats oben ================== */

.biz-stats-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.biz-stat-card {
  position: relative;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.11) 0,
    rgba(0,0,0,0.55) 85%
  );
  border-radius: 12px;
  padding: 10px 11px 9px;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 70px;
}

.biz-stat-label {
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.biz-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.biz-stat-note {
  font-size: 11px;
  color: #b9c0c8;
}

/* Level-Karte leicht hervorgehoben */
.biz-stat-card-level {
  background: radial-gradient(
    circle at top,
    rgba(111, 201, 255, 0.25) 0,
    rgba(0,0,0,0.65) 85%
  );
  box-shadow:
    0 0 0 1px rgba(111,201,255,0.28),
    0 8px 18px rgba(0,0,0,0.6);
}

/* Responsive: 2 Spalten auf Tablet, 1 Spalte auf Handy */
@media (max-width: 900px) {
  .biz-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .biz-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ================== Referral Card ================== */

.biz-card-ref {
  margin-top: 0;
}

.biz-copy-field {
  margin-top: 6px;
}

/* Sharing-Buttons in einer Reihe */
.biz-share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.biz-share-btn {
  flex: 1 1 0;
  min-width: 120px;
}

/* QR-Bereich */
.biz-qr-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#biz-qrCode {
  padding: 6px;
  border-radius: 10px;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.25) 0,
    rgba(0,0,0,0.9) 65%
  );
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.25),
    0 8px 20px rgba(0,0,0,0.75);
}

.biz-qr-hint {
  font-size: 11px;
  color: #b9c0c8;
  text-align: center;
  max-width: 360px;
}

/* ================== Tabelle & Suche ================== */

.biz-card-members {
  margin-top: 0;
}

.biz-search-wrap {
  margin: 8px 0 10px;
}

/* Suche – im Empire-Stil */
#biz-searchInput {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.9);
}

#biz-searchInput::placeholder {
  color: #aaaaaa;
}

/* Wrapper damit Tabelle sauber in der Card sitzt */
.biz-table-wrap {
  margin-top: 4px;
}

/* leichte Anpassungen, ohne deine vorhandenen Regeln zu stören */
#biz-memberTable thead th {
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 6px;
}

/* Mobile: Card-Abstände etwas straffer */
@media (max-width: 600px) {
  .biz-card {
    padding: 12px 12px 10px;
  }

  .biz-stat-value {
    font-size: 18px;
  }
}

/* Team-Center-Section: gleiche Breite wie Trading/Chart */
.section.chart-only.biz-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;           /* kein Innenabstand -> Card geht auf volle Breite */
}

/* ================== DASHBOARD ================== */
/* ===== Generic Dashboard Cards (gleichen Empire-Look wie biz-card/ct-card) ===== */
.dash-card {
  margin-left: 0.7rem;
  margin-right: 0.7rem;
  position: relative;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  box-sizing: border-box;
  margin-bottom: 0.8rem;
  overflow: visible;
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

/* Header in Cards */
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5d76e;
}

/* Kleine Label-Typo */
.dash-label,
.dash-label-small {
  font-size: 11px;
  color: #b9c0c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-label-small {
  font-size: 10px;
}

/* Value-Typo */
.dash-value {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

/* ===== Top Card (Status + Settings) ===== */
.dash-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* ===== User-Card (ID + E-Mail + KYC) ===== */
.dash-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-user-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.dash-user-col {
  flex: 1 1 0;
  min-width: 0;
}

.dash-email-row {
  flex-direction: column;
  align-items: flex-start;
}

.dash-email-row .dash-value {
  font-size: 14px;
}

/* KYC inline */
.dash-kyc-col {
  max-width: 50%;
}

.dash-kyc-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-kyc-link {
  font-size: 12px;
  color: #f5d76e;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Balance Hero Card ===== */
.dash-balance-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

.dash-balance-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

.dash-balance-note {
  margin-top: 2px;
  font-size: 11px;
  color: #b9c0c8;
}

/* ===== Performance Grid (4 Mini-Cards) ===== */
.dash-perf-wrapper {
  padding-bottom: 14px;
}

.dash-perf-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dash-perf-card {
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.75) 85%
  );
  border-radius: 10px;
  padding: 8px 9px 7px;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.22),
    0 4px 12px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-perf-label {
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-perf-amount {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.dash-perf-pct {
  font-size: 11px;
}

/* Nur falls profit-change noch nicht global gestylt ist:
   up/down/neutral greifen wir hier ab */
.dash-perf-pct.up {
  color: #16c784;
}
.dash-perf-pct.down {
  color: #e74c3c;
}
.dash-perf-pct.neutral {
  color: #b9c0c8;
}

/* ===== Equity Card ===== */
.dash-equity-card {
  padding-bottom: 14px;
}

.dash-equity-card .equity-chart-wrap {
  margin-top: 6px;
}

/* Mobile-Feintuning */
@media (max-width: 600px) {
  .container {
    padding: 0.8rem 0.7rem 1.2rem;
  }

  .dash-card {
    padding: 12px 12px 10px;
  }

  .dash-balance-value {
    font-size: 24px;
  }

  .dash-perf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================== DASHBOARD FULL WIDTH FIX ================== */
/* Gleiche Technik wie bei .biz-card-wrap -> volle Breite */
.section.chart-only.dash-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;   /* WICHTIG: sonst zieht es nicht voll */
}

/* Falls mobile noch einen Rand braucht */
@media (max-width: 600px) {
  .section.chart-only.dash-card-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Dashboard: Kontodaten – Standard links */
.dash-user-card .dash-user-row {
  text-align: left;
}

/* Nur die KYC-Spalte rechtsbündig */
.dash-kyc-col {
  text-align: right;
}

/* Inhalt in der KYC-Zeile nach rechts schieben */
.dash-kyc-inline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

/* Klickbare KYC-Badge (wenn unverifiziert) */
.dash-kyc-clickable {
  cursor: pointer;
}

/* Unverifizierte, klickbare KYC-Badge im Gold-Look */
.kyc-badge.kyc-unverified.dash-kyc-clickable {
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  color: #000;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(212,175,55,0.55);
  border: 1px solid rgba(0,0,0,0.85);
}

.top-actions {
  position: relative;   /* Referenz für das Menü */
  z-index: 20;
}

.settings-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #2a2a2a;
  min-width: 120px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
}

.settings-menu a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.settings-menu a:hover {
  background-color: #444;
}

/* wird vom JS gesetzt/entfernt */
.settings-menu.open {
  display: block;
}

/* Top-Card darf Inhalte (Settings-Menü) über den Rand zeigen */
.dash-card.dash-top-card {
  overflow: visible;
}

/* ==========================================
   DASHBOARD – Trade-Erfolgsübersicht (kompakt, ohne Header)
   ========================================== */

.dash-tradestats-card {
  padding-top: 10px;
  padding-bottom: 14px;
}

/* Container: Chart links, Stats rechts */
.trade-stats-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

/* --- Donutbereich --- */
.trade-stats-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Donut-Rahmen */
.trade-stats-chart-shell {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(
    circle at top,
    rgba(22,199,132,0.16) 0,
    rgba(0,0,0,0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 18px rgba(22,199,132,0.22),
    0 6px 14px rgba(0,0,0,0.75);
  overflow: hidden;
}

.trade-stats-chart-shell canvas {
  width: 100%;
  height: 100%;
}

.trade-stats-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.95) 0,
    rgba(0,0,0,0.6) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.trade-stats-chart-center span:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.trade-stats-chart-center span:last-child {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9c0c8;
}

/* Legende */
.trade-stats-legend {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #d7dde5;
}

.trade-stats-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trade-stats-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8);
}

.dot-win {
  background: linear-gradient(135deg, rgba(22,199,132,0.9), rgba(46,213,124,0.7));
}
.dot-loss {
  background: linear-gradient(135deg, rgba(231,76,60,0.9), rgba(255,118,97,0.7));
}

/* --- Rechts: Kennzahlen --- */
.trade-stats-metrics {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.trade-stats-label {
  font-size: 11px;
  color: #b9c0c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trade-stats-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.trade-stats-value.up {
  color: #16c784;
}
.trade-stats-value.down {
  color: #e74c3c;
}

.trade-stats-value.mixed {
  display: flex;
  gap: 3px;
}

.trade-stats-value.mixed .slash {
  color: #b9c0c8;
}

#tradeAvgWinPct {
  color: #16c784;
}
#tradeAvgLossPct {
  color: #e74c3c;
}

/* -------------------------
   RESPONSIVE (MOBIL)
   – Immer NEBENEINANDER
---------------------------- */
@media (max-width: 600px) {
  .trade-stats-body {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
  }

  .trade-stats-chart-wrap {
    flex: 0 0 120px;
  }

  .trade-stats-chart-shell {
    width: 120px;
    height: 120px;
  }

  .trade-stats-chart-shell canvas {
    width: 120px !important;
    height: 120px !important;
  }

  .trade-stats-chart-center span:first-child {
    font-size: 18px;
  }

  .trade-stats-metrics {
    gap: 4px;
  }

  .trade-stats-value {
    font-size: 13px;
  }
}

/* ===== Account & Sicherheit Card ===== */
.dash-settings-card {
  padding-bottom: 14px;
}

.dash-settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dash-settings-btn {
  flex: 1 1 48%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.45);
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.18) 0,
    rgba(0,0,0,0.8) 90%
  );
  color: #fdf6d0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.7),
    0 5px 12px rgba(0,0,0,0.6);
}

.dash-settings-btn:hover {
  filter: brightness(1.1);
}

.dash-settings-btn-danger {
  border-color: rgba(231,76,60,0.7);
  color: #ffe6e2;
}

/* Auf schmalen Geräten Buttons untereinander */
@media (max-width: 480px) {
  .dash-settings-btn {
    flex: 1 1 100%;
  }
}

/* ================== DASHBOARD – EMPIRE STATUS (BattlePass) ================== */
.dash-status-card {
  padding-top: 16px;
  padding-bottom: 14px;
}

/* Kopf: aktueller Rang + nächster Rang */
.dash-status-rank {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.dash-status-next {
  text-align: right;
}

.dash-status-next-label {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #f5d76e;
}

/* Progress-Balken */
.dash-status-progress-wrap {
  margin-top: 10px;
}

.dash-status-progress-bg {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 6px 14px rgba(0,0,0,0.9);
  overflow: hidden;
}

.dash-status-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6f1d, #ffd700, #16c784);
  box-shadow: 0 0 16px rgba(248,228,115,0.55);
  transform-origin: left center;
  transition: width 1s ease-out;
}

.dash-status-progress-meta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Missions / Quest-Liste */
.dash-status-quests {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-quest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #e0e4ea;
  opacity: 0;
  transform: translateY(4px);
  animation: dashQuestFadeIn 0.4s ease-out forwards;
}

.status-quest:nth-child(1) { animation-delay: 0.05s; }
.status-quest:nth-child(2) { animation-delay: 0.12s; }
.status-quest:nth-child(3) { animation-delay: 0.19s; }
.status-quest:nth-child(4) { animation-delay: 0.26s; }

.status-quest-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.status-quest-icon.done {
  background: rgba(22,199,132,0.18);
  border: 1px solid rgba(22,199,132,0.7);
  color: #2ecc71;
}

.status-quest-icon.todo {
  background: rgba(149,165,166,0.2);
  border: 1px solid rgba(149,165,166,0.5);
  color: #ecf0f1;
}

.status-quest-icon.locked {
  background: rgba(52,73,94,0.3);
  border: 1px solid rgba(52,73,94,0.7);
  color: #95a5a6;
}

.status-quest-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-quest-title {
  font-weight: 600;
  font-size: 12px;
}

.status-quest-progress {
  font-size: 11px;
  color: #b9c0c8;
}

/* Quest-Fadein */
@keyframes dashQuestFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold-Stats-Block */
.dash-status-gold-stats {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.dash-status-gold-title {
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dash-status-gold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.dash-status-gold-item {
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 10px rgba(0,0,0,0.7);
}

.dash-status-gold-label {
  font-size: 10px;
  color: #b9c0c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-status-gold-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* simple hidden-Klasse, falls noch nicht vorhanden */
.hidden {
  display: none !important;
}

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

/* =========================
   BANKING – EMPIRE STYLE
   ========================= */

/* Haupt-Layout */
body.banking-page .withdraw-container {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 0.7rem 1.5rem;
  box-sizing: border-box;
}

body.banking-page .gold-title {
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
  color: #f5d76e !important;

  margin: 0.4rem 0 1.2rem !important;

  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18) !important;
}

/* ===== Tabs oben (Einzahlung / Auszahlung / Transaktionen) ===== */
.banking-page .tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.9rem;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 6px 16px rgba(0,0,0,0.7);
}

.banking-page .tab-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

.banking-page .tab-btn:hover {
  color: #ffffff;
}

.banking-page .tab-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85),
    0 0 14px rgba(255,215,0,0.55);
  transform: translateY(-1px);
}

.banking-page .tab-panel {
  display: none;
  margin-top: 0.6rem;
}

.banking-page .tab-panel.active {
  display: block;
}

/* ===== Generische Banking-Karten (passen zu dash-card) ===== */

.banking-page .deposit-box,
.banking-page .card,
.banking-page .transfer-box,
.banking-page section.rules,
.banking-page .history-card {
  position: relative;
  margin-bottom: 0.8rem;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  box-sizing: border-box;
  overflow: hidden;
}

.banking-page .deposit-box::before,
.banking-page .card::before,
.banking-page .transfer-box::before,
.banking-page section.rules::before,
.banking-page .history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

/* kleine Titel in Karten */
.banking-page .card-head .title span,
.banking-page section.rules > h3,
.banking-page .balances h3,
.banking-page .history > h3,
.banking-page .gold-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5d76e;
}

/* ===== Einzahlung: Asset-Toggle + Layout ===== */

.banking-page .deposit-toggle,
.banking-page .withdraw-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.15) 0,
    rgba(0,0,0,0.85) 75%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.4),
    0 4px 12px rgba(0,0,0,0.7);
  margin-bottom: 0.7rem;
}

.banking-page .asset-btn {
  min-width: 70px;
  border-radius: 999px;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.banking-page .asset-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 0 10px rgba(255,215,0,0.55);
}

/* QR + Adresse nebeneinander */
.banking-page .deposit-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.banking-page .deposit-box .qr-col {
  flex: 0 0 auto;
}

.banking-page .deposit-box .addr-col {
  flex: 1 1 220px;
  min-width: 0;
}

.banking-page .addr-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9c0c8;
  margin-bottom: 6px;
}

.banking-page .addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.banking-page .addr-code {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fdfdfd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}

.banking-page .copy-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.75);
  background: radial-gradient(circle at top, rgba(255,215,0,0.25) 0, rgba(0,0,0,0.85) 75%);
  color: #f5d76e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 4px 10px rgba(0,0,0,0.7);
  transition: filter 0.15s ease, transform 0.08s ease;
}

.banking-page .copy-btn:hover {
  filter: brightness(1.1);
}

.banking-page .copy-btn:active {
  transform: scale(0.96);
}

.banking-page .addr-state {
  font-size: 11px;
  color: #b9c0c8;
}

/* ===== Hinweise (Einzahlung) ===== */

.banking-page section.rules ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  font-size: 12px;
  color: #e0e4ea;
}

.banking-page section.rules li {
  margin-bottom: 3px;
}

/* ===== Auszahlung: Address-Card / Fee-Box / Badges ===== */

.banking-page .address-card .card-head,
.banking-page .history-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.banking-page .address-card .helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.banking-page .muted {
  font-size: 11px;
  color: #b9c0c8;
}

.banking-page .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* kleine Buttons */
.banking-page .btn-compact {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
}

/* Chips (z. B. Max) */
.banking-page .btn-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255,215,0,0.6);
  background: rgba(0,0,0,0.7);
  color: #f5d76e;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.banking-page .btn-chip:hover {
  background: rgba(255,215,0,0.12);
}

.banking-page .balance-line {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #e0e4ea;
}

/* Betrag-Feld */
.banking-page .amount-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.7);
  margin-bottom: 6px;
}

.banking-page #w-amount {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 10px;
  color: #fff;
  font-size: 14px;
}

.banking-page #w-amount:focus {
  outline: none;
}

.banking-page .amount-suffix {
  min-width: 56px;
  padding: 9px 10px;
  font-size: 12px;
  text-align: center;
  color: #f5d76e;
  background: linear-gradient(90deg, rgba(212,175,55,0.24), rgba(0,0,0,0.85));
}

/* Fee-Box */
.banking-page .fee-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(255,215,0,0.18) 0, rgba(0,0,0,0.85) 75%);
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.75),
    0 4px 10px rgba(0,0,0,0.6);
  font-size: 12px;
  color: #fdfdfd;
}

.banking-page .fee-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.banking-page .fee-row.total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255,255,255,0.25);
}

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

.banking-page .pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.banking-page .pill-warn {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.6);
  color: #ffb3a9;
}

/* AGB Checkbox */
.banking-page .agb-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 8px;
  font-size: 12px;
  color: #e0e4ea;
}

/* Fehler / Form-Msg */
.banking-page .error-msg,
.banking-page .form-msg {
  font-size: 11px;
  margin-top: 4px;
}

.banking-page .error-msg {
  color: #ff6b6b;
}

/* ===== Auszahl-Historie & Tabellen ===== */

.banking-page .history {
  margin-top: 10px;
}

.banking-page .history table,
.banking-page .w-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #e0e4ea;
}

.banking-page .history th,
.banking-page .history td,
.banking-page .w-history-table th,
.banking-page .w-history-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.banking-page .history th,
.banking-page .w-history-table th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b9c0c8;
}

.banking-page .history td.right,
.banking-page .w-history-table td.right,
.banking-page .history th.right,
.banking-page .w-history-table th.right {
  text-align: right;
}

/* Pagination Buttons in Auszahl-History */
.banking-page #w-hPrev,
.banking-page #w-hNext {
  min-width: 0;
}

/* ===== Transaktionen-Panel ===== */

.banking-page .balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 0.8rem;
}

.banking-page .balances .card {
  padding-bottom: 10px;
}

.banking-page .balances .amt {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* Transferbox (Umbuchen) */
.banking-page .transfer-box {
  margin-bottom: 1rem;
}

.banking-page .transfer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.banking-page #t-amount {
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.6);
  color: #fff;
}

/* Accordion für Regeln */
.banking-page .accordion {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  background: rgba(0,0,0,0.75);
}

.banking-page .acc-head {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  font-size: 12px;
  border: none;
  background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(0,0,0,0.9));
  color: #f5d76e;
  cursor: pointer;
}

.banking-page .acc-body {
  padding: 8px 10px 8px;
  font-size: 12px;
  color: #e0e4ea;
  background: transparent;
}

/* Transfer-Messages */
.banking-page #t-msg {
  margin-top: 8px;
  font-size: 11px;
}

/* ===== Toast (Adresse kopiert) ===== */

.banking-page .toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(20px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.88);
  border: 1px solid rgba(255,215,0,0.6);
  color: #f5d76e;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3000;
}

.banking-page .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .banking-page .deposit-box {
    flex-direction: column;
    align-items: center;
  }

  .banking-page .deposit-box .addr-col {
    width: 100%;
  }

  .banking-page .balances {
    grid-template-columns: 1fr;
  }

  .banking-page .tabs {
    padding: 3px;
  }
}
/* ===== Fix: Input-Felder Textfarbe Weiß ===== */
/* Auszahlung Betrag */
#w-amount {
  color: #ffffff !important;
}
/* Transfer Betrag */
#t-amount {
  color: #ffffff !important;
}
/* Optional: auch Placeholder heller machen */
#w-amount::placeholder,
#t-amount::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

/* Calculator Guthaben-Feld: niemals Farbe ändern */
#calcBalance,
#calcBalance:hover,
#calcBalance:focus,
#calcBalance:active {
  background: rgba(17,17,17,0.96) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}
/* ===== Calculator: Textfarbe Weiß ===== */
#calcBalance,
#calcBalance::placeholder {
  color: #ffffff !important;
}

#calcBalance::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

/* ===================================== */
/*    LOGIN / REGISTRIEREN (index.html)  */
/* ===================================== */

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

/* Ticker/Footer auf Login-Seite ausblenden */
body.login-page .ticker,
body.login-page .footer-nav,
body.login-page .spacer {
  display: none !important;
}

/* Container auf Login-Seite */
body.login-page .container {
  max-width: 420px;
  margin: 40px auto 40px;
  padding: 0 16px 32px;
  background: transparent !important;
  box-shadow: none !important;
}

/* HERO / LOGO-BEREICH */
body.login-page .logo-container.hero {
  text-align: center;
  margin: 0 0 18px !important;
}

body.login-page .hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.8);
  margin-bottom: 4px;
}

body.login-page .hero-title {
  font-size: 1.6rem;
  margin: 2px 0 6px;
}

body.login-page .hero-subline {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #d0d6e2;
}

body.login-page .logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 8px 0 6px;
}

/* goldene Linie unter dem Claim */
:root {
  --gold: #f6c34f;
}

.goldline {
  display: block;
  width: 100%;
  height: 3px;
  margin: 10px 0 10px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold, #f6c34f),
    transparent
  );
  opacity: 0.7;
}

/* Sprachumschalter als kleine Pill */
body.login-page .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 215, 110, 0.3);
  margin-top: 6px;
  font-size: 0.85rem;
}

body.login-page .lang-switch .separator {
  opacity: 0.5;
}

body.login-page .lang-option {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.18s ease, color 0.18s ease;
}

body.login-page .lang-option.active {
  opacity: 1;
  color: #f5d76e;
}

/* AUTH-CARD im Empire-Stil (orientiert an Banking-Karten) */
body.login-page .auth-card {
  position: relative;
  margin-top: 6px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: radial-gradient(
    circle at top,
    rgba(212, 175, 55, 0.18) 0,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
  overflow: hidden;
}

body.login-page .auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}

/* Tabs oben (Anmelden / Registrieren) – ähnlich Banking-Tabs */
body.login-page .auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.8rem;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(
    circle at top,
    rgba(255, 215, 0, 0.12) 0,
    rgba(0, 0, 0, 0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.7);
}

body.login-page .auth-tab-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;

  /* ⬇️ WICHTIG: globales margin der Buttons neutralisieren */
  margin: 0 !important;
}

body.login-page .auth-tab-btn:hover {
  color: #ffffff;
}

body.login-page .auth-tab-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(255, 215, 0, 0.55);
  transform: translateY(-1px);
}

/* Headline/Subline im Card-Body */
body.login-page .auth-copy {
  margin-bottom: 10px;
}

body.login-page .auth-headline {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5d76e;
}

body.login-page .auth-subline {
  margin: 0;
  font-size: 0.92rem;
  color: #d0d6e2;
}

/* Formulare in der Card */
body.login-page .auth-panel {
  margin: 8px 0 0;
}

/* Eingabefelder & Buttons auf Login-Seite */
body.login-page input,
body.login-page button {
  width: 100%;
  max-width: none;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
}

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

/* readonly für Invite-ID visuell leicht anders */
body.login-page #inviteCode.readonly {
  background: #181818;
  border-color: rgba(245, 215, 110, 0.6);
}

/* Platz fürs Auge */
body.login-page .password-wrapper {
  position: relative;
}

body.login-page .password-wrapper input {
  padding-right: 40px;
}

body.login-page .password-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
}

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

/* Feld-Hinweise (Passwort, Invite, Resend etc.) */
body.login-page .field-hint {
  display: block;
  margin: -6px 0 6px;
  font-size: 0.78rem;
  color: #c9d0dd;
}

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

body.login-page .agb-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(1px);
}

body.login-page .agb-row .agb-text {
  display: flex;
  align-items: center;
  line-height: 1.1;
  font-size: 0.88rem;
}

/* Link-Button in AGB-Text NICHT wie normaler Button */
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;
  text-decoration: underline;
}

/* kompletter Satz gold glänzend (falls du goldShine schon definiert hast) */
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;
}

/* Login-Meta-Zeile (Remember + Passwort vergessen) */
body.login-page .login-meta {
  width: 100%;
  max-width: none;
  margin: -6px 0 12px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.login-page .login-meta > * {
  margin: 0 !important;
}

/* Remember-Checkbox */
body.login-page .login-meta label.remember {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.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;
}

/* "Passwort vergessen?" als dezenter Textlink */
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: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

/* Dünner Toggle-Link (z.B. "Zurück zum Login") */
body.login-page .toggle-link.btn-thin {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  font-size: 0.92rem;
  line-height: 1.1;
}

/* Reset-Form interne H1 ausblenden – wir nutzen authHeadline */
body.login-page #resetForm h1 {
  display: none;
}

body.login-page #resetForm #resetInfo {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #d0d6e2;
}

/* CodeSection etwas eingerückt */
body.login-page .code-section {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Micro-Animation beim Formwechsel */
body.login-page .auth-panel.anim-in {
  animation: authPanelIn 0.22s ease-out;
}

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

/* TRUST-BLOCK unten */
body.login-page .auth-trust {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #c4cad5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

/* etwas kompakter auf sehr kleinen Screens */
@media (max-width: 480px) {
  body.login-page .container {
    margin-top: 24px;
  }
  body.login-page .hero-title {
    font-size: 1.4rem;
  }
  body.login-page .auth-card {
    padding: 16px 12px 14px;
  }
}

/* ===== Login: Logo mittig & größer ===== */
body.login-page .logo-container {
  /* mitten auf der Seite, alles zentriert */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;
  margin: 18px auto 10px !important;
}

/* Bild selbst etwas größer und sauber mittig */
body.login-page .logo-container .logo,
body.login-page .logo-container img {
  display: block;
  width: 80%;
  max-width: 280px;   /* nach Geschmack anpassen: 260–320 */
  height: auto;
  margin: 8px auto 4px;
}

/* ===== Login: Sprach-Switch als mittige Pille ===== */
body.login-page .lang-switch {
  margin: 6px auto 0;               /* zentriert unter dem Logo */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 3px 10px;
  border-radius: 999px;

  background: radial-gradient(

    circle at top,
    rgba(255,215,0,0.14) 0,
    rgba(0,0,0,0.9) 60%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 4px 10px rgba(0,0,0,0.7);
}

/* Buttons innen etwas kompakter */
body.login-page .lang-switch .lang-option {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
}

/* Separator in der Mitte schön schmal */
body.login-page .lang-switch .separator {
  margin: 0 6px;
  opacity: 0.7;
}

/* ===========================
   AKTIONEN – Business Look
   =========================== */

/* Titel "Aktionen" so wie Business-/Banking-Titel */
body.copytrade-page .gold-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f5d76e;

  margin: 0.4rem 0 1.2rem;

  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18);
}

/* Hauptcontainer wie bei Business/Banking-Karten */
body.copytrade-page .deposit-container {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 0.7rem 1.5rem;
  box-sizing: border-box;
}

/* Karten in Aktionen im gleichen Empire-Card-Look wie .ct-card */
body.copytrade-page .card {
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* feine innere Gold-Kontur wie Business */
body.copytrade-page .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

/* ===== Active Tab (Business + Copytrade + Aktionen) ===== */
.business-page .tab-btn.active,
.copytrade-page .tab-btn.active,
.biz-tabs .tab-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85),
    0 0 14px rgba(255,215,0,0.55);
  transform: translateY(-1px);
}

/* ===== KYC Textfelder: feste Farbe & keine Effekte ===== */
#kycFullName,
#kycDob,
#kycCountry,
#kycFullName:hover,
#kycDob:hover,
#kycCountry:hover,
#kycFullName:focus,
#kycDob:focus,
#kycCountry:focus,
#kycFullName:active,
#kycDob:active,
#kycCountry:active {
  background: rgba(17,17,17,0.96) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  color: #ffffff !important;
}

/* Placeholder wie beim Calculator */
#kycFullName::placeholder,
#kycDob::placeholder,
#kycCountry::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

/* Mobile-/Safari-Absicherung */
#kycFullName,
#kycDob,
#kycCountry {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}












