:root {
  --fp-bg: #06101b;
  --fp-panel: rgba(3, 12, 24, .68);
  --fp-line: rgba(255,255,255,.14);
  --fp-text: #ecf7ff;
  --fp-muted: rgba(236,247,255,.66);
  --fp-cyan: #1dd4ff;
  --fp-blue: #106dff;
}

.fp-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin: 0;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid var(--fp-line);
  background:
    linear-gradient(135deg, rgba(4,16,32,.94), rgba(7,40,70,.90)),
    rgba(3, 12, 24, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(0,0,0,.24);
}

.fp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  color: var(--fp-text);
  text-decoration: none;
}

.fp-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 1000;
  font-size: 27px;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #21e3ff, #0b8fe7);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 12px 26px rgba(9,166,223,.25);
}

.fp-brand strong {
  display: block;
  line-height: 1;
  font-size: 22px;
  letter-spacing: -.04em;
}
.fp-brand strong span { color: var(--fp-cyan); }
.fp-brand small {
  display: block;
  margin-top: 4px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fp-navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fp-navlinks::-webkit-scrollbar { display: none; }
.fp-navlinks a {
  color: rgba(236,247,255,.84);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: .16s ease;
}
.fp-navlinks a:hover,
.fp-navlinks a.active {
  border-color: rgba(29,212,255,.38);
  background: rgba(29,212,255,.10);
  color: #ffffff;
}

.fp-topnav-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(29,212,255,.32);
  color: #dff7ff;
  background: rgba(29,212,255,.08);
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.has-topnav .template-switcher,
.has-topnav .switcher {
  display: none !important;
}

.has-topnav .app-shell {
  min-height: calc(100vh - 76px);
}

.has-topnav .sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(5, 11, 16, 0.72);
}

.has-topnav .brand-card {
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.has-topnav .brand-card h1 {
  font-size: clamp(26px, 2.4vw, 34px);
}

.has-topnav .panel {
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.has-topnav .preview-header {
  min-height: 58px;
  padding: 0 4px;
}

.has-topnav .canvas-stage {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.quotes-page.has-topnav .wrap {
  padding-top: 22px;
}
.quotes-page.has-topnav header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.quotes-page.has-topnav .panel,
.quotes-page.has-topnav .canvas-shell {
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

@media (max-width: 980px) {
  .fp-topnav {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .fp-brand { min-width: 0; }
  .fp-navlinks {
    width: 100%;
    justify-content: flex-start;
  }
  .fp-topnav-meta { display: none; }
  .has-topnav .app-shell { min-height: auto; }
}

@media (max-width: 560px) {
  .fp-topnav { padding: 12px 12px 10px; }
  .fp-logo-mark { width: 42px; height: 42px; }
  .fp-brand strong { font-size: 20px; }
  .fp-navlinks a { padding: 9px 11px; font-size: 12px; }
}

/* v24 top-nav anti-overlap polish */
.fp-topnav,
.fp-topnav * {
  min-width: 0;
}
.fp-topnav {
  isolation: isolate;
}
.fp-brand {
  flex: 0 1 240px;
}
.fp-brand strong,
.fp-brand small,
.fp-navlinks a,
.fp-topnav-meta {
  line-height: 1.2;
}
.fp-navlinks {
  flex-wrap: wrap;
  row-gap: 6px;
  overflow: visible;
}
.fp-navlinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1100px) {
  .fp-topnav {
    flex-wrap: wrap;
  }
  .fp-brand {
    flex-basis: 220px;
  }
  .fp-navlinks {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .fp-navlinks {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
.quotes-page.has-topnav .fp-topnav {
  margin-bottom: 0;
  padding-bottom: 12px;
}
.quotes-page.has-topnav .wrap > header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
