.gt-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 11, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gt-topbar__inner {
  min-height: var(--gt-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gt-space-4);
}

.gt-topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gt-space-3);
  align-items: center;
}

.gt-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gt-text-muted);
  font-size: 12px;
}

.gt-topbar__item strong {
  color: var(--gt-text);
  font-weight: 700;
}

.site-header,
.gt-header {
  position: sticky;
  top: var(--gt-topbar-height);
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(9, 15, 24, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gt-header__inner {
  min-height: var(--gt-header-height);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr auto;
  align-items: center;
  gap: var(--gt-space-5);
}

.gt-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.gt-brand--banner {
  display: block;
  width: 100%;
  max-width: 420px;
}

.gt-brand__banner {
  display: block;
  width: 100%;
  height: 64px;
  max-height: 72px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--gt-shadow-gold);
}

.gt-brand__banner img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.gt-brand__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--gt-shadow-sm);
}

.gt-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gt-brand__monogram {
  font-family: var(--gt-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gt-gold-strong);
}

.gt-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gt-brand__title {
  font-family: var(--gt-font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.gt-brand__title em {
  font-style: normal;
  background: var(--gt-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gt-brand__subtitle {
  color: var(--gt-text-soft);
  font-size: 12px;
}

.main-nav,
.gt-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.gt-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.gt-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 14px;
  color: var(--gt-text-soft);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: 160ms ease;
}

.main-nav a:hover,
.gt-nav a:hover,
.main-nav a.is-active,
.gt-nav a.is-active {
  color: var(--gt-text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active::after,
.gt-nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--gt-gradient-brand);
}

.gt-header-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gt-button,
.gs-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 18px;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gt-text);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.gt-button:hover,
.gs-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.gt-button--primary,
.gs-btn--gold {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.26), rgba(212, 175, 55, 0.12));
  box-shadow: var(--gt-shadow-gold);
}

.gt-button--secondary,
.btn-secondary {
  border-color: rgba(192, 192, 192, 0.18);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.09), rgba(255, 255, 255, 0.02));
}

.gt-button--ghost {
  background: transparent;
}

.gt-chip,
.gs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-inline: 12px;
  border-radius: var(--gt-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gt-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.gt-chip strong,
.gs-chip strong {
  color: var(--gt-text);
}

.gt-badge,
.gs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-inline: 12px;
  border-radius: var(--gt-radius-pill);
  border: 1px solid var(--gt-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gt-text);
  font-size: 12px;
  font-weight: 700;
}

.gt-badge--up,
.gs-badge--up {
  color: #9af2c3;
  border-color: rgba(39, 209, 127, 0.28);
  background: rgba(39, 209, 127, 0.12);
}

.gt-badge--down,
.gs-badge--down {
  color: #ffbbb6;
  border-color: rgba(255, 106, 102, 0.28);
  background: rgba(255, 106, 102, 0.12);
}

.gt-badge--flat,
.gs-badge--flat {
  color: var(--gt-text-soft);
}

.gt-panel,
.gs-card,
.advisor-widget,
.card,
.result-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius-md);
  background: var(--gt-gradient-panel);
  box-shadow: var(--gt-shadow-md);
}

.gt-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--gt-space-4);
  padding: var(--gt-space-6) var(--gt-space-6) 0;
}

.gt-panel__body,
.gs-card__bd,
.advisor-widget,
.card,
.result-box {
  padding: var(--gt-space-6);
}

.gt-panel__footer {
  padding: 0 var(--gt-space-6) var(--gt-space-6);
}

.gt-panel--soft {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.gt-bg-dark {
  background: #0b0b0c;
}

.gt-card--gold {
  border-color: var(--gt-border-accent);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(27, 21, 9, 0.98), rgba(11, 11, 12, 0.98));
}

.gt-card--silver {
  border-color: var(--gt-border-silver);
  background:
    radial-gradient(circle at top left, rgba(192, 192, 192, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(34, 34, 38, 0.98), rgba(11, 11, 12, 0.98));
}

.gt-headline-accent {
  position: relative;
  padding-bottom: 12px;
}

.gt-headline-accent::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--gt-gradient-brand);
}

.gt-headline-accent--silver::after {
  background: var(--gt-gradient-silver);
}

.gt-stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gt-stat-card__label {
  color: var(--gt-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.gt-stat-card__value {
  font-family: var(--gt-font-display);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 800;
}

.gt-stat-card__note {
  color: var(--gt-text-soft);
  font-size: 13px;
}

.gt-table-wrap {
  overflow: auto;
}

.gt-table,
.gs-table {
  width: 100%;
  border-collapse: collapse;
}

.gt-table th,
.gt-table td,
.gs-table th,
.gs-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.gt-table th,
.gs-table th {
  color: var(--gt-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: start;
}

.gt-table tbody tr:last-child td,
.gs-table tbody tr:last-child td {
  border-bottom: 0;
}

.gt-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.gt-form-grid,
.gs-form,
.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gt-space-4);
}

.gt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-field label {
  color: var(--gt-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.gt-input,
.input,
.gs-field input,
.gs-field select,
.tool-form input,
.tool-form textarea,
.tool-form select,
textarea.input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gt-text);
  padding: 12px 14px;
}

textarea.gt-input,
textarea.input,
textarea#pm-advisor-question {
  min-height: 148px;
  resize: vertical;
}

.gt-input:focus,
.input:focus,
.gs-field input:focus,
.gs-field select:focus {
  border-color: rgba(240, 202, 91, 0.38);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
  outline: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gt-space-5);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: var(--gt-space-9) var(--gt-space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(18px);
}

.gt-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: var(--gt-space-6);
}

.gt-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gt-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gt-footer__links a {
  color: var(--gt-text-soft);
}

.gt-footer__links a:hover {
  color: var(--gt-text);
}

.footer-copy,
.gt-footer__copy {
  color: var(--gt-text-muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .gt-header__inner {
    grid-template-columns: 1fr;
    padding-block: 14px;
  }

  .cards,
  .gt-form-grid,
  .gs-form,
  .tool-form,
  .gt-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .gt-topbar__inner {
    align-items: start;
    padding-block: 10px;
  }

  .gt-topbar__inner,
  .gt-topbar__list {
    flex-direction: column;
  }

  .gt-brand__title {
    font-size: 18px;
  }

  .gt-brand--banner {
    max-width: 100%;
  }

  .gt-brand__banner {
    height: 44px;
    max-height: 44px;
  }

  .main-nav,
  .gt-nav {
    display: none;
  }

  .gt-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--gt-space-3);
  }
}
