:root {
--bg-main: #f5f6f8;
--bg-panel: #ffffff;
--bg-panel-2: #ffffff;
--bg-soft: #f8fafc;

--line: #e5e7eb;
--line-strong: #d1d5db;

--text-main: #0f172a;
  --text-soft: rgba(15, 23, 42, 0.68);
  --text-dim: rgba(15, 23, 42, 0.48);

--cyan: #d4af37;
--cyan-soft: #f1d36a;
--violet: #6b7280;
--purple: #6b7280;
--gold: #d4af37;

--green: #16a34a;
--green-soft: rgba(22, 163, 74, 0.12);

--red: #dc2626;
--red-soft: rgba(220, 38, 38, 0.12);

--neutral: #6b7280;
--neutral-soft: rgba(107, 114, 128, 0.12);

--shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.06);
--glow-cyan: 0 1px 2px rgba(15, 23, 42, 0.04);
--glow-violet: 0 1px 2px rgba(15, 23, 42, 0.04);

--radius-xl: 22px;
--radius-lg: 18px;
--radius-md: 16px;
--radius-sm: 12px;
}

* {
box-sizing: border-box;
}


html {
scroll-behavior: smooth;
}

html,
body {
background:
  radial-gradient(900px 420px at 12% 0%, rgba(212, 175, 55, 0.18), rgba(245, 246, 248, 0) 55%),
  radial-gradient(840px 380px at 88% 12%, rgba(22, 163, 74, 0.12), rgba(245, 246, 248, 0) 55%),
  var(--bg-main);
color: var(--text-main);
}

body {
margin: 0;
font-family: Inter, Arial, Helvetica, sans-serif;
font-size: 15px;
}

a {
color: var(--cyan-soft);
text-decoration: none;
}

a:hover {
color: var(--cyan);
}

.app-shell {
max-width: 1520px;
margin: 0 auto;
padding: 20px;
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(10px);
}

.panel,
.coin-card,
.coin-focus-card,
.summary-card,
.alert-card,
.stat-card,
.mini-stat {
background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10));
border: 1px solid rgba(212, 175, 55, 0.48);
box-shadow:
  0 10px 28px rgba(212, 175, 55, 0.10),
  inset 0 0 0 1px rgba(212, 175, 55, 0.18);

/* Make text readable inside gold frames */
--text-main: #0f172a;
--text-soft: rgba(15, 23, 42, 0.75);
--text-dim: rgba(15, 23, 42, 0.55);
}

.topbar,
.panel {
border-radius: var(--radius-xl);
}

.coin-card,
.coin-focus-card,
.summary-card,
.alert-card,
.stat-card {
border-radius: var(--radius-lg);
}

.panel:hover,
.coin-card:hover,
.coin-focus-card:hover,
.summary-card:hover,
.alert-card:hover,
.stat-card:hover,
.mini-stat:hover {
border-color: rgba(212, 175, 55, 0.32);
box-shadow:
  0 14px 34px rgba(15, 23, 42, 0.09),
  0 0 0 1px rgba(212, 175, 55, 0.12),
  inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 18px;
margin-bottom: 18px;
padding: 20px 22px;
backdrop-filter: blur(10px);
position: relative;
top: auto;
z-index: 20;
background: linear-gradient(180deg, rgba(255, 247, 222, 0.96), rgba(255, 240, 190, 0.86));
border: 1px solid rgba(212, 175, 55, 0.55);
border-radius: var(--radius-xl);

/* Header is now light, so switch text tone to dark */
--text-main: #0f172a;
--text-soft: rgba(15, 23, 42, 0.68);
--text-dim: rgba(15, 23, 42, 0.48);
}

.brand {
display: flex;
align-items: center;
gap: 16px;
}

.brand-mark,
.brand-mark-image {
width: 72px;
height: 72px;
min-width: 72px;
min-height: 72px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
box-shadow: none;
overflow: visible;
}

.brand-logo-img {
display: block;
width: 72px;
height: 72px;
object-fit: contain;
object-position: center center;
border-radius: 0;
background: transparent;
  border: none;
  box-shadow: none;
}

.brand-initial {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(22, 163, 74, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.30);
  box-shadow: var(--shadow-lg), 0 0 18px rgba(212, 175, 55, 0.12);
}

.brand-text h1 {
margin: 0;
font-size: 34px;
color: var(--text-main);
letter-spacing: -0.02em;
}

.brand-text p {
margin: 4px 0 0;
color: var(--text-soft);
font-size: 14px;
}

.topbar-metrics {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: flex-end;
}

.mini-stat {
min-width: 132px;
padding: 12px 14px;
border-radius: 14px;
}

.mini-stat span {
display: block;
color: var(--text-soft);
font-size: 12px;
margin-bottom: 6px;
}

.mini-stat strong {
font-size: 16px;
color: var(--text-main);
word-break: break-word;
}

.top-tabs {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 18px;
padding: 12px 14px;
background: rgba(5, 8, 21, 0.62);
border: 1px solid rgba(212, 175, 55, 0.28);
border-radius: var(--radius-xl);
}

.tab-btn {
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(19, 31, 68, 0.82);
  color: rgba(244, 248, 255, 0.78);
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: #f4f8ff;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.28),
    rgba(22, 163, 74, 0.08)
  );
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(212, 175, 55, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 18px;
}

.panel {
grid-column: span 6;
padding: 20px;
}

.panel-full {
grid-column: 1 / -1;
}

.section-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 18px;
}

.section-head h2 {
margin: 0;
font-size: 24px;
color: var(--text-main);
letter-spacing: -0.02em;
}

.section-head p {
margin: 6px 0 0;
color: var(--text-soft);
font-size: 14px;
}

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

.stat-card {
padding: 16px;
}

.stat-card span,
.summary-row span {
display: block;
color: var(--text-soft);
font-size: 13px;
margin-bottom: 8px;
}

.stat-card strong,
.summary-row strong {
font-size: 18px;
color: var(--text-main);
word-break: break-word;
}

.summary-row {
padding: 14px 16px;
border: 1px solid rgba(212, 175, 55, 0.30);
border-radius: 14px;
background: rgba(212, 175, 55, 0.06);
}
.coin-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}

.coin-card {
padding: 18px;
}

.coin-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}

.coin-head h3 {
margin: 0;
font-size: 22px;
color: #0f172a;
}

.coin-head h3.pos,
.coin-head h3.long,
.coin-head h3.buy,
.coin-head h3.bullish {
color: var(--green) !important;
}

.coin-head h3.neg,
.coin-head h3.short,
.coin-head h3.sell,
.coin-head h3.bearish {
color: var(--red) !important;
}

.coin-head h3.flat,
.coin-head h3.wait,
.coin-head h3.neutral {
color: var(--neutral) !important;
}

.coin-price {
margin: 14px 0 16px;
font-size: clamp(20px, 1.8vw, 30px);
font-weight: 800;
color: var(--text-main);
line-height: 1;
white-space: nowrap;
word-break: normal;
overflow-wrap: normal;
}

.coin-price.pos {
  color: var(--green) !important;
}

.coin-price.neg {
  color: var(--red) !important;
}

.coin-price.flat {
  color: var(--neutral) !important;
}

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

.metric-box {
padding: 10px 12px;
border: 1px solid rgba(212, 175, 55, 0.30);
border-radius: 12px;
background: rgba(212, 175, 55, 0.08);
justify-content: space-between;
}

.metric-box span {
display: block;
color: var(--text-soft);
font-size: 11px;
line-height: 1.2;
margin-bottom: 6px;
opacity: 0.75;
}

.metric-box strong {
display: block;
margin-top: 6px;
font-size: 13px;
line-height: 1.25;
color: var(--text-main);
word-break: break-word;
}

.metric-box span.pos,
.metric-box strong.pos {
color: var(--green) !important;
font-weight: 800;
opacity: 1 !important;
text-shadow: 0 0 8px rgba(22, 163, 74, 0.10);
}

.metric-box span.neg,
.metric-box strong.neg {
color: var(--red) !important;
font-weight: 800;
opacity: 1 !important;
text-shadow: 0 0 8px rgba(220, 38, 38, 0.10);
}

.metric-box span.flat,
.metric-box strong.flat {
color: var(--neutral) !important;
font-weight: 800;
opacity: 1 !important;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.signal-badge.signal-long {
color: var(--green);
background: rgba(22, 163, 74, 0.10);
border-color: rgba(22, 163, 74, 0.35);
box-shadow: 0 0 10px rgba(22, 163, 74, 0.10);
}

.signal-badge.signal-short {
color: var(--red);
background: rgba(220, 38, 38, 0.10);
border-color: rgba(220, 38, 38, 0.35);
box-shadow: 0 0 10px rgba(220, 38, 38, 0.10);
}

.signal-badge.signal-wait {
color: var(--neutral);
background: rgba(107, 114, 128, 0.08);
border-color: rgba(107, 114, 128, 0.25);
}

.coin-focus-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 16px;
}

.coin-focus-card {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 100%;
padding: 16px;
}

.coin-focus-card-heading {
min-width: 0;
width: 58%;
max-width: 58%;
}

.coin-focus-card-top {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: flex-start;
margin-bottom: 12px;
}

.coin-focus-card-top h3 {
margin: 0;
font-size: 20px;
color: #0f172a;
}

.coin-focus-card-top h3.pos,
.coin-focus-card-top h3.long,
.coin-focus-card-top h3.buy,
.coin-focus-card-top h3.bullish {
color: var(--green) !important;
font-weight: 800;
text-shadow: 0 0 12px rgba(22, 163, 74, 0.14);
}

.coin-focus-card-top h3.neg,
.coin-focus-card-top h3.short,
.coin-focus-card-top h3.sell,
.coin-focus-card-top h3.bearish {
color: var(--red) !important;
font-weight: 800;
text-shadow: 0 0 12px rgba(220, 38, 38, 0.14);
}

.coin-focus-card-top h3.flat,
.coin-focus-card-top h3.wait,
.coin-focus-card-top h3.neutral {
color: var(--neutral) !important;
}

.coin-focus-subtitle {
margin-top: 4px;
font-size: 13px;
color: var(--text-soft);
opacity: 0.95;
font-weight: 600;
}

.coin-focus-subtitle.pos,
.coin-focus-subtitle.long,
.coin-focus-subtitle.buy,
.coin-focus-subtitle.bullish {
color: var(--green) !important;
font-weight: 700;
opacity: 1 !important;
}

.coin-focus-subtitle.neg,
.coin-focus-subtitle.short,
.coin-focus-subtitle.sell,
.coin-focus-subtitle.bearish {
color: var(--red) !important;
font-weight: 700;
opacity: 1 !important;
}

.coin-focus-subtitle.flat,
.coin-focus-subtitle.wait,
.coin-focus-subtitle.neutral {
color: var(--neutral) !important;
}

.coin-focus-price-wrap {
min-width: 0;
width: 42%;
max-width: 42%;
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-start;
}

.coin-focus-price {
font-size: clamp(20px, 1.8vw, 30px);
font-weight: 800;
line-height: 1;
color: var(--text-main);
white-space: nowrap;
word-break: normal;
overflow-wrap: normal;
}

.coin-focus-price.pos,
.coin-focus-price.neg,
.coin-focus-price.flat {
  color: inherit;
}

.coin-focus-price.pos {
  color: var(--green) !important;
}

.coin-focus-price.neg {
  color: var(--red) !important;
}

.coin-focus-price.flat {
  color: var(--neutral) !important;
}

.coin-focus-tag {
margin-top: 4px;
margin-left: auto;
max-width: 140px;
font-size: 11px;
color: var(--text-soft);
opacity: 0.75;
word-break: break-word;
}

.coin-focus-badges {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}

.mini-badge {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
font-size: 11px;
line-height: 1;
background: rgba(15, 23, 42, 0.04);
color: rgba(15, 23, 42, 0.65);
border: 1px solid var(--line);
font-weight: 700;
opacity: 1;
}

.mini-badge.pos,
.mini-badge.long,
.mini-badge.buy,
.mini-badge.bullish,
.mini-badge.tp,
.mini-badge.take-profit {
color: var(--green) !important;
border-color: rgba(22, 163, 74, 0.35) !important;
background: rgba(22, 163, 74, 0.10) !important;
box-shadow: 0 0 10px rgba(22, 163, 74, 0.10);
}

.mini-badge.neg,
.mini-badge.short,
.mini-badge.sell,
.mini-badge.bearish,
.mini-badge.sl,
.mini-badge.stop-loss {
color: var(--red) !important;
border-color: rgba(220, 38, 38, 0.35) !important;
background: rgba(220, 38, 38, 0.10) !important;
box-shadow: 0 0 10px rgba(220, 38, 38, 0.10);
}

.mini-badge.flat,
.mini-badge.wait,
.mini-badge.neutral,
.mini-badge.balanced {
color: var(--neutral) !important;
border-color: rgba(107, 114, 128, 0.25) !important;
background: rgba(107, 114, 128, 0.08) !important;
}

/* Execution tier badge colors (user-specified) */
.mini-badge.tier-panic {
  color: var(--red) !important;
  border-color: rgba(220, 38, 38, 0.42) !important;
  background: rgba(220, 38, 38, 0.12) !important;
}

.mini-badge.tier-1 {
  color: var(--green) !important;
  border-color: rgba(22, 163, 74, 0.40) !important;
  background: rgba(22, 163, 74, 0.12) !important;
}

.mini-badge.tier-2 {
  color: #facc15 !important;
  border-color: rgba(250, 204, 21, 0.45) !important;
  background: rgba(250, 204, 21, 0.14) !important;
}

.mini-badge.tier-3 {
  color: var(--red) !important;
  border-color: rgba(220, 38, 38, 0.42) !important;
  background: rgba(220, 38, 38, 0.12) !important;
}

.mini-badge.tier-notrade {
  color: var(--red) !important;
  border-color: rgba(220, 38, 38, 0.42) !important;
  background: rgba(220, 38, 38, 0.12) !important;
}

.coin-focus-grid-inner,
.summary-card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}

.coin-focus-grid-inner .metric-box,
.summary-card-grid .metric-box {
min-height: 58px;
}

.coin-focus-warning {
margin-top: 12px;
padding: 10px 12px;
border-radius: 12px;
background: rgba(255, 95, 109, 0.12);
border: 1px solid rgba(255, 95, 109, 0.28);
color: #ffd3d8;
font-size: 12px;
}

.coin-focus-note,
.summary-card-note {
margin-top: 12px;
font-size: 12px;
line-height: 1.5;
color: var(--text-soft);
opacity: 0.9;
word-break: break-word;
}

.coin-focus-note strong {
color: inherit;
}

.summary-cards-grid,
.alerts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 14px;
}

.summary-card {
padding: 16px;
}

.summary-card-top,
.alert-card-top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}

.summary-card-top h3,
.alert-card h3 {
margin: 0;
font-size: 18px;
color: var(--text-main);
}

.alert-card {
min-height: 152px;
padding: 16px;
}

.alert-card-top strong {
font-size: 13px;
}

.alert-type {
display: inline-flex;
padding: 6px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-main);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-card p {
margin: 0;
font-size: 13px;
line-height: 1.55;
color: var(--text-soft);
opacity: 0.95;
}

.alert-card.alert-system {
border-color: rgba(143, 221, 255, 0.16);
}

.alert-card.alert-macro {
border-color: rgba(140, 99, 255, 0.22);
box-shadow: var(--glow-violet);
}

.alert-card.alert-flow,
.alert-card.alert-opportunity {
border-color: rgba(61, 220, 132, 0.22);
}

.alert-card.alert-risk,
.alert-card.alert-caution,
.alert-card.alert-liquidation {
border-color: rgba(255, 95, 109, 0.22);
}

.table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

.data-table {
width: 100%;
border-collapse: collapse;
min-width: 980px;
}

.data-table th,
.data-table td {
padding: 12px 10px;
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
text-align: left;
font-size: 13px;
vertical-align: middle;
white-space: nowrap;
color: var(--text-main);
}

.data-table th {
color: rgba(255, 255, 255, 0.78);
font-weight: 600;
background: rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
background: rgba(212, 175, 55, 0.14);
}

.data-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.02);
}

.whale-detail-table {
min-width: 1200px;
}

.whale-detail-table th,
.whale-detail-table td {
white-space: nowrap;
vertical-align: middle;
}

.whale-detail-table th {
font-size: 12px;
}

.whale-detail-table td {
font-size: 13px;
}

.whale-address-link {
color: var(--cyan-soft);
}

.whale-address-link:hover {
text-decoration: underline;
}

.raw-box {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
padding: 16px;
border-radius: 16px;
border: 1px solid rgba(15, 23, 42, 0.10);
background: rgba(255, 255, 255, 0.92);
color: var(--text-main);
font-size: 12px;
}

/* semantic colors */
.pos,
.buy,
.long,
.bullish,
.tp,
.take-profit {
color: var(--green) !important;
font-weight: 700;
opacity: 1 !important;
}

.neg,
.sell,
.short,
.bearish,
.sl,
.stop-loss {
color: var(--red) !important;
font-weight: 700;
opacity: 1 !important;
}

.flat,
.neutral,
.wait,
.balanced {
color: var(--neutral) !important;
}

#systemStatus.pos,
#globalBias.pos {
color: var(--green) !important;
}

#systemStatus.neg,
#globalBias.neg {
color: var(--red) !important;
}

#globalBias.flat {
color: var(--neutral) !important;
}
.chat-panel {
display: flex;
flex-direction: column;
gap: 14px;
padding-bottom: 22px;
}

.chat-login-row {
display: grid;
grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 140px;
gap: 12px;
align-items: center;
}

.chat-login-hint {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.chat-login-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.chat-status-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 14px;
}

.chat-quick-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 14px;
}

.chat-quick-actions .btn {
width: auto;
min-width: 140px;
}

.chat-input-wrap {
display: grid;
grid-template-columns: 1fr 120px;
gap: 12px;
align-items: end;
}

.chat-state-text {
min-height: 20px;
color: var(--text-soft);
font-size: 14px;
}

.chat-status-badge {
padding: 8px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}

.chat-status-badge.locked {
color: #ffc2c8;
background: var(--red-soft);
border: 1px solid rgba(255, 95, 109, 0.28);
}

.chat-status-badge.unlocked {
color: #dcfce7;
background: rgba(61, 220, 132, 0.16);
border: 1px solid rgba(61, 220, 132, 0.28);
}

.chat-messages {
display: flex;
flex-direction: column;
gap: 12px;
min-height: 220px;
max-height: 420px;
overflow-y: auto;
padding: 14px;
margin-bottom: 14px;
border-radius: 16px;
border: 1px solid rgba(110, 180, 255, 0.12);
background: rgba(255, 255, 255, 0.03);
}

.chat-row {
display: flex;
}

.chat-row-user {
justify-content: flex-end;
}

.chat-row-ai {
justify-content: flex-start;
}

.chat-bubble {
max-width: 78%;
padding: 12px 14px;
border-radius: 16px;
line-height: 1.5;
font-size: 14px;
white-space: pre-wrap;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(15, 23, 42, 0.10);
color: var(--text-main);
}

.chat-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble-meta {
  margin-top: 8px;
  font-size: 11px;
color: rgba(15, 23, 42, 0.52);
  line-height: 1.2;
}

.chat-bubble-user {
background: rgba(212, 175, 55, 0.10);
border: 1px solid rgba(212, 175, 55, 0.22);
}

.chat-bubble-ai {
background: rgba(255, 255, 255, 0.98);
}

.input,
.chat-textarea {
width: 100%;
min-width: 0;
padding: 12px 14px;
color: #0f172a;
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(15, 23, 42, 0.10);
border-radius: 12px;
outline: none;
}

.input::placeholder,
.chat-textarea::placeholder {
color: var(--text-dim);
}

.input:focus,
.chat-textarea:focus {
border-color: rgba(212, 175, 55, 0.55);
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
outline: none;
}

.chat-textarea {
min-height: 110px;
resize: vertical;
}

.btn {
border: 1px solid rgba(15, 23, 42, 0.10);
border-radius: 12px;
padding: 11px 16px;
cursor: pointer;
color: var(--text-main);
background: rgba(255, 255, 255, 0.95);
}

.btn-primary {
background: linear-gradient(135deg, rgba(212, 175, 55, 0.30), rgba(22, 163, 74, 0.12));
color: #0f172a;
border-color: rgba(212, 175, 55, 0.45);
}

.btn-primary:hover {
filter: brightness(1.06);
}

.btn-secondary {
background: rgba(255, 255, 255, 0.65);
color: var(--text-main);
border-color: rgba(15, 23, 42, 0.10);
}

#loginBtn,
#sendChatBtn {
width: 100%;
min-height: 48px;
}

/* health panel */
.health-topbar {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
margin-bottom: 18px;
}

.health-mini {
padding: 14px 16px;
border-radius: 16px;
background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10));
border: 1px solid rgba(212, 175, 55, 0.40);
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.health-mini span {
display: block;
margin-bottom: 6px;
font-size: 12px;
color: rgba(15, 23, 42, 0.65);
letter-spacing: 0.04em;
text-transform: uppercase;
}

.health-mini strong {
font-size: 20px;
font-weight: 800;
color: #0f172a;
}

.health-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}

.health-card {
position: relative;
padding: 18px;
border-radius: 18px;
background: linear-gradient(180deg, rgba(212, 175, 55, 0.24), rgba(255, 255, 255, 0.55));
border: 1px solid rgba(15, 23, 42, 0.10);
box-shadow:
  0 12px 30px rgba(15, 23, 42, 0.07),
  inset 0 0 0 1px rgba(212, 175, 55, 0.05);
}

.health-card.health-ok {
border-color: rgba(54, 214, 140, 0.38);
box-shadow:
0 14px 34px rgba(16, 185, 129, 0.10),
0 0 0 1px rgba(16, 185, 129, 0.10),
inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.health-card.health-warn {
border-color: rgba(255, 194, 92, 0.34);
box-shadow:
0 14px 34px rgba(212, 175, 55, 0.12),
0 0 0 1px rgba(212, 175, 55, 0.12),
inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.health-card.health-bad {
border-color: rgba(255, 95, 109, 0.34);
box-shadow:
0 14px 34px rgba(220, 38, 38, 0.10),
0 0 0 1px rgba(220, 38, 38, 0.10),
inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.health-card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}

.health-card-top h3 {
margin: 0;
font-size: 20px;
line-height: 1.2;
color: #0f172a;
}

.health-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 72px;
padding: 8px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
background: rgba(255, 255, 255, 0.06);
color: rgba(15, 23, 42, 0.68);
border: 1px solid rgba(15, 23, 42, 0.10);
}

.health-badge.health-ok {
background: rgba(54, 214, 140, 0.12);
border-color: rgba(54, 214, 140, 0.28);
color: var(--green);
}

.health-badge.health-warn {
background: rgba(255, 194, 92, 0.12);
border-color: rgba(255, 194, 92, 0.28);
color: var(--cyan);
}

.health-badge.health-bad {
background: rgba(255, 95, 109, 0.12);
border-color: rgba(255, 95, 109, 0.28);
color: var(--red);
}

.health-card p {
margin: 0 0 14px;
color: rgba(15, 23, 42, 0.70);
line-height: 1.55;
font-size: 14px;
}

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

.health-meta-box {
padding: 12px 14px;
border-radius: 14px;
background: rgba(212, 175, 55, 0.03);
border: 1px solid rgba(15, 23, 42, 0.08);
}

.health-meta-box span {
display: block;
margin-bottom: 5px;
font-size: 12px;
color: rgba(15, 23, 42, 0.62);
}

.health-meta-box strong {
font-size: 16px;
color: var(--text-main);
font-weight: 700;
word-break: break-word;
}

@media (max-width: 1200px) {
.panel {
grid-column: 1 / -1;
}

.coin-grid,
.summary-cards-grid,
.alerts-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 900px) {
.coin-focus-grid,
.alerts-grid,
.coin-grid {
grid-template-columns: 1fr;
}

.chat-login-row {
grid-template-columns: 1fr 1fr;
}

.chat-login-row #loginBtn {
grid-column: 1 / -1;
}

.chat-input-wrap {
grid-template-columns: 1fr;
}

#sendChatBtn {
width: 100%;
}
}

@media (max-width: 820px) {
.app-shell {
padding: 14px;
}

.topbar {
flex-direction: column;
align-items: stretch;
gap: 14px;
}

.topbar-metrics {
justify-content: stretch;
}

.mini-stat {
flex: 1 1 120px;
}

.overview-grid,
.summary-grid,
.coin-grid,
.coin-focus-grid,
.summary-cards-grid,
.alerts-grid,
.coin-focus-grid-inner,
.summary-card-grid {
grid-template-columns: 1fr;
}

.chat-bubble {
max-width: 100%;
}

.health-grid,
.health-topbar {
grid-template-columns: 1fr;
}

.health-card-top {
flex-direction: column;
align-items: flex-start;
}

.health-meta {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
body {
font-size: 14px;
}

.brand-logo-img {
width: 60px;
height: 60px;
border-radius: 0;
}

.brand-text h1 {
font-size: 28px;
color: #ffffff;
}

.section-head h2 {
font-size: 21px;
}

.coin-price,
.coin-focus-price {
font-size: 26px;
}

.table-wrap {
border-radius: 16px;
}

.whale-detail-table {
min-width: 980px;
}

.whale-detail-table th,
.whale-detail-table td {
padding: 10px 12px;
font-size: 12px;
}
}

@media (max-width: 640px) {
.top-tabs {
overflow-x: auto;
flex-wrap: nowrap;
gap: 8px;
padding-bottom: 4px;
}

.top-tabs .tab-btn {
white-space: nowrap;
flex: 0 0 auto;
}

.coin-focus-card,
.summary-card,
.alert-card,
.coin-card {
border-radius: 16px;
}

.coin-focus-card-top,
.summary-card-top,
.alert-card-top {
flex-direction: column;
align-items: flex-start;
}

.coin-focus-price-wrap {
text-align: left;
min-width: 0;
}

.coin-focus-tag {
margin-left: 0;
max-width: none;
}

.coin-focus-badges {
gap: 6px;
}

.mini-badge,
.signal-badge {
font-size: 10px;
}

.chat-login-row {
grid-template-columns: 1fr;
}

.chat-quick-actions {
display: grid;
grid-template-columns: 1fr;
}

.chat-quick-actions .btn {
width: 100%;
min-width: 0;
}

.chat-messages {
min-height: 180px;
max-height: 320px;
}

.chat-textarea {
min-height: 96px;
}
}

@media (max-width: 480px) {
.brand-text h1 {
font-size: 20px;
color: #ffffff;
}

.coin-price,
.coin-focus-price {
font-size: 18px;
}

.section-head h2 {
font-size: 18px;
}

.coin-metrics,
.overview-grid,
.summary-grid,
.coin-focus-grid-inner,
.summary-card-grid {
grid-template-columns: 1fr;
}

.alert-card {
min-height: auto;
}

.alert-card h3 {
font-size: 15px;
}

.alert-card p,
.coin-focus-note,
.summary-card-note {
font-size: 12px;
}

.whale-detail-table {
min-width: 920px;
}

.whale-detail-table th,
.whale-detail-table td {
padding: 9px 10px;
font-size: 11px;
}

.tab-btn,
.btn {
width: 100%;
}
}
.liquidity-summary-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.liquidity-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.liquidity-summary-top h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-main);
}

.liquidity-summary-top p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.liquidity-summary-regime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.liquidity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.liquidity-mini-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(110, 180, 255, 0.12);
}

.liquidity-mini-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.liquidity-mini-card strong {
  font-size: 18px;
  color: #0f172a;
  font-weight: 800;
}

.liquidity-summary-table-wrap {
  border-radius: 16px;
  overflow: auto;
}

.liquidity-summary-table {
  min-width: 760px;
}

.liquidity-summary-table td strong {
  color: #0f172a;
}

.liquidity-summary-table td.pos,
.liquidity-summary-table strong.pos,
.liquidity-mini-card strong.pos,
.liquidity-summary-regime.pos {
  color: var(--green) !important;
  font-weight: 800;
}

.liquidity-summary-table td.neg,
.liquidity-summary-table strong.neg,
.liquidity-mini-card strong.neg,
.liquidity-summary-regime.neg {
  color: var(--red) !important;
  font-weight: 800;
}

.liquidity-summary-table td.flat,
.liquidity-summary-table strong.flat,
.liquidity-mini-card strong.flat,
.liquidity-summary-regime.flat {
  color: var(--neutral) !important;
  font-weight: 800;
}

@media (max-width: 900px) {
  .liquidity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .liquidity-summary-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .liquidity-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* === Dark bright background + white text override (requested) === */
body {
  background: #050815 !important;
  color: #f4f8ff !important;
}

.app-shell {
  background: rgba(5, 8, 21, 0.35) !important;
}

.topbar,
.panel,
.coin-card,
.coin-focus-card,
.summary-card,
.alert-card,
.stat-card,
.mini-stat,
.health-mini,
.health-card,
.summary-row,
.liquidity-mini-card {
  background: linear-gradient(180deg, rgba(19, 31, 68, 0.96), rgba(9, 18, 44, 0.96)) !important;
  color: #f4f8ff !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
}

.metric-box,
.health-meta-box,
.signal-badge,
.chat-bubble,
.raw-box {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #f4f8ff !important;
  border-color: rgba(110, 180, 255, 0.14) !important;
}

.section-head h2,
.brand-text h1,
.brand-text p,
.topbar-metrics span,
.mini-stat span,
.mini-stat strong {
  color: #f4f8ff !important;
}

.data-table th,
.data-table td {
  color: #f4f8ff !important;
  border-bottom: 1px solid rgba(110, 180, 255, 0.10) !important;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03) !important;
}

.data-table tr:hover td {
  background: rgba(212, 175, 55, 0.12) !important;
}

.data-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.015) !important;
}

.liquidity-mini-card span,
.liquidity-mini-card strong {
  color: #f4f8ff !important;
}

/* Extra readability overrides for the rest of the UI (menu + data text) */
.stat-card span,
.stat-card strong,
.summary-row span,
.summary-row strong,
.alert-card p,
.health-card p,
.health-meta-box span,
.health-meta-box strong,
.metric-box span,
.metric-box strong,
.coin-focus-subtitle,
.coin-focus-card-top h3,
.coin-head h3,
.coin-price,
.coin-metrics .metric-box span,
.coin-metrics .metric-box strong {
  color: #f4f8ff !important;
}

.top-tabs .tab-btn,
.top-tabs .tab-btn:hover,
.top-tabs .tab-btn.active {
  color: #f4f8ff !important;
}

/* Sub-title under section headers (e.g., "Core macro snapshot...") */
.section-head p {
  color: rgba(244, 248, 255, 0.72) !important;
}

/* Improve readability of note/warning text inside coin cards */
.coin-focus-note,
.summary-card-note {
  color: rgba(244, 248, 255, 0.9) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.coin-focus-note strong,
.summary-card-note strong {
  color: #f4f8ff !important;
}

.coin-focus-warning {
  color: #ffe3e7 !important;
  background: rgba(255, 95, 109, 0.2) !important;
  border-color: rgba(255, 95, 109, 0.45) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Real Flow Feed text colors */
.data-table td.pos,
.data-table td.flow-pos {
  color: var(--green) !important;
  font-weight: 700;
}

.data-table td.neg,
.data-table td.flow-neg {
  color: var(--red) !important;
  font-weight: 700;
}

.data-table td.futures-symbol {
  color: rgba(244, 248, 255, 0.66) !important;
}

/* Positioning Summary: symbol + values by flow status */
.summary-card-top h3.flow-pos,
.summary-card-grid .metric-box strong.flow-pos {
  color: var(--green) !important;
}

.summary-card-top h3.flow-neg,
.summary-card-grid .metric-box strong.flow-neg {
  color: var(--red) !important;
}

/* System Health readability tuning */
#healthSection .section-head p {
  color: rgba(244, 248, 255, 0.84) !important;
}

#healthSection .health-mini span {
  color: rgba(244, 248, 255, 0.78) !important;
  font-weight: 700;
}

#healthSection .health-mini strong {
  color: #f4f8ff !important;
}

#healthSection .health-card-top h3 {
  color: #f4f8ff !important;
  font-size: 18px !important;
}

#healthSection .health-card p {
  color: rgba(244, 248, 255, 0.86) !important;
  font-size: 13px !important;
}

#healthSection .health-meta-box span {
  color: rgba(244, 248, 255, 0.76) !important;
}

#healthSection .health-meta-box strong {
  color: #f4f8ff !important;
}

/* Private AI Chat readability tuning */
#aiChatPanel .chat-login-hint {
  color: rgba(244, 248, 255, 0.82) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

#aiChatPanel .chat-login-hint code {
  color: #f4f8ff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(110, 180, 255, 0.25) !important;
}

#aiChatPanel .chat-state-text {
  color: rgba(244, 248, 255, 0.9) !important;
  font-weight: 600;
}

#aiChatPanel .input,
#aiChatPanel .chat-textarea {
  color: #f4f8ff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(110, 180, 255, 0.24) !important;
}

#aiChatPanel .input::placeholder,
#aiChatPanel .chat-textarea::placeholder {
  color: rgba(244, 248, 255, 0.58) !important;
}

#aiChatPanel .chat-messages {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(110, 180, 255, 0.20) !important;
}

#aiChatPanel .chat-bubble {
  color: #f4f8ff !important;
  border-color: rgba(110, 180, 255, 0.24) !important;
}

#aiChatPanel .chat-bubble-ai {
  background: rgba(255, 255, 255, 0.07) !important;
}

#aiChatPanel .chat-bubble-user {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.36) !important;
}

#aiChatPanel .chat-bubble-meta {
  color: rgba(244, 248, 255, 0.66) !important;
}

#aiChatPanel .chat-quick-actions .btn,
#aiChatPanel #loginBtn,
#aiChatPanel #sendChatBtn {
  color: #f4f8ff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(110, 180, 255, 0.24) !important;
}

#aiChatPanel #loginBtn:hover,
#aiChatPanel #sendChatBtn:hover,
#aiChatPanel .chat-quick-actions .btn:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Liquidity section title in white */
#liquiditySection .section-head h2,
#liquiditySection .summary-card-top h3 {
  color: #f4f8ff !important;
}

/* Positioning Summary title should remain white */
#positioningSection .section-head h2 {
  color: #f4f8ff !important;
}

/* Top Setup: color by directional words */
#topSetup.pos {
  color: var(--green) !important;
}

#topSetup.neg {
  color: var(--red) !important;
}

#topSetup.flat {
  color: var(--neutral) !important;
}

/* Demo trading (testnet) — high-contrast CTAs + green "online" state */
#demoTradingSection .btn-trading-cta.btn-primary {
  background: linear-gradient(135deg, #ca8a04 0%, #15803d 100%);
  color: #f8fafc !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

#demoTradingSection .btn-trading-cta.btn-primary:hover:not(:disabled) {
  filter: brightness(1.09);
}

#demoTradingSection .btn-trading-cta.btn-trading-online,
#demoTradingSection .btn-trading-cta.btn-trading-online:disabled {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 45%, #14532d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(110, 231, 183, 0.9) !important;
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.22);
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#demoTradingSection .btn-trading-cta.btn-trading-online:not(:disabled) {
  cursor: pointer;
}

#demoTradingSection .btn-trading-cta.btn-secondary {
  background: rgba(248, 250, 252, 0.98) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14);
  text-shadow: none;
  font-weight: 600;
}

#demoTradingSection .btn-trading-cta.btn-secondary:hover:not(:disabled) {
  filter: brightness(1.03);
}

#demoTradingSection .btn-trading-cta.btn-secondary.btn-trading-online {
  background: linear-gradient(135deg, #4ade80 0%, #15803d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.42);
}

#demoTradingSection .btn:disabled:not(.btn-trading-online) {
  opacity: 0.55;
}

.demo-auto-panel {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(110, 180, 255, 0.15);
}

.demo-auto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.demo-auto-label {
  font-size: 0.8rem;
  color: rgba(244, 248, 255, 0.65);
}

.demo-auto-status-line {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(244, 248, 255, 0.68);
}

.demo-decision-log-wrap {
  margin-top: 0.75rem;
}

.demo-decision-log {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  font-size: 0.75rem;
}

.input-inline {
  width: auto;
  min-width: 7rem;
}

.demo-trading-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.demo-trading-toolbar .btn:not(:disabled) {
  cursor: pointer;
}

.demo-trading-toolbar .btn:disabled {
  cursor: not-allowed;
}

.demo-place-order-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(244, 248, 255, 0.62);
  max-width: 52rem;
}

.demo-trading-status {
  font-size: 0.85rem;
  color: rgba(244, 248, 255, 0.72);
}

.demo-trading-preview-wrap {
  margin-bottom: 1rem;
}

.demo-trading-preview-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 248, 255, 0.55);
  margin-bottom: 0.35rem;
}

.demo-decision-preview {
  max-height: 220px;
  overflow: auto;
  margin: 0;
}

.demo-account-mount {
  margin-top: 0.5rem;
}

.demo-trading-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-trading-sub {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: rgba(244, 248, 255, 0.92);
}

.demo-trading-account-tabs {
  margin-top: 0.25rem;
}

.demo-trading-two-tabs {
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.demo-trading-two-tabs .tab-btn {
  flex: 1 1 50%;
  min-width: 0;
  text-align: center;
}

.demo-trading-tab-hint {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: rgba(244, 248, 255, 0.55);
  line-height: 1.45;
}

.demo-trading-tab-panel {
  margin-top: 0.5rem;
}

.demo-trading-pos-tfoot td {
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  padding-top: 0.65rem;
}

.demo-trading-history-footer {
  margin-top: 1rem;
}

.demo-trading-history-pnl.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.demo-trading-history-pnl.stat-card strong {
  font-size: 1.35rem;
}

.demo-trading-history-pnl-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(244, 248, 255, 0.58);
}

.demo-trading-tab-hint + .demo-trading-history-section-title {
  margin-top: 0.35rem;
}

.demo-trading-trade-history-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.demo-trading-trade-table {
  min-width: 920px;
  font-size: 0.8rem;
}

.demo-trading-trade-table th,
.demo-trading-trade-table td {
  white-space: nowrap;
}

.demo-trading-symbol-cell .demo-trading-perp {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  vertical-align: middle;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.history-toolbar-label {
  font-size: 0.78rem;
  color: rgba(244, 248, 255, 0.65);
}

.history-symbol-input {
  min-width: 18rem;
}

.history-symbol-select {
  min-width: 10rem;
}

.smc-interval-hidden {
  display: none !important;
}

.smc-chart-tf-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(110, 180, 255, 0.22);
  background: rgba(6, 12, 31, 0.85);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.smc-tf-btn {
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: rgba(19, 31, 68, 0.82);
  color: rgba(244, 248, 255, 0.76);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.smc-tf-btn:hover,
.smc-tf-btn.active {
  color: #f4f8ff;
  border-color: rgba(212, 175, 55, 0.56);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(22, 163, 74, 0.08));
}

.smc-chart-tf-controls .smc-tf-btn.active {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 2px 10px rgba(0, 0, 0, 0.25);
}
