/* FlixGlow Modern Header v1.0.4 */
.fg-header {
  --fg-text: #f8fafc;
  --fg-orange: #f56608;
  --fg-border: rgba(148, 163, 184, .22);
  position: relative;
  z-index: 999;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--fg-text);
  font-family: inherit;
  line-height: 1.4;
}
.fg-header, .fg-header * { box-sizing: border-box; }
.fg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 30px);
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 13px clamp(20px, 3.2vw, 48px);
  background: linear-gradient(110deg, #050b1b, #07142b 65%, #100c20);
  border: 1px solid var(--fg-border);
  border-radius: 14px;
}
.fg-header__brand {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 290px;
  margin: 0;
  padding: 0;
  color: var(--fg-text);
  text-decoration: none;
}
.fg-header__brand img {
  display: block !important;
  width: 270px !important;
  height: 70px !important;
  max-width: 100% !important;
  max-height: 70px !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: left center;
}
.fg-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg,#ff8a00,#ed4b00); clip-path: polygon(0 0,100% 50%,0 100%); font-size: 22px; padding-right: 5px; }
.fg-brand-name { font-size: clamp(25px,2.1vw,34px); font-weight: 800; letter-spacing: -1.3px; white-space: nowrap; }
.fg-brand-name span { color: var(--fg-orange); }
.fg-header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 28px);
  min-width: 0;
  margin: 0;
  padding: 0;
}
.fg-header .fg-menu,
.fg-header ul.fg-menu {
  display: flex !important;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(13px, 1.45vw, 22px);
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.fg-header .fg-menu li {
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.fg-header .fg-menu li::marker { content: ''; }
.fg-header .fg-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 0;
  color: var(--fg-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.fg-header .fg-menu a:hover,
.fg-header .fg-menu .current-menu-item > a,
.fg-header .fg-menu .current_page_item > a { color: #ff9a19; }
.fg-header .fg-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 1000;
  min-width: 200px;
  margin: 0;
  padding: 9px;
  background: #071226;
  border: 1px solid var(--fg-border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  list-style: none;
}
.fg-header .fg-menu li:hover > .sub-menu,
.fg-header .fg-menu li:focus-within > .sub-menu { display: block; }
.fg-header .fg-menu .sub-menu a { display: flex; padding: 9px 10px; white-space: nowrap; }
.fg-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin: 0; padding: 0; }
.fg-header .fg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.fg-header .fg-btn:hover { transform: translateY(-1px); }
.fg-header .fg-btn--login { color: #fff; border: 1px solid #8793aa; background: transparent; }
.fg-header .fg-btn--join { color: #fff; border: 1px solid transparent; background: linear-gradient(135deg,#ff7900,#ed4b00); box-shadow: 0 5px 14px rgba(245,102,8,.18); }
.fg-header__toggle { display: none; }
.fg-menu-notice { margin: 0; color: #b9c3d5; font-size: 13px; }

/* Switch to the compact navigation before desktop items become crowded. */
@media (max-width: 1180px) {
  .fg-header__inner { min-height: 84px; gap: 16px; }
  .fg-header__brand { max-width: 260px; }
  .fg-header__brand img { width: 245px !important; height: 64px !important; max-height: 64px !important; }
  .fg-header__toggle {
    display: flex;
    flex: 0 0 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    order: 3;
    width: 46px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--fg-border);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
  }
  .fg-header__toggle span { display: block; width: 100%; height: 2px; margin: 0; border-radius: 2px; background: #fff; }
  .fg-header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 1001;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    background: #050d20;
    border: 1px solid var(--fg-border);
    border-radius: 13px;
    box-shadow: 0 18px 36px rgba(0,0,0,.3);
  }
  .fg-header.is-open .fg-header__nav { display: flex; }
  .fg-header .fg-menu, .fg-header ul.fg-menu { align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; }
  .fg-header .fg-menu li { width: 100%; }
  .fg-header .fg-menu a { display: flex; width: 100%; padding: 11px 7px; border-bottom: 1px solid rgba(148,163,184,.12); }
  .fg-header .fg-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: transparent; }
  .fg-header__actions { width: 100%; }
  .fg-header__actions .fg-btn { flex: 1 1 50%; }
}
@media (max-width: 767px) {
  .fg-header__inner { min-height: 74px; padding: 9px 15px; border-radius: 11px; }
  .fg-header__brand { max-width: min(72vw, 230px); }
  .fg-header__brand img { width: 220px !important; height: 56px !important; max-height: 56px !important; }
  .fg-brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .fg-brand-name { font-size: 24px; }
  .fg-header__nav { padding: 14px; }
  .fg-header__actions { flex-direction: row; }
  .fg-header .fg-btn { min-height: 42px; padding: 0 13px; font-size: 13px; }
}
@media (max-width: 380px) {
  .fg-header__inner { padding-right: 11px; padding-left: 11px; }
  .fg-header__brand { max-width: calc(100% - 58px); }
  .fg-header__brand img { width: 195px !important; height: 50px !important; max-height: 50px !important; }
}
