/* ==========================================================================
   KRYPTO TOKEN ANALYZER BY FENRIS - STYLESHEET
   Design: Schwarzer Hintergrund, Blaue Schrift, Edles Technisches Design
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #050811;
  --bg-tertiary: #0a1020;
  --bg-card: rgba(8, 14, 28, 0.85);
  --bg-card-hover: rgba(14, 24, 48, 0.95);
  --bg-glass: rgba(6, 12, 26, 0.65);
  
  /* Blaue Schrift- & Akzent-Hierarchie */
  --blue-neon: #00f0ff;        /* Neon Cyan Akzent */
  --blue-electric: #38bdf8;    /* Primäre blaue Schrift / Highlight */
  --blue-vibrant: #0284c7;     /* Kräftiges Technisches Blau */
  --blue-cobalt: #1d4ed8;      /* Tiefes Cobalt */
  --blue-ice: #bae6fd;         /* Hellblau für Lesbarkeit */
  --blue-muted: #64748b;       /* Gedämpftes Blau/Grau für Sekundärtexte */
  --blue-border: rgba(56, 189, 248, 0.22);
  --blue-border-glow: rgba(0, 240, 255, 0.45);

  /* Statusfarben */
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.35);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.35);
  --color-amber: #f59e0b;

  /* Typografie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--blue-electric);
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: top center, 0 0, 0 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--blue-ice);
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #0f2b48;
  border-radius: 4px;
  border: 1px solid var(--blue-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-vibrant);
}

/* Container */
.cyber-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

/* Glaseffekt & Cyber Cards */
.cyber-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  position: relative;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cyber-panel:hover {
  border-color: var(--blue-border-glow);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.12), 0 6px 24px rgba(0, 0, 0, 0.7);
}

/* Technische Ecken-Ornamente */
.cyber-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--blue-neon);
  pointer-events: none;
}
.cyber-corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--blue-neon); border-left: 2px solid var(--blue-neon); border-top-left-radius: 4px; }
.cyber-corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--blue-neon); border-right: 2px solid var(--blue-neon); border-top-right-radius: 4px; }
.cyber-corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--blue-neon); border-left: 2px solid var(--blue-neon); border-bottom-left-radius: 4px; }
.cyber-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blue-neon); border-right: 2px solid var(--blue-neon); border-bottom-right-radius: 4px; }

/* ==========================================================================
   HEADER BEREICH
   ========================================================================== */

.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.8) 0%, rgba(5, 8, 17, 0.9) 100%);
  border-bottom: 1px solid var(--blue-border);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 320px;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #032b5f 100%);
  border: 1px solid var(--blue-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  position: relative;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
  width: 100%;
}

.brand-title-left {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
}

.brand-title span.fenris-tag {
  color: var(--blue-neon);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--blue-electric);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Fenris Logo Badge im Header - ganz nach rechts ausgerichtet & vergrößert */
.fenris-logo-badge {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.45) 0%, rgba(3, 10, 25, 0.9) 100%);
  border: 1.5px solid var(--blue-neon);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.fenris-logo-badge:hover {
  border-color: #ffffff;
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.8), 0 0 12px #ffffff;
  transform: scale(1.05);
}

.fenris-header-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

@media (max-width: 768px) {
  .fenris-header-logo {
    width: 52px;
    height: 52px;
  }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Live API Pulse Pill */
.api-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--blue-ice);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Währungsschalter */
.currency-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 2px;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--blue-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.curr-btn.active {
  background: var(--blue-vibrant);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.curr-btn:hover:not(.active) {
  color: var(--blue-ice);
}

/* Sprachschalter (DE / EN) */
.lang-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--blue-muted);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid var(--blue-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.lang-btn:hover:not(.active) {
  color: var(--blue-ice);
}

/* Utility Buttons */
.cyber-icon-btn {
  background: rgba(8, 16, 34, 0.8);
  border: 1px solid var(--blue-border);
  color: var(--blue-ice);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cyber-icon-btn:hover {
  background: rgba(14, 30, 64, 0.9);
  border-color: var(--blue-neon);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   MAKRO-MARKTÜBERSICHT: KAPITALISIERUNG & ANTEILE
   ========================================================================== */

.macro-panel {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.9) 0%, rgba(4, 9, 20, 0.95) 100%);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .macro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .macro-grid {
    grid-template-columns: 1fr;
  }
}

.macro-card {
  background: rgba(6, 12, 26, 0.75);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.macro-card:hover {
  border-color: var(--blue-neon);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.macro-card-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.macro-card-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1.2;
}

.macro-card-sub {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--blue-ice);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Kapital-Verteilungsbalken */
.macro-distribution-wrapper {
  margin-top: 1.25rem;
  background: rgba(5, 10, 22, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.macro-dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--blue-ice);
  margin-bottom: 0.65rem;
}

.macro-dist-bar {
  height: 12px;
  background: #091428;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.dist-slice-btc {
  background: linear-gradient(90deg, #0284c7 0%, #00f0ff 100%);
  height: 100%;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.dist-slice-eth {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%);
  height: 100%;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.dist-slice-alts {
  background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
  height: 100%;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.macro-dist-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.dist-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dist-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.dot-btc { background: var(--blue-neon); box-shadow: 0 0 6px var(--blue-neon); }
.dot-eth { background: var(--blue-electric); box-shadow: 0 0 6px var(--blue-electric); }
.dot-alts { background: #818cf8; box-shadow: 0 0 6px #818cf8; }

/* ==========================================================================
   FEAR & GREED INDEX & BITCOIN DOMINANZ GRAPH
   ========================================================================== */

.sentiment-dominance-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .sentiment-dominance-grid {
    grid-template-columns: 1fr;
  }
}

/* Fear and Greed Box */
.fng-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.fng-main-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.fng-gauge-wrapper {
  position: relative;
  width: 125px;
  height: 125px;
  flex-shrink: 0;
}

.fng-gauge-circle-bg {
  fill: none;
  stroke: #0a1428;
  stroke-width: 10;
}

.fng-gauge-circle-val {
  fill: none;
  stroke: var(--blue-neon);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.fng-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.fng-score-num {
  font-size: 2.1rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.fng-score-max {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
}

.fng-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fng-status-badge {
  display: inline-block;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  width: fit-content;
}

.fng-history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.fng-hist-item {
  background: rgba(5, 10, 22, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-mono);
}

.fng-hist-label {
  font-size: 0.68rem;
  color: var(--blue-muted);
}

.fng-hist-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-ice);
}

/* Bitcoin Dominanz Graph Panel */
.btc-dom-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.btc-dom-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btc-dom-huge-val {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btc-dom-cycle-badge {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(0, 240, 255, 0.12);
  color: var(--blue-neon);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.btc-dom-chart-box {
  position: relative;
  width: 100%;
  height: 145px;
  background: rgba(4, 8, 18, 0.5);
  border-radius: 8px;
  padding: 0.4rem;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   SUCHMASKE & QUICK TOKENS
   ========================================================================== */

.search-section {
  margin-bottom: 1.75rem;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
}

.search-input-box {
  width: 100%;
  background: rgba(6, 12, 26, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 0.95rem 3.5rem 0.95rem 3.25rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.search-input-box:focus {
  border-color: var(--blue-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.search-input-box::placeholder {
  color: #475569;
  font-size: 0.95rem;
}

.search-icon-left {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-electric);
  pointer-events: none;
}

.search-shortcut-badge {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--blue-ice);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  pointer-events: none;
}

/* Autocomplete Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #070e1c;
  border: 1px solid var(--blue-border-glow);
  border-radius: 10px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.15);
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(2, 132, 199, 0.22);
}

.search-coin-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-coin-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.search-coin-name {
  font-weight: 600;
  color: #ffffff;
}

.search-coin-symbol {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-neon);
  background: rgba(0, 240, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.search-coin-rank {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
}

/* Quick Select Chips */
.quick-chips-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.quick-chip-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
  text-transform: uppercase;
}

.quick-chip-btn {
  background: rgba(8, 16, 32, 0.7);
  border: 1px solid var(--blue-border);
  color: var(--blue-ice);
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.chip-sym {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip-price-badge {
  font-size: 0.74rem;
  color: #7dd3fc;
  font-weight: 600;
  background: rgba(2, 132, 199, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  transition: all 0.2s ease;
}

.quick-chip-btn:hover .chip-price-badge {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--blue-neon);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.quick-chip-btn.active .chip-price-badge {
  color: #000000;
  background: var(--blue-neon);
  border-color: var(--blue-neon);
  font-weight: 800;
  box-shadow: 0 0 8px var(--blue-neon);
}

.quick-chip-btn:hover {
  border-color: var(--blue-neon);
  color: #ffffff;
  background: rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.quick-chip-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4) 0%, rgba(3, 105, 161, 0.2) 100%);
  border-color: var(--blue-neon);
  color: var(--blue-neon);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   HERO / MAIN ASSET BOARD
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.coin-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--blue-border);
}

.coin-main-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.coin-avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}

.coin-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--blue-neon);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  background: #0a1120;
}

.coin-title-group h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.2;
}

.coin-title-group .coin-sym {
  color: var(--blue-neon);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.coin-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.tech-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--blue-ice);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tech-badge.rank-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--blue-neon);
  font-weight: 700;
  border-color: rgba(0, 240, 255, 0.4);
}

/* Preis Anzeige */
.price-display-section {
  padding: 1.5rem;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.price-value-huge {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.trend-up {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.trend-down {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.trend-neutral {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-ice);
  border: 1px solid var(--blue-border);
}

/* 24h Spanne Leiste */
.range-bar-wrapper {
  margin-top: 1rem;
  background: rgba(6, 12, 24, 0.6);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
  margin-bottom: 0.4rem;
}

.range-track {
  height: 6px;
  background: #091322;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0284c7 0%, var(--blue-neon) 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Key Metrics Grid */
.metrics-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--blue-border);
  background: rgba(4, 8, 18, 0.4);
}

@media (max-width: 640px) {
  .metrics-mini-grid {
    grid-template-columns: 1fr;
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--blue-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-ice);
  font-family: var(--font-mono);
}

/* ==========================================================================
   TRENDS PANEL: TAGES- & WOCHEN-TREND
   ========================================================================== */

.trends-chart-panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.trends-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.04em;
}

.panel-heading i {
  color: var(--blue-neon);
}

.timeframe-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 2px;
}

.tf-btn {
  background: transparent;
  border: none;
  color: var(--blue-muted);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tf-btn.active {
  background: var(--blue-vibrant);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Trend Indikatoren Leiste */
.trend-indicator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.trend-card {
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid var(--blue-border);
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.trend-card-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.trend-card-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.trend-status-text {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: 0.2rem;
  color: var(--blue-ice);
}

/* Chart Container */
.chart-container-box {
  position: relative;
  width: 100%;
  height: 240px;
  background: rgba(4, 8, 18, 0.5);
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   REKORDWERTE: ALL TIME HIGH & LOW MIT DATUM
   ========================================================================== */

.records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .records-grid {
    grid-template-columns: 1fr;
  }
}

.record-box {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.record-box-ath {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(14, 28, 60, 0.8) 100%);
  border-left: 3px solid var(--blue-neon);
}

.record-box-atl {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(8, 24, 46, 0.8) 100%);
  border-left: 3px solid #10b981;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.record-tag {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.record-box-ath .record-tag { color: var(--blue-neon); }
.record-box-atl .record-tag { color: #34d399; }

.record-price {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.record-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--blue-border);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--blue-ice);
  margin-bottom: 1rem;
}

.record-stats-row {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
}

.record-stat-item {
  display: flex;
  flex-direction: column;
}

.record-stat-label {
  font-size: 0.7rem;
  color: var(--blue-muted);
  text-transform: uppercase;
}

.record-stat-val {
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   ASSET RISIKO-BEWERTUNG (FENRIS RISK SUITE)
   ========================================================================== */

.risk-suite-panel {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.95) 0%, rgba(4, 9, 20, 0.95) 100%);
}

.risk-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .risk-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Circular Gauge Display */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 7, 16, 0.8);
  border-radius: 12px;
  border: 1px solid var(--blue-border);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
  position: relative;
}

.gauge-svg-box {
  width: 190px;
  height: 190px;
  position: relative;
}

.gauge-circle-bg {
  fill: none;
  stroke: #0a1428;
  stroke-width: 14;
}

.gauge-circle-val {
  fill: none;
  stroke: var(--blue-neon);
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.7));
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-score-number {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.gauge-score-max {
  font-size: 0.85rem;
  color: var(--blue-muted);
  font-family: var(--font-mono);
}

.risk-level-badge {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.risk-badge-low {
  background: rgba(0, 240, 255, 0.15);
  color: var(--blue-neon);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.risk-badge-moderate {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.risk-badge-elevated {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.risk-badge-high {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.risk-badge-extreme {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Risiko Vektoren Detail-Liste */
.risk-vectors-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.risk-vector-row {
  background: rgba(5, 11, 24, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
}

.risk-vector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.risk-vector-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.risk-vector-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-neon);
}

.risk-bar-track {
  height: 6px;
  background: #091428;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-in-out;
}

.risk-vector-desc {
  font-size: 0.78rem;
  color: var(--blue-muted);
}

.analyst-summary-box {
  margin-top: 1.5rem;
  background: rgba(2, 132, 199, 0.08);
  border-left: 3px solid var(--blue-neon);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--blue-ice);
  line-height: 1.6;
}

.analyst-summary-box strong {
  color: #ffffff;
}

/* ==========================================================================
   STICHWORT-BESCHREIBUNG: WAS MACHT DAS ASSET?
   ========================================================================== */

.description-panel {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.bullet-points-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.bullet-card {
  background: rgba(6, 12, 26, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.bullet-card:hover {
  background: rgba(10, 20, 42, 0.85);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateX(3px);
}

.bullet-icon {
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.bullet-text {
  font-size: 0.92rem;
  color: var(--blue-ice);
  line-height: 1.6;
}

.bullet-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   GIBT ES ALTERNATIVEN? (WETTBEWERBER & KONKURRENZ)
   ========================================================================== */

.alternatives-panel {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.alt-card {
  background: rgba(6, 12, 26, 0.75);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.alt-card:hover {
  background: rgba(12, 24, 52, 0.9);
  border-color: var(--blue-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.alt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.alt-coin-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alt-coin-symbol {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-neon);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.alt-reason-text {
  font-size: 0.85rem;
  color: var(--blue-ice);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.alt-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--blue-electric);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  padding-top: 0.65rem;
}

/* ==========================================================================
   FOOTER & SYSTEM STATUS
   ========================================================================== */

.cyber-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #030712;
  border-top: 1px solid var(--blue-border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--blue-muted);
}

.footer-fenris-tag {
  color: var(--blue-neon);
  font-weight: 700;
}

/* ==========================================================================
   LOADING & ERROR STATES
   ========================================================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cyber-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--blue-neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--blue-neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   LEGAL DISCLAIMER / HAFTUNGSAUSSCHLUSS
   ========================================================================== */

.legal-disclaimer-panel {
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(4, 8, 18, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.disclaimer-header i {
  color: var(--blue-neon);
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .disclaimer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.disclaimer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.77rem;
  line-height: 1.65;
  color: #94a3b8;
}

.disclaimer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-neon);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.disclaimer-col p {
  margin: 0;
}

.disclaimer-col strong {
  color: var(--blue-ice);
  font-weight: 600;
}

/* Print Styles für PDF-Export */
@media print {
  body {
    background: #000000 !important;
    color: #ffffff !important;
  }
  .search-section, .timeframe-switcher, .cyber-icon-btn, .currency-toggle, .quick-chips-bar {
    display: none !important;
  }
  .cyber-panel {
    border: 1px solid #38bdf8 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

/* --- Trend-Analyse & Dynamik: Zeitraum-Chip, Kennzahlenzeile --------- */
.trend-range-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

.trend-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.65rem 0 0.35rem;
}

.trend-metric {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  background: rgba(8, 16, 32, 0.55);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  min-width: 0;
}

.trend-metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-metric-val {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-ice);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-candle-info {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--blue-muted);
  text-align: right;
  min-height: 0.85rem;
}

@media (max-width: 900px) {
  .trend-metrics-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .trend-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
