    body {
      background:
        radial-gradient(60% 50% at 50% 0%, rgba(14, 74, 55, 0.14), transparent 70%),
        #DFE7E3;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 22px 16px 48px;
    }

    /* Titanium iPhone Frame */
    .phone-shell {
      width: 394px; max-width: 100%; min-height: 852px;
      border-radius: 46px;
      background: linear-gradient(155deg, #3C4944 0%, #161E1B 48%, #0B110E 100%);
      padding: 11px;
      box-shadow:
        0 40px 92px rgba(4, 18, 13, 0.34),
        0 6px 20px rgba(4, 18, 13, 0.16),
        inset 0 0 0 1px rgba(244, 220, 168, 0.26);
      position: relative;
    }
    .phone-viewport {
      width: 100%; min-height: 830px; border-radius: 35px; overflow: hidden;
      background: var(--alabaster); position: relative;
    }


    /* Collector-Grade Crystal & Gold Foil Hero */
    .h5-hero {
      position: relative;
      padding: 58px 18px 60px;
      color: #fff;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(4, 16, 12, 0.62) 0%, rgba(4, 16, 12, 0.32) 48%, rgba(4, 16, 12, 0.90) 100%),
        url('./h5-emerald-prism.jpg') center top / cover no-repeat;
      background:
        linear-gradient(180deg, rgba(4, 16, 12, 0.62) 0%, rgba(4, 16, 12, 0.32) 48%, rgba(4, 16, 12, 0.90) 100%),
        image-set(url('./h5-emerald-prism.webp') type('image/webp'), url('./h5-emerald-prism.jpg') type('image/jpeg')) center top / cover no-repeat;
    }
    .h5-top-brand {
      position: relative; z-index: 2;
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 18px;
    }
    .h5-brand-l { display: flex; align-items: center; gap: 9px; }
    .h5-brand-icon { width: 31px; height: 31px; border-radius: 9px; background: #fff; padding: 3px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .h5-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
    .h5-brand-l b { font-size: 14.5px; font-weight: 800; letter-spacing: 0.04em; }
    .h5-campaign-pill {
      padding: 4px 11px; border-radius: 99px;
      background: rgba(244, 220, 168, 0.14);
      border: 1px solid rgba(244, 220, 168, 0.44);
      backdrop-filter: blur(8px);
      color: var(--gold-200);
      font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
    }

    /* Luxury Black-Gold Boarding Pass Card */
    .invite-pass {
      position: relative; z-index: 2;
      border-radius: 24px;
      background:
        linear-gradient(155deg, rgba(16, 42, 33, 0.78) 0%, rgba(5, 18, 13, 0.88) 100%);
      border: 1px solid rgba(244, 220, 168, 0.46);
      backdrop-filter: blur(18px);
      overflow: hidden;
      box-shadow: 0 24px 52px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(250, 240, 212, 0.34);
    }
    .pass-serial {
      padding: 10px 16px;
      background: linear-gradient(90deg, rgba(244,220,168,0.16), rgba(47,221,191,0.08));
      border-bottom: 1px solid rgba(244, 220, 168, 0.22);
      display: flex; justify-content: space-between; align-items: center;
      font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
      color: var(--gold-200);
    }
    .pass-top { padding: 16px 18px 16px; position: relative; }
    .crest-seal {
      position: absolute; right: 16px; top: 14px;
      width: 44px; height: 44px; border-radius: 50%;
      border: 1px solid rgba(244, 220, 168, 0.45);
      background: radial-gradient(circle, rgba(244,220,168,0.22), rgba(244,220,168,0.04));
      display: grid; place-items: center;
      font-family: var(--serif); font-size: 15px; font-weight: 900; color: var(--gold-200);
      box-shadow: inset 0 0 0 3px rgba(5, 18, 13, 0.65), inset 0 0 0 4px rgba(244, 220, 168, 0.32);
    }
    .inviter-row { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding-right: 46px; }
    .inviter-av {
      width: 40px; height: 40px; border-radius: 50%; flex: none;
      background: linear-gradient(145deg, #FAF0D4, #C69648);
      color: #241908; font-weight: 900; font-size: 16px;
      display: grid; place-items: center;
      box-shadow: 0 0 0 2px rgba(244, 220, 168, 0.38);
    }
    .inviter-meta b { display: block; font-size: 14px; color: #fff; font-weight: 800; }
    .inviter-meta span { font-size: 11px; color: rgba(220, 245, 237, 0.80); }
    .pass-headline {
      margin: 0 0 12px;
      font-size: 22px; line-height: 1.32; font-weight: 900; letter-spacing: -0.015em; color: #fff;
    }
    .pass-headline em {
      font-style: normal; font-family: var(--serif); font-size: 24px;
      background: linear-gradient(120deg, #FFF7E0 0%, #F0CE86 52%, #2FDDBF 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .pass-stats { display: flex; gap: 6px; flex-wrap: wrap; }
    .pass-stat {
      padding: 4px 9px; border-radius: 7px;
      background: rgba(4, 15, 11, 0.56);
      border: 1px solid rgba(244, 220, 168, 0.18);
      font-size: 10.5px; font-weight: 700; color: #DFF6EF;
    }
    .pass-stat b { color: var(--gold-200); }

    .pass-divider {
      position: relative; height: 1px;
      border-top: 1px dashed rgba(244, 220, 168, 0.36); margin: 0 14px;
    }
    .pass-divider::before, .pass-divider::after {
      content: ""; position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #061A13;
    }
    .pass-divider::before { left: -22px; }
    .pass-divider::after { right: -22px; }

    .pass-perks {
      padding: 13px 14px 15px;
      background: rgba(3, 13, 9, 0.42);
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
    }
    .perk-item b { display: block; font-size: 11.5px; color: var(--gold-200); font-weight: 800; }
    .perk-item span { display: block; font-size: 9.5px; color: rgba(215, 240, 232, 0.74); margin-top: 2px; }

    /* Ceramic Elevated Registration Card */
    .form-sheet {
      position: relative; z-index: 5;
      margin: -34px 14px 18px;
      background: #FFFFFF;
      border-radius: 26px;
      padding: 20px 18px 22px;
      border: 1px solid rgba(10, 58, 43, 0.10);
      box-shadow: 0 22px 48px rgba(4, 20, 14, 0.12);
    }
    .code-ribbon {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 13px; border-radius: 13px;
      background: linear-gradient(90deg, #FBF6EA 0%, #EEFBF7 100%);
      border: 1px solid #E8D9B5;
      margin-bottom: 15px;
    }
    .code-ribbon-l { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--forest-900); font-weight: 800; }
    .code-badge {
      font-family: var(--mono); font-size: 14px; font-weight: 900; letter-spacing: 0.14em;
      color: #291E0B; background: linear-gradient(180deg, #FFFDF7, #F6E9C8);
      padding: 3px 10px; border-radius: 7px; border: 1px solid #DFC58B;
    }
    .code-edit-btn { border: none; background: transparent; color: var(--mint-ink); font-size: 11.5px; font-weight: 800; cursor: pointer; }

    .field-grp { display: flex; flex-direction: column; gap: 10px; }
    .input-box {
      display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
      border-radius: 14px; background: #F5F9F7; border: 1.5px solid #E4EDE9;
      transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    }
    .input-box:focus-within { background: #fff; border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(14, 74, 55, 0.10); }
    .input-prefix { font-size: 13.5px; font-weight: 800; color: var(--ink); padding-right: 8px; border-right: 1px solid #D7E2DD; }
    .input-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink); font-family: inherit; }
    .input-box input::placeholder { color: #96A69F; font-weight: 500; }
    .sms-btn { flex: none; padding: 7px 12px; border-radius: 9px; border: none; background: var(--forest-900); color: var(--gold-200); font-size: 11.5px; font-weight: 800; cursor: pointer; }
    .sms-btn:disabled { background: #DCE5E1; color: #7E9189; cursor: default; }

    .agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 16px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
    .agree-row input { margin-top: 2px; accent-color: var(--forest-900); }
    .agree-row a { color: var(--mint-ink); text-decoration: none; font-weight: 700; }

    .h5-submit {
      width: 100%; height: 52px; border: none; border-radius: 16px;
      background: linear-gradient(180deg, #FF7F45 0%, #FF6222 100%);
      color: #fff; font-size: 16px; font-weight: 900; letter-spacing: 0.02em;
      box-shadow: 0 4px 0 #BF3F0B, 0 16px 32px rgba(255, 106, 43, 0.36), inset 0 1px 0 rgba(255,255,255,0.34);
      cursor: pointer; transition: transform 0.14s ease;
    }
    .h5-submit:active { transform: translateY(2px); }
    .form-msg { margin-top: 9px; font-size: 12px; font-weight: 700; text-align: center; min-height: 18px; color: #D92D20; }

    .h5-section { padding: 2px 16px 20px; }
    .h5-sec-title { font-size: 14px; font-weight: 900; color: var(--ink); margin: 0 0 11px; display: flex; align-items: center; justify-content: space-between; }
    .h5-sec-title small { font-size: 11px; font-weight: 700; color: var(--mint-ink); }
    .trust-cards { display: flex; flex-direction: column; gap: 9px; }
    .tcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
    .tcard-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 16px; font-weight: 900; }
    .tcard b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
    .tcard span { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
    .h5-footer { text-align: center; padding: 4px 16px 26px; font-size: 10.5px; color: var(--ink-3); line-height: 1.65; }

    /* STATE 2: DIGITAL ADMISSION PASS */
    .succ-hero {
      padding: 66px 20px 60px; text-align: center; color: #fff;
      background:
        linear-gradient(180deg, rgba(4,16,12,0.58) 0%, rgba(4,16,12,0.88) 100%),
        url('./h5-emerald-prism.jpg') center / cover no-repeat;
      background:
        linear-gradient(180deg, rgba(4,16,12,0.58) 0%, rgba(4,16,12,0.88) 100%),
        image-set(url('./h5-emerald-prism.webp') type('image/webp'), url('./h5-emerald-prism.jpg') type('image/jpeg')) center / cover no-repeat;
    }
    .succ-check {
      width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px;
      background: linear-gradient(145deg, #FAF0D4, #CFA256);
      color: #251B09; font-size: 30px; font-weight: 900; display: grid; place-items: center;
      box-shadow: 0 0 0 10px rgba(244, 220, 168, 0.18), 0 16px 34px rgba(0, 0, 0, 0.36);
    }
    .succ-hero h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; }
    .succ-hero p { margin: 0; font-size: 13px; color: var(--gold-200); }

    .pass-card-light {
      margin: -34px 16px 16px; background: #fff; border-radius: 26px; padding: 20px 18px;
      border: 1px solid var(--line); box-shadow: var(--shadow-md);
    }
    .student-id-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed #DCE6E2; }
    .student-id-head b { font-size: 15.5px; display: block; }
    .student-id-head small { font-size: 11.5px; color: var(--ink-2); }
    .bound-chip { padding: 5px 11px; border-radius: 99px; background: #FBF4E3; color: #8A5E14; border: 1px solid #EAD4A2; font-size: 11px; font-weight: 800; }
    .dl-option-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
    .dl-btn-primary {
      width: 100%; padding: 15px; border-radius: 15px; border: none;
      background: linear-gradient(180deg, #FF7F45 0%, #FF6222 100%); color: #fff; font-size: 15.5px; font-weight: 900;
      box-shadow: 0 4px 0 #BF3F0B, 0 14px 28px rgba(255, 106, 43, 0.34); cursor: pointer;
    }
    .dl-btn-sub { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--alabaster); color: var(--ink); font-size: 13.5px; font-weight: 800; cursor: pointer; }
    .mini-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
    .mini-plat { padding: 10px 6px; border-radius: 12px; text-align: center; background: #F4F8F6; border: 1px solid var(--line); font-size: 11.5px; font-weight: 800; color: var(--forest-800); }

    .wx-arrow { align-self: flex-end; margin-right: 6px; margin-bottom: 12px; }
    .wx-box {
      background: rgba(16, 40, 32, 0.72); border: 1px solid rgba(244, 220, 168, 0.36);
      border-radius: 24px; padding: 22px 20px;
    }
    .wx-box h2 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
    .wx-box p { margin: 0 0 16px; font-size: 13.5px; color: #D4F3EA; line-height: 1.65; }
    .wx-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(4, 15, 11, 0.54); margin-bottom: 8px; font-size: 13px; font-weight: 700; }
    .wx-step span { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--gold-300); color: #241908; display: grid; place-items: center; font-size: 12px; font-weight: 900; }

    @media (max-width: 480px) {
      body { padding: 0; background: var(--alabaster); }
      .phone-shell { width: 100%; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
      .phone-viewport { border-radius: 0; min-height: 100vh; }
      .h5-hero { padding-top: 24px; }
    }

.phone-shell { width: 412px; }
.phone-viewport { min-height: min(830px, calc(100dvh - 60px)); }
.inviter-meta b { font-size: 13px; }
.input-box input { font-size: 16px; }
.input-box input::placeholder { color: #637972; }
.code-edit-btn, .agree-row a { color: #006857; }
.code-ribbon { gap: 6px; }
.code-badge { white-space: nowrap; }
.sms-btn { min-height: 32px; font-variant-numeric: tabular-nums; }
.form-msg:empty { display: none; }
.form-msg[data-tone="success"] { color: #006857; }
.h5-submit:disabled { opacity: 0.72; cursor: wait; }
.h5-submit, .dl-btn-primary { background-color: var(--energy); }
.dl-btn-primary, .dl-btn-sub { display: block; text-align: center; text-decoration: none; }
.mini-plat { cursor: pointer; min-height: 40px; }
.mini-plat[aria-pressed="true"] { background: var(--mint-50); border-color: var(--mint-ink); }
.release-info { margin: 12px 0 0; color: var(--ink-2); font-size: 12px; }
.release-info:empty { display: none; }
.wx-overlay {
  position: fixed; inset: 0; margin: auto; max-width: none; max-height: none;
  width: min(100%, 440px); height: 100%; padding: max(24px, env(safe-area-inset-top)) 24px 32px;
  border: 0; color: #fff;
  background: linear-gradient(#030e0ab3, #030e0aeb), url('./h5-emerald-prism.jpg') center / cover;
  background: linear-gradient(#030e0ab3, #030e0aeb),
    image-set(url('./h5-emerald-prism.webp') type('image/webp'), url('./h5-emerald-prism.jpg') type('image/jpeg')) center / cover;
}
.wx-overlay[open] { display: flex; flex-direction: column; }
.wx-overlay::backdrop { background: rgba(3,14,10,0.75); backdrop-filter: blur(10px); }
.wx-copy { margin-top: 14px; background: rgba(255,255,255,0.12); border-color: rgba(244,220,168,0.28); color:#fff; }
.wx-back { background: none; border: 0; color: var(--gold-200); cursor: pointer; padding: 12px 0 0; width: 100%; min-height: 40px; }
.copy-feedback { margin-top: 8px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .h5-view:not([hidden]), .wx-overlay[open] .wx-box { animation: pass-in 0.24s ease-out; }
  @keyframes pass-in {
    from { opacity: 0; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (max-width: 480px) {
  .phone-shell { width: 100%; }
  .phone-viewport { min-height: 100dvh; }
  .h5-hero { padding-top: max(24px, env(safe-area-inset-top)); }
}
@media (max-width: 345px) {
  .h5-hero { padding-inline: 12px; }
  .form-sheet { margin-inline: 10px; padding-inline: 12px; }
  .code-ribbon { padding-inline: 8px; }
  .pass-serial { font-size: 9px; padding-inline: 10px; }
}
