/*
===============================================================================
FREE USE TOOL — HEADER SYSTEM
Version 5.0.0
Purpose:
  - premium 3D header
  - complete tools mega menu
  - 8 recent tools in a 3-column grid
  - reliable tablet/mobile navigation
  - real user/admin avatar images with Gravatar fallback
  - text initial fallback when no image exists
===============================================================================
*/

.fut-header {
  --fut-header-height-local: 78px;
  --fut-header-blue: #0ea5e9;
  --fut-header-blue-dark: #0369a1;
  --fut-header-ink: #10233d;
  --fut-header-muted: #5f7187;
  --fut-header-border: rgba(174, 209, 232, .72);
  --fut-header-panel: rgba(255,255,255,.98);
  --fut-header-card: #f7fbff;
  --fut-header-card-hover: #edf8ff;

  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  min-height: var(--fut-header-height-local);
  isolation: isolate;
  border-bottom: 1px solid var(--fut-header-border);
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 10px 34px rgba(14,70,105,.07);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

html.fut-dark .fut-header,
html[data-theme="dark"] .fut-header {
  --fut-header-ink: #eef8ff;
  --fut-header-muted: #9eb6ca;
  --fut-header-border: rgba(51, 86, 114, .72);
  --fut-header-panel: #0d1d31;
  --fut-header-card: #132a43;
  --fut-header-card-hover: #173957;
  background: rgba(8,23,40,.97);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}

.fut-header-inner {
  width: min(100% - 48px, 1240px);
  min-height: var(--fut-header-height-local);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.fut-header-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: 164px;
  height: 54px;
  text-decoration: none;
  line-height: 0;
}

.fut-header-logo {
  display: block;
  width: 150px;
  height: 46px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 7px 14px rgba(14,165,233,.15));
  transition: transform .22s ease, filter .22s ease;
}

.fut-header-brand:hover .fut-header-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(14,165,233,.22));
}

.fut-header-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.fut-header-link,
.fut-nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--fut-header-ink);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fut-header-link:hover,
.fut-nav-dropdown-trigger:hover {
  color: var(--fut-header-blue-dark);
  background: #f0f9ff;
  border-color: #d7edf9;
  transform: translateY(-1px);
}

html.fut-dark .fut-header-link:hover,
html.fut-dark .fut-nav-dropdown-trigger:hover,
html[data-theme="dark"] .fut-header-link:hover,
html[data-theme="dark"] .fut-nav-dropdown-trigger:hover {
  color: #73d7ff;
  background: #102c46;
  border-color: #214b6a;
}

.fut-header-link.is-active,
.fut-nav-dropdown-trigger.is-active {
  color: var(--fut-header-blue-dark);
  background: linear-gradient(180deg, #f5fbff, #e7f5fd);
  border-color: #cfe8f6;
  box-shadow: inset 0 -2px 0 var(--fut-header-blue);
}

html.fut-dark .fut-header-link.is-active,
html.fut-dark .fut-nav-dropdown-trigger.is-active,
html[data-theme="dark"] .fut-header-link.is-active,
html[data-theme="dark"] .fut-nav-dropdown-trigger.is-active {
  color: #73d7ff;
  background: linear-gradient(180deg,#12304b,#102840);
  border-color: #2a5878;
  box-shadow: inset 0 -2px 0 #35b9ed;
}

.fut-nav-dropdown { position: relative; }

.fut-nav-dropdown-trigger {
  appearance: none;
  cursor: pointer;
}

.fut-nav-chevron {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  transition: transform .2s ease;
}

.fut-nav-dropdown:hover .fut-nav-chevron,
.fut-nav-dropdown:focus-within .fut-nav-chevron,
.fut-nav-dropdown.is-open .fut-nav-chevron {
  transform: rotate(180deg);
}

/* ========================================================================== */
/* MEGA MENU                                                                  */
/* ========================================================================== */

.fut-tools-mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(960px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 100px));
  overflow: auto;
  padding: 20px;
  border: 1px solid #c9e1f0;
  border-radius: 24px;
  background: var(--fut-header-panel) !important;
  box-shadow:
    0 2px 0 rgba(255,255,255,.9) inset,
    0 18px 44px rgba(8,57,89,.13),
    0 38px 90px rgba(8,57,89,.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.985);
  transform-origin: top center;
  transition: opacity .18s ease, visibility .18s ease, transform .22s ease;
}

html.fut-dark .fut-tools-mega-menu,
html[data-theme="dark"] .fut-tools-mega-menu {
  border-color: #31516d;
  box-shadow: 0 2px 0 rgba(255,255,255,.04) inset, 0 24px 70px rgba(0,0,0,.42), 0 42px 100px rgba(0,0,0,.28);
}

.fut-nav-dropdown:hover .fut-tools-mega-menu,
.fut-nav-dropdown:focus-within .fut-tools-mega-menu,
.fut-nav-dropdown.is-open .fut-tools-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.fut-mega-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 18px;
  border-bottom: 1px solid var(--fut-header-border);
}

.fut-mega-intro { min-width: 0; }

.fut-mega-eyebrow,
.fut-mega-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--fut-header-blue-dark);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

html.fut-dark .fut-mega-eyebrow,
html.fut-dark .fut-mega-section-kicker,
html[data-theme="dark"] .fut-mega-eyebrow,
html[data-theme="dark"] .fut-mega-section-kicker {
  color: #69d4ff;
}

.fut-mega-title {
  margin: 0 0 5px;
  color: var(--fut-header-ink);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.fut-mega-description {
  max-width: 590px;
  margin: 0;
  color: var(--fut-header-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.fut-mega-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbe5f4;
  border-radius: 12px;
  color: var(--fut-header-blue-dark);
  background: #f5fbff;
  box-shadow: 0 6px 16px rgba(14,165,233,.07);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fut-mega-view-all:hover {
  color: var(--fut-header-blue-dark);
  background: #eaf7ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14,165,233,.13);
}

html.fut-dark .fut-mega-view-all,
html[data-theme="dark"] .fut-mega-view-all {
  color: #7bdcff;
  background: #102a43;
  border-color: #2d5875;
}

.fut-mega-view-all svg {
  width: 16px;
  height: 16px;
}

.fut-mega-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 2px 11px;
}

.fut-mega-section-head strong {
  color: var(--fut-header-ink);
  font-size: .92rem;
  font-weight: 900;
}

.fut-mega-count,
.fut-mega-bottom-note {
  color: var(--fut-header-muted);
  font-size: .68rem;
  font-weight: 750;
}

.fut-tools-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fut-mega-card {
  position: relative;
  min-width: 0;
  min-height: 106px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d6e8f3;
  border-radius: 17px;
  color: var(--fut-header-ink);
  background: var(--fut-header-card);
  box-shadow: 0 8px 20px rgba(15,65,101,.045), inset 0 1px 0 rgba(255,255,255,.95);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.fut-mega-card::before {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(56,189,248,.16), transparent 68%);
  pointer-events: none;
  transition: transform .25s ease;
}

.fut-mega-card:hover {
  color: var(--fut-header-ink);
  border-color: #a9d7ee;
  background: var(--fut-header-card-hover);
  box-shadow: 0 16px 30px rgba(13,88,130,.11), 0 5px 14px rgba(14,165,233,.08), inset 0 1px 0 #fff;
  transform: translateY(-3px);
}

.fut-mega-card:hover::before { transform: scale(1.4); }

html.fut-dark .fut-mega-card,
html[data-theme="dark"] .fut-mega-card {
  border-color: #294b68;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

html.fut-dark .fut-mega-card:hover,
html[data-theme="dark"] .fut-mega-card:hover {
  border-color: #3d7191;
}

.fut-mega-card-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #bfe3f4;
  border-radius: 14px;
  color: var(--fut-header-blue-dark);
  background: linear-gradient(145deg,#fff,#eaf7ff);
  box-shadow: 0 8px 16px rgba(14,165,233,.10), inset 0 1px 0 #fff;
}

html.fut-dark .fut-mega-card-icon,
html[data-theme="dark"] .fut-mega-card-icon {
  color: #73d8ff;
  background: linear-gradient(145deg,#173653,#102a43);
  border-color: #37627e;
  box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
}

.fut-mega-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fut-mega-card-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fut-mega-card-content strong {
  overflow: hidden;
  color: var(--fut-header-ink);
  font-size: .79rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fut-mega-card-content span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fut-header-muted);
  font-size: .68rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fut-mega-card-arrow {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--fut-header-muted);
  opacity: .55;
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
}

.fut-mega-card:hover .fut-mega-card-arrow {
  color: var(--fut-header-blue);
  opacity: 1;
  transform: translateX(3px);
}

.fut-mega-card--empty {
  grid-column: 1 / -1;
}

.fut-mega-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 2px 1px;
  border-top: 1px solid var(--fut-header-border);
}

.fut-mega-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.fut-mega-category-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d7e9f4;
  border-radius: 999px;
  color: var(--fut-header-muted);
  background: #f9fcff;
  font-size: .64rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.fut-mega-category-list a:hover {
  color: var(--fut-header-blue-dark);
  border-color: #b9def1;
  background: #eef9ff;
}

html.fut-dark .fut-mega-category-list a,
html[data-theme="dark"] .fut-mega-category-list a {
  color: #a7bfd1;
  background: #112840;
  border-color: #294b68;
}

/* ========================================================================== */
/* ACTIONS + USER MENU                                                        */
/* ========================================================================== */

.fut-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.fut-theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe2ef;
  border-radius: 50%;
  color: #27415d;
  background: #fff;
  box-shadow: 0 7px 18px rgba(19,73,106,.08), inset 0 1px 0 #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.fut-theme-toggle:hover {
  color: var(--fut-header-blue-dark);
  border-color: #a9d6ed;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14,165,233,.12), inset 0 1px 0 #fff;
}

html.fut-dark .fut-theme-toggle,
html[data-theme="dark"] .fut-theme-toggle {
  color: #c3eafb;
  background: #11263d;
  border-color: #2d506c;
}

.fut-theme-icon { width: 18px; height: 18px; }
.fut-theme-icon--moon { display: none; }

html.fut-dark .fut-theme-icon--sun,
html[data-theme="dark"] .fut-theme-icon--sun { display: none; }

html.fut-dark .fut-theme-icon--moon,
html[data-theme="dark"] .fut-theme-icon--moon { display: block; }

.fut-header-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #cfe2ef;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fut-header-btn:hover { transform: translateY(-2px); }

.fut-header-btn--secondary {
  color: #253c57;
  background: #fff;
}

.fut-header-btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg,#0ea5e9,#0369a1);
  box-shadow: 0 9px 22px rgba(14,165,233,.20), inset 0 1px 0 rgba(255,255,255,.28);
}

.fut-header-btn--primary:hover { color: #fff; box-shadow: 0 15px 30px rgba(14,165,233,.28); }

html.fut-dark .fut-header-btn--secondary,
html[data-theme="dark"] .fut-header-btn--secondary {
  color: #dbeafb;
  background: #12263d;
  border-color: #2b4a64;
}

/* ========================================================================== */
/* AVATAR                                                                     */
/* ========================================================================== */

.fut-user-menu { position: relative; }

.fut-user-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b9dff1;
  border-radius: 50%;
  color: #075985;
  background: linear-gradient(145deg,#f4fbff,#dff3fd);
  box-shadow: 0 8px 20px rgba(14,165,233,.12), inset 0 1px 0 #fff;
  text-decoration: none;
}

html.fut-dark .fut-user-avatar,
html[data-theme="dark"] .fut-user-avatar {
  color: #bfeaff;
  background: linear-gradient(145deg,#173653,#10263d);
  border-color: #3a6785;
}

.fut-avatar-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity .18s ease;
}

.fut-user-avatar.has-image .fut-avatar-image { opacity: 1; }
.fut-avatar-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.fut-user-avatar:hover {
  border-color: #8cc9e9;
  box-shadow: 0 13px 28px rgba(14,165,233,.18), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.fut-admin-avatar { box-shadow: 0 9px 22px rgba(3,105,161,.16), inset 0 1px 0 #fff; }

.fut-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 24px));
  max-height: min(650px, calc(100vh - 100px));
  overflow: auto;
  padding: 9px;
  border: 1px solid #c9e1ef;
  border-radius: 20px;
  background: var(--fut-header-panel);
  box-shadow: 0 22px 55px rgba(7,51,79,.15), 0 42px 100px rgba(7,51,79,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  transition: opacity .18s ease, visibility .18s ease, transform .2s ease;
}

.fut-user-menu:hover .fut-user-dropdown,
.fut-user-menu:focus-within .fut-user-dropdown,
.fut-user-menu.is-open .fut-user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fut-user-dropdown-heading {
  display: grid;
  gap: 2px;
  padding: 10px 11px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--fut-header-border);
}

.fut-user-dropdown-heading strong {
  color: var(--fut-header-ink);
  font-size: .82rem;
  font-weight: 900;
}

.fut-user-dropdown-heading span {
  color: var(--fut-header-muted);
  font-size: .67rem;
  font-weight: 650;
}

.fut-user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  padding: 7px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--fut-header-ink);
  background: transparent;
  font-size: .75rem;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.fut-user-dropdown-link:hover {
  color: var(--fut-header-blue-dark);
  background: #eef8ff;
}

html.fut-dark .fut-user-dropdown-link:hover,
html[data-theme="dark"] .fut-user-dropdown-link:hover {
  color: #79d9ff;
  background: #112e48;
}

.fut-user-dropdown-divider {
  height: 1px;
  margin: 7px 5px;
  background: var(--fut-header-border);
}

.fut-user-dropdown-danger:hover { color: #dc2626 !important; background: #fff2f2 !important; }

.fut-admin-menu-section-label {
  padding: 7px 10px 6px;
  color: var(--fut-header-blue-dark);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fut-admin-menu-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--fut-header-blue-dark);
}

.fut-admin-menu-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================================================== */
/* MOBILE NAVIGATION                                                          */
/* ========================================================================== */

.fut-mobile-menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe2ef;
  border-radius: 13px;
  color: var(--fut-header-ink);
  background: #fff;
  box-shadow: 0 7px 18px rgba(19,73,106,.07), inset 0 1px 0 #fff;
  cursor: pointer;
  z-index: 10003;
}

html.fut-dark .fut-mobile-menu-button,
html[data-theme="dark"] .fut-mobile-menu-button {
  background: #11263d;
  border-color: #2d506c;
  color: #d8f1ff;
}

.fut-mobile-menu-icon { width: 21px; height: 21px; }
.fut-mobile-menu-icon--close { display: none; }

.fut-mobile-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10002;
  max-height: calc(100vh - var(--fut-header-height-local));
  overflow-y: auto;
  padding: 12px max(14px, calc((100vw - 760px) / 2)) 22px;
  border-top: 1px solid var(--fut-header-border);
  background: var(--fut-header-panel);
  box-shadow: 0 24px 50px rgba(7,51,79,.14);
}

.fut-header.is-mobile-open .fut-mobile-navigation { display: block; }

.fut-header.is-mobile-open .fut-mobile-menu-icon--open { display: none; }
.fut-header.is-mobile-open .fut-mobile-menu-icon--close { display: block; }

.fut-mobile-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  margin: 3px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--fut-header-ink);
  background: transparent;
  font-size: .87rem;
  font-weight: 780;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.fut-mobile-link:hover,
.fut-mobile-link.is-active {
  color: var(--fut-header-blue-dark);
  background: #eff9ff;
  border-color: #d4ecf8;
  transform: translateX(2px);
}

html.fut-dark .fut-mobile-link:hover,
html.fut-dark .fut-mobile-link.is-active,
html[data-theme="dark"] .fut-mobile-link:hover,
html[data-theme="dark"] .fut-mobile-link.is-active {
  color: #76d8ff;
  background: #102d47;
  border-color: #24516f;
}

.fut-mobile-link-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--fut-header-blue-dark);
}

.fut-mobile-link-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fut-mobile-section-title {
  margin: 15px 3px 6px;
  padding: 0 8px;
  color: var(--fut-header-muted);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fut-mobile-link--primary {
  color: #fff !important;
  background: linear-gradient(135deg,#0ea5e9,#0369a1) !important;
  border-color: transparent !important;
  box-shadow: 0 9px 22px rgba(14,165,233,.18);
}

body.fut-mobile-lock { overflow: hidden; }

/* ========================================================================== */
/* RESPONSIVE BREAKPOINTS                                                     */
/* ========================================================================== */

@media (max-width: 1120px) {
  .fut-header-inner { width: min(100% - 32px, 1100px); gap: 14px; }
  .fut-header-brand { width: 148px; }
  .fut-header-logo { width: 136px; height: 44px; }
  .fut-header-nav { gap: 2px; }
  .fut-header-link, .fut-nav-dropdown-trigger { padding-inline: 10px; }
  .fut-header-btn { padding-inline: 12px; }
}

@media (max-width: 980px) {
  .fut-header-inner { min-height: 70px; }
  .fut-header-nav,
  .fut-header-btn { display: none; }
  .fut-mobile-menu-button { display: grid; }
  .fut-header-actions { margin-left: auto; }
  .fut-header-brand { width: 142px; }
  .fut-header-logo { width: 132px; height: 42px; }
}

@media (max-width: 680px) {
  .fut-header-inner {
    width: calc(100% - 24px);
    min-height: 66px;
    gap: 8px;
  }

  .fut-header-brand { width: 126px; height: 50px; }
  .fut-header-logo { width: 118px; height: 40px; }
  .fut-header-actions { gap: 7px; }
  .fut-theme-toggle,
  .fut-mobile-menu-button { width: 40px; height: 40px; }

  .fut-mobile-navigation {
    max-height: calc(100vh - 66px);
    padding-inline: 12px;
  }

  .fut-tools-mega-menu {
    width: calc(100vw - 20px);
  }

  .fut-mega-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .fut-mega-view-all { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .fut-header-brand { width: 112px; }
  .fut-header-logo { width: 106px; height: 36px; }
  .fut-header-inner { width: calc(100% - 18px); }
  .fut-mobile-link { min-height: 46px; }
}

@media (max-width: 360px) {
  .fut-header-logo { width: 98px; }
  .fut-theme-toggle { display: none; }
}

/* Desktop mega menu remains a 3-column library; tablet/mobile use the
   dedicated full-width navigation instead. */
@media (max-width: 980px) {
  .fut-nav-dropdown { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fut-header *,
  .fut-header *::before,
  .fut-header *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   FUT HEADER — FINAL DARK-MODE / CONTRAST / 3D POLISH
   v6.0
   ========================================================================== */

.fut-header {
  --fut-header-height-local: 78px;
  --fut-header-ink-light: #10233d;
  --fut-header-muted-light: #5f7187;
  --fut-header-blue-light: #0369a1;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(249,252,255,.92)
    ) !important;

  border-bottom: 1px solid rgba(174,209,232,.72) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95),
    0 10px 34px rgba(14,70,105,.065);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
}

html.fut-dark .fut-header,
html[data-theme="dark"] .fut-header {
  --fut-header-ink-light: #f2f8ff;
  --fut-header-muted-light: #a4bad0;
  --fut-header-blue-light: #70d8ff;

  background:
    linear-gradient(
      180deg,
      rgba(8,20,35,.985),
      rgba(7,18,31,.965)
    ) !important;

  border-bottom-color: rgba(74,122,157,.34) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.03),
    0 15px 42px rgba(0,0,0,.24);
}

/* Header text in both themes */
.fut-header-link,
.fut-nav-dropdown-trigger,
.fut-header-btn--secondary,
.fut-header .fut-user-menu,
.fut-header .fut-user-menu *,
.fut-header .fut-mega-title,
.fut-header .fut-mega-section-head strong,
.fut-header .fut-mega-card-content strong {
  color: var(--fut-header-ink-light);
}

.fut-header .fut-mega-description,
.fut-header .fut-mega-card-content span,
.fut-header .fut-mega-bottom-note,
.fut-header .fut-mega-count {
  color: var(--fut-header-muted-light);
}

/* Active navigation */
.fut-header-link.is-active,
.fut-nav-dropdown-trigger.is-active {
  color: #075985 !important;
  background:
    linear-gradient(180deg, #f7fcff, #e7f5fd) !important;
  border-color: #c9e6f5 !important;
}

html.fut-dark .fut-header-link.is-active,
html.fut-dark .fut-nav-dropdown-trigger.is-active,
html[data-theme="dark"] .fut-header-link.is-active,
html[data-theme="dark"] .fut-nav-dropdown-trigger.is-active {
  color: #72d9ff !important;
  background:
    linear-gradient(180deg, #12314c, #10283e) !important;
  border-color: #315c79 !important;
}

/* Hover */
.fut-header-link:hover,
.fut-nav-dropdown-trigger:hover {
  color: #0369a1 !important;
  background: #f0f9ff !important;
  border-color: #d7edf9 !important;
}

html.fut-dark .fut-header-link:hover,
html.fut-dark .fut-nav-dropdown-trigger:hover,
html[data-theme="dark"] .fut-header-link:hover,
html[data-theme="dark"] .fut-nav-dropdown-trigger:hover {
  color: #83ddff !important;
  background: #102e48 !important;
  border-color: #285674 !important;
}

/* User dropdown surfaces */
html.fut-dark .fut-user-menu > *,
html[data-theme="dark"] .fut-user-menu > * {
  color: #eef7ff;
}

/* Mega menu headings never disappear */
.fut-mega-title,
.fut-mega-section-head strong,
.fut-mega-card-content strong {
  font-weight: 880;
}

html.fut-dark .fut-mega-title,
html.fut-dark .fut-mega-section-head strong,
html.fut-dark .fut-mega-card-content strong,
html[data-theme="dark"] .fut-mega-title,
html[data-theme="dark"] .fut-mega-section-head strong,
html[data-theme="dark"] .fut-mega-card-content strong {
  color: #eff8ff !important;
}

html.fut-dark .fut-mega-description,
html.fut-dark .fut-mega-card-content span,
html[data-theme="dark"] .fut-mega-description,
html[data-theme="dark"] .fut-mega-card-content span {
  color: #9fb6cb !important;
}

/* Theme toggle / auth buttons */
html.fut-dark .fut-theme-toggle,
html[data-theme="dark"] .fut-theme-toggle {
  color: #d9f5ff !important;
  background: #112a42 !important;
  border-color: #315772 !important;
}

html.fut-dark .fut-header-btn--secondary,
html[data-theme="dark"] .fut-header-btn--secondary {
  color: #e8f5ff !important;
  background: #112a42 !important;
  border-color: #315772 !important;
}

/* 3D header lighting line */
.fut-header::after {
  position: absolute;
  z-index: -1;
  inset: auto 8% -1px;
  height: 1px;
  content: "";
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(56,189,248,.40),
      transparent
    );
  pointer-events: none;
}

/* Mobile consistency */
@media (max-width: 720px) {
  .fut-header-inner {
    gap: 12px;
  }

  .fut-header-brand {
    width: 126px;
  }

  .fut-header-logo {
    width: 118px;
  }
}

/* ==========================================================================
   FUT HEADER — FINAL v5 CONTRAST / DEPTH LAYER
   ========================================================================== */

.fut-header {
  background: rgba(250,253,255,.92) !important;
  border-bottom-color: rgba(133,174,202,.24) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.84),
    0 11px 34px rgba(15,61,90,.055) !important;
}

.fut-header-link,
.fut-nav-dropdown-trigger {
  color: #172942 !important;
}

.fut-header-link:hover,
.fut-nav-dropdown-trigger:hover {
  color: #075f98 !important;
  background: #eef8fe !important;
  border-color: #c9e7f5 !important;
}

.fut-header-link.is-active,
.fut-nav-dropdown-trigger.is-active {
  color: #075f98 !important;
  background: linear-gradient(180deg,#f6fbff,#eaf6fd) !important;
  border-color: #c6e2f1 !important;
}

.fut-header-btn--secondary {
  color: #17324e !important;
  background: #fff !important;
  border-color: #cfe1ec !important;
}

html.fut-dark .fut-header,
html[data-theme="dark"] .fut-header {
  background: rgba(7,18,30,.94) !important;
  border-bottom-color: rgba(88,140,179,.20) !important;
  box-shadow:
    0 14px 38px rgba(0,0,0,.24) !important;
}

html.fut-dark .fut-header-link,
html.fut-dark .fut-nav-dropdown-trigger,
html[data-theme="dark"] .fut-header-link,
html[data-theme="dark"] .fut-nav-dropdown-trigger {
  color: #e7f5ff !important;
}

html.fut-dark .fut-header-link:hover,
html.fut-dark .fut-nav-dropdown-trigger:hover,
html[data-theme="dark"] .fut-header-link:hover,
html[data-theme="dark"] .fut-nav-dropdown-trigger:hover {
  color: #7bdcff !important;
  background: #102a43 !important;
  border-color: #285271 !important;
}

html.fut-dark .fut-header-link.is-active,
html.fut-dark .fut-nav-dropdown-trigger.is-active,
html[data-theme="dark"] .fut-header-link.is-active,
html[data-theme="dark"] .fut-nav-dropdown-trigger.is-active {
  color: #79dcfa !important;
  background: linear-gradient(180deg,#12314d,#0f273f) !important;
  border-color: #2e5d7d !important;
}

html.fut-dark .fut-header-btn--secondary,
html[data-theme="dark"] .fut-header-btn--secondary {
  color: #e2f2fc !important;
  background: #12283f !important;
  border-color: #2b4e6b !important;
}

.fut-tools-mega-menu {
  box-shadow:
    0 5px 0 rgba(255,255,255,.62) inset,
    0 24px 55px rgba(8,60,90,.15),
    0 45px 95px rgba(8,60,90,.11) !important;
}

html.fut-dark .fut-tools-mega-menu,
html[data-theme="dark"] .fut-tools-mega-menu {
  background: #0e2033 !important;
  border-color: #294b67 !important;
  box-shadow:
    0 24px 72px rgba(0,0,0,.46),
    0 44px 105px rgba(0,0,0,.30) !important;
}
