/* GorillaFx dashboard theme.
 * Scoped under .gorilla-root so it never clashes with the Control Center
 * (dashboard.css) styling used by the extended sections. Ported from the
 * Normalweb web_dashboard/public/style.css with the same look & palette.
 */

.gorilla-root {
  --g-bg-dark: #090d16;
  --g-bg-card: rgba(16, 24, 40, 0.75);
  --g-bg-card-hover: rgba(22, 32, 54, 0.85);
  --g-border: rgba(60, 80, 115, 0.35);
  --g-border-glow: rgba(0, 176, 255, 0.25);
  --g-text: #f0f4f8;
  --g-muted: #8a99ad;
  --g-dim: #5c6b80;
  --g-blue: #00b0ff;
  --g-cyan: #00e5ff;
  --g-green: #00e676;
  --g-red: #ff3d71;
  --g-pink: #ff2a8d;
  --g-amber: #ffab00;
  --g-gold: #ffd600;
  --g-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --g-font-mono: 'JetBrains Mono', monospace;
  font-family: var(--g-font-sans);
  color: var(--g-text);
}

.gorilla-root * { box-sizing: border-box; }
.gorilla-root h1, .gorilla-root h2, .gorilla-root h3 { margin: 0; }
.gorilla-root button { font-family: inherit; }

/* ---------------- HEADER ---------------- */
.gorilla-root .app-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding: 14px 20px; margin-bottom: 14px;
  background: var(--g-bg-card); border: 1px solid var(--g-border);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
}
.gorilla-root .header-left { display: flex; align-items: center; }
.gorilla-root .logo-badge { display: flex; align-items: center; gap: 12px; }
.gorilla-root .logo-badge .version-tag { flex: 0 0 auto; white-space: nowrap; }
.gorilla-root .header-banner {
  height: 44px; width: auto; max-width: 100%;
  border-radius: 10px; object-fit: contain; display: block;
}
@media (max-width: 640px) {
  .gorilla-root .header-banner { height: 34px; }
}
.gorilla-root .logo-icon { font-size: 30px; filter: drop-shadow(0 0 10px rgba(0, 176, 255, 0.5)); }
.gorilla-root .logo-text h1 { font-size: 18px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.gorilla-root .version-tag {
  font-size: 11px; background: rgba(0, 176, 255, 0.15); color: var(--g-blue);
  border: 1px solid rgba(0, 176, 255, 0.4); padding: 2px 8px; border-radius: 6px;
  font-family: var(--g-font-mono); font-weight: 600;
}
.gorilla-root .subtitle { font-size: 12px; color: var(--g-muted); }
.gorilla-root .header-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gorilla-root .connection-status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; font-family: var(--g-font-mono);
  background: rgba(255, 171, 0, 0.15); color: var(--g-amber);
  border: 1px solid rgba(255, 171, 0, 0.35); transition: all .3s ease;
}
.gorilla-root .connection-status-pill.online { background: rgba(0, 230, 118, 0.15); color: var(--g-green); border-color: rgba(0, 230, 118, 0.4); }
.gorilla-root .connection-status-pill.offline { background: rgba(255, 61, 113, 0.15); color: var(--g-red); border-color: rgba(255, 61, 113, 0.4); }
.gorilla-root .status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: g-pulse-dot 1.8s infinite; }
@keyframes g-pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }
.gorilla-root .quick-meta { font-size: 12px; color: var(--g-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gorilla-root .symbol-highlight { color: var(--g-cyan); font-weight: 700; font-family: var(--g-font-mono); }
.gorilla-root .meta-separator { color: var(--g-dim); }
.gorilla-root .header-right { display: flex; align-items: center; gap: 10px; }

.gorilla-root .symbol-selector {
  background: rgba(255, 255, 255, 0.05); color: var(--g-text);
  border: 1px solid var(--g-border); border-radius: 8px;
  font-family: var(--g-font-mono); font-size: 12px; padding: 4px 8px; outline: none;
}
.gorilla-root .symbol-selector:focus { border-color: rgba(0, 176, 255, 0.5); }

/* ---------------- BUTTONS ---------------- */
.gorilla-root .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; transition: all .2s cubic-bezier(.4,0,.2,1); outline: none;
}
.gorilla-root .btn:active { transform: scale(.96); }
.gorilla-root .btn:disabled { opacity: .45; cursor: not-allowed; }
.gorilla-root .btn-warning {
  background: linear-gradient(135deg, #ff9100 0%, #e65100 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(255, 145, 0, 0.35);
}
.gorilla-root .btn-warning:hover { background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%); box-shadow: 0 6px 20px rgba(255, 145, 0, 0.5); }
.gorilla-root .btn-warning.active-paused { background: linear-gradient(135deg, #00c853 0%, #1b5e20 100%); box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35); }
.gorilla-root .btn-danger {
  background: linear-gradient(135deg, #ff1744 0%, #b71c1c 100%); color: #fff;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4);
}
.gorilla-root .btn-danger:hover { background: linear-gradient(135deg, #ff5252 0%, #d50000 100%); box-shadow: 0 6px 22px rgba(255, 23, 68, 0.6); }
.gorilla-root .btn-buy { background: rgba(0, 230, 118, 0.15); color: var(--g-green); border: 1px solid rgba(0, 230, 118, 0.4); flex: 1; }
.gorilla-root .btn-buy:hover { background: rgba(0, 230, 118, 0.25); box-shadow: 0 0 12px rgba(0, 230, 118, 0.3); }
.gorilla-root .btn-sell { background: rgba(255, 61, 113, 0.15); color: var(--g-red); border: 1px solid rgba(255, 61, 113, 0.4); flex: 1; }
.gorilla-root .btn-sell:hover { background: rgba(255, 61, 113, 0.25); box-shadow: 0 0 12px rgba(255, 61, 113, 0.3); }
.gorilla-root .btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--g-text); }
.gorilla-root .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------------- SAFETY BANNER ---------------- */
.gorilla-root .safety-banner { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 12px; border: 1px solid; margin-bottom: 14px; transition: all .3s ease; }
.gorilla-root .safety-banner.safe { background: rgba(0, 230, 118, 0.08); border-color: rgba(0, 230, 118, 0.3); color: var(--g-green); }
.gorilla-root .safety-banner.warning { background: rgba(255, 171, 0, 0.12); border-color: rgba(255, 171, 0, 0.45); color: var(--g-amber); }
.gorilla-root .safety-banner.danger { background: rgba(255, 61, 113, 0.15); border-color: rgba(255, 61, 113, 0.5); color: var(--g-red); }
.gorilla-root .safety-banner .banner-content span { color: var(--g-muted); }
.gorilla-root .banner-icon { font-size: 24px; }
.gorilla-root .banner-content { display: flex; flex-direction: column; }
.gorilla-root .banner-content strong { font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.gorilla-root .banner-content span { font-size: 12px; }

/* ---------------- GRID / CARDS ---------------- */
.gorilla-root .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gorilla-root .card {
  background: var(--g-bg-card); border: 1px solid var(--g-border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); transition: border-color .2s ease;
}
.gorilla-root .card:hover { border-color: rgba(0, 176, 255, 0.35); }
.gorilla-root .card-hero {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.85) 0%, rgba(13, 19, 33, 0.95) 100%);
  border: 1px solid rgba(0, 176, 255, 0.25); box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}
.gorilla-root .card-wide { grid-column: span 3; }
.gorilla-root .card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.gorilla-root .card-title { display: flex; align-items: center; gap: 10px; }
.gorilla-root .card-title h2 { font-size: 14px; font-weight: 700; letter-spacing: .8px; }
.gorilla-root .card-icon { font-size: 18px; }
.gorilla-root .card-badge { font-size: 11px; font-family: var(--g-font-mono); font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(0, 230, 118, 0.15); border: 1px solid rgba(0, 230, 118, 0.3); }
.gorilla-root .badge-accent { font-size: 11px; font-family: var(--g-font-mono); font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0, 176, 255, 0.15); color: var(--g-blue); border: 1px solid rgba(0, 176, 255, 0.3); }
.gorilla-root .badge-radar, .gorilla-root .badge-news { font-size: 11px; font-family: var(--g-font-mono); font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0, 230, 118, 0.15); color: var(--g-green); border: 1px solid rgba(0, 230, 118, 0.3); }
.gorilla-root .badge-radar.alert, .gorilla-root .badge-news.alert { background: rgba(255, 61, 113, 0.15); color: var(--g-red); border-color: rgba(255, 61, 113, 0.4); }

/* ---------------- HERO STATS ---------------- */
.gorilla-root .hero-stats-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; }
.gorilla-root .stat-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.gorilla-root .stat-box.primary-pnl { background: linear-gradient(135deg, rgba(0, 176, 255, 0.08) 0%, rgba(0, 230, 118, 0.05) 100%); border-color: rgba(0, 176, 255, 0.25); }
.gorilla-root .stat-label { font-size: 11px; font-weight: 600; color: var(--g-muted); letter-spacing: .5px; }
.gorilla-root .stat-value-huge { font-family: var(--g-font-mono); font-size: 30px; font-weight: 800; color: var(--g-green); letter-spacing: -.5px; }
.gorilla-root .stat-value-huge.negative { color: var(--g-red); }
.gorilla-root .stat-value { font-family: var(--g-font-mono); font-size: 19px; font-weight: 700; }
.gorilla-root .stat-sub { font-size: 12px; color: var(--g-muted); font-family: var(--g-font-mono); }
.gorilla-root .positive { color: var(--g-green); }
.gorilla-root .negative { color: var(--g-red); }

/* ---------------- PROGRESS ---------------- */
.gorilla-root .progress-container { display: flex; flex-direction: column; gap: 6px; }
.gorilla-root .progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--g-muted); font-weight: 600; }
.gorilla-root .progress-bar-track { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; }
.gorilla-root .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--g-blue) 0%, var(--g-green) 100%); border-radius: 8px; transition: width .4s ease; box-shadow: 0 0 10px rgba(0, 230, 118, 0.5); }

/* ---------------- LIVE TICKER ---------------- */
.gorilla-root .live-ticker-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: rgba(13, 19, 32, 0.7); border: 1px solid rgba(0, 176, 255, 0.18); border-radius: 12px; padding: 10px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.gorilla-root .ticker-col { display: flex; flex-direction: column; gap: 2px; }
.gorilla-root .ticker-label { font-size: 10px; font-weight: 700; color: var(--g-muted); letter-spacing: .6px; text-transform: uppercase; }
.gorilla-root .ticker-val { font-family: var(--g-font-mono); font-size: 14px; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.gorilla-root .ticker-val.price-bid { color: var(--g-blue); }
.gorilla-root .ticker-val.price-ask { color: var(--g-cyan); }
.gorilla-root .live-pulse-col { align-items: flex-end; }
.gorilla-root .live-stream-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--g-green); letter-spacing: .5px; }
.gorilla-root .pulse-ring { width: 8px; height: 8px; border-radius: 50%; background: var(--g-green); position: relative; }
.gorilla-root .pulse-ring::after { content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; border-radius: 50%; border: 2px solid var(--g-green); animation: g-pulse-wave 1.5s infinite ease-out; }
@keyframes g-pulse-wave { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.gorilla-root .ticker-sub { font-size: 10px; font-family: var(--g-font-mono); color: var(--g-dim); }

/* ---------------- SPARKLINE ---------------- */
.gorilla-root .sparkline-container { background: rgba(10, 15, 26, 0.6); border: 1px solid var(--g-border); border-radius: 12px; padding: 10px 14px; }
.gorilla-root .sparkline-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--g-muted); margin-bottom: 8px; font-family: var(--g-font-mono); }
.gorilla-root .live-dot-green { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--g-green); box-shadow: 0 0 6px var(--g-green); margin-right: 6px; }
.gorilla-root .pnl-canvas { width: 100%; height: 60px; display: block; }

/* ---------------- CANDLE ENGINE ---------------- */
.gorilla-root .candle-info-card { display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, 0.02); padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.04); }
.gorilla-root .info-row { display: flex; justify-content: space-between; font-size: 13px; }
.gorilla-root .info-label { color: var(--g-muted); }
.gorilla-root .info-value { font-weight: 600; font-family: var(--g-font-mono); }
.gorilla-root .info-value.highlight { color: var(--g-cyan); }
.gorilla-root .confidence-meter-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 6px; overflow: hidden; }
.gorilla-root .confidence-meter-fill { height: 100%; background: linear-gradient(90deg, var(--g-blue) 0%, var(--g-cyan) 100%); border-radius: 6px; transition: width .4s ease; }
.gorilla-root .grid-levels-box { display: flex; flex-direction: column; gap: 6px; }
.gorilla-root .grid-level-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; font-family: var(--g-font-mono); font-size: 12px; border: 1px solid; }
.gorilla-root .grid-level-item.up-level { background: rgba(0, 176, 255, 0.06); border-color: rgba(0, 176, 255, 0.2); color: var(--g-blue); }
.gorilla-root .grid-level-item.base-level { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
.gorilla-root .grid-level-item.down-level { background: rgba(255, 61, 113, 0.06); border-color: rgba(255, 61, 113, 0.2); color: var(--g-red); }
.gorilla-root .manual-entry-actions { display: flex; gap: 10px; }

/* ---------------- BAD CONDITIONS ---------------- */
.gorilla-root .radar-tiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gorilla-root .radar-tile { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; transition: all .2s ease; }
.gorilla-root .radar-tile.active-alert { background: rgba(255, 61, 113, 0.12); border-color: rgba(255, 61, 113, 0.45); }
.gorilla-root .tile-icon { font-size: 20px; }
.gorilla-root .tile-content { display: flex; flex-direction: column; }
.gorilla-root .tile-name { font-size: 11px; color: var(--g-muted); }
.gorilla-root .tile-status { font-size: 12px; font-weight: 700; font-family: var(--g-font-mono); color: var(--g-green); }
.gorilla-root .radar-tile.active-alert .tile-status { color: var(--g-red); }
.gorilla-root .filter-summary-box { display: flex; justify-content: space-between; background: rgba(255, 255, 255, 0.02); padding: 10px 14px; border-radius: 8px; font-size: 12px; font-family: var(--g-font-mono); color: var(--g-muted); flex-wrap: wrap; gap: 8px; }
.gorilla-root .filter-summary-box strong { color: var(--g-text); }

/* ---------------- NEWS ---------------- */
.gorilla-root .news-blackout-alert { display: flex; align-items: center; gap: 12px; background: rgba(255, 61, 113, 0.15); border: 1px solid rgba(255, 61, 113, 0.4); padding: 10px 14px; border-radius: 8px; }
.gorilla-root .alert-text strong { color: var(--g-red); font-size: 12px; display: block; }
.gorilla-root .alert-text p { font-size: 11px; color: var(--g-muted); margin: 2px 0 0; }
.gorilla-root .news-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.gorilla-root .news-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; gap: 8px; }
.gorilla-root .news-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gorilla-root .news-currency-tag { font-family: var(--g-font-mono); font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.gorilla-root .news-title { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gorilla-root .news-item-right { display: flex; align-items: center; gap: 8px; }
.gorilla-root .impact-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.gorilla-root .impact-high { background: rgba(255, 61, 113, 0.2); color: var(--g-red); }
.gorilla-root .impact-medium { background: rgba(255, 171, 0, 0.2); color: var(--g-amber); }
.gorilla-root .news-time { font-family: var(--g-font-mono); font-size: 11px; color: var(--g-muted); }
.gorilla-root .empty-news { text-align: center; font-size: 12px; color: var(--g-dim); padding: 20px 0; }

/* ---------------- POSITIONS TABLE ---------------- */
.gorilla-root .table-responsive { width: 100%; overflow-x: auto; }
.gorilla-root .positions-summary { font-size: 12px; font-family: var(--g-font-mono); color: var(--g-blue); background: rgba(0, 176, 255, 0.1); padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(0, 176, 255, 0.25); }
.gorilla-root .positions-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gorilla-root .positions-table th { text-align: left; padding: 10px 12px; color: var(--g-muted); font-size: 11px; font-weight: 600; letter-spacing: .5px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gorilla-root .positions-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-family: var(--g-font-mono); }
.gorilla-root .empty-table { text-align: center; color: var(--g-dim); padding: 26px 0 !important; font-family: var(--g-font-sans) !important; }
.gorilla-root .tag-buy { background: rgba(0, 230, 118, 0.15); color: var(--g-green); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.gorilla-root .tag-sell { background: rgba(255, 61, 113, 0.15); color: var(--g-red); padding: 2px 8px; border-radius: 4px; font-weight: 700; }

/* ---------------- ANALYTICS ---------------- */
.gorilla-root .analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gorilla-root .analytic-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.gorilla-root .a-label { font-size: 11px; color: var(--g-muted); }
.gorilla-root .a-val { font-size: 19px; font-weight: 700; font-family: var(--g-font-mono); }
.gorilla-root .a-val.positive { color: var(--g-green); }
.gorilla-root .a-val.pink { color: var(--g-pink); }
.gorilla-root .a-val.negative { color: var(--g-red); }

/* ---------------- MODAL / TOAST ---------------- */
.gorilla-root .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.gorilla-root .modal-box { background: #121926; border: 1px solid rgba(255, 61, 113, 0.5); box-shadow: 0 0 40px rgba(255, 61, 113, 0.25); border-radius: 16px; padding: 26px; max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.gorilla-root .modal-icon { font-size: 42px; }
.gorilla-root .modal-box h3 { font-size: 18px; font-weight: 800; color: var(--g-red); }
.gorilla-root .modal-box p { font-size: 13px; color: var(--g-text); margin: 0; }
.gorilla-root .modal-sub { font-size: 11px !important; color: var(--g-muted) !important; }
.gorilla-root .modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.gorilla-root .modal-actions button { flex: 1; }
.gorilla-root .toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.gorilla-root .toast { background: #141f32; border: 1px solid var(--g-border); padding: 12px 18px; border-radius: 10px; color: var(--g-text); font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 10px; animation: g-slide-in .3s ease; }
@keyframes g-slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------------- FLASH ANIMATIONS ---------------- */
.gorilla-root .flash-up { animation: g-flash-green .6s ease; }
.gorilla-root .flash-down { animation: g-flash-red .6s ease; }
@keyframes g-flash-green { 0% { background-color: rgba(0, 230, 118, 0.35); text-shadow: 0 0 10px rgba(0, 230, 118, 0.8); } 100% { background-color: transparent; text-shadow: none; } }
@keyframes g-flash-red { 0% { background-color: rgba(255, 61, 113, 0.35); text-shadow: 0 0 10px rgba(255, 61, 113, 0.8); } 100% { background-color: transparent; text-shadow: none; } }

/* ---------------- LATENCY BADGE ---------------- */
.gorilla-root .latency-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(0, 230, 118, 0.08); border: 1px solid rgba(0, 230, 118, 0.25); border-radius: 20px; font-family: var(--g-font-mono); font-size: 11px; font-weight: 600; color: var(--g-green); transition: all .3s ease; }
.gorilla-root .latency-badge.offline { background: rgba(255, 61, 113, 0.08); border-color: rgba(255, 61, 113, 0.3); color: var(--g-red); }
.gorilla-root .latency-dot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--g-green); box-shadow: 0 0 8px var(--g-green); }
.gorilla-root .latency-badge.offline .latency-dot { background-color: var(--g-red); box-shadow: 0 0 8px var(--g-red); }

@media (max-width: 1024px) {
  .gorilla-root .dashboard-grid { grid-template-columns: 1fr; }
  .gorilla-root .card-hero, .gorilla-root .card-wide { grid-column: span 1; }
  .gorilla-root .hero-stats-row { grid-template-columns: 1fr 1fr; }
  .gorilla-root .analytics-grid { grid-template-columns: 1fr 1fr; }
  .gorilla-root .live-ticker-strip { flex-direction: column; align-items: flex-start; }
}