/* Partner join page in the owner-portal design: wraps partners/join.html (tokens from network-owner.css). */
/* The page background carries the brand colour (whatever colour the theme uses), fading into the portal background. */
body.join-modern {
  min-height: 100vh;
  background:
    radial-gradient(56rem 30rem at 100% -6rem, rgb(var(--brand-500) / .16), transparent 70%),
    radial-gradient(44rem 26rem at -8rem 16rem, rgb(var(--brand-300) / .22), transparent 70%),
    linear-gradient(rgb(var(--brand-50)), var(--bg) 46rem);
  background-color: var(--bg);
  background-repeat: no-repeat;
}
:root[data-theme="dark"] body.join-modern {
  background:
    radial-gradient(56rem 30rem at 100% -6rem, rgb(var(--brand-500) / .22), transparent 70%),
    radial-gradient(44rem 26rem at -8rem 16rem, rgb(var(--brand-700) / .30), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
.jm-shell, .jm-main { width: 100%; min-width: 0; }
.join-modern .jm-main > .card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.join-modern .jm-main > p { margin: 8px 0 24px; text-align: center; font-size: 12px; color: var(--mu); }
/* Always the brand header here (the classic preferences script owns data-header on this page). It scrolls away with
   the page, so the wizard's scroll-to-step never lands under it. */
.join-modern .jm-topbar { position: relative; background: linear-gradient(to right, rgb(var(--brand-500)), rgb(var(--brand-700))); border-color: transparent; color: #fff; }
.join-modern .jm-topbar .no-ib { color: #ffffffd9; }
.join-modern .jm-topbar .no-ib:hover { color: #fff; }
.join-modern .jm-topbar .no-logo-color { display: none; }
.join-modern .jm-topbar .no-logo-white { display: block; }
.join-modern .jm-topbar .jm-login { min-height: 36px; padding: 0 12px; border-color: #ffffff59; background: #ffffff1f; color: #fff; font-size: 13px; text-decoration: none; }
/* Page colour picker in the header (the dots come from the portal's .no-dots). */
.jm-pal { position: relative; }
.jm-pal-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: 236px; padding: 14px; border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); color: var(--tx); box-shadow: 0 16px 40px #0f172a33; }
.jm-pal-panel[hidden] { display: none; }
.jm-pal-panel b { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.jm-content { display: grid; gap: 18px; width: min(1080px, 100% - 24px); margin: 8px auto 0; }

/* Intro: centred on the page background, with the brand accent under the title. */
.jm-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 26px 4px 4px; text-align: center; color: var(--tx); }
.jm-hero h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 800; line-height: 1.35; }
.jm-hero h1::after { content: ''; display: block; width: 64px; height: 4px; margin: 12px auto 0; border-radius: 99px; background: linear-gradient(to left, rgb(var(--brand-500)), rgb(var(--brand-700))); }
.jm-hero h1 span { display: block; margin-top: 2px; font-size: .58em; font-weight: 700; color: var(--brand-tx); }
.jm-hero > p { max-width: 620px; font-size: 14px; line-height: 1.9; color: var(--mu); }
.jm-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.jm-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--bd); border-radius: 99px; background: var(--sf); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); }
.jm-perks .i { color: var(--brand-tx); }

/* Partner logos: one row that keeps moving (the track holds four copies and slides by one), paused on hover. */
.jm-marquee { width: min(100%, 760px); margin-top: 6px; padding: 12px 0; border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); box-shadow: var(--shadow); }
.jm-marquee-view { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.jm-marquee-track { display: flex; width: max-content; animation: jm-marquee 30s linear infinite; }
.jm-marquee:hover .jm-marquee-track { animation-play-state: paused; }
.jm-marquee-set { display: flex; flex: none; align-items: center; gap: 40px; margin: 0; padding: 0; padding-inline-end: 40px; list-style: none; }
.jm-marquee-set li { display: grid; flex: none; place-items: center; height: 40px; }
.jm-marquee-set img { width: auto; height: 34px; max-width: 120px; object-fit: contain; }
@keyframes jm-marquee { to { transform: translateX(25%); } }
@media (prefers-reduced-motion: reduce) {
  .jm-marquee-view { -webkit-mask-image: none; mask-image: none; }
  .jm-marquee-track { width: auto; animation: none; }
  .jm-marquee-set { flex: 1; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 0 12px; }
  .jm-marquee-set[aria-hidden="true"] { display: none; }
}
.jm-dark, :root[data-theme="dark"] .jm-light { display: none; }
:root[data-theme="dark"] .jm-dark { display: block; }
.jm-wallet-logo { display: flex; justify-content: center; height: 72px; }
.jm-wallet-logo img { width: auto; max-width: min(16rem, 80vw); max-height: 72px; object-fit: contain; }
.jm-wallet-ico { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); color: var(--brand-tx); box-shadow: var(--shadow); }
.jm-wallet-ico .i { width: 30px; height: 30px; }

/* Wizard steps: done steps keep the brand colour; on phones only the current step shows its name. */
.join-modern #join-wizard { padding: 14px 12px; border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); box-shadow: var(--shadow); }
.join-modern #join-wizard ol { gap: 10px; }
.join-modern #join-wizard [data-step-indicator] { color: var(--mu); font-weight: 600; }
.join-modern #join-wizard [data-step-indicator] > span:first-child { width: 32px; height: 32px; border: 1.5px solid var(--bd); background: var(--sf); color: var(--mu); font-weight: 800; transition: background .2s, color .2s, box-shadow .2s; }
.join-modern #join-wizard [aria-current] { color: var(--brand-tx); font-weight: 800; }
.join-modern #join-wizard [aria-current] > span:first-child { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgb(var(--brand-500) / .16); }
.join-modern #join-wizard [data-step-indicator]:has(~ [aria-current]) { color: var(--tx); }
.join-modern #join-wizard [data-step-indicator]:has(~ [aria-current]) > span:first-child { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-tx); }
.join-modern #join-wizard li:not([data-step-indicator]) { height: 2px; border-radius: 2px; background: var(--bd); }
.join-modern #join-wizard li:not([data-step-indicator]):has(~ [aria-current]) { background: var(--brand); }
@media (max-width: 639.98px) {
  .join-modern #join-wizard { padding: 12px 10px; }
  .join-modern #join-wizard ol { width: 100%; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 0; }
  .join-modern #join-wizard [data-step-indicator] { flex-direction: column; flex: none; gap: 5px; font-size: 11.5px; line-height: 1.3; text-align: center; }
  .join-modern #join-wizard [data-step-indicator] > span:first-child { width: 30px; height: 30px; }
  .join-modern #join-wizard li:not([data-step-indicator]) { flex: 1 1 auto; width: auto; min-width: 8px; margin: 15px 4px 0; }
}

/* The original form's components, restyled on this page only. Section cards get a tinted header strip. */
.join-modern .card { border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); box-shadow: var(--shadow); }
.join-modern #join-form > section.card { padding: 0; }
.join-modern #join-form > section.card > div:first-child { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--bd); border-radius: var(--r-lg) var(--r-lg) 0 0; background: color-mix(in srgb, var(--brand-soft) 55%, var(--sf)); }
.join-modern #join-form > section.card > :not(:first-child) { margin: 20px 18px; }
.join-modern [data-network] > div:first-child, .join-modern [data-package] > div:first-child { border-color: var(--bd); background: color-mix(in srgb, var(--brand-soft) 55%, var(--sf)); }
.join-modern [data-network-body] > .rounded-xl { border-color: var(--bd); background: color-mix(in srgb, var(--bg) 70%, var(--sf)); }
.join-modern [data-package] { border-color: var(--bd); background: var(--sf); }
.join-modern .btn-brand { min-height: 46px; border-radius: var(--r); background: var(--brand); font-weight: 800; box-shadow: 0 8px 18px rgb(var(--brand-600) / .25); }
.join-modern .btn-brand:hover { background: var(--brand-strong); }
.join-modern .btn-outline { min-height: 46px; border-color: var(--bd); border-radius: var(--r); background: var(--sf); color: var(--tx); font-weight: 700; }
.join-modern .btn-ghost { border-radius: var(--r-sm); }
/* One column, one field per row: the form keeps a readable width on wide screens. */
.join-modern #join-wizard, .join-modern #join-form, .join-modern #desktop-registration-status { width: 100%; max-width: 760px; margin-inline: auto; }
.join-modern #join-form > section.card > .grid, .join-modern [data-network-fields], .join-modern [data-join-wallet-accounts] { grid-template-columns: minmax(0, 1fr); }
.join-modern [data-field-key="join_gateway"] { display: block; }
/* Package fields two to a row at every width; the unit is as wide as the consumption beside it. */
.join-modern [data-package-body] > .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.join-modern [data-package-body] > .grid > .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: auto; gap: 12px; }
.join-modern [data-package-body] > .grid > .grid > [data-field-wrap], .join-modern [data-package-body] > .grid > :not(.grid) { grid-column: auto; min-width: 0; }
/* Add package: a clear button in the brand colour, centred under the package. */
.join-modern [data-package-body] > .grid > div:has(> [data-add-package]) { justify-content: center; }
.join-modern #join-form [data-add-package] { width: min(100%, 320px); min-height: 46px; padding: 0 22px; border: 1.5px dashed rgb(var(--brand-300)); border-radius: var(--r); background: var(--brand-soft); color: var(--brand-tx); font-size: 14px; font-weight: 800; transition: background .15s, border-color .15s; }
.join-modern #join-form [data-add-package]:hover { border-style: solid; border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, rgb(var(--brand-300) / .45)); }
.join-modern #join-form [data-add-package] svg { width: 18px; height: 18px; }
/* Split flow (the wizard sets data-join-step): one network at a time, so no collapse toggle and no list heading. */
.join-modern #join-form[data-join-step] [data-network] .btn-ghost[data-toggle-network] { display: none; }
.join-modern #join-form[data-join-step] [data-network] button[data-toggle-network] { cursor: default; }
.join-modern #join-form[data-join-step] section[data-join-split-step="2 3"] > div:first-child { display: none; }

/* Fields: a clear outlined box with its title sitting on the top border. The title's lower half takes the field's
   background (--jm-fbg) so it cuts the border on any panel colour. */
.join-modern .input { min-height: 44px; border-color: var(--bd); border-radius: var(--r); background: var(--sf); color: var(--tx); font-size: 14px; }
.join-modern #join-form { --jm-fbg: var(--sf); --jm-fbd: color-mix(in srgb, var(--bd) 50%, var(--mu2)); }
.join-modern #join-form .input { min-height: 50px; margin-top: 0; padding: 12px 14px; border: 1.5px solid var(--jm-fbd); border-radius: var(--r); background: var(--jm-fbg); color: var(--tx); font-size: 15px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.join-modern #join-form .input::placeholder { color: var(--mu2); }
.join-modern #join-form .input:focus { border-color: var(--brand); outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.join-modern #join-form [data-field-wrap]:has(> .input) { position: relative; margin-top: 10px; }
.join-modern #join-form [data-field-wrap]:has(> .input) > label:first-child,
.join-modern #join-form [data-field-wrap]:has(> .input) > div:first-child { position: absolute; top: 0; inset-inline-start: 10px; z-index: 2; max-width: calc(100% - 20px); transform: translateY(-50%); }
.join-modern #join-form [data-field-wrap]:has(> .input) > div:first-child { inset-inline-end: 10px; gap: 0; pointer-events: none; }
.join-modern #join-form [data-field-wrap]:has(> .input) > label:first-child,
.join-modern #join-form [data-field-wrap]:has(> .input) > div:first-child > * { overflow: hidden; padding: 0 6px; background: linear-gradient(to bottom, transparent 50%, var(--jm-fbg) 50%); color: var(--tx); font-size: 12.5px; font-weight: 700; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; pointer-events: auto; }
.join-modern #join-form [data-field-wrap]:has(> .input) > label:first-child { pointer-events: none; }
.join-modern #join-form [data-field-wrap]:has(> .input) > div:first-child > details { overflow: visible; }
/* Package fields sit two to a row on phones: smaller titles so "وقت الباقة (ساعات)" still fits. */
.join-modern #join-form [data-package] [data-field-wrap]:has(> .input) > label:first-child,
.join-modern #join-form [data-package] [data-field-wrap]:has(> .input) > div:first-child { inset-inline-start: 6px; max-width: calc(100% - 12px); }
.join-modern #join-form [data-package] [data-field-wrap]:has(> .input) > label:first-child,
.join-modern #join-form [data-package] [data-field-wrap]:has(> .input) > div:first-child > * { padding: 0 4px; font-size: 12px; }
.join-modern #join-form [data-field-wrap]:has([data-join-price-help]:hover, [data-join-price-help]:focus-within, [data-join-price-help][open]) { z-index: 5; }
.join-modern #join-form [data-field-wrap]:has(> .input:focus) > label:first-child,
.join-modern #join-form [data-field-wrap]:has(> .input:focus) > div:first-child > label:first-child { color: var(--brand-tx); }
.join-modern #join-form [data-field-wrap]:has(> .input[readonly], > .input[aria-disabled="true"]) { --jm-fbg: var(--bg); }
.join-modern #join-form [data-field-wrap]:has(> .input[readonly], > .input[aria-disabled="true"]) > .input { color: var(--mu); }
.join-modern #join-form .input.border-rose-400 { border-color: #f43f5e; }
.join-modern #join-form .input.border-rose-400:focus { box-shadow: inset 0 0 0 1px #f43f5e; }
.join-modern #join-form [data-field-wrap]:has(> .input.border-rose-400) > label:first-child,
.join-modern #join-form [data-field-wrap]:has(> .input.border-rose-400) > div:first-child > label:first-child,
.join-modern #join-form .field-error { color: #e11d48; }
.join-modern .jm-req { margin-inline-start: 2px; color: #e11d48; }
:root[data-theme="dark"] .join-modern .jm-req, :root[data-theme="dark"] .join-modern #join-form .field-error { color: #fb7185; }
/* Wallet accounts (web join, step 4): the wallet's logo and name become the field's title. */
.join-modern [data-join-wallet] { position: relative; margin-top: 12px; padding: 0; border: 0; background: none; }
.join-modern [data-join-wallet] > span:first-child { position: absolute; top: 0; inset-inline-start: 10px; z-index: 2; max-width: calc(100% - 20px); margin: 0; padding: 0 6px; transform: translateY(-50%); background: linear-gradient(to bottom, transparent 50%, var(--jm-fbg) 50%); }
.join-modern [data-join-wallet] > span:first-child img { width: 26px; height: 20px; }
.join-modern [data-join-wallet] > span:first-child > .font-semibold { color: var(--tx); font-size: 12.5px; font-weight: 700; }
.join-modern [data-join-wallet]:has(.input:focus) > span:first-child > .font-semibold { color: var(--brand-tx); }
.join-modern [data-join-wallet] [data-optional-mark] { display: inline; color: var(--mu); font-size: 11.5px; font-weight: 600; }

/* Gateway dropdown: an outlined field like the others, its title on the border; the list opens below it. */
.jm-dd { position: relative; margin-top: 10px; }
.jm-dd-title { position: absolute; top: 0; inset-inline-start: 10px; z-index: 2; padding: 0 6px; transform: translateY(-50%); background: linear-gradient(to bottom, transparent 50%, var(--jm-fbg) 50%); color: var(--tx); font-size: 12.5px; font-weight: 700; line-height: 20px; white-space: nowrap; pointer-events: none; }
.jm-dd-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--jm-fbd); border-radius: var(--r); background: var(--jm-fbg); color: var(--tx); font: inherit; font-size: 15px; font-weight: 700; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.jm-dd-btn:hover { border-color: rgb(var(--brand-300)); }
.jm-dd-btn:focus-visible, .jm-dd-btn[aria-expanded="true"] { border-color: var(--brand); outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.jm-dd-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.jm-dd-ico { color: var(--brand-tx); }
.jm-dd-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-dd:not(.has-value) .jm-dd-value { color: var(--mu2); font-weight: 600; }
.jm-dd-chev { color: var(--mu); transition: transform .2s; }
.jm-dd-btn[aria-expanded="true"] .jm-dd-chev { transform: rotate(180deg); }
.jm-dd:has(.jm-dd-btn:disabled) { --jm-fbg: var(--bg); }
.jm-dd-btn:disabled { color: var(--mu); cursor: not-allowed; }
.jm-dd-menu { position: absolute; inset-inline: 0; top: calc(100% + 2px); z-index: 20; margin: 0; padding: 6px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--sf); box-shadow: 0 14px 34px #0f172a26; list-style: none; animation: jm-dd-in .14s ease-out; }
.jm-dd-menu[hidden] { display: none; }
.jm-dd-menu [role="option"] { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 700; cursor: pointer; }
.jm-dd-menu [role="option"] svg { width: 18px; height: 18px; color: var(--mu); }
.jm-dd-menu [role="option"]:hover, .jm-dd-menu [role="option"]:focus { background: var(--brand-soft); color: var(--brand-tx); outline: none; }
.jm-dd-menu [aria-selected="true"], .jm-dd-menu [aria-selected="true"] svg { color: var(--brand-tx); }
.jm-dd-menu .jm-dd-check { margin-inline-start: auto; visibility: hidden; }
.jm-dd-menu [aria-selected="true"] .jm-dd-check { visibility: visible; }
.jm-dd-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.join-modern [data-field-key="join_gateway"]:has(input.border-rose-400) .jm-dd-btn { border-color: #f43f5e; }
.join-modern [data-field-key="join_gateway"]:has(input.border-rose-400) .jm-dd-title { color: #e11d48; }
@keyframes jm-dd-in { from { opacity: 0; transform: translateY(-4px); } }

/* Login, password reset and join submitted (partners/auth_frame_modern.html): the page in a centred card. The pages keep
   their own width classes, so the layout is set here. */
body.jm-auth { display: block; padding: 0; }
body.jm-auth > div:first-child, body.jm-auth main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
body.jm-auth main > .card { --jm-fbg: var(--sf); --jm-fbd: color-mix(in srgb, var(--bd) 50%, var(--mu2)); width: min(440px, 100% - 24px); margin: 18px auto 0; padding: 30px 24px 26px; border: 1px solid var(--bd); border-radius: var(--r-xl); background: var(--sf); color: var(--tx); box-shadow: 0 1px 2px #0f172a0d, 0 18px 40px #0f172a14; }
body.jm-auth main > p { margin: 18px 0 28px; color: var(--mu); text-align: center; font-size: 12px; }
.jm-auth main > .card h1 { color: var(--tx); font-size: 22px; font-weight: 800; }
.jm-auth main > .card h1::after { content: ''; display: block; width: 48px; height: 4px; margin: 10px auto 0; border-radius: 99px; background: linear-gradient(to left, rgb(var(--brand-500)), rgb(var(--brand-700))); }
.jm-auth main > .card .input { min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--jm-fbd); border-radius: var(--r); background: var(--jm-fbg); color: var(--tx); font-size: 15px; box-shadow: none; }
.jm-auth main > .card .input:focus { border-color: var(--brand); outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
/* Field titles sit above their fields here (the join form keeps them on the border). */
.jm-auth main > .card form :is(div, label):not(.iti):has(> .input, > .iti, > .jm-pw) > :is(label, span):first-child { display: block; margin: 0 0 7px; color: var(--tx); font-size: 13px; font-weight: 700; }
.jm-auth main > .card form :is(div, label):not(.iti):has(.input:focus) > :is(label, span):first-child { color: var(--brand-tx); }
/* Password eye (added by the frame's script). */
.jm-pw { position: relative; display: block; }
.jm-auth main > .card .jm-pw .input { padding-inline-end: 48px; }
.jm-pw-btn { position: absolute; top: 50%; inset-inline-end: 6px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--mu); cursor: pointer; transform: translateY(-50%); }
.jm-pw-btn:hover, .jm-pw-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-tx); }
.jm-pw-btn svg { width: 19px; height: 19px; }
/* The platform logo above the card. */
.jm-auth-logo { display: flex; justify-content: center; margin: 30px auto 0; }
.jm-auth-logo img { width: auto; height: 62px; }
.jm-auth main > .card .input-error { color: #e11d48; }
.jm-auth main > .card fieldset legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.jm-auth main > .card fieldset label { min-height: 46px; border: 1.5px solid var(--jm-fbd); border-radius: var(--r); background: var(--sf); color: var(--tx); font-weight: 700; }
.jm-auth main > .card fieldset label:has(:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-tx); }
:root[data-theme="dark"] .jm-auth main > .card .input-error { color: #fb7185; }
.jm-auth main > .card .bg-brand-50, .jm-auth main > .card .bg-brand-100 { background: var(--brand-soft); color: var(--brand-tx); }

/* Join submitted. */
.jm-done { display: grid; justify-items: center; gap: 12px; text-align: center; }
.jm-done-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-tx); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.jm-done-ico svg { width: 36px; height: 36px; }
.jm-done-no { padding: 6px 14px; border: 1px dashed rgb(var(--brand-300)); border-radius: 99px; background: var(--brand-soft); color: var(--brand-tx); font-size: 13px; font-weight: 700; }
.jm-done-no b { margin-inline-start: 4px; font-size: 15px; }
.jm-done-text { color: var(--mu); font-size: 14px; line-height: 1.9; }
.jm-done-steps { display: grid; gap: 10px; width: 100%; margin: 2px 0; padding: 14px; border: 1px solid var(--bd); border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg) 60%, var(--sf)); list-style: none; text-align: start; }
.jm-done-steps li { display: flex; align-items: center; gap: 10px; color: var(--tx); font-size: 13.5px; font-weight: 700; }
.jm-done-steps span { display: grid; flex-shrink: 0; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--bd); border-radius: 50%; background: var(--sf); color: var(--mu); font-size: 12px; font-weight: 800; }
.jm-done-steps .is-done span { border-color: var(--brand); background: var(--brand); color: #fff; }
.jm-done-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: var(--r); background: #16a34a; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px #16a34a40; }
.jm-done-wa:hover { background: #15803d; }
.jm-done-hint { color: var(--mu); font-size: 12px; }
.jm-done-note { padding: 12px; border: 1px solid #fcd34d; border-radius: var(--r); background: #fffbeb; color: #92400e; font-size: 13px; line-height: 1.8; }
:root[data-theme="dark"] .jm-done-note { border-color: #f59e0b4d; background: #f59e0b1a; color: #fcd34d; }
.jm-done-actions { display: grid; gap: 8px; width: 100%; margin-top: 4px; }

/* Login: "no account?" leads to a clear join button. */
.jm-auth #partner-login-form + p { display: grid; gap: 8px; margin-top: 20px; color: var(--mu); font-size: 13px; text-align: center; }
.jm-auth #partner-login-form + p a { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid rgb(var(--brand-300)); border-radius: var(--r); background: var(--brand-soft); color: var(--brand-tx); font-size: 14px; font-weight: 800; text-decoration: none; }
.jm-auth #partner-login-form + p a:hover { border-color: var(--brand); }

/* Login on phones: a brand band under the header (white logo, headline, a tilted wifi card) and the form as a sheet
   rising over it. Wide screens: the form and the brand panel in one rounded box (partners/_jm_side.html). */
.jm-side-logo { display: none; }
@media (min-width: 1024px) {
  body.jm-auth main:has(> .jm-side) { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 520px) minmax(0, 470px) minmax(24px, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "top top top top" ". side logo ." ". side card ." ". foot foot ."; }
  body.jm-auth main:has(> .jm-side) > .jm-topbar { grid-area: top; }
  body.jm-auth main:has(> .jm-side)::before { content: ''; grid-column: 3; grid-row: 2 / 4; margin-top: 44px; border: 1px solid var(--bd); border-inline-start: 0; border-start-end-radius: 28px; border-end-end-radius: 28px; background: var(--sf); box-shadow: 0 24px 60px #0f172a1f; }
  body.jm-auth main:has(> .jm-side) > .jm-auth-logo { grid-area: logo; position: relative; z-index: 1; margin: 44px 0 0; padding: 52px 52px 0; }
  body.jm-auth main:has(> .jm-side) > .card { grid-area: card; position: relative; z-index: 1; width: auto; margin: 0; padding: 20px 52px 52px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.jm-auth main:has(> .jm-side) > p { grid-area: foot; }
  .jm-side { grid-area: side; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; min-height: 600px; margin-top: 44px; padding: 52px 48px 44px; border-start-start-radius: 28px; border-end-start-radius: 28px; background: var(--hero); color: #fff; box-shadow: 0 24px 60px #0f172a26; }
}
/* Dots fading down, and wifi rings in a corner. */
.jm-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, #ffffff33 1px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(#000, transparent 65%); mask-image: linear-gradient(#000, transparent 65%); }
.jm-side::after { content: ''; position: absolute; inset-inline-end: -230px; bottom: -250px; width: 540px; height: 540px; border-radius: 50%; background: repeating-radial-gradient(circle, #ffffff17 0 2px, transparent 2px 48px); }
.jm-side > * { position: relative; z-index: 1; }
.jm-side-tag { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 6px 13px; border: 1px solid #ffffff47; border-radius: 99px; background: #ffffff1f; font-size: 12.5px; font-weight: 800; }
.jm-side h2 { max-width: 420px; font-size: 29px; font-weight: 800; line-height: 1.5; }
.jm-side > p { max-width: 400px; color: #ffffffd1; font-size: 14.5px; line-height: 1.95; }
/* A wifi card and a second one behind it. */
.jm-side-cards { height: 196px; margin: 6px 0 4px; }
.jm-voucher { position: absolute; top: 22px; inset-inline-start: 6px; width: 300px; padding: 16px 18px 14px; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 26px 50px #00000059; transform: rotate(-4deg); }
.jm-voucher-back { top: 0; inset-inline-start: 70px; height: 150px; border: 1px solid #ffffff5c; background: #ffffff29; box-shadow: none; transform: rotate(7deg); }
.jm-voucher-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgb(var(--brand-700)); font-size: 13px; font-weight: 800; }
.jm-voucher-top span { display: inline-flex; align-items: center; gap: 6px; }
.jm-voucher-top b { padding: 3px 10px; border-radius: 99px; background: rgb(var(--brand-600)); color: #fff; font-size: 12px; }
.jm-voucher-code { margin: 12px 0 10px; padding-top: 10px; border-top: 2px dashed #e2e8f0; font-size: 27px; font-weight: 800; letter-spacing: .14em; text-align: left; }
.jm-voucher-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-voucher-meta span { padding: 3px 10px; border-radius: 99px; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); font-size: 12px; font-weight: 700; }
.jm-side-wallets { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding: 0; list-style: none; }
.jm-side-wallets li { display: grid; place-items: center; width: 72px; height: 42px; padding: 5px 8px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px #0000002e; }
.jm-side-wallets img { max-width: 100%; max-height: 28px; object-fit: contain; }
/* Phones (after the panel's own rules, which it trims). */
@media (max-width: 1023.98px) {
  body.jm-auth main:has(> .jm-side) > .jm-auth-logo { display: none; }
  .jm-side { position: relative; overflow: hidden; display: block; padding: 22px 20px 74px; background: var(--hero); color: #fff; }
  .jm-side-logo { display: block; width: auto; height: 46px; margin-bottom: 14px; }
  .jm-side-tag, .jm-side > p, .jm-side-wallets { display: none; }
  .jm-side h2 { max-width: 58%; font-size: 18px; line-height: 1.6; }
  .jm-auth .jm-side-cards { position: absolute; top: 48%; inset-inline-end: 0; width: 300px; height: 190px; margin: 0; transform: translateY(-50%) scale(.5); transform-origin: left center; }
  body.jm-auth main:has(> .jm-side) > .card { position: relative; z-index: 2; margin-top: -48px; border-radius: 26px; box-shadow: 0 -2px 0 #ffffff14, 0 18px 40px #0f172a24; }
}
/* Dropdown fields (nselect.js) in the join form: the title takes the brand colour while the field is focused or open. */
.join-modern #join-form [data-field-wrap]:has(.no-dd-btn:focus, .no-dd-btn[aria-expanded="true"]) > label:first-child,
.join-modern #join-form [data-field-wrap]:has(.no-dd-btn:focus, .no-dd-btn[aria-expanded="true"]) > div:first-child > label:first-child { color: var(--brand-tx); }
.join-modern #join-form .no-dd-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
