html, body {
  height: 100%;
}

.page-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-wrap > * {
  flex-shrink: 0;
}

main, .box, .home-body, .home-body-inner {
  flex: 1 0 auto;
}

body {
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #F9FAFE;
  color: #111827;
  line-height: 1.5;
}

.navagation {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.8rem 1.25rem;
  /*
  border-top: 3px solid #011013;
  border-bottom: 3px solid #011013;
  */
  overflow: visible;
  /* url() is relative to *this* CSS file: themes/mwb_tb/style.css → images/MWB_menu_bg.png */
  background-color: #2C3033;
  background-image: url("images/MWB_menu_bg.png");
  background-repeat: repeat-x;
  background-position: top left;
  /* Tall narrow bitmap: fit bar height, tile horizontally */
  background-size: auto 100%;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding:0 0 0.9rem 1rem 0;
  background: #2C3033;
}
.brand-logo {
  /* width: 1000px; */
  height: auto;
  max-width: 500%;
}

.tagline {
    color: #000217;
    font-weight: 600;
    font-size: 24px;
    margin-top: -15px;
    padding:  0 0 10px 0;
    background: #F9FAFE;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-link {
  color: #dbe3ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.top-link:hover {
  color: #ffffff;
  background: #243247;
  border-color: #39506b;
}
.top-link:focus-visible {
  outline: none;
  color: #ffffff;
  background: #243247;
  border-color: #1d9bf0;
  box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.35);
}
.top .domain {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b98a6;
  font-size: 0.9rem;
}
/* Member content column: up to 1000px, fluid gutters on small viewports */
.box {
  width: 100%;
  max-width: 650px;
  margin: 2rem auto;
  padding: 0 clamp(0.75rem, 4vw, 1.25rem);
  box-sizing: border-box;
}

main#vbx-main.box.vbx-member-main {
  margin-top: 1.25rem;
  margin-bottom: -2rem;
}
.home-body {
  text-align: center;
}
.home-body-inner {
  display: block;
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.box.narrow { max-width: 22rem; }
.box h1 { font-size: 1.5rem; margin-top: 0; }
h1.welcome-heading {
  text-align: center;
}
.vbx-ad-available-views-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.15rem auto 3.25rem;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}
p.vbx-ad-available-views {
  display: inline-block;
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #0f766e;
}
.site-footer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #000317;
  border-top: 1px solid #c5cad6;
  border-bottom: 1px solid #c5cad6;
  background-color: #2C3033;
  background-image: url("images/MWB_menu_bg.png");
}
.site-footer p {
  margin: 0;
  line-height: 1.5;
}
.admin-page {
  padding-top: 2rem;
}
.admin-shell {
  margin-bottom: 0.5rem;
}
.admin-shell-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border-top: 2px solid #E80000;
  background: #000217;
}
.admin-shell-badge {
  color: #dbe3ea;
  font-weight: 700;
  font-size: 0.92rem;
  margin-right: 0.85rem;
  letter-spacing: 0.02em;
}
.admin-dash-head {
  margin-bottom: 1.25rem;
}
.admin-meta {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}
label { 
    display: block; 
    margin: 1rem 0 0.35rem; 
    font-size: 0.875rem; 
    color: #000317; 
    font-weight: 700;
}
input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #2f4055;
  border-radius: 6px;
  background: #0f1419;
  color: #e7e9ea;
  box-sizing: border-box;
}
button, .btn {
  display: inline-block;
  /* margin-top: 1.25rem; */
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 6px;
  background: #1d9bf0;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-alt { background: #38444d; margin-left: 0.35rem; }
.error { color: #f97373; margin: 0 0 1rem; font-size: 0.925rem; }
.muted { 
    color: #000317; 
    font-size: 0.9rem;
    padding: 0 0 0 40px; 
    font-weight: 700; 
}
.muted a { 
    color: #000317;
    padding: 0 0 0 40px;
    font-weight: 700; 
}

.btn:hover {
  color: #ffffff;
  background: #243247;
  border-color: #39506b;
}

/* P2P affiliate banner + nav chip */
.vbx-p2p-banner-topbar {
  background: #e8eef5;
  color: #000217;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  border-bottom: 1px solid #c5d4e5;
}

.vbx-p2p-banner-topbar .vbx-p2p-banner-link {
  color: #000217;
  text-decoration: none;
}

.vbx-p2p-banner-topbar .vbx-p2p-banner-link:hover {
  text-decoration: underline;
}

.vbx-p2p-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.vbx-p2p-dot-ok {
  background-color: #28a745;
}

.vbx-p2p-dot-warn {
  background-color: #dc3545;
}

a.vbx-p2p-top-btn {
  background: #157a6e !important;
  border-color: transparent;
}

a.vbx-p2p-top-btn:hover {
  background: #0f5c53 !important;
}

/* DB-driven menu: nested dropdowns (member top bar) */
.navagation .top-links {
  position: relative;
  flex-wrap: wrap;
  overflow: visible;
  align-items: flex-start;
  z-index: 2; /* sit above .navagation background */
}
.navagation .vbx-nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  vertical-align: middle;
}
.navagation .vbx-nav-dropdown__trigger {
  display: inline-flex;
}
.navagation .vbx-nav-dropdown__split {
  align-items: stretch;
}
.navagation .vbx-nav-dropdown__split > .btn.vbx-nav-dropdown__link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.navagation button.btn.vbx-nav-dropdown__chev {
  cursor: pointer;
  font-family: inherit;
  min-width: 2rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  margin-left: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  line-height: 1;
}
.navagation .vbx-nav-dropdown__panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 6px);
  min-width: 11rem;
  padding: 0.55rem 0.35rem 0.35rem;
  margin-top: 0;
  background: #000217;
  border: 1px solid #39506b;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  z-index: 20050;
}
.navagation .vbx-nav-dropdown:hover > .vbx-nav-dropdown__panel,
.navagation .vbx-nav-dropdown:focus-within > .vbx-nav-dropdown__panel,
.navagation .vbx-nav-dropdown.vbx-nav-dropdown--open > .vbx-nav-dropdown__panel {
  display: flex;
}
.navagation .vbx-nav-dropdown__slot {
  display: block;
  position: relative;
}
.navagation .vbx-nav-dropdown__slot .vbx-nav-dropdown__panel {
  position: static;
  display: none;
  margin-top: 0.15rem;
  margin-left: 0.5rem;
  box-shadow: none;
  border-radius: 6px;
}
.navagation .vbx-nav-dropdown__slot .vbx-nav-dropdown:hover > .vbx-nav-dropdown__panel,
.navagation .vbx-nav-dropdown__slot .vbx-nav-dropdown:focus-within > .vbx-nav-dropdown__panel,
.navagation .vbx-nav-dropdown__slot .vbx-nav-dropdown.vbx-nav-dropdown--open > .vbx-nav-dropdown__panel {
  display: flex;
}
.navagation .vbx-nav-dropdown__sub {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  margin-left: 0 !important;
}

/* Registration page */
main#vbx-main.box.register-box {
  max-width: 28.25rem;
}
main#vbx-main.box.register-box.register-box--no-form {
  max-width: min(36rem, calc(100% - 2rem));
  text-align: center;
}
.register-intro.vbx-template-fragment {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}
.register-intro.vbx-template-fragment > div {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
}
.register-intro img {
  max-width: 100%;
  height: auto;
}
.pw-meter-wrap {
  margin-top: 0.4rem;
}
.pw-meter-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.pw-meter-bar {
  height: 100%;
  width: 0%;
  background: #dc2626;
  transition: width 0.15s ease, background-color 0.15s ease;
}
.pw-meter-text {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
}
.pw-meter-text.ok {
  color: #15803d;
}
.register-inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.register-view-password {
  margin-top: 0.5rem;
}
.register-geo-fieldset {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.register-geo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.register-geo-option {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tableouter315drkteal {
  border: 2px solid #014946;
  background-image: url("../../images/paper.png");
  background-color: #eaeaea;
  border-radius: 15px;
  display: block;
  width: 315px;  
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  padding: 10px;
  box-sizing: border-box;
}

.tableouter550ltred {
  border: 2px solid #ff0000;
  background-image: url("../../images/paper.png");
  background-color: #eaeaea;
  border-radius: 15px;
  display: block;
  width: min(500px, 100%);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  padding: 10px;
  box-sizing: border-box;
}

.tableouter550drkteal {
  border: 2px solid #014946;
  background-image: url("../../images/paper.png");
  background-color: #eaeaea;
  border-radius: 15px;
  display: block;
  width: 500px;
  
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  padding: 10px;
  box-sizing: border-box;
}

.tableouter650drkteal {
  border: 2px solid #014946;
  background-image: url("../../images/paper.png");
  background-color: #eaeaea;
  border-radius: 15px;
  display: block;
  width: 465px;
  
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  padding: 10px;
  box-sizing: border-box;
}

.tableouter830drkteal {
  border: 1px solid #e2e8f0;
  /* background-image: url("../../images/paper.png"); */
  background-color: #fff;
  border-radius: 10px;
  display: block;
  width: 830px;
  
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.tableouter900drkteal {
    border: 1px solid #e2e8f0;
    /* background-image: url("../../images/paper.png"); */
    background-color: #fff;
    border-radius: 10px;
    display: block;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding: 1.1rem 1.25rem;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}