:root {
  --bg: #0b0f17;
  --surface: #121824;
  --surface-2: #182030;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #e5b84b;
  --accent-dim: rgba(229, 184, 75, 0.13);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.13);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.13);
  --radius: 14px;
  --sidebar-w: 212px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="navy"] {
  --bg: #070b14;
  --surface: #0f1626;
  --surface-2: #162036;
  --border: #22304d;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #b45309;
  --accent-dim: rgba(180, 83, 9, 0.1);
  --green: #16a34a;
  --green-dim: rgba(22, 163, 74, 0.12);
  --red: #dc2626;
  --red-dim: rgba(220, 38, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 18% 0%, rgba(229, 184, 75, 0.06), transparent 42%),
              radial-gradient(circle at 86% 10%, rgba(56, 189, 248, 0.045), transparent 38%),
              var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sol Navigasyon */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(17, 21, 29, 0.96);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .badge-soon,
.sidebar.collapsed .stage-pill {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f3ce6c, #d4a028);
  color: #080a0f;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(229, 184, 75, 0.28);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.badge-soon {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sidebar-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.stage-pill {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
}

/* Ana Alan */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 21, 29, 0.88);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.demo-reset-btn {
  border: 0;
  background: var(--accent);
  color: #080a0f;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.fx-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.fx-pill:hover {
  border-color: var(--accent);
}

.fx-pill strong {
  color: var(--text);
  font-family: var(--mono);
}

/* Butonlar */
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.12s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #f0c85f, #d4a12e);
  color: #080a0f;
  box-shadow: 0 2px 12px rgba(229, 184, 75, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 4px 18px rgba(229, 184, 75, 0.38);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #3b4457;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #ffffff;
}

.refresh-icon { display: inline-block; }
.spinning .refresh-icon { animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* İçerik & Görünüm Geçişleri */
.content {
  padding: 22px 28px 36px;
  max-width: 1580px;
  width: 100%;
  margin: 0 auto;
}

.view { display: none; }
.view.active {
  display: block;
  animation: fadeSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* KPI Kartları */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-height: 118px;
  max-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

.clickable-card { cursor: pointer; }

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 184, 75, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #3a4356;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.kpi-card:hover::before { opacity: 1; }

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-arrow {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.kpi-card:hover .kpi-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.kpi-equiv-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.kpi-unit-select {
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.kpi-unit-select:focus {
  outline: none;
  border-color: var(--accent);
}

.muted {
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
}

.pos { color: var(--green); }
.neg { color: var(--red); }

.pct-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.pct-pill.pos { background: var(--green-dim); color: var(--green); }
.pct-pill.neg { background: var(--red-dim); color: var(--red); }

/* Hızlı Öngörü Şeridi */
.insight-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.14s ease;
}

.insight-pill span:first-child {
  color: var(--text-muted);
}

.insight-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Orta Grid */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

#overviewAssetsTable th,
#overviewAssetsTable td {
  padding: 8px 6px;
  font-size: 12.5px;
}

.side-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
  max-width: 100%;
}

.overview-grid > *,
.kpi-grid > *,
.view-section {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Mini Switch */
.mini-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
}

.mini-switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.mini-switch-btn.active {
  background: var(--surface);
  color: var(--accent);
}

/* Varlık Logosu */
.asset-row-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Tablolar */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.panel:has(#overviewAssetsTable),
.panel:has(#assetsViewBody) {
  overscroll-behavior: contain;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(35, 42, 55, 0.7);
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.14s ease; }

.data-table tbody tr.clickable:hover {
  background: var(--surface-2);
  cursor: pointer;
}

.data-table tbody tr.row-flash {
  animation: rowFlash 0.9s ease;
}

@keyframes rowFlash {
  0% { background: rgba(229, 184, 75, 0.22); }
  100% { background: transparent; }
}

.data-table th.num,
.data-table td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.asset-cell { display: flex; flex-direction: column; }
.asset-sym { font-weight: 700; color: var(--text); }
.asset-name { font-size: 11.5px; color: var(--text-muted); }

.sub-val {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.market-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline dotted rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
}

.link-btn:hover { color: var(--accent); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-OPEN { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-CLOSED { background: #6b7280; }
.status-MANUAL { background: var(--accent); }

.tx-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.tx-BUY { background: var(--accent-dim); color: var(--accent); }
.tx-SELL { background: rgba(249, 115, 22, 0.16); color: #fb923c; }
.tx-DEPOSIT { background: var(--green-dim); color: var(--green); }
.tx-WITHDRAW { background: var(--red-dim); color: var(--red); }
.tx-TRANSFER { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.tx-FX_CONVERT { background: rgba(20, 184, 166, 0.16); color: #2dd4bf; }
.tx-EXTERNAL_FUNDING { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.tx-DIVIDEND { background: var(--green-dim); color: var(--green); }
.tx-ADJUSTMENT { background: var(--surface-2); color: var(--text-muted); }

.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
}

.honest-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dağılım Halka Grafik */
.allocation-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.donut-container {
  position: relative;
  width: 184px;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.donut-svg {
  overflow: visible;
  display: block;
}

.donut-seg {
  cursor: pointer;
  transform-origin: 92px 92px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), stroke-width 0.2s ease, opacity 0.18s ease, filter 0.2s ease;
}

.donut-seg:hover,
.donut-seg.active {
  stroke-width: 26;
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.donut-seg.dimmed {
  opacity: 0.32;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 24px;
}

.donut-center-label { font-size: 11px; color: var(--text-muted); }
.donut-center-val {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.allocation-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.legend-row:hover,
.legend-row.active {
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Hesap Kartları */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.account-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-balances {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* İşlem Defteri Filtreler */
.ledger-header { flex-wrap: wrap; }
.ledger-filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* Tab Bar */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn.active { background: var(--surface); color: var(--accent); }

/* Formlar & Modallar */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  animation: modalPop 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-wide {
  max-width: 620px;
}

#closeConfirmModal {
  z-index: 80;
}

.modal-confirm {
  max-width: 420px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h3 { margin: 0; font-size: 16px; }

.form-grid { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; gap: 10px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field span { font-size: 12px; color: var(--text-muted); }

.input, .field input, .field select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s ease;
}

.input:focus, .field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}

.input-sm { padding: 6px 9px; font-size: 12.5px; width: auto; }
.inline-pair { display: grid; grid-template-columns: 1fr 80px; gap: 6px; }
.inline-pair-wide { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; }
.inline-two-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.trade-total-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trade-total-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.trade-total-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.trade-total-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.trade-total-sub {
  font-size: 11.5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.form-table th,
.form-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
  border-bottom: 0;
}

.form-table th {
  width: 36%;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.form-table td input,
.form-table td select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s ease;
}

.form-table td input:focus,
.form-table td select:focus {
  outline: none;
  border-color: var(--accent);
}

.advanced-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.advanced-box summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* Detay Çekmecesi & Fiyat Grafiği */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  z-index: 60;
}

.drawer {
  width: 100%;
  max-width: 470px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 18px;
  overflow-y: auto;
  animation: slideInRight 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-body { display: flex; flex-direction: column; gap: 12px; }

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-bar {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.range-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.range-btn.active {
  background: var(--surface);
  color: var(--accent);
}

.chart-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--mono);
}

.drawer-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.drawer-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.drawer-stat .label { font-size: 11px; color: var(--text-muted); }
.drawer-stat .val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: fadeSlideIn 0.18s ease;
}

.budget-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.budget-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-only { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html, body, .app-shell, .main-area, .content, .view-section {
    max-width: 100%;
    overflow-x: hidden;
  }
  .sidebar { display: none; }
  .sidebar.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 90;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.65);
  }
  .toast {
    bottom: 76px;
    right: 12px;
    left: 12px;
  }
  .mobile-only { display: inline-flex; }
  .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; }
  .content { padding: 12px 12px 72px; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .two-col, .three-col, .inline-two-equal { grid-template-columns: minmax(0, 1fr); }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td {
    display: block;
    width: 100%;
  }
  .form-table th {
    border-bottom: 0;
    padding: 8px 10px 2px;
  }
  .form-table td {
    padding: 2px 10px 9px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 40;
  }
  .mobile-nav-item {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
  }
  .mobile-nav-item.active { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Hızlı Alım Akıllı Tamamlama (Autocomplete) */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.autocomplete-section {
  padding: 5px 8px 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.autocomplete-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.autocomplete-item:hover {
  background: var(--surface-2);
}

.autocomplete-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.autocomplete-item-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.field-hint {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.3;
}

/* Grafik İmleç Üzerinde Yüzen Tooltip */
.chart-box {
  position: relative;
}

.chart-floating-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  background: rgba(13, 17, 26, 0.94);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  transform: translate(-50%, -115%);
}

.chart-floating-tooltip .tt-date {
  font-size: 10.5px;
  color: var(--text-muted);
}

.chart-floating-tooltip .tt-price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.curr-inline-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}

/* Tam Ekran Premium Giriş / Kayıt Geçidi */
.auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(229, 184, 75, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.10), transparent 45%),
    var(--bg);
}

.auth-gate-inner {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.auth-showcase {
  background: linear-gradient(155deg, rgba(20, 25, 36, 0.92), rgba(11, 14, 20, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.auth-brand small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-headline {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-carousel {
  position: relative;
  min-height: 215px;
}

.auth-slide {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  animation: slideFadeIn 0.35s ease;
}

.auth-slide.active {
  display: block;
}

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

.slide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-slide h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.auth-slide p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.slide-preview-card {
  background: rgba(8, 10, 15, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
}

.sp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.sp-val {
  font-family: var(--mono);
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 40px;
  background: var(--accent);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-card-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.auth-card-head p {
  margin: 0 0 16px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-gate-inner {
    grid-template-columns: 1fr;
  }
}

/* Şifremi Unuttum Premium 3 Adımlı Akış */
.forgot-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  font-size: 12.5px;
}

.forgot-flow {
  animation: slideFadeIn 0.25s ease;
}

.forgot-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.forgot-step {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.forgot-step.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.forgot-step.done {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.45);
}

.forgot-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(229, 184, 75, 0.08);
  border: 1px solid rgba(229, 184, 75, 0.28);
  font-size: 12px;
}

.forgot-timer {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.code-input-otp {
  text-align: center;
  font-family: var(--mono);
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 0.45em;
  padding: 10px !important;
}

.pwd-strength-wrap {
  height: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: -4px;
  margin-bottom: 4px;
}

.pwd-strength-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.2s ease, background 0.2s ease;
}

/* Canlı Kur ve Hisse Fiyatı Değişim Animasyonları */
.live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.fx-pill.fx-flash-up,
tr.price-flash-up {
  animation: priceUpFlash 1.2s ease;
}

.fx-pill.fx-flash-down,
tr.price-flash-down {
  animation: priceDownFlash 1.2s ease;
}

@keyframes priceUpFlash {
  0% { background-color: rgba(34, 197, 94, 0.32); border-color: var(--green); }
  100% { background-color: transparent; }
}

@keyframes priceDownFlash {
  0% { background-color: rgba(239, 68, 68, 0.32); border-color: var(--red); }
  100% { background-color: transparent; }
}

.auth-demo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-demo-divider::before,
.auth-demo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-demo-btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(229, 184, 75, 0.35) !important;
  color: var(--accent) !important;
}

.auth-demo-btn:hover {
  background: var(--accent-dim) !important;
}

/* Sisteme Yönlendirme Geçiş Ekranı */
.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(8px);
}

.redirect-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(229, 184, 75, 0.35);
  border-radius: 18px;
  padding: 34px 40px;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: slideFadeIn 0.28s ease;
}

.redirect-card h3 {
  margin: 14px 0 6px;
  font-size: 20px;
  color: var(--accent);
}

.redirect-card p {
  margin: 0;
  font-size: 13.5px;
}

.redirect-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 3px solid rgba(229, 184, 75, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
}

.valuation-warning-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 12.5px;
  line-height: 1.45;
}

.gold-quote-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 11.5px;
}

.gold-quote-strip .gq-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gold-quote-strip .gq-label {
  color: var(--text-muted);
  font-size: 10.5px;
}

.gold-quote-strip .gq-val {
  font-weight: 700;
  color: var(--text);
}

.gold-warn-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 10.5px;
}

.gold-buy-summary {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(229, 184, 75, 0.35);
  background: rgba(229, 184, 75, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gbs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gbs-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gbs-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.gbs-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(229, 184, 75, 0.14);
}

.gbs-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.gbs-status.live {
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
}

.gbs-status.closed {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
}

.gbs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gbs-card {
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gbs-card-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.gbs-card-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.gbs-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.gbs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.gbs-apply-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gbs-apply-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.gbs-apply-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 540px) {
  .gbs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html, body, .app-shell, .main-area, .content, .view-section {
    max-width: 100%;
    overflow-x: hidden;
  }
  .topbar {
    padding: 8px 10px;
    gap: 6px;
  }
  .topbar-right {
    flex-wrap: wrap;
    gap: 6px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    padding: 12px;
  }
}

/* Canlı Haber Akan Yazı Şeridi & Detay Modalı */
.news-ticker-panel {
  padding: 14px 16px;
}

.news-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #22c55e);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.news-ticker-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 7px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.news-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: meteNewsMarquee var(--ticker-duration, 45s) linear infinite;
}

.news-ticker-track.news-ticker-empty {
  animation: none;
  padding: 0 12px;
  white-space: normal;
}

.news-ticker-viewport:hover .news-ticker-track,
.news-ticker-panel.paused .news-ticker-track {
  animation-play-state: paused;
}

@keyframes meteNewsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.news-ticker-item:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.09);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.01em;
}

.news-tag-held {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.news-tag-market {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.25);
}

.news-ticker-headline {
  font-weight: 500;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker-source {
  font-size: 11px;
  color: var(--text-muted);
}

.news-ticker-meta {
  margin-top: 8px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.news-detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 12px;
}

.news-detail-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.38;
  color: var(--text);
}

.news-detail-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-line;
}
