html, body { margin: 0; min-height: 100%; }
body.nbp-access-gate { background: #0b0a07; }

#nbp.gate {
  --ink: #0b0a07;
  --ink-2: #100e09;
  --panel: #16130c;
  --line: #2a2414;
  --line-2: #4a3f22;
  --gold: #caa24e;
  --gold-bright: #f0d489;
  --gold-deep: #8a6d2e;
  --paper: #f2ece0;
  --mute: #9d9079;
  --sans: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --gold-foil: linear-gradient(160deg, #f4dc97 0%, #caa24e 42%, #a9842f 70%, #e6c87f 100%);
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#nbp.gate *, #nbp.gate *::before, #nbp.gate *::after { box-sizing: border-box; }
#nbp.gate h1, #nbp.gate h2, #nbp.gate p { margin: 0; }
#nbp.gate a { color: inherit; text-decoration: none; }
#nbp.gate svg, #nbp.gate img { display: block; max-width: 100%; }
#nbp.gate [hidden] { display: none !important; }
#nbp.gate :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Age gate */
#nbp.gate--age { color: #111; background: #fff; }
#nbp .age-screen { min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); }
#nbp .age-card {
  width: min(620px, 100%); min-height: 400px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 50px; text-align: center;
  border-radius: 12px; background: #fff; box-shadow: 0 5px 24px rgba(0,0,0,.12);
}
#nbp .age-icon { width: 62px; height: 62px; margin-bottom: 24px; }
#nbp .age-card h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.04em; font-weight: 800; margin-bottom:10px; }
#nbp .age-lede { margin-top: 22px; color: #242424; font-size: 14px; }
#nbp .age-actions { width: 100%; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
#nbp .age-btn { min-width: 200px; min-height: 48px; border: 1px solid #111; background: #090909; color: #fff; font: 700 18px/1 var(--sans); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
#nbp .age-btn--ghost { background: #fff; color: #111; }
#nbp .age-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
#nbp .age-denied { max-width: 580px; margin-top: 72px; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.5; }
#nbp .age-error { margin-top: 24px; color: #9f2525; }

/* Authentication gate */
#nbp .gate-head { border-bottom: 1px solid var(--line); background: rgba(11,10,7,.92); }
#nbp .gate-brand { width: min(1140px, calc(100% - 40px)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; gap: 13px; font-weight: 800; }
#nbp .gate-logo { width: 42px; height: 42px; flex: 0 0 auto; color: var(--line-2); object-fit: contain; }
#nbp .gate-brand > span { display: flex; flex-direction: column; line-height: 1.2; }
#nbp .gate-brand small { margin-top: 5px; color: var(--mute); font: 600 .6rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
#nbp .gate-auth-main { position: relative; overflow: hidden; }
#nbp .gate-auth-main::before {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(100% 80% at 70% 35%, #000, transparent 78%);
}
#nbp .gate-auth-wrap { position: relative; width: min(1140px, 100%); min-height: calc(100vh - 77px); margin-inline: auto; padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 56px); }
#nbp .login-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
#nbp .login-main { min-width: 0; }
#nbp .auth-heading { margin-bottom: 26px; }
#nbp .eyebrow { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 12px; color: var(--gold); font: .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
#nbp .eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
#nbp .login-title { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.4; letter-spacing: -.035em; }
#nbp .login-lede { max-width: 46ch; margin-top: 14px !important; color: var(--mute); font-size: 1.04rem; }
#nbp .login-panel { border: 1px solid var(--line); background: var(--panel); padding: clamp(24px, 3.5vw, 34px); }
#nbp .gate-form { display: flex; flex-direction: column; gap: 18px; }
#nbp .field { display: flex; flex-direction: column; gap: 8px; }
#nbp .field label { color: var(--mute); font: .7rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
#nbp .field input { width: 100%; min-height: 49px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--ink-2); color: var(--paper); font: .96rem/1.4 var(--sans); }
#nbp .field input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202,162,78,.16); }
#nbp .password-wrap { position: relative; }
#nbp .password-wrap input { padding-right: 70px; }
#nbp .password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 8px; border: 0; background: transparent; color: var(--gold); font: .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
#nbp .login-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#nbp .remember { display: flex; align-items: center; gap: 9px; color: var(--mute); font-size: .84rem; cursor: pointer; }
#nbp .remember input { width: 17px; height: 17px; accent-color: var(--gold); }
#nbp .small-link { color: var(--gold) !important; border-bottom: 1px dashed var(--line-2); font: .67rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
#nbp .gate-submit { width: 100%; min-height: 50px; border: 1px solid var(--gold-deep); background: var(--gold-foil); color: #1a1407; font: 800 .96rem/1 var(--sans); cursor: pointer; }
#nbp .registration-note { color: var(--mute); font-size: .88rem; }
#nbp .divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--mute); font: .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
#nbp .divider::before, #nbp .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#nbp .google-slot > * { max-width: 100%; }
#nbp .google-placeholder { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--paper); font: .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
#nbp .google-placeholder svg { width: 18px; color: var(--gold); }
#nbp .auth-switch { margin-top: 19px !important; text-align: center; color: var(--mute); font-size: .88rem; }
#nbp .auth-switch button { padding: 0; border: 0; border-bottom: 1px dashed var(--line-2); background: transparent; color: var(--gold); font: inherit; cursor: pointer; }
#nbp .secure-note { display: flex; align-items: center; gap: 8px; margin-top: 18px !important; color: var(--mute); font: .64rem/1.5 var(--mono); letter-spacing: .04em; }
#nbp .secure-note svg { width: 15px; color: var(--gold); flex: 0 0 auto; }

#nbp .gate-notices:empty { display: none; }
#nbp .woocommerce-error, #nbp .woocommerce-info, #nbp .woocommerce-message { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: var(--panel); color: var(--paper); list-style: none; }
#nbp .woocommerce-error { border-left-color: #e6a36a; }
#nbp .woocommerce-error li + li { margin-top: 7px; }

#nbp .login-aside { min-width: 0; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 0 !important; }
#nbp .stats-ic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 !important; }
#nbp .stat-ic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 4px 14px; text-align: center; }
#nbp .stat-ic .si-ic { display: inline-flex; color: var(--gold); }
#nbp .stat-ic .si-ic svg { width: 22px; height: 22px; }
#nbp .stat-ic .k { color: var(--gold); font: 700 1.05rem/1 var(--mono); letter-spacing: -.01em; }
#nbp .stat-ic .k span { margin-left: 1px; font-size: .68rem; }
#nbp .stat-ic .v { color: var(--mute); font: .58rem/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
#nbp .qc-stack { display: flex; flex: 1; flex-direction: column; gap: 12px; margin: 0 !important; }
#nbp .qc-row { position: relative; display: grid; grid-template-columns: 40px 1fr; flex: 1; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s ease; }
#nbp .qc-row:hover { border-color: var(--line-2); }
#nbp .qc-row::before, #nbp .qc-row::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--gold); opacity: .55; }
#nbp .qc-row::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
#nbp .qc-row::after { right: -1px; bottom: -1px; border-top: 0; border-left: 0; }
#nbp .qc-ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--gold); }
#nbp .qc-ic svg { width: 19px; height: 19px; }
#nbp .qc-body { min-width: 0; }
#nbp .qc-body .ref { margin: 0 0 4px !important; color: var(--gold-deep); font: .58rem/1 var(--mono); letter-spacing: .16em; }
#nbp .qc-body h3 { margin: 0 0 5px !important; font-size: .98rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
#nbp .qc-body p { margin: 0 !important; color: var(--mute); font-size: .82rem; line-height: 1.5; }

@media (max-width: 900px) {
  #nbp .login-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #nbp .age-card { min-height: calc(100vh - 32px); padding: 34px 22px; }
  #nbp .age-icon { margin-bottom: 28px; }
  #nbp .age-actions { grid-template-columns: 1fr; margin-top: 34px; }
  #nbp .gate-brand { width: calc(100% - 32px); }
  #nbp .gate-auth-wrap { padding-inline: 16px; }
}

@media (max-width: 480px) {
  #nbp .stats-ic { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #nbp .age-btn { transition: none; }
}
