﻿:root {
  --gf-bg: #090b10;
  --gf-surface: #11141d;
  --gf-surface-2: #171b26;
  --gf-border: #232838;
  --gf-text: #eef1f7;
  --gf-muted: #8b94a8;
  --gf-accent: #f38020;
  --gf-blue: #2563eb;
}
#gf-main-header {
  display: none !important;
}
.gf-core-header-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}
.gf-core-header-wrap .brand-title-link {
  color: inherit;
  text-decoration: none;
}
.gf-core-header-wrap .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface, var(--gf-surface));
  border: 1px solid var(--border, var(--gf-border));
  border-radius: 14px;
  margin-bottom: 8px;
}
.gf-core-header-wrap .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.gf-core-header-wrap .brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.gf-core-header-wrap .brand-text {
  min-width: 0;
}
.gf-core-header-wrap .brand-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, var(--gf-text));
  line-height: 1.2;
  margin: 0;
}
.gf-core-header-wrap .brand-sub {
  font-size: 0.76rem;
  color: var(--muted, var(--gf-muted));
  display: block;
}
.gf-core-header-wrap .topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.gf-core-header-wrap .partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2, var(--gf-surface-2));
  border: 1px solid var(--border, var(--gf-border));
  color: var(--text, var(--gf-text));
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.gf-core-header-wrap .partner-pill:hover {
  border-color: #3b82f6;
}
.gf-core-header-wrap .clock-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: #0d1017;
  border: 1px solid var(--border, var(--gf-border));
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--text, var(--gf-text));
}
.gf-core-header-wrap .clock-box .divider {
  color: var(--border, var(--gf-border));
}
.gf-core-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 8px;
  background: var(--surface, var(--gf-surface));
  border: 1px solid var(--border, var(--gf-border));
  border-radius: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gf-core-nav-strip::-webkit-scrollbar {
  display: none;
}
.gf-core-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.gf-core-nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--border, var(--gf-border));
  background: #141925;
  color: var(--text, var(--gf-text));
  transition: all 0.15s ease;
}
.gf-core-nav-link:hover {
  border-color: #64748b;
  background: #1b2232;
}
.gf-core-nav-link.is-active {
  background: var(--gf-accent);
  border-color: var(--gf-accent);
  color: #090b10;
  font-weight: 700;
}
.gf-core-header-wrap .market-alert-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid var(--border, var(--gf-border));
  background: #111622;
  font-size: 0.81rem;
  max-width: 100%;
  min-width: 0;
}
.gf-core-header-wrap .market-alert-bar.safe {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
}
.gf-core-header-wrap .market-alert-bar.warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}
.gf-core-header-wrap .market-alert-bar.danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.09);
}
.gf-core-header-wrap .market-alert-bar.closed {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
}
.gf-core-header-wrap .alert-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text, var(--gf-text));
  flex: 1 1 auto;
  min-width: 0;
}
.gf-core-header-wrap .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}
.gf-core-header-wrap .market-alert-bar.warn .alert-dot { background: #f59e0b; }
.gf-core-header-wrap .market-alert-bar.danger .alert-dot { background: #ef4444; }
.gf-core-header-wrap .market-alert-bar.closed .alert-dot { background: #94a3b8; }
.gf-core-header-wrap .alert-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 700;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.gf-core-header-wrap .alert-action {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.gf-core-header-wrap .alert-action:hover {
  border-color: #64748b;
  background: #263349;
}
.app-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border, var(--gf-border));
  text-align: center;
  color: var(--muted, var(--gf-muted));
  font-size: 0.82rem;
}
.app-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.app-footer .footer-links a {
  color: var(--muted, var(--gf-muted));
  text-decoration: none;
  transition: color 0.15s ease;
}
.app-footer .footer-links a:hover {
  color: var(--text, var(--gf-text));
}
.app-footer .footer-sep {
  color: var(--border, var(--gf-border));
}
.app-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-footer .footer-logo {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border, var(--gf-border));
}
@media (max-width: 640px) {
  .gf-core-header-wrap .topbar {
    padding: 9px 12px;
    gap: 8px;
  }
  .gf-core-header-wrap .brand-text h1 {
    font-size: 0.98rem;
  }
  .gf-core-header-wrap .brand-sub {
    display: none;
  }
  .gf-core-header-wrap .clock-box {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .gf-core-nav-strip {
    padding: 6px 10px;
  }
  .gf-core-header-wrap .market-alert-bar {
    padding: 7px 11px;
    font-size: 0.76rem;
  }
}
