/* WiFiRes — Unified Public Header & Footer Chrome (Dark & Light, Zero-Flash) */
.wfc-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] .wfc-nav {
  background: rgba(18, 18, 18, .86);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.wfc-nav-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wfc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.wfc-brand img {
  height: 32px;
  width: auto;
  display: block;
}

[data-theme="dark"] .wfc-logo-l,
html:not([data-theme="dark"]) .wfc-logo-d {
  display: none !important;
}

.wfc-crumb {
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  padding-inline-start: 12px;
  border-inline-start: 1px solid rgba(15, 23, 42, .14);
}

[data-theme="dark"] .wfc-crumb {
  color: #8a8a8a;
  border-inline-start-color: rgba(255, 255, 255, .14);
}

.wfc-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wfc-links a {
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  color: #334155;
  transition: color .15s ease, background .15s ease;
}

[data-theme="dark"] .wfc-links a {
  color: #b5b5b5;
}

.wfc-links a:hover,
.wfc-links a.is-on {
  color: #ff5f0f;
  background: rgba(255, 95, 15, .1);
}

.wfc-act {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wfc-ibtn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .11);
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

[data-theme="dark"] .wfc-ibtn {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, .11);
  color: #e2e8f0;
}

.wfc-ibtn:hover {
  border-color: #ff5f0f;
  color: #ff5f0f;
}

.wfc-ibtn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .wfc-moon,
html:not([data-theme="dark"]) .wfc-sun {
  display: none;
}

.wfc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  background: #ff5f0f;
  color: #ffffff !important;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 95, 15, .25);
  transition: background .15s ease, transform .15s ease;
}

.wfc-cta:hover {
  background: #e85206;
  transform: translateY(-1px);
}

.wfc-cta-ghost {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .11);
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="dark"] .wfc-cta-ghost {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, .11);
  color: #f5f5f5;
}

.wfc-cta-ghost:hover {
  border-color: #ff5f0f;
  color: #ff5f0f;
}

.wfc-burger {
  display: none;
}

/* Mobile Sheet */
.wfc-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-start;
}

.wfc-sheet[hidden] {
  display: none !important;
}

.wfc-sheet-panel {
  width: min(300px, 84vw);
  height: 100%;
  background: #ffffff;
  color: #0f172a;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .wfc-sheet-panel {
  background: #181818;
  color: #f5f5f5;
}

.wfc-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(128, 128, 128, .18);
  margin-bottom: 4px;
}

.wfc-sheet-panel a {
  padding: 10px 12px;
  border-radius: 11px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  color: inherit;
}

.wfc-sheet-panel a:hover,
.wfc-sheet-panel a.is-on {
  background: rgba(255, 95, 15, .12);
  color: #ff5f0f;
}

/* Unified Footer */
.wfc-foot {
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(15, 23, 42, .02);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] .wfc-foot {
  border-top-color: rgba(255, 255, 255, .08);
  background: #141414;
}

.wfc-foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wfc-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wfc-foot-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.wfc-foot-copy {
  margin: 0;
  font-size: .8rem;
  color: #64748b;
}

[data-theme="dark"] .wfc-foot-copy {
  color: #8a8a8a;
}

.wfc-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wfc-foot-nav a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
  transition: color .15s ease;
}

[data-theme="dark"] .wfc-foot-nav a {
  color: #a3a3a3;
}

.wfc-foot-nav a:hover,
.wfc-foot-nav a.is-on {
  color: #ff5f0f;
}

@media (max-width: 900px) {
  .wfc-links,
  .wfc-crumb,
  .wfc-cta-ghost {
    display: none;
  }
  .wfc-burger {
    display: inline-flex;
  }
}
