:root {
  color-scheme: dark;
  --bg: #02060a;
  --panel: rgba(8, 17, 26, .78);
  --line: rgba(162, 224, 255, .42);
  --text: #f6fbff;
  --muted: #a7b8c6;
  --blue: #83d9ff;
  --blue-strong: #32b8ff;
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }

.gateway { position: relative; width: 100%; min-height: 100svh; overflow: hidden; background: #02060a; }
.video-stage, .final-stage, .registration-stage { position: absolute; inset: 0; min-height: 100svh; }
.video-stage { display: grid; place-items: center; background: #000; transition: opacity .7s ease, visibility .7s; }
.intro-video-backdrop { display: none; }
.intro-video { width: 100%; height: 100%; object-fit: cover; }

/* Keep the cinematic intro full-screen on phones. On wider screens the
   source is presented as a bounded 16:9 frame so it is neither enlarged
   excessively nor cropped by object-fit: cover. */
@media (min-width: 768px) {
  .video-stage {
    isolation: isolate;
    padding: clamp(24px, 4vw, 64px);
    background: #000;
  }

  .video-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 4, 9, .38);
    backdrop-filter: blur(18px);
  }

  .intro-video-backdrop {
    display: block;
    position: absolute;
    inset: -5%;
    z-index: -2;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    filter: blur(30px) brightness(.48) saturate(1.15);
    transform: scale(1.08);
  }

  .intro-video {
    position: relative;
    inset: auto;
    width: auto;
    height: min(94svh, 1080px);
    max-width: 90vw;
    object-fit: contain;
    object-position: center;
    border-radius: clamp(12px, 1.4vw, 22px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
  }
}
.sound-toggle, .skip-button, .back-button { position: absolute; z-index: 5; border: 1px solid rgba(255,255,255,.18); background: rgba(1,7,12,.48); color: white; backdrop-filter: blur(14px); }
.sound-toggle { left: 18px; top: max(18px, env(safe-area-inset-top)); border-radius: 999px; padding: 10px 14px; }
.skip-button {
  position: fixed;
  right: 18px;
  top: max(76px, calc(env(safe-area-inset-top) + 62px));
  z-index: 119;
  display: block;
  visibility: visible;
  opacity: 1;
  border-radius: 999px;
  padding: 10px 16px;
}

.final-stage { opacity: 0; visibility: hidden; display: grid; place-items: center; isolation: isolate; background-image: linear-gradient(180deg, rgba(0,7,13,.08), rgba(0,7,13,.32)), url('assets/orbe-final-frame.jpg'); background-size: cover; background-position: center; transition: opacity .8s ease, visibility .8s; }
.final-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(4px); background: linear-gradient(180deg, rgba(2,9,15,.82) 0%, rgba(2,8,14,.46) 34%, rgba(2,8,14,.62) 100%); }
.ambient-layer { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 53%, rgba(53,177,255,.25), transparent 24%), radial-gradient(circle at 50% 92%, rgba(104,210,255,.16), transparent 30%); animation: breathe 5s ease-in-out infinite; z-index: -1; }
.gateway-ring { position: absolute; width: min(78vw, 640px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(125,216,255,.25); box-shadow: 0 0 70px rgba(50,184,255,.22), inset 0 0 70px rgba(50,184,255,.08); top: 42%; transform: translateY(-50%); z-index: -1; }
.final-content { width: min(92vw, 520px); min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.brand-lockup { opacity: .92; }
.orbe-mark { letter-spacing: .42em; margin-right: -.42em; font-size: 17px; font-weight: 700; }
.brand-lockup p { margin: 7px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.headline-block h1 { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.03; font-size: clamp(37px, 8vw, 62px); text-wrap: balance; text-shadow: 0 3px 26px rgba(0,0,0,.75); }
.headline-block p { margin: 0; color: #e8f4fb; font-size: clamp(16px, 3.8vw, 21px); }

.genesis-pass { position: relative; width: min(82vw, 390px); aspect-ratio: 1.58; overflow: hidden; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transform: perspective(1000px) rotateX(5deg) rotateY(-8deg); background: linear-gradient(135deg, #20252a 0%, #080b0e 47%, #272c31 100%); border: 1px solid rgba(255,255,255,.38); box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 44px rgba(69,190,255,.22), inset 0 1px 0 rgba(255,255,255,.3); }
.genesis-pass::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px); mix-blend-mode: screen; pointer-events: none; }
.pass-shine { position: absolute; inset: -80% -30%; background: linear-gradient(100deg, transparent 43%, rgba(255,255,255,.28) 50%, transparent 57%); animation: shine 5s linear infinite; }
.pass-topline, .pass-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; font-size: 11px; letter-spacing: .18em; color: #cad6dd; }
.pass-title { position: relative; z-index: 1; display: grid; gap: 4px; }
.pass-title strong { font-size: clamp(27px, 7vw, 42px); letter-spacing: .25em; margin-right: -.25em; }
.pass-title span { color: #9fdfff; font-size: 17px; letter-spacing: .08em; }
.pass-orbit { position: absolute; width: 160px; height: 160px; right: -30px; top: 28px; border: 1px solid rgba(103,207,255,.28); border-radius: 50%; box-shadow: 0 0 40px rgba(62,190,255,.18); }

.activate-button, .continue-button { width: 100%; border: 1px solid rgba(172,229,255,.72); border-radius: 999px; color: white; background: linear-gradient(180deg, rgba(35,137,190,.33), rgba(4,30,44,.75)); box-shadow: 0 0 28px rgba(69,190,255,.26), inset 0 1px 0 rgba(255,255,255,.22); padding: 14px 20px; transition: transform .2s ease, box-shadow .2s ease; }
.activate-button { max-width: 420px; }
.activate-button span, .continue-button span { display: block; font-weight: 680; font-size: 16px; }
.activate-button small, .continue-button small { display: block; color: #b8d9e8; margin-top: 3px; font-size: 11px; }
.activate-button:hover, .continue-button:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(69,190,255,.38), inset 0 1px 0 rgba(255,255,255,.26); }
.referral-status { margin: -10px 0 0; font-size: 12px; color: #b8d9e8; }

.registration-stage { opacity: 0; visibility: hidden; overflow-y: auto; background: radial-gradient(circle at 50% 12%, rgba(37,143,199,.23), transparent 32%), linear-gradient(180deg, #07111a, #020609 70%); transition: opacity .55s ease, visibility .55s; }
.registration-shell { width: min(92vw, 680px); margin: 0 auto; min-height: 100svh; padding: 72px 0 50px; display: flex; flex-direction: column; justify-content: center; }
.back-button { top: max(18px, env(safe-area-inset-top)); left: 18px; width: 42px; height: 42px; border-radius: 50%; }
.mini-pass { align-self: center; width: 172px; aspect-ratio: 1.58; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #24292e, #080b0e); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 34px rgba(61,188,255,.2); }
.mini-pass span { letter-spacing: .28em; }
.mini-pass strong { color: var(--blue); }
.registration-copy { text-align: center; margin: 30px 0 25px; }
.eyebrow { color: var(--blue); letter-spacing: .18em; font-size: 11px; }
.registration-copy h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 50px); font-weight: 500; margin: 9px 0 10px; }
.registration-copy p { color: var(--muted); line-height: 1.6; margin: 0 auto; max-width: 550px; }
.registration-form { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 28px 70px rgba(0,0,0,.4); backdrop-filter: blur(24px); }
.registration-referral { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid rgba(101, 211, 255, .38); border-radius: 17px; background: linear-gradient(135deg, rgba(18, 106, 157, .2), rgba(3, 18, 29, .84)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.registration-referral[hidden] { display: none; }
.registration-referral > span { color: #a7dfff; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.registration-referral > strong { color: #fff; font-size: 18px; letter-spacing: .08em; overflow-wrap: anywhere; }
.registration-referral > small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.registration-form label > span { display: block; color: #c5d4de; font-size: 13px; margin: 0 0 7px 3px; }
.registration-form input:not([type="checkbox"]) { width: 100%; height: 50px; border-radius: 15px; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.32); color: white; padding: 0 15px; outline: none; }
.registration-form input:focus { border-color: rgba(121,214,255,.7); box-shadow: 0 0 0 4px rgba(55,180,240,.1); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; }
.form-message { min-height: 20px; margin: 0; text-align: center; color: #ffbdc7; font-size: 13px; }

.gateway.show-final .video-stage { opacity: 0; visibility: hidden; }
.gateway.show-final > .skip-button,
.gateway.show-registration > .skip-button { display: none; }
.gateway.show-final .final-stage { opacity: 1; visibility: visible; }
.gateway.show-registration .final-stage { opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .5s ease, visibility .5s, transform .7s ease; }
.gateway.show-registration .registration-stage { opacity: 1; visibility: visible; }

@keyframes breathe { 0%,100% { transform: scale(.96); opacity: .68; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes shine { from { transform: translateX(-55%); } to { transform: translateX(55%); } }

@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .final-content { padding-inline: 18px; }
  .headline-block h1 { font-size: clamp(34px, 10vw, 48px); }
  .genesis-pass { width: min(88vw, 390px); }
  .registration-shell { width: min(92vw, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


/* =========================================================
   ORBE GENESIS GATEWAY — PREMIUM REGISTRATION V1.1
   ========================================================= */
:root {
  --bg: #01050a;
  --panel: rgba(5, 13, 22, .88);
  --line-soft: rgba(133, 204, 255, .16);
  --blue-electric: #2f95ff;
  --blue-glow: #64c8ff;
  --success: #66d9ff;
  --danger: #ff5575;
}

.registration-stage {
  background:
    radial-gradient(circle at 50% -8%, rgba(31, 137, 255, .18), transparent 34%),
    radial-gradient(circle at 88% 36%, rgba(21, 89, 151, .09), transparent 28%),
    linear-gradient(180deg, #050c14 0%, #01050a 72%);
}
.registration-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 200, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 200, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.registration-shell {
  width: min(94vw, 900px);
  padding: 34px 0 46px;
  justify-content: flex-start;
}
.registration-brand { text-align: center; margin: 4px 0 24px; }
.registration-orbe-mark {
  font-weight: 760;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .48em;
  margin-right: -.48em;
  text-shadow: 0 0 22px rgba(71, 170, 255, .4);
}
.registration-brand p { margin: 8px 0 0; color: #c4d3df; font-size: 11px; letter-spacing: .16em; }
.registration-copy { margin: 0 0 20px; }
.registration-copy .eyebrow { display: none; }
.registration-copy h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -.025em;
  background: linear-gradient(90deg, #73c9ff 0%, #fff 25%, #f6fbff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.registration-copy p { max-width: 650px; font-size: 16px; line-height: 1.55; }
.registration-form {
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  border-color: rgba(142, 211, 255, .2);
  background:
    linear-gradient(145deg, rgba(7, 17, 28, .94), rgba(2, 8, 14, .92));
  box-shadow: 0 34px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.045);
}
.registration-form label > span { color: #d6e1e9; font-size: 13px; }
.registration-form input:not([type="checkbox"]) {
  height: 56px;
  border-radius: 15px;
  border-color: rgba(158, 207, 240, .18);
  background: rgba(0, 5, 10, .62);
  padding: 0 18px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.registration-form input:not([type="checkbox"])::placeholder { color: rgba(193, 210, 222, .43); }
.registration-form input:not([type="checkbox"]):hover { border-color: rgba(112, 196, 255, .32); }
.registration-form input:focus {
  border-color: rgba(75, 185, 255, .86);
  background: rgba(2, 10, 17, .82);
  box-shadow: 0 0 0 4px rgba(47, 149, 255, .11), 0 0 28px rgba(47, 149, 255, .1);
}

.security-card {
  position: relative;
  overflow: hidden;
  margin: 4px 0 0;
  padding: 22px;
  border: 1px solid rgba(60, 164, 255, .65);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 115, 239, .24), transparent 38%),
    linear-gradient(145deg, rgba(6, 24, 43, .98), rgba(2, 12, 21, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 65px rgba(0,0,0,.35), 0 0 38px rgba(25, 124, 242, .08);
}
.security-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -54px;
  top: -64px;
  border: 1px solid rgba(80, 180, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(80,180,255,.035), 0 0 0 36px rgba(80,180,255,.022);
  pointer-events: none;
}
.security-header { display:flex; align-items:flex-start; gap:14px; margin-bottom:18px; position:relative; z-index:1; }
.security-icon {
  display:grid; place-items:center; flex:0 0 48px; height:48px;
  border-radius:16px; border:1px solid rgba(72, 184, 255, .6);
  color:#8ed9ff; background:linear-gradient(145deg, rgba(31,128,241,.28), rgba(5,37,70,.48));
  font-size:24px; box-shadow:0 0 28px rgba(34,139,255,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.security-heading-copy { min-width:0; flex:1; }
.security-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.security-header strong { font-size:15px; letter-spacing:.1em; color:#fff; }
.protected-badge {
  display:inline-flex !important; margin:0 !important; padding:5px 10px; border-radius:999px;
  border:1px solid rgba(67,164,255,.42); background:rgba(30,111,220,.14); color:#72c5ff !important;
  font-size:11px !important; letter-spacing:.02em;
}
.security-header p { max-width:610px; font-size:13px; color:rgba(224,235,244,.72); }
.security-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; position:relative; z-index:1; }
.password-field { position:relative; }
.password-field input { padding-right:56px !important; }
.password-toggle {
  position:absolute; right:10px; bottom:10px; width:36px; height:36px; border:0; border-radius:10px;
  background:rgba(255,255,255,.04); color:#d7e5ee; transition:.18s ease;
}
.password-toggle:hover { background:rgba(56,155,255,.17); color:white; }
.strength-area { margin-top:18px; position:relative; z-index:1; }
.strength-line { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:#bfccd6; }
.strength-line strong { color:#9aa9b4; }
.strength-track { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; height:7px; margin-top:9px; background:transparent; overflow:visible; }
.strength-track::before { content:""; grid-column:1/-1; grid-row:1; border-radius:999px; background:repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 calc(20% - 7px), transparent calc(20% - 7px) 20%); }
.strength-fill { grid-column:1/-1; grid-row:1; height:7px; z-index:1; background:linear-gradient(90deg,#ff4569,#ff9c43,#4db8ff,#6edcff); box-shadow:0 0 18px currentColor; transition:width .25s ease; }
.password-rules { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 26px; margin:17px 0 0; padding:16px 0 0; border-top:1px solid rgba(255,255,255,.11); list-style:none; }
.password-rule { display:flex; align-items:center; gap:9px; font-size:12px; color:rgba(213,227,237,.62); transition:.18s ease; }
.password-rule::before { content:""; width:14px; height:14px; border:1px solid rgba(186,213,232,.48); border-radius:50%; }
.password-rule.is-valid { color:#a7e4ff; transform:translateX(1px); }
.password-rule.is-valid::before { content:"✓"; display:grid; place-items:center; border-color:#59c8ff; background:rgba(35,154,255,.18); color:#8fe0ff; font-size:10px; box-shadow:0 0 12px rgba(53,178,255,.35); }
.password-rule.is-invalid { color:#ff91a6; }
.password-rule.is-invalid::before { content:"×"; display:grid; place-items:center; border-color:#ff617d; color:#ff7890; font-size:10px; }
.security-card.is-complete { border-color:rgba(83,207,255,.8); box-shadow:0 0 45px rgba(42,160,255,.14), inset 0 1px 0 rgba(255,255,255,.07); }

.consent { font-size:13px; padding:2px 4px 0; }
.consent input { width:16px; height:16px; accent-color:#2f95ff; }
.legal-link, .view-all-policies { color:#64c8ff; }
.view-all-policies { justify-self:center; background:none; border:0; text-decoration:underline; text-underline-offset:4px; }
.checkout-trust {
  display:grid; grid-template-columns:repeat(3,1fr); gap:0; padding:14px 18px;
  border:1px solid rgba(96,183,255,.24); border-radius:18px;
  background:linear-gradient(90deg,rgba(10,31,51,.76),rgba(4,15,26,.76));
}
.trust-proof { display:flex; align-items:center; gap:10px; min-width:0; padding:0 16px; border-right:1px solid rgba(255,255,255,.12); }
.trust-proof:first-child { padding-left:0; }
.trust-proof:last-child { border-right:0; padding-right:0; }
.trust-proof-icon { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:50%; background:rgba(34,137,255,.16); color:#81d5ff; border:1px solid rgba(71,173,255,.28); }
.trust-proof span:last-child { min-width:0; }
.trust-proof strong,.trust-proof small { display:block; white-space:normal; }
.trust-proof strong { font-size:11px; color:#eaf5fb; }
.trust-proof small { margin-top:3px; font-size:10px; color:#8fa3b2; }
.continue-button {
  position:relative; min-height:76px; padding:14px 72px 14px 24px;
  border-color:rgba(131,216,255,.82); border-radius:20px;
  background:linear-gradient(180deg,#2e91ff 0%,#0753c0 100%);
  box-shadow:0 14px 35px rgba(10,91,211,.34), inset 0 1px 0 rgba(255,255,255,.35);
  overflow:hidden;
}
.continue-button::before { content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.18) 50%,transparent 65%); transform:translateX(-120%); transition:transform .65s ease; }
.continue-button:not(:disabled):hover::before { transform:translateX(120%); }
.continue-button span { position:relative; z-index:1; font-size:19px; }
.continue-button small { position:relative; z-index:1; font-size:12px; }
.continue-arrow { position:absolute !important; right:24px; top:50%; transform:translateY(-50%); font-size:34px !important; font-weight:300 !important; }
.continue-button:disabled { background:linear-gradient(180deg,rgba(27,58,77,.62),rgba(11,31,44,.72)); opacity:.58; box-shadow:none; }
.payment-privacy { margin:-7px 0 0; text-align:center; color:#8394a1; font-size:11px; }
.form-message { min-height:0; }
.registration-footer { text-align:center; padding:24px 0 0; color:#7f909d; }
.footer-orbe { display:inline-block; position:relative; font-size:13px; letter-spacing:.42em; margin-right:-.42em; color:#cfe9fa; }
.footer-orbe span { position:absolute; width:4px; height:4px; right:-9px; top:6px; border-radius:50%; background:#3aa9ff; box-shadow:0 0 10px 4px rgba(58,169,255,.65); }
.registration-footer p { margin:8px 0 0; font-size:11px; }

@media (max-width: 760px) {
  .registration-shell { width:min(94vw,620px); padding-top:26px; }
  .registration-form { padding:20px; border-radius:22px; }
  .field-grid,.security-fields,.password-rules { grid-template-columns:1fr; }
  .checkout-trust { grid-template-columns:1fr; gap:10px; }
  .trust-proof,.trust-proof:first-child,.trust-proof:last-child { padding:0; border-right:0; }
  .registration-copy h2 { font-size:clamp(34px,10vw,48px); }
}
@media (max-width: 430px) {
  .registration-shell { width:100%; padding:22px 12px 34px; }
  .registration-brand p { font-size:9px; letter-spacing:.11em; }
  .registration-copy { padding-inline:5px; }
  .registration-copy p { font-size:14px; }
  .registration-form { padding:16px; gap:15px; border-radius:20px; }
  .security-card { padding:16px; }
  .security-icon { flex-basis:42px; height:42px; }
  .protected-badge { margin-top:2px !important; }
  .continue-button { min-height:70px; padding-right:58px; }
  .continue-button span { font-size:16px; }
  .continue-arrow { right:17px; font-size:27px !important; }
  .back-button { width:38px; height:38px; left:12px; }
}


/* =========================================================
 * ORBE RESPONSIVE ENGINE V1.2
 * ========================================================= */
.form-field { position: relative; }
.field-feedback {
  display: block;
  min-height: 17px;
  margin: 6px 3px 0;
  color: #91a3b0;
  font-size: 11px;
  line-height: 1.35;
}
.email-field.is-valid input {
  border-color: rgba(83, 211, 255, .72) !important;
  box-shadow: 0 0 0 3px rgba(49, 170, 255, .08);
}
.email-field.is-valid .field-feedback { color: #8ddfff; }
.email-field.is-invalid input {
  border-color: rgba(255, 91, 124, .82) !important;
  box-shadow: 0 0 0 3px rgba(255, 74, 111, .08);
}
.email-field.is-invalid .field-feedback { color: #ff8ca3; }

/* 4K / wide desktop */
@media (min-width: 1920px) {
  .registration-shell { width: min(72vw, 1040px); }
  .registration-form { padding: 34px; }
  .registration-copy h2 { font-size: 62px; }
}

/* Laptop / compact desktop */
@media (max-width: 1366px) {
  .registration-shell { width: min(92vw, 860px); padding-top: 24px; }
  .registration-brand { margin-bottom: 18px; }
  .registration-copy { margin-bottom: 16px; }
  .registration-copy h2 { font-size: clamp(36px, 4.4vw, 52px); }
  .registration-form { padding: 24px; gap: 16px; }
  .registration-form input:not([type="checkbox"]) { height: 52px; }
  .security-card { padding: 19px; }
  .continue-button { min-height: 70px; }
}

/* Tablet landscape and portrait */
@media (max-width: 1024px) {
  .language-switcher { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .registration-stage { align-items: flex-start; }
  .registration-shell { width: min(94vw, 760px); padding: 82px 0 40px; }
  .registration-copy h2 { font-size: clamp(38px, 7vw, 54px); }
  .registration-form { border-radius: 24px; }
  .security-fields { grid-template-columns: 1fr 1fr; }
}

/* Tablet / large phone: actual reflow, not scaling */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .registration-stage { overflow-x: hidden; }
  .registration-shell { width: 100%; max-width: 680px; padding: 76px 18px 118px; }
  .registration-brand { margin-bottom: 16px; }
  .registration-orbe-mark { font-size: 22px; }
  .registration-copy { text-align: left; padding: 0 4px; }
  .registration-copy h2 { font-size: clamp(34px, 8.5vw, 48px); line-height: 1.04; }
  .registration-copy p { margin-inline: 0; font-size: 14px; }
  .registration-form { padding: 20px; gap: 15px; border-radius: 22px; }
  .field-grid, .security-fields, .password-rules { grid-template-columns: 1fr; }
  .security-card { padding: 18px; }
  .security-title-row { align-items: flex-start; }
  .security-card::after { opacity: .55; }
  .checkout-trust { grid-template-columns: 1fr; gap: 11px; padding: 15px; }
  .trust-proof, .trust-proof:first-child, .trust-proof:last-child {
    padding: 0 0 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .trust-proof:last-child { padding-bottom: 0; border-bottom: 0; }
  .continue-button { min-height: 68px; }
}

/* Mobile */
@media (max-width: 480px) {
  .language-trigger { min-height: 42px; padding: 0 13px; }
  .registration-shell { padding: 70px 10px 112px; }
  .registration-brand p { display: none; }
  .registration-copy { padding-inline: 4px; margin-bottom: 14px; }
  .registration-copy h2 { font-size: clamp(31px, 10vw, 42px); }
  .registration-copy p { line-height: 1.45; }
  .registration-form { padding: 15px; gap: 14px; border-radius: 19px; }
  .registration-form label > span { font-size: 12px; }
  .registration-form input:not([type="checkbox"]) { height: 50px; border-radius: 13px; font-size: 16px; }
  .security-card { padding: 15px; border-radius: 17px; }
  .security-header { gap: 10px; margin-bottom: 15px; }
  .security-icon { flex-basis: 40px; height: 40px; border-radius: 13px; }
  .security-header strong { font-size: 13px; }
  .security-header p { font-size: 12px; }
  .protected-badge { width: fit-content; padding: 4px 8px; font-size: 10px !important; }
  .strength-line { align-items: flex-end; }
  .password-rules { gap: 9px; }
  .consent { font-size: 12px; line-height: 1.55; }
  .checkout-trust { display: none; }
  .continue-button { min-height: 64px; padding: 12px 52px 12px 15px; border-radius: 17px; }
  .continue-button span { font-size: 15px; }
  .continue-button small { font-size: 11px; }
  .continue-arrow { right: 15px; font-size: 25px !important; }
  .payment-privacy { font-size: 10px; line-height: 1.45; }
  .registration-footer { padding-top: 18px; }
  .back-button { top: max(14px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); }
}

/* Small mobile */
@media (max-width: 360px) {
  .registration-shell { padding-inline: 7px; }
  .registration-form { padding: 13px; }
  .security-card { padding: 13px; }
  .security-title-row { gap: 7px; }
  .registration-copy h2 { font-size: 30px; }
}

/* Mobile landscape */
@media (max-height: 540px) and (orientation: landscape) {
  .registration-shell { width: min(94vw, 760px); padding-top: 66px; }
  .registration-brand { display: none; }
  .registration-copy h2 { font-size: 34px; }
  .registration-copy p { display: none; }
}

/* =========================================================
   ORBE GENESIS GATEWAY — BILINGUAL SELECTOR FIX V1.3
   Global, visible and responsive in every Gateway stage.
   ========================================================= */
.language-switcher {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 120;
  font-size: 14px;
}

.language-trigger {
  min-width: 132px;
  min-height: 46px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(151, 211, 255, .27);
  border-radius: 15px;
  color: #f7fbff;
  background: rgba(3, 10, 18, .82);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-switcher.is-open .language-trigger {
  border-color: rgba(84, 184, 255, .78);
  background: rgba(5, 19, 33, .94);
  box-shadow: 0 0 0 3px rgba(47, 149, 255, .11), 0 14px 38px rgba(0, 0, 0, .42);
  outline: none;
}

.language-trigger:active { transform: translateY(1px); }
.language-globe { color: #8fd6ff; font-size: 15px; }
.language-chevron { margin-left: auto; color: #a9c4d6; transition: transform .2s ease; }
.language-switcher.is-open .language-chevron { transform: rotate(180deg); }

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 172px;
  padding: 7px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(151, 211, 255, .22);
  border-radius: 16px;
  background: rgba(3, 10, 18, .96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-option {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 11px;
  color: #c5d5e1;
  background: transparent;
  text-align: left;
  transition: color .18s ease, background .18s ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: #fff;
  background: rgba(58, 159, 235, .12);
  outline: none;
}

.language-option.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(36, 132, 224, .22), rgba(44, 174, 255, .08));
}

.language-check {
  color: #65caff;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .18s ease, transform .18s ease;
}
.language-option.is-active .language-check { opacity: 1; transform: scale(1); }

/* Keep selector accessible while the registration stage scrolls. */
.gateway.show-registration .language-switcher {
  display: block;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .skip-button {
    right: max(12px, env(safe-area-inset-right));
    top: max(64px, calc(env(safe-area-inset-top) + 54px));
  }
  .language-switcher {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
  .language-trigger {
    min-width: 116px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
  }
  .language-menu { width: 156px; }
  .registration-shell { padding-top: 72px; }
}

@media (max-width: 430px) {
  .language-trigger {
    min-width: 106px;
    min-height: 40px;
    gap: 7px;
    padding: 0 10px;
  }
  .language-globe { font-size: 13px; }
  .language-menu { width: 148px; }
}

/* =========================================================
   ORBE TRUST CENTER MODAL — V1.3.1 FIX
   ========================================================= */
body.trust-open {
  overflow: hidden;
}

.trust-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.trust-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.trust-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 8, .78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.trust-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 820px);
  max-height: min(88svh, 820px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(117, 207, 255, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 165, 255, .14), transparent 34%),
    linear-gradient(155deg, rgba(10, 21, 31, .99), rgba(3, 8, 13, .99));
  box-shadow: 0 34px 110px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(18px) scale(.985);
  transition: transform .28s ease;
}

.trust-modal.is-open .trust-dialog {
  transform: translateY(0) scale(1);
}

.trust-header,
.trust-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(2, 8, 13, .58);
}

.trust-header {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.trust-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.trust-kicker {
  display: block;
  margin-bottom: 4px;
  color: #78d4ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .28em;
}

.trust-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 500;
}

.trust-close,
.trust-done {
  border: 1px solid rgba(140, 216, 255, .25);
  color: #eef9ff;
  background: rgba(34, 131, 187, .11);
}

.trust-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.trust-close:hover,
.trust-done:hover {
  border-color: rgba(135, 218, 255, .58);
  background: rgba(44, 155, 215, .18);
  box-shadow: 0 0 24px rgba(44, 176, 255, .14);
}

.trust-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(3, 10, 16, .72);
}

.trust-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #98acba;
  background: rgba(255, 255, 255, .025);
}

.trust-tab.is-active {
  border-color: rgba(111, 207, 255, .45);
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(37, 149, 210, .28), rgba(10, 54, 78, .34));
  box-shadow: 0 0 22px rgba(53, 181, 255, .12);
}

.trust-body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  outline: none;
  overscroll-behavior: contain;
}

.legal-panel {
  display: none;
  animation: trustPanelIn .22s ease;
}

.legal-panel.is-active {
  display: block;
}

.legal-panel h3 {
  margin: 0 0 16px;
  color: #f2f9fd;
  font-size: clamp(20px, 3vw, 27px);
}

.legal-panel p {
  margin: 0 0 15px;
  color: #aebfca;
  font-size: 14px;
  line-height: 1.75;
}

.legal-panel .legal-note {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 198, 92, .2);
  border-radius: 13px;
  color: #d8c28e;
  background: rgba(119, 77, 7, .08);
  font-size: 12px;
  line-height: 1.55;
}

.legal-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #8296a4;
  font-size: 11px;
}

.legal-version strong {
  color: #c9d9e2;
}

.trust-done {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.legal-link,
.view-all-policies {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  color: #7fd5ff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(127, 213, 255, .4);
  text-underline-offset: 3px;
}

.view-all-policies {
  justify-self: center;
  font-size: 12px;
}

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

@media (max-width: 640px) {
  .trust-modal {
    place-items: end center;
    padding: 0;
  }

  .trust-dialog {
    width: 100%;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }

  .trust-header,
  .trust-footer {
    padding: 16px 18px;
  }

  .trust-tabs {
    padding: 10px 14px;
  }

  .trust-body {
    padding: 20px 18px 24px;
  }

  .trust-footer {
    align-items: flex-end;
  }

  .legal-version {
    max-width: 68%;
  }
}

@media (max-width: 390px) {
  .trust-header h2 { font-size: 24px; }
  .trust-close { width: 38px; height: 38px; flex-basis: 38px; }
  .trust-tab { min-height: 36px; padding-inline: 13px; font-size: 12px; }
  .trust-body { padding-inline: 16px; }
  .trust-done { min-height: 38px; padding-inline: 16px; }
}

/* =========================================================
   ORBE GENESIS GATEWAY — ROLE SELECTOR V1.0
   Fast initial role selection: USER / PARTNER / AMBASSADOR
   ========================================================= */
.role-selector {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.role-selector legend {
  width: 100%;
  margin: 0 0 12px;
  padding: 0 3px;
}
.role-selector-title {
  display: block;
  color: #eef8ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}
.role-selector legend small {
  display: block;
  margin-top: 4px;
  color: #8fa3b2;
  font-size: 11px;
  line-height: 1.4;
}
.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.role-option {
  display: block;
  min-width: 0;
  cursor: pointer;
}
.role-option > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.role-card-content {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 13px 13px;
  border: 1px solid rgba(158, 207, 240, .16);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(5, 16, 27, .86), rgba(1, 8, 14, .82));
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.role-option:hover .role-card-content {
  transform: translateY(-1px);
  border-color: rgba(100, 200, 255, .42);
  background: linear-gradient(145deg, rgba(7, 24, 40, .95), rgba(2, 11, 20, .92));
}
.role-option > input:focus-visible + .role-card-content {
  outline: 2px solid rgba(100, 200, 255, .88);
  outline-offset: 3px;
}
.role-option > input:checked + .role-card-content {
  border-color: rgba(100, 200, 255, .86);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 149, 255, .22), transparent 44%),
    linear-gradient(145deg, rgba(7, 28, 48, .98), rgba(2, 13, 23, .96));
  box-shadow: 0 0 0 1px rgba(77, 184, 255, .08), 0 12px 30px rgba(0, 101, 181, .14), inset 0 1px 0 rgba(255,255,255,.055);
}
.role-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(102, 196, 255, .26);
  background: rgba(41, 142, 225, .10);
  color: #8edcff;
  font-size: 18px;
}
.role-option > input:checked + .role-card-content .role-card-icon {
  border-color: rgba(104, 207, 255, .72);
  background: rgba(38, 145, 240, .20);
  box-shadow: 0 0 22px rgba(52, 168, 255, .16);
}
.role-card-copy { min-width: 0; }
.role-card-copy strong,
.role-card-copy small { display: block; }
.role-card-copy strong {
  color: #f5fbff;
  font-size: 13px;
  letter-spacing: .02em;
}
.role-card-copy small {
  margin-top: 4px;
  color: #8fa4b3;
  font-size: 10px;
  line-height: 1.35;
}
.role-card-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(178, 215, 237, .25);
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
  transition: .18s ease;
}
.role-option > input:checked + .role-card-content .role-card-check {
  border-color: #66cfff;
  background: rgba(38, 155, 240, .22);
  color: #dff7ff;
  box-shadow: 0 0 15px rgba(70, 190, 255, .28);
}
@media (max-width: 760px) {
  .role-options { grid-template-columns: 1fr; gap: 9px; }
  .role-card-content { min-height: 68px; padding: 11px 12px; }
  .role-card-copy small { font-size: 10px; }
}
@media (max-width: 430px) {
  .role-selector-title { font-size: 13px; }
  .role-card-content { grid-template-columns: 34px minmax(0,1fr) 22px; gap: 9px; }
  .role-card-icon { width: 34px; height: 34px; border-radius: 11px; }
}
