/* Shared v2 header/footer shell. Keep page-specific layout out of this file. */
:root {
  --brand: #00b45c;
  --brand-dark: #087a3f;
  --brand-soft: #e8f8ef;
  --ink: #0f1923;
  --ink-2: #1e2a35;
  --muted: #64748b;
  --line: #e5eaf0;
  --red: #ef4444;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.68,0,1.1);
}

header.v2-topbar,
header.v2-topbar *,
footer.v2-footer,
footer.v2-footer *,
.nd-logout-overlay,
.nd-logout-overlay *,
.v2-scroll-top {
  box-sizing: border-box;
}

header.v2-topbar,
footer.v2-footer,
.nd-logout-overlay,
.nd-logout-overlay,
header.v2-topbar :not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]),
footer.v2-footer :not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]),
.nd-logout-overlay :not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: 'Mulish', Arial, Helvetica, sans-serif !important;
}

header.v2-topbar a,
footer.v2-footer a {
  text-decoration: none !important;
}

header.v2-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(229,234,240,.8);
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
  backdrop-filter: blur(20px) saturate(1.4);
}

header.v2-topbar .v2-container--wide {
  width: min(1540px, calc(100% - 32px));
  margin-inline: auto;
}

header.v2-topbar .v2-topbar__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header.v2-topbar .v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: clamp(22px,1.65vw,28px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1;
  white-space: nowrap;
}

header.v2-topbar .v2-brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg,#13d87f,#00a856);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,180,92,.28);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

header.v2-topbar .v2-brand > span:not(.v2-brand__mark) {
  letter-spacing: inherit;
}

header.v2-topbar .v2-brand__accent {
  color: var(--brand);
  letter-spacing: inherit;
}

header.v2-topbar .v2-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

header.v2-topbar .v2-nav__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #1a4d2e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .16s, color .16s, transform .18s var(--ease);
}

header.v2-topbar .v2-nav__link i {
  color: var(--brand);
  font-size: 15px;
}

header.v2-topbar .v2-nav__link:hover,
header.v2-topbar .v2-nav__link--active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

header.v2-topbar .v2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

header.v2-topbar .v2-post {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
  white-space: nowrap;
}

header.v2-topbar .v2-user {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px 3px 5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

header.v2-topbar .v2-user__avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2.5px solid var(--brand);
  border-radius: 999px;
}

header.v2-topbar .v2-user__name {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

header.v2-topbar .v2-user__chev {
  color: var(--muted);
  font-size: 11px;
  transition: transform .18s;
}

header.v2-topbar .v2-user-wrap {
  position: relative;
}

header.v2-topbar .v2-user-wrap.is-open .v2-user__chev,
header.v2-topbar .v2-user[aria-expanded="true"] .v2-user__chev {
  transform: rotate(180deg);
}

header.v2-topbar .v2-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 260;
  width: min(240px, calc(100vw - 32px));
  display: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15,23,42,.13);
}

header.v2-topbar .v2-user-wrap.is-open .v2-user-menu {
  display: block;
}

header.v2-topbar .v2-user-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fbfdff;
  border-bottom: 1px solid var(--line);
}

header.v2-topbar .v2-user-menu__avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 2px solid var(--brand);
  border-radius: 999px;
}

header.v2-topbar .v2-user-menu__name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

header.v2-topbar .v2-user-menu__badge {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 0 7px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

header.v2-topbar .v2-user-menu__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

header.v2-topbar .v2-user-menu__list form {
  margin: 0;
}

header.v2-topbar .v2-user-menu__list a,
header.v2-topbar .v2-user-menu__logout {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #344054;
  background: #fff;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

header.v2-topbar .v2-user-menu__list a:hover,
header.v2-topbar .v2-user-menu__logout:hover {
  color: var(--brand-dark);
  background: #f7fbf9;
}

header.v2-topbar .v2-user-menu__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #344054;
  border: 1.5px solid #344054;
  border-radius: 999px;
  font-size: 11px;
}

header.v2-topbar .v2-user-menu__divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

header.v2-topbar .v2-user-menu__logout {
  color: var(--red);
}

header.v2-topbar .v2-user-menu__logout .v2-user-menu__icon {
  color: var(--red);
  border: 0;
  font-size: 14px;
}

footer.v2-footer {
  color: rgba(255,255,255,.58);
  background: #060d18;
  font-size: 13.5px;
  font-weight: 600;
}

footer.v2-footer .v2-container {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

footer.v2-footer .v2-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3,1fr);
  gap: 40px;
  padding: 52px 0 40px;
}

footer.v2-footer .v2-footer__brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(145deg,#13d87f,#00a856);
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0,180,92,.28);
  font-size: 19px;
  font-weight: 900;
}

footer.v2-footer .v2-footer__brand-name {
  margin-bottom: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.06em;
}

footer.v2-footer .v2-footer__brand-name span {
  color: var(--brand);
}

footer.v2-footer .v2-footer__desc {
  max-width: 280px;
  line-height: 1.7;
}

footer.v2-footer .v2-footer__hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(0,180,92,.14);
  border: 1px solid rgba(0,180,92,.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

footer.v2-footer .v2-footer__hotline i {
  color: var(--brand);
}

footer.v2-footer .v2-footer__col-title {
  margin-bottom: 16px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

footer.v2-footer .v2-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

footer.v2-footer .v2-footer__links a,
footer.v2-footer .v2-footer__legal a {
  color: rgba(255,255,255,.68);
}

footer.v2-footer .v2-footer__links a:hover,
footer.v2-footer .v2-footer__legal a:hover {
  color: rgba(255,255,255,.9);
}

footer.v2-footer .v2-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .16s, padding-left .16s;
}

footer.v2-footer .v2-footer__links a:hover {
  padding-left: 4px;
}

footer.v2-footer .v2-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

footer.v2-footer .v2-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer.v2-footer .v2-footer__copy {
  font-weight: 700;
}

.v2-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 151;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 38px rgba(0,180,92,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .22s, transform .22s var(--ease);
}

.v2-scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.v2-scroll-top:hover {
  background: var(--brand-dark);
}

.nd-logout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(6px);
}

.nd-logout-overlay.open {
  display: flex;
}

.nd-logout-card {
  width: min(380px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15,23,42,.18);
  animation: ndSlideUp .18s ease;
}

@keyframes ndSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nd-logout-body {
  padding: 26px 26px 20px;
}

.nd-logout-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.nd-logout-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fef2f2;
  border-radius: 12px;
}

.nd-logout-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.nd-logout-card p {
  margin: 0 0 0 54px;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

.nd-logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px 20px;
}

.nd-logout-actions button {
  padding: 12px 10px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, transform .1s;
}

.nd-logout-actions button:active {
  transform: scale(.97);
}

.nd-logout-keep {
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb !important;
}

.nd-logout-keep:hover {
  background: #e5e7eb;
}

.nd-logout-confirm {
  color: #fff;
  background: #ef4444;
}

.nd-logout-confirm:hover {
  background: #dc2626;
}

@media (max-width: 1200px) {
  header.v2-topbar .v2-nav__link:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 900px) {
  header.v2-topbar .v2-nav {
    display: none;
  }

  header.v2-topbar .v2-topbar__inner {
    min-height: 62px;
  }

  footer.v2-footer .v2-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  header.v2-topbar .v2-container--wide {
    width: min(100% - 24px, 720px);
  }

  header.v2-topbar .v2-topbar__inner {
    justify-content: space-between;
    gap: 8px;
  }

  header.v2-topbar .v2-brand {
    min-width: 0;
    gap: 8px;
    font-size: 20px;
    letter-spacing: -.055em;
  }

  header.v2-topbar .v2-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  header.v2-topbar .v2-actions {
    gap: 6px;
  }

  header.v2-topbar .v2-post {
    display: none;
  }

  header.v2-topbar .v2-user {
    min-height: 38px;
    gap: 6px;
    padding: 3px 11px 3px 4px;
    font-size: 12px;
  }

  header.v2-topbar .v2-user__avatar {
    width: 30px;
    height: 30px;
  }

  header.v2-topbar .v2-user-menu {
    right: -8px;
    width: min(300px, calc(100vw - 24px));
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  header.v2-topbar .v2-user {
    width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 3px;
  }

  header.v2-topbar .v2-user__avatar {
    width: 34px;
    height: 34px;
  }

  header.v2-topbar .v2-user__name,
  header.v2-topbar .v2-user__chev {
    display: none;
  }

  header.v2-topbar .v2-brand {
    gap: 7px;
    font-size: 19px;
  }

  header.v2-topbar .v2-brand__mark {
    width: 38px;
    height: 38px;
  }

  footer.v2-footer .v2-container {
    width: min(100% - 28px, 720px);
  }

  footer.v2-footer .v2-footer__top {
    grid-template-columns: 1fr;
  }

  .v2-scroll-top {
    right: 16px;
    bottom: 18px;
  }
}

@media (max-width: 380px) {
  header.v2-topbar .v2-brand {
    gap: 6px;
    font-size: 18px;
  }

  header.v2-topbar .v2-brand__mark {
    width: 36px;
    height: 36px;
  }
}
