@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');
/* ULTRA-DUNKLES FARBSCHEMA */
:root {
  --ultra-bg: #0a0a0a;
  --ultra-bg-secondary: #111111;
  --ultra-bg-tertiary: #1a1a1a;
  --ultra-bg-quaternary: #222222;
  --ultra-bg-hover: #2a2a2a;
  --ultra-text: #e0e0e0;
  --ultra-text-muted: #666666;
  --ultra-text-link: #00b0f4;
  --ultra-success: #3ba55c;
  --ultra-warning: #faa61a;
  --ultra-danger: #ed4245;
  --accent-gold: #E6C84A;
}
body {
  font-family: 'Roboto Mono', monospace;
  color: var(--ultra-text);
  background-color: var(--ultra-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
/* Partikel Hintergrund - Ultra-dunkel */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ultra-bg) 0%, #050505 100%);
}
.particle {
  position: absolute;
  background-color: var(--accent-gold);
  border-radius: 50%;
  opacity: 0.10;
  animation: float 6s ease-in-out infinite;
}
.particle.variant-1 {
  background-color: var(--accent-gold);
  animation-duration: 8s;
  opacity: 0.08;
}
.particle.variant-2 {
  background-color: var(--ultra-success);
  animation-duration: 10s;
  opacity: 0.06;
}
.particle.variant-3 {
  background-color: var(--ultra-text);
  animation-duration: 12s;
  opacity: 0.05;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  50% {
    transform: translateY(-30px) translateX(15px) rotate(180deg);
    opacity: 0.2;
  }
  90% {
    opacity: 0.06;
  }
}
/* Container */
.container {
  max-width: 1400px;
  width: 98%;
  margin: 15px auto;
  padding: 20px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  min-height: 80vh;
  position: relative;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  box-sizing: border-box;
}
/* ULTRA-DUNKLE HEADER-LEISTE */
.header-bar {
  width: 100%;
  background: var(--ultra-bg-tertiary);
  border-bottom: 2px solid var(--ultra-bg-quaternary);
  padding: 15px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}
.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  gap: 20px;
}
/* Linke Sektion (mit unauffälligem Logout) */
.left-section {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: start;
}
.logout-btn {
  padding: 6px 10px;
  background: var(--ultra-bg-quaternary);
  border: none;
  border-radius: 4px;
  color: var(--ultra-text-muted);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
  box-shadow: none;
  margin-right: 10px;
}
.logout-btn:hover {
  opacity: 1;
  background: var(--ultra-danger);
  color: var(--ultra-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
/* Mittlere Sektion */
.center-section {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}
.main-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
  margin: 0;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #FFD700 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.main-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border-radius: 2px;
}
/* Rechte Sektion */
.right-section {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.itsh-logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--ultra-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--ultra-bg-tertiary);
}
.itsh-logo-wrapper:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--ultra-bg-quaternary);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
  border-color: rgba(230, 200, 74, 0.5);
}
.itsh-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 10px;
}
.donate-link {
  text-decoration: none;
}
.itsh-logo-wrapper:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
  border-color: rgba(250, 166, 26, 0.15);
}
/* Status für JS Updates */
.error {
  color: var(--ultra-danger) !important;
  background: linear-gradient(135deg, var(--ultra-danger) 0%, #ff6b6b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.success {
  color: var(--ultra-success) !important;
  background: linear-gradient(135deg, var(--ultra-success) 0%, #66bb6a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
/* FILTER BUTTONS SEKTION */
.filter-buttons-section {
  width: 100%;
  margin-bottom: 15px;
}
.filter-button-wrapper {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}
.filter-button {
  flex: 1;
  height: 28px;
  background: var(--ultra-bg-quaternary);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--ultra-bg-tertiary);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.filter-button:hover {
  background: rgba(230, 200, 74, 0.15);
  border-color: rgba(230, 200, 74, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.filter-button.active {
  background: rgba(230, 200, 74, 0.25);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(230, 200, 74, 0.3);
}
.filter-button span {
  font-size: 0.85em;
  color: var(--ultra-text);
  font-weight: 600;
}
.filter-button.active span {
  color: var(--accent-gold);
}
.filter-info-compact {
  text-align: center;
  padding: 4px 0;
}
.filter-info-compact span {
  font-size: 0.8em;
  color: var(--ultra-text-muted);
  font-style: italic;
}
/* FILTER DROPDOWN MODAL */
.filter-dropdown-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}
.filter-dropdown-content {
  background: var(--ultra-bg-secondary);
  margin: 15% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  border: 2px solid var(--ultra-bg-quaternary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: filterModalFadeIn 0.3s ease;
}
@keyframes filterModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.filter-dropdown-header {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #D1B33F 100%);
  padding: 12px 18px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ultra-bg);
}
.filter-dropdown-header h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1em;
}
.filter-close {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--ultra-bg);
  transition: color 0.3s ease;
}
.filter-close:hover {
  color: var(--ultra-danger);
}
.filter-dropdown-body {
  padding: 20px;
  color: var(--ultra-text);
}
.filter-options {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 15px;
}
.filter-option {
  padding: 12px 15px;
  margin: 6px 0;
  background: var(--ultra-bg-quaternary);
  border: 1px solid var(--ultra-bg-tertiary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  -webkit-tap-highlight-color: transparent;
}
.filter-option:hover {
  background: rgba(230, 200, 74, 0.15);
  border-color: rgba(230, 200, 74, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.filter-option.selected {
  background: rgba(230, 200, 74, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(230, 200, 74, 0.3);
}
.filter-actions {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--ultra-bg-tertiary);
}
.reset-filter-btn {
  background: var(--ultra-warning);
  border: none;
  color: var(--ultra-bg);
  padding: 10px 25px;
  border-radius: 6px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.reset-filter-btn:hover {
  background: #e0941a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
/* STATISTIK-SEKTION */
.statistics-section {
  margin-bottom: 25px;
  background: var(--ultra-bg-tertiary);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--ultra-bg-quaternary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  position: relative;
}
.stats-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.stat-card {
  background: var(--ultra-bg-quaternary);
  border-radius: 8px;
  padding: 10px 20px;
  text-align: center;
  border: 1px solid var(--ultra-bg-tertiary);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 200, 74, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.stat-label {
  font-size: 0.75em;
  color: var(--ultra-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}
/* Add Trade Section */
.add-trade-section {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.add-trade-bar {
  flex: 1;
  height: 24px;
  background: var(--ultra-bg);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--ultra-bg-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.add-trade-bar:hover {
  background: rgba(230, 200, 74, 0.15);
  border-color: rgba(230, 200, 74, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.add-trade-bar.disabled {
  background: var(--ultra-bg);
  cursor: not-allowed;
  opacity: 0.5;
}
.add-trade-bar.disabled:hover {
  background: var(--ultra-bg);
}
.add-trade-bar span {
  font-size: 0.8em;
  color: var(--ultra-text-muted);
  font-weight: 500;
}
/* Trade Cards Container */
#tradesContainer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 1400px;
  align-items: center;
}
/* Trade Card Wrapper - Ultra-dunkel */
.trade-card-wrapper {
  perspective: 1000px;
  height: 160px;
  width: 100%;
  max-width: 1350px;
  overflow: visible;
  box-sizing: border-box;
}
.trade-card {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.trade-front, .trade-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  background: var(--ultra-bg-tertiary);
  border: 2px solid var(--ultra-bg-quaternary);
  backdrop-filter: blur(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.trade-front {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.trade-back {
  opacity: 0;
  transform: scale(0.95);
  display: flex;
  flex-direction: column;
  padding: 15px;
  z-index: 1;
  position: relative;
}
.trade-card.flipped .trade-front {
  opacity: 0;
  transform: scale(0.95);
  z-index: 1;
}
.trade-card.flipped .trade-back {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* Notes Section - Ultra-dunkel */
.notes-section {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.notes-back-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ultra-bg-quaternary);
  border: none;
  color: var(--ultra-text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.notes-back-btn:hover {
  background: var(--accent-gold);
  color: var(--ultra-bg);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.notes-textarea {
  width: 100%;
  height: calc(100% - 50px); /* Angepasst für eine link-bar-Zeile */
  background: var(--ultra-bg-quaternary);
  border: 1px solid var(--ultra-bg-tertiary);
  border-radius: 4px;
  color: var(--ultra-text);
  font-family: inherit;
  font-size: 0.9em;
  padding: 10px;
  resize: none;
  transition: border 0.2s ease;
  margin-top: 35px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.notes-textarea:hover {
  border-color: rgba(230, 200, 74, 0.4);
}
.notes-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(230, 200, 74, 0.5);
}
/* Link Bar Container */
.link-bar-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--ultra-bg-tertiary);
  border-top: 1px solid var(--ultra-bg-quaternary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}
/* Link Bar */
.link-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.link-input {
  flex: 1;
  background: var(--ultra-bg-quaternary);
  border: 1px solid var(--ultra-bg-tertiary);
  border-radius: 4px;
  color: var(--ultra-text);
  font-family: inherit;
  font-size: 0.8em;
  padding: 6px 8px;
  transition: border-color 0.2s ease;
  height: 24px;
  box-sizing: border-box;
}
.link-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(230, 200, 74, 0.5);
}
.link-input:placeholder-shown {
  color: var(--ultra-text-muted);
}
.link-btn {
  background: var(--ultra-success);
  border: none;
  color: var(--ultra-bg);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.link-btn:hover {
  background: #339954;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.link-btn.edit-btn {
  background: var(--ultra-warning);
  margin-left: 4px;
}
.link-btn.edit-btn:hover {
  background: #e0941a;
}
.link-display {
  flex: 1;
  color: var(--ultra-text-link);
  font-size: 0.8em;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-display:hover {
  color: #4dabf7;
}
/* Progress Overlay */
.progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.trade-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  box-sizing: border-box;
}
/* TP Overlays - Ultra-dunkel angepasst */
.trade-front.overlay-stop-loss .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(237, 66, 69, 0.03) 0%,
    rgba(237, 66, 69, 0.05) 20%,
    rgba(237, 66, 69, 0.08) 40%,
    rgba(237, 66, 69, 0.1) 60%,
    rgba(237, 66, 69, 0.08) 80%,
    rgba(237, 66, 69, 0.05) 100%);
  box-shadow: inset 0 0 15px rgba(237, 66, 69, 0.03);
}
.trade-front.overlay-tp-one-third .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.08) 0%,
    rgba(59, 165, 92, 0.12) 15%,
    rgba(59, 165, 92, 0.15) 25%,
    rgba(59, 165, 92, 0.12) 30%,
    rgba(59, 165, 92, 0.08) 33%,
    rgba(59, 165, 92, 0.05) 35%,
    rgba(59, 165, 92, 0.03) 37%,
    transparent 40%,
    transparent 100%);
  box-shadow: inset 0 0 12px rgba(59, 165, 92, 0.05);
}
.trade-front.overlay-tp-two-thirds .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 15%,
    rgba(59, 165, 92, 0.1) 30%,
    rgba(59, 165, 92, 0.1) 50%,
    rgba(59, 165, 92, 0.08) 60%,
    rgba(59, 165, 92, 0.05) 64%,
    rgba(59, 165, 92, 0.02) 66%,
    rgba(59, 165, 92, 0.01) 68%,
    transparent 70%,
    transparent 100%);
  box-shadow: inset 0 0 15px rgba(59, 165, 92, 0.04);
}
.trade-front.overlay-tp-full .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 20%,
    rgba(59, 165, 92, 0.1) 40%,
    rgba(59, 165, 92, 0.1) 60%,
    rgba(59, 165, 92, 0.08) 80%,
    rgba(59, 165, 92, 0.05) 100%);
  box-shadow: inset 0 0 20px rgba(59, 165, 92, 0.05);
}
.trade-front.overlay-mixed-tp1-sl .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 15%,
    rgba(59, 165, 92, 0.1) 25%,
    rgba(59, 165, 92, 0.08) 30%,
    rgba(59, 165, 92, 0.05) 33%,
    rgba(59, 165, 92, 0.02) 35%,
    rgba(200, 120, 120, 0.02) 37%,
    rgba(237, 66, 69, 0.03) 39%,
    rgba(237, 66, 69, 0.05) 42%,
    rgba(237, 66, 69, 0.08) 60%,
    rgba(237, 66, 69, 0.1) 80%,
    rgba(237, 66, 69, 0.05) 100%);
  box-shadow: inset 0 0 15px rgba(150, 130, 130, 0.03);
}
.trade-front.overlay-mixed-tp2-sl .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 20%,
    rgba(59, 165, 92, 0.1) 40%,
    rgba(59, 165, 92, 0.1) 55%,
    rgba(59, 165, 92, 0.08) 62%,
    rgba(59, 165, 92, 0.05) 66%,
    rgba(59, 165, 92, 0.02) 68%,
    rgba(200, 120, 120, 0.02) 70%,
    rgba(237, 66, 69, 0.03) 72%,
    rgba(237, 66, 69, 0.05) 75%,
    rgba(237, 66, 69, 0.08) 85%,
    rgba(237, 66, 69, 0.1) 95%,
    rgba(237, 66, 69, 0.05) 100%);
  box-shadow: inset 0 0 15px rgba(150, 130, 130, 0.04);
}
.trade-front.overlay-mixed-tp3-sl .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 25%,
    rgba(59, 165, 92, 0.1) 50%,
    rgba(59, 165, 92, 0.1) 75%,
    rgba(59, 165, 92, 0.08) 82%,
    rgba(59, 165, 92, 0.05) 85%,
    rgba(59, 165, 92, 0.02) 87%,
    rgba(200, 120, 120, 0.02) 89%,
    rgba(237, 66, 69, 0.03) 91%,
    rgba(237, 66, 69, 0.05) 93%,
    rgba(237, 66, 69, 0.08) 96%,
    rgba(237, 66, 69, 0.1) 98%,
    rgba(237, 66, 69, 0.05) 100%);
  box-shadow: inset 0 0 15px rgba(150, 130, 130, 0.03);
}
.trade-front.overlay-net-pnl-positive .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(59, 165, 92, 0.05) 0%,
    rgba(59, 165, 92, 0.08) 20%,
    rgba(59, 165, 92, 0.1) 40%,
    rgba(59, 165, 92, 0.1) 60%,
    rgba(59, 165, 92, 0.08) 80%,
    rgba(59, 165, 92, 0.05) 100%);
  box-shadow: inset 0 0 20px rgba(59, 165, 92, 0.05);
}
.trade-front.overlay-net-pnl-negative .progress-overlay {
  opacity: 1;
  background: linear-gradient(to right,
    rgba(237, 66, 69, 0.05) 0%,
    rgba(237, 66, 69, 0.08) 20%,
    rgba(237, 66, 69, 0.1) 40%,
    rgba(237, 66, 69, 0.1) 60%,
    rgba(237, 66, 69, 0.08) 80%,
    rgba(237, 66, 69, 0.05) 100%);
  box-shadow: inset 0 0 20px rgba(237, 66, 69, 0.05);
}
.trade-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.coin-section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  flex-shrink: 0;
}
.coin-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}
.coin-details h3 {
  margin: 0;
  color: var(--ultra-text);
  font-size: 1.1em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.coin-details p {
  margin: 0;
  color: var(--ultra-text-muted);
  font-size: 0.85em;
}
/* 11 Spalten - Ultra-dunkel */
.trade-metrics {
  display: grid;
  grid-template-columns: repeat(11, minmax(75px, 1fr));
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.metric {
  text-align: center;
  min-width: 75px;
}
.metric-label {
  font-size: 0.7em;
  color: var(--ultra-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.1;
}
.metric-value {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--ultra-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}
.side-dropdown, .status-dropdown {
  flex: 1;
  height: 28px;
  background: var(--ultra-bg-quaternary);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--ultra-bg-tertiary);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  font-size: 0.85em;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
  padding: 0 20px;
  color: var(--ultra-text);
  text-align: center;
  line-height: 26px;
  box-sizing: border-box;
}
.side-dropdown::after, .status-dropdown::after {
  content: '▼';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--ultra-text-muted);
  transition: color 0.3s ease;
}
.side-dropdown:hover, .status-dropdown:hover {
  background: rgba(230, 200, 74, 0.15);
  border-color: rgba(230, 200, 74, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.side-dropdown:focus, .status-dropdown:focus {
  outline: none;
  border-color: var(--ultra-bg-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.side-dropdown:not([value=""]), .status-dropdown:not([value=""]) {
  background: var(--ultra-bg-quaternary);
  border-color: var(--ultra-bg-tertiary);
}
.side-dropdown:not([value=""])::after, .status-dropdown:not([value=""])::after {
  color: var(--ultra-text-muted);
}
.side-dropdown.side-long, .status-dropdown.status-filled {
  color: var(--ultra-success);
}
.side-dropdown.side-short, .status-dropdown.status-cancelled {
  color: var(--ultra-danger);
}
.status-dropdown.status-partial {
  color: var(--ultra-warning);
}
.status-dropdown.status-new, .status-dropdown.status-pending {
  color: var(--ultra-text-link);
}
.side-dropdown option, .status-dropdown option {
  background: var(--ultra-bg-quaternary);
  color: var(--ultra-text);
  text-align: center;
}
.sl-info {
  color: var(--ultra-text-muted) !important;
}
.tp-value {
  color: var(--ultra-success);
}
.sl-value {
  color: var(--ultra-danger);
}
.time-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 6px 0;
  position: relative;
}
.trade-time {
  font-size: 0.8em;
  color: var(--ultra-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  cursor: pointer;
}
.note-indicator {
  width: 6px;
  height: 6px;
  background: var(--ultra-warning);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
}
/* Delete Button - Ultra-dunkel */
.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ultra-bg-quaternary);
  border: none;
  color: var(--ultra-text-muted);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: all 0.3s ease;
  z-index: 10;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.delete-btn:hover {
  background: var(--ultra-danger);
  color: white;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.delete-btn.disabled {
  opacity: 0.1 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
/* Trade Card Wrapper - Hover zeigt Delete Button */
.trade-card-wrapper:hover .delete-btn {
  opacity: 0.8;
}
.trade-card-wrapper:hover .delete-btn:hover {
  opacity: 1;
}
.editable {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.editable:hover {
  background-color: rgba(230, 200, 74, 0.08);
  border: 1px solid rgba(230, 200, 74, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.editing {
  padding: 2px !important;
}
.edit-input {
  background: rgba(42, 42, 42, 0.9);
  border: 2px solid var(--accent-gold);
  border-radius: 4px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  width: 100%;
  padding: 2px 4px;
  text-align: center;
}
.edit-input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(230, 200, 74, 0.5);
}
/* Datenschutz Page Styles */
.datenschutz-container {
  max-width: 800px;
  width: 90%;
  padding: 30px;
  margin: 50px auto;
  background: var(--ultra-bg-tertiary);
  border-radius: 15px;
  border: 2px solid var(--ultra-bg-quaternary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.datenschutz-container h1 {
  color: var(--accent-gold);
  text-align: center;
}
.datenschutz-container p {
  font-size: 0.95em;
  line-height: 1.5;
}
/* Form Container for Login, Register, Forgot Password */
.form-container {
  max-width: 450px;
  width: 90%;
  padding: 30px;
  background: var(--ultra-bg-tertiary);
  border-radius: 15px;
  border: 2px solid var(--ultra-bg-quaternary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.5s ease-in;
  text-align: center;
  margin: 50px auto;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-title {
  font-size: 1.8em;
  color: #fff; /* Weiße Farbe für die Überschrift */
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
  padding: 0;
}
.form-group label {
  font-size: 0.95em;
  color: var(--ultra-text-muted);
  margin-bottom: 5px;
  display: block;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--ultra-bg-tertiary);
  border-radius: 10px;
  background: var(--ultra-bg-quaternary);
  color: var(--ultra-text);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(230, 200, 74, 0.6);
}
.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--ultra-success);
  border: none;
  border-radius: 10px;
  color: var(--ultra-bg);
  font-family: 'Roboto Mono', monospace;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.submit-btn:hover {
  background: #339954;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}
.submit-btn:disabled {
  background: var(--ultra-bg-quaternary);
  cursor: not-allowed;
  box-shadow: none;
}
.form-links {
  margin-top: 15px;
  font-size: 0.9em;
}
.form-links a {
  color: var(--ultra-text-link);
  text-decoration: none;
  transition: color 0.3s ease;
}
.form-links a:hover {
  color: #4dabf7;
}
.error-msg {
  color: var(--ultra-danger);
  font-size: 0.9em;
  margin-top: 10px;
  min-height: 20px;
}
/* Register Page Specific Styles */
.support-info {
  text-align: center;
  font-size: 0.9em;
  color: var(--ultra-text);
  margin-top: 20px;
  line-height: 1.5;
  padding: 15px;
  background: var(--ultra-bg-quaternary);
  border-radius: 10px;
  border: 1px solid var(--ultra-bg-quaternary);
}
.support-info a {
  color: var(--ultra-text-link);
  text-decoration: none;
  transition: color 0.3s ease;
}
.support-info a:hover {
  color: #4dabf7;
}
.support-packages {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.support-package {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--ultra-bg-quaternary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.support-package:hover {
  border-color: rgba(230, 200, 74, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.support-package.basic,
.support-package.advanced {
  flex: 1;
  min-width: 120px;
  max-width: 150px;
}
.support-package.expert {
  flex: 2;
  min-width: 280px;
  max-width: 300px;
  margin-top: 10px;
}
.support-package.basic {
  background: rgba(59, 165, 92, 0.2);
}
.support-package.advanced {
  background: rgba(250, 166, 26, 0.2);
}
.support-package.expert {
  background: rgba(237, 66, 69, 0.2);
}
.paypal-button {
  width: 100%;
  padding: 8px;
  background: var(--ultra-success);
  border: none;
  border-radius: 8px;
  color: var(--ultra-bg);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}
.paypal-button span {
  color: var(--ultra-bg);
}
.paypal-button:hover {
  background: #339954;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}
.paypal-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.paypal-logo:hover {
  transform: scale(1.1);
}
.package-info {
  margin-top: 10px;
  font-size: 0.75em;
  color: var(--ultra-text-muted);
  text-align: center;
  line-height: 1.3;
}
.privacy-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--ultra-text-muted);
}
.privacy-checkbox input[type="checkbox"] {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background: var(--ultra-bg-quaternary);
  border: 2px solid var(--ultra-bg-tertiary);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  position: relative;
}
.privacy-checkbox input[type="checkbox"]:checked::after {
  content: '➜';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ultra-success);
  font-size: 12px;
}
.privacy-checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(230, 200, 74, 0.6);
}
.privacy-checkbox a {
  color: var(--ultra-text-link);
  text-decoration: none;
  margin-left: 5px;
}
.privacy-checkbox a:hover {
  color: #4dabf7;
}
/* Forgot Password Page Specific Styles */
.forgot-password-btn {
  width: 100%;
  padding: 10px;
  background: var(--ultra-warning);
  border: none;
  border-radius: 10px;
  color: var(--ultra-bg);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}
.forgot-password-btn:hover {
  background: #e0941a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}
/* TELEGRAM BOT INFO BUTTON & MODAL - AM ENDE DER DATEI EINFÜGEN */

/* Info-Button Wrapper */
.telegram-info-wrapper {
  display: block !important;
  margin-top: 10px !important;
  width: 100% !important;
}

/* Info-Button - ULTRA AUFFÄLLIG */
.telegram-info-btn {
  display: inline-block !important;
  padding: 10px 20px !important;
  background: var(--accent-gold) !important;
  color: var(--ultra-bg) !important;
  border: 2px solid var(--accent-gold) !important;
  border-radius: 8px !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(230, 200, 74, 0.5) !important;
  z-index: 100 !important;
  text-align: center !important;
  font-family: 'Roboto Mono', monospace !important;
}

.telegram-info-btn:hover {
  background: #FFD700 !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(230, 200, 74, 0.7) !important;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, var(--ultra-bg-secondary) 0%, var(--ultra-bg) 100%);
  margin: 5% auto;
  padding: 30px;
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(230, 200, 74, 0.3);
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(230, 200, 74, 0.3);
}

.modal-header h3 {
  color: var(--accent-gold);
  margin: 0;
  font-size: 24px;
}

.close-btn {
  color: var(--ultra-text-muted);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-btn:hover {
  color: var(--ultra-danger);
}

.modal-body {
  color: var(--ultra-text);
  line-height: 1.8;
}

.modal-body h4 {
  color: var(--accent-gold);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.modal-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.modal-body li {
  margin: 8px 0;
}

.signal-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.signal-level {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.level-none { 
  background: rgba(128, 128, 128, 0.2); 
  color: #999; 
}

.level-low { 
  background: rgba(250, 166, 26, 0.2); 
  color: var(--ultra-warning); 
}

.level-moderate { 
  background: rgba(0, 188, 212, 0.2); 
  color: #00bcd4; 
}

.level-strong { 
  background: rgba(59, 165, 92, 0.2); 
  color: var(--ultra-success); 
}

.level-max { 
  background: rgba(59, 165, 92, 0.3); 
  color: var(--ultra-success); 
  font-size: 18px; 
}

.disclaimer-box {
  background: rgba(237, 66, 69, 0.1);
  border-left: 4px solid var(--ultra-danger);
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
}

.disclaimer-box p {
  margin: 5px 0;
  font-size: 14px;
  color: #ffcccc;
}

.disclaimer-box strong {
  color: #ff6666;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .signal-levels {
    grid-template-columns: 1fr;
  }

  .telegram-info-btn {
    font-size: 0.85em !important;
    padding: 8px 16px !important;
  }
}
