body {
  margin: 0;
  background-color: #f8f9fa;
}
body.modal-open{ overflow:hidden; }
.card {
  max-width: 600px;
  margin: auto;
  margin-top: 5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.card-title {
  font-size: 1.5rem;
  font-weight: bold;
}
#result {
  white-space: pre-wrap;
  font-family: monospace;
}

/* ==========================
   Brand + Auth + Hero Pages
   ========================== */
:root{
  --brand-1: #0a2d86;
  --brand-2: #0b3eaa;
  --brand-3: #0e53d3;
  --brand-contrast: #ffffff;
  --text-muted: #667085;
  --ring: rgba(14, 83, 211, .45);
}

/* Hintergrunfarbe für Home,Login,Register */
.bg-brand-gradient{
  background: linear-gradient(180deg, var(--brand-1), #0a328e 35%, #e0f2f1 100%); /*zwei Farben als Übergang*/
  min-height: 100vh;
}

/* ---------- Home hero ---------- */
.home-hero{ display:grid; place-items:center; padding: 6vh 16px; color: var(--brand-contrast); }
.hero-inner{ max-width: 720px; }
/* Logo in der Mitte */
.brand-mark{
  --size: 72px;
  display: block;
  width: var(--size);
  height: auto;
  object-fit: contain;
}
.brand-name{ font-weight: 600; font-size: 1.25rem; letter-spacing: .3px; color: #0f172a; }
.hero-title{ font-weight: 800; line-height: .98; font-size: clamp(2.4rem, 6.5vw, 5rem); margin: .25rem 0; }
.hero-dots{ display:flex; gap:.5rem; justify-content:center; margin:.25rem 0 1rem; }
.hero-dots span{ width:.6rem; height:.6rem; background:#fff; opacity:.9; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.15); }
.hero-tagline{ opacity:.9; font-size:1.05rem; margin-bottom: 1rem; }
.hero-actions{ width: min(360px, 88vw); margin: 0 auto; }

.btn-pill{ border-radius: 999px; padding: .95rem 1.25rem; font-weight: 600; display:flex; align-items:center; justify-content:center; gap:.6rem; }
.btn-cta{ background: #fff; color: #0d2f88; border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-cta:hover{ transform: translateY(-1px); color: #0a2d86; }
.btn-outline-light{ color: #fff; border: 1px solid rgba(255,255,255,.5); background: transparent; }
.btn-outline-light:hover{ background: rgba(255,255,255,.08); }
.btn .icon{ transition: transform .2s ease; }
.btn:hover .icon{ transform: translateX(2px); }

/* ---------- Auth (Login/Register) ---------- */
.auth-page{ display:grid; place-items:center; padding: 8vh 16px; }
.auth-wrap{ width:100%; max-width: 960px; display:flex; justify-content:center; }
.auth-card{ width:min(460px, 92vw); background:#fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 10px 30px rgba(2,6,23,.2); }
.auth-title{ font-size: 1.6rem; font-weight: 700; text-align:center; margin: 8px 0; color:#0f172a; }
.auth-subtitle{ text-align:center; color: var(--text-muted); margin-bottom: 14px; }
.auth-alt{ text-align:center; color: var(--text-muted); }
.auth-alt a{ color:#0d4ad8; text-decoration:none; font-weight:600; }
.auth-alt a:hover{ text-decoration:underline; }
.link-small{ color:#0d4ad8; text-decoration:none; font-weight:600; font-size:.95rem; }
.link-small:hover{ text-decoration:underline; }

/* Inputs with bigger touch targets */
.form-control.form-control-lg{ border-radius: 10px; padding: .8rem .95rem; }
.form-control:focus{ border-color:#345fe6; box-shadow: 0 0 0 .2rem rgba(52,95,230,.15); }

.password-field .toggle-password{ position:absolute; right: 10px; top: 38px; border:0; background:transparent; padding:6px; color:#475569; }
.password-field .toggle-password:hover{ color:#0d4ad8; }

.auth-divider{ position:relative; text-align:center; color:#94a3b8; margin: 16px 0; }
.auth-divider:before, .auth-divider:after{ content:""; position:absolute; top:50%; width:38%; height:1px; background:#e5e7eb; }
.auth-divider:before{ left:0; }
.auth-divider:after{ right:0; }
.auth-divider span{ display:inline-block; background:#fff; padding:0 .75rem; font-weight:600; letter-spacing:.04em; }

.g-logo{ display:inline-grid; place-items:center; width:20px; height:20px; border-radius:4px; background:#fff; color:#1a73e8; font-weight:700; border:1px solid #dfe1e5; }
.apple-logo{ font-size: 1.2rem; }

/* Ensure Bootstrap dark navbar pages remain readable on gradient body */
body.bg-brand-gradient .navbar{ background: rgba(0,0,0,.15) !important; backdrop-filter: blur(6px); }

/* Userbar (rechts oben, klein) */
.userbar{ position: absolute; top: 8px; right: 12px; font-size: 0.95rem; color: #e5e7eb; }
.userbar a{ color: #e5e7eb; text-decoration: none; }
.userbar a:hover{ text-decoration: underline; }

/* ==========================
   Tracker Page (Dashboard)
   ========================== */
/* Hintergrundfarbe der index.html*/
.tracker-page{ background:#0b1120; min-height:100vh; } 
.tracker-shell{ display:grid; grid-template-columns: 260px minmax(0, 1fr); width:100%; min-height:100vh; align-items:start; }
/*background=Hintergrundfarbe der linken Leiste*/
.tracker-shell .nav-slab{ background:#111a2a; border:1px solid rgba(148,163,184,.16); border-radius: 0; padding: 32px 24px; box-shadow: 0 18px 40px rgba(2,6,23,.55); min-height:100vh; display:flex; flex-direction:column; gap:18px; position:sticky; top:0; }
.tracker-shell .nav-brand{ display:flex; justify-content:center; align-items:center; margin-bottom:28px; padding-bottom:18px; border-bottom:1px solid rgba(148,163,184,.12); }
.tracker-shell .nav-brand-logo{ width:128px; height:auto; display:block; }
.tracker-main{ display:flex; flex-direction:column; padding:32px clamp(24px, 4vw, 48px); }
.tracker-main-inner{ width:100%; max-width:100%; } /* Available space will be filled */
.nav-mobile{ display:none; margin-bottom:24px; }
.nav-mobile label{ font-weight:600; color:#1f2937; margin-right:12px; }
.nav-dropdown{ background:#3b3b42; color:#fff; border:1px solid #3b3b42; border-radius:8px; padding:10px 12px; font-weight:600; min-width:200px; }
.nav-dropdown:focus{ outline:2px solid rgba(59,130,246,.45); outline-offset:2px; }
.news-page .nav-mobile label{ color:#e2e8f0; }
.tsi-page .nav-mobile label{ color:#1f2937; }
.tracker-shell .nav-slab-header{ display:flex; align-items:center; gap:12px; color:#e5e7eb; font-weight:700; letter-spacing:.02em; text-transform:uppercase; font-size:.85rem; }
.tracker-shell .nav-dots{ display:flex; gap:6px; }
.tracker-shell .nav-dots span{ width:8px; height:8px; border-radius:999px; background: rgba(59,130,246,.4); box-shadow:0 0 0 2px rgba(59,130,246,.18); }
.tracker-shell .nav-menu{ display:flex; flex-direction:column; gap:8px; }
/*Leiste Textfarbe*/
.tracker-shell .nav-link{ display:flex; align-items:center; gap:12px; padding:10px 0; border-radius:0; color:#FFFFFF; font-weight:600; text-decoration:none; transition: color .18s ease; } 
.tracker-shell .nav-link .nav-icon{ font-size:1.15rem; width:24px; display:inline-flex; align-items:center; justify-content:center; color:inherit; opacity:.85; }
.tracker-shell .nav-link:hover{ color:#FFFFFF; }
.tracker-shell .nav-link.active{ color:#FFFFFF; font-weight:700; }
.tracker-shell .nav-link .dot{ width:6px; height:6px; border-radius:999px; background:#38bdf8; box-shadow:0 0 0 3px rgba(56,189,248,.25); }
.tracker-shell .nav-label{ display:flex; flex-direction:column; color:inherit; } /* nav label inherits */
.tracker-shell .nav-label span{ font-size:.75rem; color:rgba(203,213,225,.75); font-weight:500; }
.tracker-page .board-card{ background: rgba(4, 10, 25, .78); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; box-shadow: 0 14px 36px rgba(2,6,23,.35); overflow:hidden; backdrop-filter: blur(2px); }
.tracker-page .board-card.data-story-card{ overflow:visible; }
.tracker-page .list-group-item{ background: transparent; color:#e5e7eb; border-color: rgba(255,255,255,.08); }
.tracker-page .list-group-item .btn-remove{ opacity:.8; }
.tracker-page .list-group-item .btn-remove:hover{ opacity:1; }
.tracker-page .text-muted{ color:#ffffff !important; opacity: .95; }
.benchmark-control{ position:relative; }
.benchmark-trigger{ display:inline-flex; align-items:center; gap:4px; font-weight:600; border-color:rgba(148,163,184,.45); color:#e2e8f0; background:rgba(15,23,42,.4); }
.benchmark-trigger.active{ border-color:#38bdf8; color:#38bdf8; background:rgba(56,189,248,.08); }
.benchmark-menu{ position:absolute; right:0; top:calc(100% + 10px); min-width:240px; background:#0f172a; border:1px solid rgba(148,163,184,.25); border-radius:14px; box-shadow:0 24px 40px rgba(2,6,23,.6); padding:8px; z-index:30; }
.benchmark-menu.d-none{ display:none !important; }
.benchmark-option{ width:100%; background:transparent; border:none; color:#e2e8f0; display:flex; align-items:center; gap:12px; border-radius:14px; padding:10px 12px; cursor:pointer; transition:background .15s ease, transform .15s ease; }
.benchmark-option:focus-visible{ outline:2px solid #38bdf8; outline-offset:2px; }
.benchmark-option .benchmark-icon{ width:36px; height:36px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:1.15rem; background:var(--bm-bg, rgba(59,130,246,.14)); color:var(--bm-color, #38bdf8); }
.benchmark-option .benchmark-info{ flex:1; text-align:left; }
.benchmark-option .benchmark-name{ font-weight:600; color:#f8fafc; }
.benchmark-option .benchmark-ticker{ font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:#94a3b8; }
.benchmark-option .benchmark-toggle{ width:34px; height:34px; border-radius:12px; border:1px solid rgba(148,163,184,.35); display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:1rem; color:#e2e8f0; }
.benchmark-option:hover{ background:rgba(148,163,184,.1); transform:translateY(-1px); }
.benchmark-option.active{ background:var(--bm-bg, rgba(59,130,246,.18)); }
.benchmark-option.active .benchmark-toggle{ background:var(--bm-color, #38bdf8); border-color:var(--bm-color, #38bdf8); color:#0f172a; }
.benchmark-picker{ position:relative; }
.benchmark-trigger{ border:none; background:rgba(15,23,42,.7); color:#e2e8f0; border-radius:999px; padding:6px 14px; display:inline-flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; letter-spacing:.03em; text-transform:none; transition:all .2s ease; border:1px solid rgba(148,163,184,.35); }
.benchmark-trigger:hover{ color:#38bdf8; border-color:rgba(56,189,248,.45); }
.benchmark-trigger:focus-visible{ outline:2px solid rgba(56,189,248,.7); outline-offset:2px; }
.benchmark-trigger .bi{ font-size:.9rem; }
.benchmark-trigger-label{ white-space:nowrap; }
.data-story-card{ position:relative; overflow:visible; }
.data-story-card::after{ content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at top right, rgba(56,189,248,.20), transparent 45%); opacity:.6; }
.data-story-card > *{ position:relative; z-index:1; }
.story-header{ border-bottom:1px solid rgba(255,255,255,.05); padding-bottom:12px; }
.story-period-toolbar{ width:100%; }
.story-period-toggle{ display:inline-flex; gap:6px; background:rgba(148,163,184,.12); border:1px solid rgba(148,163,184,.3); border-radius:999px; padding:4px; box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.story-period-option{ border-radius:999px; border:1px solid transparent; text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; font-weight:600; color:#e2e8f0; background:transparent; padding:6px 18px; transition:color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.story-period-option:not(.active):hover{ color:#38bdf8; border-color:rgba(56,189,248,.65); }
.story-period-option.active{ color:#0f172a; background:linear-gradient(135deg,#38bdf8,#22d3ee); border-color:transparent; box-shadow:0 10px 20px rgba(14,165,233,.25); }
.story-period-option:focus-visible{ outline:2px solid rgba(56,189,248,.7); outline-offset:2px; }
.story-narrative{ font-size:1rem; line-height:1.6; color:#e2e8f0; }
.story-metrics{ position:relative; z-index:1; }
.story-metric{ background: rgba(15,23,42,.6); border:1px solid rgba(148,163,184,.2); border-radius:14px; padding:16px; height:100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.story-metric-label{ color:#93adc5; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.story-metric-value{ color:#f8fafc; font-size:1.5rem; font-weight:700; }
.story-metric-sub{ color:#cbd5f5; font-size:.9rem; margin-top:4px; }
.story-insight-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:16px; }
.story-insight{ border:1px solid rgba(148,163,184,.22); border-radius:16px; padding:18px; background: rgba(15,23,42,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); min-height:150px; display:flex; flex-direction:column; gap:8px; }
.story-insight-label{ text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; color:#94a3b8; font-weight:700; }
.story-insight-value{ font-size:1.25rem; font-weight:700; color:#e0f2fe; }
.story-insight-text{ color:#94a3b8; font-size:.95rem; line-height:1.4; flex:1; }
.story-insight-grid .story-insight:nth-child(3){ border-color:rgba(34,197,94,.35); }
.analysis-selector{ position:relative; }
.analysis-overlay{ position:fixed; inset:0; background:rgba(2,6,23,.92); backdrop-filter: blur(4px); z-index:60; }
.analysis-menu{ position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); width:min(420px, 90vw); background:rgba(8,14,28,.98); border:1px solid rgba(148,163,184,.25); border-radius:18px; box-shadow:0 30px 60px rgba(2,6,23,.75); padding:18px; z-index:70; backdrop-filter: blur(8px); }
.analysis-menu.d-none{ display:none !important; }
.analysis-menu h4{ margin-bottom:12px; font-size:1rem; color:#94a3b8; letter-spacing:.05em; text-transform:uppercase; }
.analysis-option{ width:100%; text-align:left; border:1px solid rgba(148,163,184,.25); background:rgba(15,23,42,.9); color:#e2e8f0; padding:14px 16px; border-radius:16px; font-weight:600; display:flex; justify-content:space-between; align-items:center; gap:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.analysis-option + .analysis-option{ margin-top:10px; }
.analysis-option .analysis-meta{ font-size:.85rem; color:#94a3b8; }
.analysis-option:hover{ border-color:rgba(56,189,248,.4); box-shadow:0 8px 20px rgba(56,189,248,.15); }
.analysis-option.active{ border-color:#38bdf8; background:rgba(56,189,248,.15); color:#38bdf8; }
.portfolio-header .btn-transaction{ padding:8px 16px; border-radius:999px; border:1px solid rgba(148,163,184,.35); background: rgba(15,23,42,.6); color:#cbd5f5; font-weight:600; letter-spacing:.02em; transition: all .2s ease; }
.portfolio-header .btn-transaction:hover{ color:#38bdf8; border-color: rgba(56,189,248,.5); box-shadow:0 0 0 2px rgba(56,189,248,.12); }
.btn-portfolio-pill{ padding:8px 18px; border-radius:999px; border:1px solid rgba(148,163,184,.35); background:transparent; color:#e2e8f0; font-weight:600; letter-spacing:.02em; transition:all .2s ease; }
.btn-portfolio-pill:hover{ color:#38bdf8; border-color:rgba(56,189,248,.5); box-shadow:0 0 0 2px rgba(56,189,248,.12); }
.portfolio-header .btn-portfolio-manage{ background:none; border:none; color:#cbd5f5; font-size:.9rem; display:flex; align-items:center; gap:4px; padding:0; cursor:pointer; transition:color .2s ease; }
.portfolio-header .btn-portfolio-manage:hover{ color:#38bdf8; }
.portfolio-header .btn-portfolio-manage .pm-icon{ font-size:.9rem; }
.asset-manage-btn{ display:inline-flex; align-items:center; gap:6px; border-radius:999px; border:1px solid rgba(148,163,184,.35); background:rgba(15,23,42,.6); color:#cbd5f5; font-size:.85rem; padding:6px 14px; font-weight:600; letter-spacing:.01em; cursor:pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.asset-manage-btn:hover{ color:#38bdf8; border-color:rgba(56,189,248,.6); background:rgba(15,23,42,.75); }
.asset-manage-btn i{ font-size:.95rem; line-height:1; }
.holdings-manage-list{ display:flex; flex-direction:column; gap:12px; }
.holdings-manage-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-radius:14px; border:1px solid rgba(148,163,184,.18); background:rgba(15,23,42,.6); }
.holdings-manage-meta{ display:flex; flex-direction:column; gap:2px; }
.holdings-manage-symbol{ font-weight:700; color:#f8fafc; font-size:1rem; }
.holdings-manage-label{ color:#94a3b8; font-size:.85rem; }
.holdings-manage-qty{ color:#cbd5f5; font-weight:600; font-size:.9rem; }
.holdings-manage-actions .btn{ min-width:96px; }
.transaction-tabs{ display:flex; gap:12px; }
.transaction-tabs .trans-tab{ flex:0 0 auto; padding:8px 16px; border-radius:999px; border:1px solid rgba(148,163,184,.3); background: rgba(15,23,42,.4); color:#cbd5e1; font-weight:600; letter-spacing:.02em; }
.transaction-tabs .trans-tab.active{ background:#1e293b; border-color:#38bdf8; color:#38bdf8; box-shadow:0 0 0 2px rgba(56,189,248,.15); }
.transaction-tabs .trans-tab:disabled{ opacity:.4; }
.security-results{ max-height:320px; overflow-y:auto; border:1px solid rgba(148,163,184,.15); border-radius:12px; background: rgba(4,10,25,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.security-results .security-item{ padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; transition: background .15s ease; border-bottom:1px solid rgba(148,163,184,.08); }
.security-results .security-item:last-child{ border-bottom:0; }
.security-results .security-item:hover{ background: rgba(56,189,248,.1); }
.security-results .security-meta{ display:flex; align-items:center; gap:12px; min-width:0; }
.security-results .security-icon{ width:32px; height:32px; border-radius:8px; background: rgba(148,163,184,.15); display:grid; place-items:center; font-weight:700; color:#38bdf8; }
.security-results .security-text{ display:flex; flex-direction:column; min-width:0; }
.security-results .security-name{ color:#e2e8f0; font-weight:600; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.security-results .security-symbol{ color:#94a3b8; font-size:.85rem; }
.security-results .security-empty{ padding:18px; text-align:center; color:#94a3b8; font-style:italic; }
.transaction-form .btn-outline-secondary{ border-color: rgba(148,163,184,.3); color:#94a3b8; background: rgba(15,23,42,.45); }
.transaction-form .btn-outline-secondary:disabled{ opacity:.5; }
.bg-success-subtle{ background: rgba(34,197,94,.15) !important; }
.text-success{ color: #22c55e !important; }
/* Portfolio header (tracker.html left top) */
.portfolio-header .ph-label{ color:#dbeafe; font-weight:600; font-size:.9rem; letter-spacing:.02em; }
.portfolio-header .ph-name{ color:#fff; font-weight:800; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height:1.1; }
.tracker-page .ph-type-badge{ margin-top:4px; display:inline-flex; align-items:center; padding:4px 12px; border-radius:999px; font-size:.75rem; letter-spacing:.05em; text-transform:uppercase; font-weight:600; background: rgba(59,130,246,.18); color:#bfdbfe; gap:6px; }
.tracker-page .ph-type-badge.cash{ background: rgba(34,197,94,.22); color:#bbf7d0; }
.tracker-page .ph-type-badge.securities{ background: rgba(59,130,246,.18); color:#bfdbfe; }
.tracker-page .ph-type-badge.crypto{ background: rgba(147,51,234,.25); color:#e9d5ff; }
.ph-icon{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background: rgba(4,10,25,.7); border:1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.header-actions{ display:flex; align-items:center; gap:12px; }

.tsi-page .tsi-pill{ padding:10px 16px; border-radius:999px; background: rgba(56,189,248,.22); border:1px solid rgba(56,189,248,.35); font-weight:600; letter-spacing:.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.tsi-page .tsi-hint{ font-size:.9rem; }
.tsi-page .tsi-output{ white-space:pre-wrap; font-family:monospace; background: rgba(15,23,42,.65); border-radius:12px; padding:18px; border:1px solid rgba(148,163,184,.25); min-height:180px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

/* ==========================
   Aktivitäten Page
   ========================== */
.activities-page{ background:#0b1120; min-height:100vh; }
.activities-page .activities-main{ display:flex; flex-direction:column; gap:24px; }
.activity-controls{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.activity-search-wrap{ position:relative; flex:1 1 320px; min-width:240px; }
.activity-search{ margin:0; }
.activity-search-wrap .form-control{ background: rgba(15,23,42,.85); border:1px solid rgba(148,163,184,.28); color:#e2e8f0; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.activity-search-wrap .form-control::placeholder{ color:#93a4c0; }
.activity-search-wrap .form-control:focus{ border-color: rgba(56,189,248,.5); box-shadow: 0 0 0 .2rem rgba(56,189,248,.2); color:#e2e8f0; }
.activity-toggle{ white-space:nowrap; }
.activity-stats{ font-weight:600; letter-spacing:.02em; }
.activity-status{ min-height:1.5rem; font-size:.95rem; }
.activity-status[data-tone="loading"]{ color:#38bdf8; }
.activity-status[data-tone="error"]{ color:#fca5a5; }
.activity-suggestions{ position:absolute; top:100%; left:0; right:0; margin-top:8px; background: rgba(4,10,25,.96); border:1px solid rgba(148,163,184,.24); border-radius:12px; box-shadow:0 18px 36px rgba(2,6,23,.55); z-index:40; max-height:260px; overflow-y:auto; display:flex; flex-direction:column; }
.activity-suggestions.d-none{ display:none; }
.activity-suggestions .activity-suggestion{ border:0; background:transparent; text-align:left; padding:12px 14px; color:#f8fafc; font-weight:600; display:flex; flex-direction:column; gap:4px; cursor:pointer; transition: background .18s ease, color .18s ease; }
.activity-suggestions .activity-suggestion:hover{ background: rgba(56,189,248,.18); color:#ffffff; }
.activity-suggestions .activity-suggestion:not(:last-child){ border-bottom:1px solid rgba(148,163,184,.12); }
.activity-suggestion-main{ font-size:1rem; letter-spacing:.01em; }
.activity-suggestion-note{ font-size:.85rem; color:#94a3b8; font-weight:500; }
.activity-board{ background: rgba(4,10,25,.72); border:1px solid rgba(255,255,255,.08); border-radius:16px; overflow:hidden; }
.activity-board-header{ border-bottom:1px solid rgba(255,255,255,.06); background: rgba(15,23,42,.78); }
.activity-board-body{ display:flex; flex-direction:column; gap:20px; }
.activity-tree{ display:flex; flex-direction:column; gap:16px; }
.activity-tree details{ border:1px solid rgba(148,163,184,.18); border-radius:14px; background: rgba(11,18,34,.75); transition: border-color .18s ease, background .18s ease; }
.activity-tree details[open]{ background: rgba(15,23,42,.82); border-color: rgba(56,189,248,.28); box-shadow: 0 18px 32px rgba(2,6,23,.4); }
.activity-tree summary{ cursor:pointer; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; color:#e2e8f0; font-weight:700; letter-spacing:.02em; }
.activity-tree summary::-webkit-details-marker{ display:none; }
.activity-summary-title{ font-size:1rem; text-transform:capitalize; }
.activity-summary-count{ font-size:.9rem; color:#94a3b8; font-weight:600; }
.activity-entries{ padding:0 18px 18px; display:flex; flex-direction:column; gap:10px; }
.activity-row{ display:grid; grid-template-columns: minmax(140px, .9fr) minmax(160px, 1.2fr) minmax(180px, 1.1fr) minmax(220px, 1.4fr); gap:16px; align-items:center; background: rgba(4,10,25,.9); border:1px solid rgba(148,163,184,.14); border-radius:12px; padding:14px 16px; transition:border-color .18s ease, box-shadow .18s ease; }
.activity-row.buy{ border-left:3px solid rgba(34,197,94,.55); }
.activity-row.sell{ border-left:3px solid rgba(248,113,113,.6); }
.activity-row:hover{ border-color: rgba(56,189,248,.38); box-shadow:0 12px 28px rgba(15,23,42,.4); }
.activity-cell{ display:flex; flex-direction:column; gap:6px; }
.activity-label{ display:block; font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color:#94a3b8; }
.activity-value{ color:#f8fafc; font-weight:700; }
.activity-date{ color:#e2e8f0; font-weight:600; letter-spacing:.02em; }
.activity-time{ font-size:.85rem; color:#94a3b8; }
.activity-ticker{ font-weight:700; color:#fff; font-size:1.05rem; letter-spacing:.02em; }
.activity-meta-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.activity-side-badge{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-size:.75rem; text-transform:uppercase; font-weight:700; letter-spacing:.05em; }
.activity-side-badge.buy{ background: rgba(34,197,94,.22); color:#bbf7d0; }
.activity-side-badge.sell{ background: rgba(248,113,113,.22); color:#fecaca; }
.activity-portfolio{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; background: rgba(56,189,248,.18); color:#bae6fd; font-size:.75rem; font-weight:600; letter-spacing:.03em; }
.activity-charges .activity-sub{ font-size:.85rem; color:#94a3b8; margin-top:4px; }
.activity-metrics > div{ display:flex; justify-content:space-between; gap:12px; }
.activity-metrics > div:not(:last-child){ margin-bottom:4px; }
.activity-empty{ text-align:center; font-style:italic; }
#activityResultMeta{ font-size:.95rem; color:#94a3b8; }
.activity-selection{ background: rgba(4,10,25,.72); border:1px solid rgba(255,255,255,.08); border-radius:16px; }
.activity-selection-head{ display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; justify-content:space-between; }
.activity-selection-label{ font-size:1.4rem; font-weight:700; color:#f8fafc; letter-spacing:.02em; }
.activity-selection-hint{ font-size:.95rem; margin-top:4px; color:#94a3b8; }
.activity-selection-body{ margin-top:18px; display:flex; flex-direction:column; gap:12px; }
.activity-selection-row{ display:flex; gap:20px; align-items:flex-start; border:1px solid rgba(148,163,184,.18); border-radius:14px; background: rgba(11,18,34,.78); padding:16px 18px; transition:border-color .18s ease, box-shadow .18s ease; }
.activity-selection-row.buy{ border-left:3px solid rgba(34,197,94,.55); }
.activity-selection-row.sell{ border-left:3px solid rgba(248,113,113,.55); }
.activity-selection-row:hover{ border-color: rgba(56,189,248,.4); box-shadow:0 14px 28px rgba(2,6,23,.4); }
.activity-selection-col{ display:flex; flex-direction:column; gap:8px; }
.activity-selection-col--label{ min-width:140px; max-width:200px; align-items:flex-start; }
.activity-selection-ticker{ font-size:1.05rem; font-weight:700; color:#f8fafc; letter-spacing:.03em; }
.activity-selection-side-badge{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-size:.75rem; text-transform:uppercase; font-weight:700; letter-spacing:.05em; width:max-content; }
.activity-selection-side-badge.buy{ background: rgba(34,197,94,.2); color:#bbf7d0; }
.activity-selection-side-badge.sell{ background: rgba(248,113,113,.2); color:#fecaca; }
.activity-selection-col--details{ flex:1 1 auto; gap:6px; align-items:flex-start; }
.activity-selection-col--details > div{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.activity-selection-tag{ font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; color:#94a3b8; font-weight:600; }
.activity-selection-value{ font-size:1rem; color:#f8fafc; font-weight:600; }
.activity-selection-empty{ text-align:center; padding:18px 0; font-style:italic; color:#94a3b8; }

@media (max-width: 1200px){
  .activity-row{ grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr); }
}

@media (max-width: 992px){
  .activity-row{ grid-template-columns: 1fr; align-items:flex-start; }
  .activity-metrics > div{ justify-content:flex-start; gap:10px; }
  .activity-metrics{ display:grid; gap:6px; }
  .activity-selection-row{ flex-direction:column; }
  .activity-selection-col--label{ max-width:100%; flex-direction:row; align-items:center; justify-content:space-between; }
}

@media (max-width: 576px){
  .activity-controls{ flex-direction:column; align-items:stretch; }
  .activity-toggle{ width:100%; }
  .activity-tree summary{ padding:12px 14px; }
  .activity-entries{ padding:0 14px 14px; }
  .activity-selection-head{ flex-direction:column; align-items:flex-start; }
  .activity-selection-row{ padding:14px; }
  .activity-selection-col--label{ align-items:flex-start; }
}

/* Responsive Tracker Page */
@media (max-width: 1199px){
  .tracker-main-inner{ max-width:100%; }
}

@media (max-width: 991px){
  .tracker-shell{ display:block; }
  .tracker-shell .nav-slab{ display:none; }
  .tracker-main{ padding:24px 20px 40px; }
  .tracker-main-inner{ max-width:100%; }
  .nav-mobile{ display:flex; align-items:center; gap:12px; }
}

@media (max-width: 576px){
  .nav-dropdown{ width:100%; }
  .nav-mobile{ flex-direction:column; align-items:flex-start; }
  .nav-mobile label{ margin-right:0; margin-bottom:8px; }
}

/* ==========================
   News Page
   ========================== */
 /* Hintergrundfarbe der news.html*/
.news-page{ background:#0b1120; min-height:100vh; }
.news-shell .news-main{ display:flex; flex-direction:column; gap:24px; }
/*Suchleiste */
.news-page .form-control{ background:#ffffff; border:1px solid rgba(15,23,42,.18); color:#0f172a; box-shadow:0 10px 28px rgba(15,23,42,.12); }
.news-page .form-control:focus{ border-color:#2563eb; box-shadow:0 0 0 .2rem rgba(37,99,235,.25); color:#0f172a; }
.news-page .form-control::placeholder{ color:#64748b; }
.saved-searches-wrap{ min-height:44px; }
.saved-searches{ display:flex; flex-wrap:wrap; gap:8px; }
.saved-searches button{ padding:8px 14px; border-radius:999px; border:1px solid rgba(148,163,184,.25); background: rgba(15,23,42,.55); color:#e2e8f0; font-weight:600; letter-spacing:.01em; transition: all .18s ease; }
.saved-searches button:hover{ background: rgba(37,99,235,.18); border-color: rgba(56,189,248,.35); color:#38bdf8; }
.saved-searches-empty{ color:#64748b; font-style:italic; }
.news-page .btn-primary{ background:#2563eb; border-color:#2563eb; font-weight:600; letter-spacing:.01em; box-shadow:0 10px 24px rgba(37,99,235,.25); }
.news-page .btn-primary:hover{ background:#1d4ed8; border-color:#1d4ed8; box-shadow:0 12px 30px rgba(37,99,235,.35); }
.news-results{ display:flex; flex-direction:column; gap:18px; }
.news-result{ display:flex; flex-direction:row; gap:18px; padding-bottom:18px; border-bottom:1px solid rgba(148,163,184,.12); }
.news-result:last-child{ border-bottom:0; padding-bottom:0; }
.news-result-body{ flex:1; display:flex; flex-direction:column; gap:8px; }
.news-result-meta{ color:#94a3b8; font-size:.85rem; letter-spacing:.01em; }
.news-result-title{ color:#f8fafc; font-size:1.1rem; font-weight:700; text-decoration:none; line-height:1.35; }
.news-result-title:hover{ color:#38bdf8; }
.news-result-snippet{ color:#cbd5f5; margin:0; font-size:.95rem; line-height:1.55; }
.news-result.has-image .news-result-media{ flex:0 0 108px; border-radius:12px; overflow:hidden; background: rgba(148,163,184,.12); }
.news-result-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.news-empty{ padding:24px 12px; text-align:center; font-style:italic; }
.news-status{ min-height:1.5rem; }

@media (max-width: 991px){
  .news-result{ flex-direction:column; }
  .news-result.has-image .news-result-media{ width:100%; max-height:200px; }
}

/* Auth validation Login Seite Leere Felder und Ungültige Anmeldedaten */
.form-control.is-invalid{ border-color:#dc3545; }
.form-control.is-invalid:focus{ border-color:#dc3545; box-shadow: 0 0 0 .2rem rgba(220,53,69,.15); }
.form-error{ font-size: .95rem; }

/* Remove Bootstrap's default invalid (!) icons from inputs/selects */
.form-control.is-invalid,
.was-validated .form-control:invalid{
  background-image: none !important;
}
.form-control.form-control-lg.is-invalid,
.was-validated .form-control.form-control-lg:invalid{
  background-image: none !important;
  padding-right: .95rem; /* restore original padding without icon space */
}
.form-select.is-invalid,
.was-validated .form-select:invalid{
  background-image: var(--bs-form-select-bg-img) !important; /* drop invalid icon layer */
}

/* ==========================
   Board / Dashboard
   ========================== */
.board-wrap{ color: #e5e7eb; }
.board-card{ background: rgba(4, 10, 25, .55); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; box-shadow: 0 10px 30px rgba(2,6,23,.25); }
.stat-box{ background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 8px; }
.stat-value{ font-weight: 700; font-size: 1.25rem; color:#fff; }
.stat-label{ color:#ffffff; font-weight:600; letter-spacing:.02em; }
.investor-quotes{
  background: linear-gradient(145deg, rgba(59,130,246,.16), rgba(2,6,23,.92));
  border:1px solid rgba(148,163,184,.38);
  border-radius:20px;
  padding:22px;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  font-family:'Playfair Display','Georgia','Times New Roman',serif;
  color:#f8fafc;
  box-shadow:0 20px 40px rgba(2,6,23,.45);
}
.investor-quotes:hover,
.investor-quotes:focus{
  transform: translateY(-2px);
  border-color: rgba(94,234,212,.6);
  box-shadow:0 28px 56px rgba(6,182,212,.25);
  outline:none;
}
.investor-quotes:focus-visible{
  box-shadow:0 0 0 2px rgba(59,130,246,.65),0 28px 56px rgba(6,182,212,.25);
}
.investor-quotes .quote-heading{
  letter-spacing:.2em;
}
.investor-quotes .quote-text{
  font-size:1.15rem;
  line-height:1.55;
  color:#fff !important;
  margin:0;
}
.investor-quotes .quote-author{
  font-size:.95rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff !important;
}
.investor-quotes .quote-hint{
  font-family:'Inter','Segoe UI',sans-serif;
  letter-spacing:.08em;
}
.investor-quotes.quote-refresh{
  animation: quotePulse .35s ease;
}
@keyframes quotePulse{
  0%{ transform:scale(.98); }
  50%{ transform:scale(1.01); }
  100%{ transform:scale(1); }
}

/* Dashboard overview */
.allocation-card{ min-height: 360px; }
.allocation-wrap{ position: relative; max-width: 360px; margin: 0 auto; }
.allocation-wrap canvas{ width:100% !important; height:auto !important; }
.allocation-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; text-align:center; }
.allocation-center .alloc-label{ color:#cbd5f5; font-size:1rem; font-weight:600; }
.allocation-center .alloc-value{ color:#fff; font-size:1.8rem; font-weight:800; }
.allocation-metrics{ display:flex; flex-direction:column; gap:18px; }
.metric-tile{ background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:18px; }
.metric-label{ font-size:.9rem; letter-spacing:.03em; text-transform:uppercase; }
.metric-value{ font-size:1.6rem; font-weight:700; color:#fff; }
.metric-sub{ font-size:.95rem; }
.metric-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:12px; }
.metric-sm{ background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:14px; }
/* Portfolio list and tiles */
.portfolio-list{ grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.portfolio-tile{ width:100%; border-radius:14px; border:1px solid rgba(59,130,246,.12); background: rgba(3,7,18,.92); color:#e5e7eb; text-align:left; padding:16px; display:flex; flex-direction:column; gap:6px; transition:all .18s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.portfolio-tile:hover{ border-color: rgba(59,130,246,.65); color:#fff; transform: translateY(-3px); background: rgba(3,7,18,.98); box-shadow: 0 10px 24px rgba(2,6,23,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.portfolio-tile.active{ border-color:#38bdf8; background: rgba(2,6,23,.98); color:#fff; box-shadow: 0 10px 32px rgba(8,70,120,.55), inset 0 1px 0 rgba(56,189,248,.35); }
.portfolio-tile .pt-name{ font-weight:700; font-size:1.05rem; }
.portfolio-tile .pt-meta{ color:#94a3b8; font-size:.9rem; }
.badge-type{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; font-weight:700; gap:6px; }
.badge-type.securities{ background: rgba(59,130,246,.22); color:#93c5fd; }
.badge-type.cash{ background: rgba(34,197,94,.2); color:#86efac; }
.badge-type.crypto{ background: rgba(147,51,234,.22); color:#d8b4fe; }
.badge-type .type-icon,
.ph-type-badge .type-icon{ display:inline-flex; align-items:center; justify-content:center; }
.badge-type .type-icon .bi,
.ph-type-badge .type-icon .bi{ font-size:.9em; line-height:1; }
.badge-type .type-label,
.ph-type-badge .type-label{ line-height:1; letter-spacing:.03em; }
.topflop-section{ overflow:hidden; position:relative; }
.insight-pill{ border:1px solid rgba(248,250,252,.3); color:#f8fafc; font-size:.7rem; letter-spacing:.25em; padding:6px 14px; border-radius:999px; background: rgba(15,23,42,.35); font-weight:700; }
.performance-card{ border-radius:20px; border:1px solid rgba(255,255,255,.08); padding:18px; background: linear-gradient(145deg, rgba(30,41,59,.92), rgba(15,23,42,.92)); box-shadow: 0 25px 55px rgba(2,6,23,.55), inset 0 1px 0 rgba(255,255,255,.05); min-height:230px; }
.performance-card.positive{ background: linear-gradient(145deg, rgba(16,185,129,.28), rgba(17,24,39,.92)); }
.performance-card.negative{ background: linear-gradient(145deg, rgba(248,113,113,.28), rgba(17,24,39,.92)); }
.performance-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.performance-title{ font-weight:800; font-size:1.15rem; color:#fff; }
.performance-sub{ color:#cbd5f5; font-size:.9rem; }
.performance-list{ display:flex; flex-direction:column; gap:10px; margin:0; padding:0; }
.performance-entry{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:14px; background: rgba(10,15,24,.6); border:1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.performance-entry:not(:last-child){ border-bottom:0; }
.pe-stack{ display:flex; flex-direction:column; gap:2px; }
.pe-name{ font-weight:700; color:#fff; letter-spacing:.04em; }
.pe-meta{ color:#cbd5f5; font-size:.9rem; }
.pe-change{ font-weight:800; font-size:1rem; }
.pe-change.positive{ color:#4ade80; }
.pe-change.negative{ color:#f87171; }
.performance-empty{ padding:12px 0; font-style:italic; text-align:center; }

/* ---- Market overview ---- */
.market-overview{ overflow:hidden; }
.market-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
}
.market-empty{ text-align:center; padding:18px 0; }
.market-tile{
  border-radius:20px;
  padding:18px 18px 16px;
  backdrop-filter: blur(4px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 48px rgba(2,6,23,.45), inset 0 1px 0 rgba(255,255,255,.04);
  background: linear-gradient(140deg, rgba(34,197,94,.12), rgba(13,21,41,.92));
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:130px;
}
.market-tile.up{ background: linear-gradient(140deg, rgba(34,197,94,.28), rgba(13,21,41,.92)); }
.market-tile.down{ background: linear-gradient(140deg, rgba(239,68,68,.32), rgba(13,21,41,.92)); }
.market-tile.is-portfolio{
  border:1px solid rgba(94,234,212,.5);
  box-shadow: 0 20px 50px rgba(6,182,212,.35), inset 0 1px 0 rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(94,234,212,.25), rgba(13,19,35,.95));
}
.market-name{ font-size:1rem; font-weight:700; color:#fff; }
.market-value{ font-size:1.35rem; font-weight:700; color:#f8fafc; }
.market-change{ font-weight:600; color:#d1fae5; }
.market-tile.down .market-change{ color:#fecdd3; }
.market-tile.is-portfolio .market-name{ letter-spacing:.02em; text-transform:uppercase; font-size:.95rem; color:#a5f3fc; }
.market-tile.is-portfolio .market-value{ font-size:1.45rem; }
.market-tile .market-change.neutral{ color:#e2e8f0; }

@media (max-width: 991px){
  .allocation-card .d-flex{ flex-direction:column; }
  .allocation-wrap{ max-width:280px; }
}

/* Portfolio Modal (lightweight, no Bootstrap JS) */
.pmodal{ position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; }
.pmodal.d-none{ display: none; }
.pm-backdrop{ position:absolute; inset:0; background: rgba(2,6,23,.6); backdrop-filter: blur(2px); }
.pm-dialog{ position: relative; width:min(720px, 92vw); background: rgba(4,10,25,.92); border:1px solid rgba(255,255,255,.08); color:#e5e7eb; border-radius:16px; box-shadow: 0 30px 80px rgba(2,6,23,.5); overflow:hidden; }
.pm-dialog.pm-lg{ width:min(860px, 96vw); }
.pm-dialog.pm-md{ width:min(520px, 92vw); }
.pm-header{ padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pm-title{ margin:0; font-size: 1.6rem; font-weight: 800; color:#fff; }
.pm-subtitle{ color:#cbd5e1; }
.pm-body{ padding: 16px 20px 20px; }
.pm-item{ display:flex; align-items:center; justify-content:space-between; padding: 14px 12px; border-radius: 12px; border:1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); color:#e5e7eb; text-decoration:none; margin-bottom:10px; }
.pm-item:hover{ background: rgba(255,255,255,.06); }
.pm-item .name{ font-weight: 600; }
.pm-item .arrow{ opacity:.85; }

/* Account modal sections */
.section-card{ background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:16px; }
.section-title{ color:#fff; font-weight:700; margin-bottom:6px; }
.section-line{ color:#e5e7eb; }

.backend-error-box{
  background: linear-gradient(135deg, rgba(248,113,113,.12), rgba(59,130,246,.12));
  border: 1px solid rgba(248,113,113,.4);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  margin-bottom: 16px;
}
.backend-error-icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(248,113,113,.16);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.backend-error-title{
  font-weight: 700;
  line-height: 1.3;
}
.backend-error-text{
  color: #e2e8f0;
  line-height: 1.4;
}

/* Account menu (kebab) */
.kebab-btn{ width:34px; height:34px; border-radius:999px; padding:0; display:grid; place-items:center; }
.acct-menu{ position:absolute; top:44px; right:8px; background: rgba(4,10,25,.96); border:1px solid rgba(255,255,255,.1); border-radius:12px; min-width:220px; box-shadow:0 18px 48px rgba(2,6,23,.45); z-index:1200; }
.acct-menu.d-none{ display:none; }
.acct-menu-item{ display:block; padding:10px 14px; color:#e5e7eb; text-decoration:none; }
.acct-menu-item:hover{ background: rgba(255,255,255,.06); }
.acct-menu-sep{ height:1px; background: rgba(255,255,255,.1); margin: 4px 0; }
.watchlist-quote-block{
  padding-top:4px;
}
.watchlist-quote-price{
  font-size:1.05rem;
}

/* ==========================
   Hellmodus (Erscheinungsbild "Hell")
   ========================== */
body.theme-light{
  background:#f6f8fb;
  color:#0f172a;
}
body.theme-light .text-light{
  color:#0f172a !important;
}
body.theme-light .text-secondary{
  color:#475569 !important;
}
.theme-light.tracker-page,
body.theme-light .tracker-page{
  background:#eef2f7;
  color:#0f172a;
}
.theme-light.tracker-page .text-muted,
body.theme-light .tracker-page .text-muted{
  color:#94a3b8 !important;
  opacity:1;
}
body.theme-light .tracker-shell{
  background:#eef2f7;
}
body.theme-light .tracker-shell .nav-slab{
  background:#ffffff;
  border-color: rgba(15,23,42,.08);
  box-shadow:0 24px 60px rgba(15,23,42,.08);
}
body.theme-light .tracker-shell .nav-link{
  color:#475569;
}
body.theme-light .tracker-shell .nav-link:hover{
  color:#0f172a;
}
body.theme-light .tracker-shell .nav-link .nav-icon{
  opacity:.65;
}
body.theme-light .tracker-shell .nav-link.active{
  color:#0f172a;
  background: rgba(59,130,246,.12);
  border-radius:12px;
  padding-left:12px;
  padding-right:12px;
  margin-left:-12px;
  margin-right:-12px;
  text-shadow:none;
}
body.theme-light .tracker-shell .nav-link.active .nav-icon{
  color:#2563eb;
  opacity:1;
}
body.theme-light .tracker-shell .nav-label span{
  color:#94a3b8;
}
body.theme-light .board-wrap{
  color:#0f172a;
}
body.theme-light .board-card,
body.theme-light .allocation-card,
body.theme-light .section-card,
body.theme-light .activity-selection,
body.theme-light .activity-board,
body.theme-light .activity-tree details,
body.theme-light .activity-row,
body.theme-light .activity-selection-row,
body.theme-light .security-results,
body.theme-light .metric-tile,
body.theme-light .metric-sm,
body.theme-light .stat-box{
  background:#ffffff;
  border-color: rgba(15,23,42,.08);
  box-shadow:0 20px 50px rgba(15,23,42,.08);
  color:#0f172a;
}
body.theme-light .metric-value,
body.theme-light .stat-value{
  color:#0f172a;
}
body.theme-light .metric-sub,
body.theme-light .stat-label{
  color:#475569;
}
body.theme-light .portfolio-header{
  background:#ffffff;
  border:1px solid rgba(15,23,42,.1);
  border-radius:16px;
  padding:18px 20px;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}
body.theme-light .portfolio-header .ph-label{
  color:#64748b;
}
body.theme-light .portfolio-header .ph-name{
  color:#0f172a;
}
body.theme-light .portfolio-header .btn-transaction{
  background:#e0edff;
  border-color: rgba(59,130,246,.35);
  color:#1d4ed8;
}
body.theme-light .portfolio-header .btn-transaction:hover{
  color:#0b3eaa;
  box-shadow:0 0 0 2px rgba(59,130,246,.18);
}
body.theme-light .btn-portfolio-pill{
  border-color: rgba(59,130,246,.35);
  color:#1d4ed8;
  background:#f8fafc;
}
body.theme-light .btn-portfolio-pill:hover{
  color:#0b3eaa;
  box-shadow:0 0 0 2px rgba(59,130,246,.18);
}
body.theme-light .analysis-menu{
  background:rgba(255,255,255,.98);
  border-color: rgba(15,23,42,.1);
  box-shadow:0 24px 48px rgba(15,23,42,.18);
}
body.theme-light .analysis-overlay{
  background:rgba(241,245,249,.95);
}
body.theme-light .analysis-menu{
  background:rgba(255,255,255,.98);
  border-color: rgba(15,23,42,.1);
  box-shadow:0 28px 56px rgba(15,23,42,.2);
}
body.theme-light .analysis-menu h4{
  color:#475569;
}
body.theme-light .analysis-option{
  color:#0f172a;
  background:#ffffff;
  border-color: rgba(148,163,184,.25);
}
body.theme-light .analysis-option .analysis-meta{
  color:#475569;
}
body.theme-light .analysis-option.active{
  background: rgba(59,130,246,.14);
  color:#1d4ed8;
}
body.theme-light .portfolio-header .btn-portfolio-manage{
  color:#1f2937;
}
body.theme-light .asset-manage-btn{
  background:rgba(15,23,42,.05);
  border-color:rgba(15,23,42,.2);
  color:#0f172a;
}
body.theme-light .asset-manage-btn:hover{
  border-color:#0ea5e9;
  color:#0f172a;
  background:rgba(14,165,233,.15);
}
body.theme-light .allocation-center .alloc-label{
  color:#475569;
}
body.theme-light .allocation-center .alloc-value{
  color:#0f172a;
}
body.theme-light .portfolio-list{
  gap:18px;
}
body.theme-light .portfolio-tile{
  background:#ffffff;
  color:#0f172a;
  border-color: rgba(15,23,42,.1);
  box-shadow:0 14px 32px rgba(15,23,42,.1);
}
body.theme-light .portfolio-tile:hover{
  border-color: rgba(37,99,235,.35);
  background:#f8fafc;
}
body.theme-light .portfolio-tile.active{
  border-color:#2563eb;
  background:#edf2ff;
  color:#0f172a;
  box-shadow:0 16px 36px rgba(37,99,235,.15);
}
body.theme-light .portfolio-tile .pt-meta{
  color:#64748b;
}
body.theme-light .story-period-toggle{
  background:rgba(15,23,42,.06);
  border-color:rgba(15,23,42,.12);
  box-shadow:none;
}
body.theme-light .story-period-option{
  color:#1f2937;
}
body.theme-light .story-period-option.active{
  color:#ffffff;
  box-shadow:0 10px 20px rgba(37,99,235,.25);
}
body.theme-light .story-narrative{
  color:#1f2937;
}
body.theme-light .benchmark-trigger{
  background:#ffffff;
  color:#0f172a;
  border-color:rgba(15,23,42,.12);
}
body.theme-light .benchmark-trigger:hover{
  color:#2563eb;
  border-color:rgba(37,99,235,.4);
}
body.theme-light .story-metric{
  background:#ffffff;
  border-color: rgba(15,23,42,.08);
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
body.theme-light .story-metric-label{
  color:#64748b;
}
body.theme-light .story-metric-value{
  color:#0f172a;
}
body.theme-light .story-metric-sub{
  color:#475569;
}
body.theme-light .story-insight{
  background:#ffffff;
  border-color: rgba(15,23,42,.08);
  color:#0f172a;
}
body.theme-light .story-insight-label{
  color:#475569;
}
body.theme-light .story-insight-value{
  color:#0f172a;
}
body.theme-light .story-insight-text{
  color:#475569;
}
body.theme-light .holdings-manage-row{
  background:#ffffff;
  border-color: rgba(15,23,42,.08);
}
body.theme-light .holdings-manage-symbol,
body.theme-light .holdings-manage-qty{
  color:#0f172a;
}
body.theme-light .holdings-manage-label{
  color:#475569;
}
body.theme-light .transaction-tabs .trans-tab{
  background:#f8fafc;
  border-color: rgba(15,23,42,.12);
  color:#1f2937;
}
body.theme-light .transaction-tabs .trans-tab.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#ffffff;
  box-shadow:0 0 0 2px rgba(37,99,235,.2);
}
body.theme-light .security-results{
  background:#ffffff;
  border-color: rgba(15,23,42,.12);
}
body.theme-light .security-results .security-item{
  border-color: rgba(15,23,42,.08);
  color:#0f172a;
}
body.theme-light .security-results .security-item:hover{
  background: rgba(59,130,246,.08);
}
body.theme-light .activity-suggestions{
  background:#ffffff;
  border-color: rgba(15,23,42,.12);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}
body.theme-light .activity-suggestions .activity-suggestion{
  color:#0f172a;
}
body.theme-light .activity-suggestions .activity-suggestion:not(:last-child){
  border-color: rgba(15,23,42,.08);
}
body.theme-light .activity-suggestion-note{
  color:#64748b;
}
body.theme-light .activity-row,
body.theme-light .activity-selection-row{
  border-color: rgba(15,23,42,.12);
  background:#ffffff;
}
body.theme-light .activity-row.buy,
body.theme-light .activity-selection-row.buy{
  border-left:3px solid rgba(34,197,94,.35);
}
body.theme-light .activity-row.sell,
body.theme-light .activity-selection-row.sell{
  border-left:3px solid rgba(248,113,113,.35);
}
body.theme-light .activity-label{
  color:#94a3b8;
}
body.theme-light .activity-value{
  color:#0f172a;
}
body.theme-light .activity-side-badge.buy{
  background: rgba(34,197,94,.16);
  color:#166534;
}
body.theme-light .activity-side-badge.sell{
  background: rgba(248,113,113,.16);
  color:#b91c1c;
}
body.theme-light .activity-portfolio{
  background: rgba(59,130,246,.14);
  color:#1d4ed8;
}
body.theme-light .market-tile{
  background: linear-gradient(150deg, #ffffff, #e3f2ff);
  border-color: rgba(15,23,42,.08);
  box-shadow:0 16px 40px rgba(15,23,42,.08);
  color:#0f172a;
}
body.theme-light .market-tile.up{
  background: linear-gradient(150deg, #ffffff, rgba(209,250,229,.85));
}
body.theme-light .market-tile.down{
  background: linear-gradient(150deg, #ffffff, rgba(254,226,226,.85));
}
body.theme-light .market-name,
body.theme-light .market-value{
  color:#0f172a;
}
body.theme-light .market-change{
  color:#166534;
}
body.theme-light .market-tile.down .market-change{
  color:#b91c1c;
}
body.theme-light .investor-quotes{
  background: linear-gradient(145deg, rgba(59,130,246,.08), #ffffff);
  border:1px solid rgba(59,130,246,.2);
  color:#0f172a;
  box-shadow:0 20px 48px rgba(15,23,42,.08);
}
body.theme-light .investor-quotes .quote-text,
body.theme-light .investor-quotes .quote-author{
  color:#0f172a !important;
}
body.theme-light .pmodal .pm-backdrop{
  background: rgba(15,23,42,.45);
}
body.theme-light .pm-dialog{
  background:#ffffff;
  color:#0f172a;
  border-color: rgba(15,23,42,.1);
  box-shadow:0 30px 70px rgba(15,23,42,.15);
}
body.theme-light .pm-header{
  border-bottom:1px solid rgba(15,23,42,.08);
}
body.theme-light .pm-title{
  color:#0f172a;
}
body.theme-light .pm-subtitle{
  color:#475569;
}
body.theme-light .pm-item{
  background:#f8fafc;
  border-color: rgba(15,23,42,.08);
  color:#0f172a;
}
body.theme-light .pm-item:hover{
  background:#edf2ff;
}
body.theme-light .section-card{
  border-color: rgba(15,23,42,.08);
}
body.theme-light .section-title{
  color:#0f172a;
}
body.theme-light .section-line{
  color:#475569;
}
body.theme-light .backend-error-box{
  background: linear-gradient(135deg, rgba(248,113,113,.18), rgba(59,130,246,.12));
  color:#0f172a;
  border-color: rgba(248,113,113,.35);
  box-shadow: 0 10px 30px rgba(15,23,42,.15);
}
body.theme-light .backend-error-text{
  color:#334155;
}
body.theme-light .backend-error-icon{
  background: rgba(248,113,113,.12);
  color:#dc2626;
}
body.theme-light .acct-menu{
  background:#ffffff;
  border-color: rgba(15,23,42,.1);
  box-shadow:0 18px 50px rgba(15,23,42,.15);
}
body.theme-light .acct-menu-item{
  color:#0f172a;
}
body.theme-light .acct-menu-item:hover{
  background: rgba(59,130,246,.1);
}
body.theme-light .acct-menu-sep{
  background: rgba(15,23,42,.08);
}
body.theme-light table{
  color:#0f172a;
}
body.theme-light .table thead{
  background:#f1f5f9;
}
body.theme-light .table tbody tr{
  border-color: rgba(15,23,42,.08);
}
body.theme-light .table-striped>tbody>tr:nth-of-type(odd){
  background:#f8fafc;
}
body.theme-light .btn.btn-outline-danger{
  border-color:#ef4444;
  color:#b91c1c;
  background:#ffffff;
}
body.theme-light .btn.btn-outline-danger:hover{
  background:#fee2e2;
}
