/* Main website (wealthconsultant.in) header and footer, used on the public members pages
   (Free Trade Ideas, Dashboard before login). Copied from ../../styles.css and scoped under
   .wcx-header / .wcx-footer so app.css rules (.brand, .site-footer, .btn ...) do not interfere.
   The header always uses the main site's "scrolled" look (white bar), as these pages have no dark hero behind it. */

.wcx-header, .wcx-footer { font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wcx-header *, .wcx-footer * { box-sizing: border-box; }
.wcx-header a, .wcx-footer a { text-decoration: none; }
.wcx-header a:focus-visible, .wcx-header button:focus-visible, .wcx-footer a:focus-visible { outline: 3px solid #c4942f; outline-offset: 4px; }
.wcx-header img, .wcx-footer img { display: block; max-width: 100%; }

/* ---- Header ---- */
.wcx-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px; width: 100%;
  padding: 14px clamp(18px, 4vw, 64px);
  color: #13201d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 35px rgba(18, 32, 29, 0.1);
  backdrop-filter: blur(14px);
  font-size: 16px; line-height: 1.5;
}
.wcx-header .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: calc(100vw - 82px); padding: 0; color: inherit; font-weight: 400; font-size: 16px; }
.wcx-header .brand:hover { text-decoration: none; }
.wcx-header .brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 22px rgba(13, 24, 21, 0.16); overflow: hidden; flex: none; }
.wcx-header .brand-mark img { width: 48px; height: 48px; object-fit: contain; }
.wcx-header .brand strong, .wcx-header .brand small { display: block; line-height: 1.2; }
.wcx-header .brand strong { font-weight: 700; white-space: nowrap; }
.wcx-header .brand small { margin-top: 2px; font-size: 0.75rem; opacity: 0.82; }

.wcx-header .nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; font-weight: 700; }
.wcx-header .nav-links a { color: inherit; opacity: 0.88; white-space: nowrap; }
.wcx-header .nav-links a:hover { opacity: 1; text-decoration: none; }
.wcx-header .nav-cta { padding: 11px 16px; border-radius: 8px; background: #c4942f; color: #16221f !important; opacity: 1 !important; }
.wcx-header .nav-free { color: #8a6416 !important; opacity: 1 !important; }
.wcx-header .nav-login { padding: 10px 14px; border: 1px solid #dbe4df; border-radius: 8px; }
.wcx-header .nav-dash { padding: 11px 16px; border-radius: 8px; background: #0f766e; color: #fff !important; opacity: 1 !important; }
.wcx-header .nav-dash:hover { background: #0c534e; }

.wcx-header .nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 8px; color: inherit; background: transparent; flex: 0 0 auto; cursor: pointer; }
.wcx-header .nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

@media (max-width: 1380px) and (min-width: 901px) {
  .wcx-header .nav-links { gap: 14px; font-size: 0.86rem; }
  .wcx-header .nav-login, .wcx-header .nav-dash, .wcx-header .nav-cta { padding: 9px 12px; }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .wcx-header .nav-links { gap: 10px; font-size: 0.8rem; }
  .wcx-header .brand small { display: none; }
}
/* These pages have a scrollbar (the main site's header is 100vw wide), so a little less room: keep the name clear of the menu */
.wcx-header .brand { flex: none; }
@media (max-width: 1120px) and (min-width: 901px) {
  .wcx-header { gap: 14px; }
  .wcx-header .nav-links { gap: 6px; }
}
@media (max-width: 900px) {
  .wcx-header .nav-toggle { display: block; margin-left: auto; background: rgba(255, 255, 255, 0.1); }
  .wcx-header .nav-links {
    position: absolute; top: 100%; left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; border: 1px solid #dbe4df; border-radius: 8px;
    background: #fff; color: #13201d;
    box-shadow: 0 22px 55px rgba(25, 38, 34, 0.14);
  }
  .wcx-header .nav-links.open { display: flex; }
  .wcx-header .nav-links a { padding: 14px; }
  .wcx-header .nav-cta { text-align: center; }
  .wcx-header .nav-login { margin: 6px 0; text-align: center; }
  .wcx-header .nav-dash { text-align: center; margin-bottom: 6px; }
}
@media (max-width: 640px) {
  .wcx-header { min-height: 70px; padding-inline: 12px; gap: 10px; }
  .wcx-header .brand strong { font-size: 0.92rem; }
  .wcx-header .brand small { font-size: 0.64rem; }
  .wcx-header .brand-mark { width: 46px; height: 46px; }
  .wcx-header .brand-mark img { width: 42px; height: 42px; }
}

/* ---- Footer ---- */
.wcx-footer { margin-top: 2.5rem; padding: 54px clamp(18px, 4vw, 64px) 30px; background: #101916; color: #fff; font-size: 16px; line-height: 1.5; }
.wcx-footer .footer-top, .wcx-footer .footer-info, .wcx-footer .footer-bottom { width: min(1180px, 100%); margin: 0 auto; }
.wcx-footer .footer-top, .wcx-footer .footer-info { display: grid; gap: 30px; }
.wcx-footer .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.wcx-footer .footer-info { grid-template-columns: 1fr 1.2fr 1fr; padding: 34px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.wcx-footer h3 { margin: 0 0 14px; color: #fff; font-size: 1rem; line-height: 1.25; }
.wcx-footer p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; line-height: 1.6; overflow-wrap: break-word; }
.wcx-footer a { display: block; margin-bottom: 10px; color: #c4942f; font-weight: 800; overflow-wrap: anywhere; }
.wcx-footer a:hover { text-decoration: none; }
.wcx-footer .footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 24px; }
.wcx-footer .footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .wcx-footer .footer-top, .wcx-footer .footer-info { grid-template-columns: 1fr; }
  .wcx-footer .footer-bottom { flex-direction: column; }
}

/* Login / sign-up pages stay one screen, without the site header and footer */
body:has(.auth-split) .wcx-header, body:has(.auth-split) .wcx-footer { display: none; }
