/* ============================================================================
   Mobile Access — macOS "Liquid Glass" skin
   Scoped to #ajaxModal.nz-ma-modal (the pairing sheet) and .nz-ma-tab (profile tab).
   The QR card stays light even in dark mode so the code always scans.
   Loaded last in head.php, after team-member-glass.css.
   ========================================================================== */

.nz-ma-modal,
.nz-ma-tab {
    --ma-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ma-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", monospace;
    --ma-blue: #0071e3;
    --ma-ink: #1d1d1f;
    --ma-ink-2: #6e6e73;
    --ma-surface: #ffffff;
    --ma-surface-2: #f5f5f7;
    --ma-hairline: rgba(0, 0, 0, .10);
    --ma-shadow: 0 30px 60px -12px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .22);
    --ma-ring: rgba(0, 113, 227, .28);
}

body.color-1E202D .nz-ma-modal,
body.color-1E202D .nz-ma-tab {
    --ma-ink: #f5f5f7;
    --ma-ink-2: #a1a1a6;
    --ma-surface: #2b2d3a;
    --ma-surface-2: #23252f;
    --ma-hairline: rgba(255, 255, 255, .12);
    --ma-shadow: 0 30px 60px -12px rgba(0, 0, 0, .6), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --ma-ring: rgba(66, 165, 255, .32);
}

/* ---------------------------------------------------------------- modal frame */
#ajaxModal.nz-ma-modal .modal-dialog {
    max-width: 470px;
}

#ajaxModal.nz-ma-modal .modal-content {
    border: .5px solid var(--ma-hairline);
    border-radius: 22px;
    background: var(--ma-surface);
    box-shadow: var(--ma-shadow);
    overflow: hidden;
    font-family: var(--ma-font);
    -webkit-font-smoothing: antialiased;
    color: var(--ma-ink);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #ajaxModal.nz-ma-modal .modal-content {
        background: color-mix(in srgb, var(--ma-surface) 82%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(30px);
        backdrop-filter: saturate(180%) blur(30px);
    }
}

/* hide the app's default modal header — we render our own macOS title bar */
#ajaxModal.nz-ma-modal .modal-header {
    display: none;
}

#ajaxModal.nz-ma-modal .modal-body {
    padding: 0 28px 10px;
    background: transparent;
    color: var(--ma-ink);
}

#ajaxModal.nz-ma-modal .modal-footer {
    border-top: .5px solid var(--ma-hairline);
    padding: 15px 22px;
    gap: 10px;
    background: transparent;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* ---------------------------------------------------------------- title bar */
.nz-ma-bar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 2px 8px;
}

.nz-ma-lights {
    display: flex;
    gap: 8px;
}

.nz-ma-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14);
}

.nz-ma-light.red {
    background: #ff5f57;
    cursor: pointer;
    transition: filter .15s;
}

.nz-ma-light.red:hover {
    filter: brightness(.9);
}

.nz-ma-light.amber {
    background: #febc2e;
}

.nz-ma-light.green {
    background: #28c840;
}

.nz-ma-bar-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-ink-2);
    pointer-events: none;
    letter-spacing: -.01em;
}

/* ---------------------------------------------------------------- hero */
.nz-ma-hero {
    text-align: center;
    padding: 10px 0 2px;
}

.nz-ma-badge {
    width: 74px;
    height: 74px;
    margin: 2px auto 16px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #57a4ff 0%, #0a63e6 55%, #0a49bd 100%);
    box-shadow: 0 12px 26px -8px rgba(10, 99, 230, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.nz-ma-badge i {
    font-size: 31px;
}

.nz-ma-title {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -.022em;
    color: var(--ma-ink);
    margin: 0 0 7px;
}

.nz-ma-sub {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ma-ink-2);
    margin: 0 auto 18px;
    max-width: 350px;
}

/* ---------------------------------------------------------------- info note */
.nz-ma-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    background: var(--ma-surface-2);
    border: .5px solid var(--ma-hairline);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ma-ink-2);
}

.nz-ma-note i {
    color: #ff9f0a;
    margin-top: 1px;
    font-size: 14px;
}

/* ---------------------------------------------------------------- fields */
.nz-ma-field {
    text-align: left;
    margin: 0 0 14px;
}

.nz-ma-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ma-ink-2);
    margin: 0 0 6px;
    padding-left: 2px;
}

.nz-ma-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-family: var(--ma-font);
    color: var(--ma-ink);
    background: var(--ma-surface-2);
    border: 1px solid var(--ma-hairline);
    border-radius: 12px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.nz-ma-input::placeholder {
    color: var(--ma-ink-2);
    opacity: .7;
}

.nz-ma-input:focus {
    border-color: var(--ma-blue);
    box-shadow: 0 0 0 4px var(--ma-ring);
    background: var(--ma-surface);
}

/* password_toggle.js wraps the field in .input-group and appends an eye button;
   tuck that button neatly inside the input (macOS style) instead of wrapping below */
#ajaxModal.nz-ma-modal .input-group {
    position: relative;
    display: block;
}

#ajaxModal.nz-ma-modal .input-group .nz-ma-input {
    padding-right: 44px;
}

#ajaxModal.nz-ma-modal .pw-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ma-ink-2) !important;
    transition: background .15s, color .15s;
}

#ajaxModal.nz-ma-modal .pw-toggle-btn:hover {
    background: var(--ma-surface) !important;
    color: var(--ma-ink) !important;
}

/* ---------------------------------------------------------------- buttons */
.nz-ma-btn {
    font-family: var(--ma-font);
    font-size: 15px;
    font-weight: 590;
    border: 0;
    border-radius: 980px;
    padding: 0 22px;
    height: 42px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter .15s, transform .06s, background .15s;
}

.nz-ma-btn:active {
    transform: translateY(.5px);
}

.nz-ma-btn-primary {
    background: var(--ma-blue);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(0, 113, 227, .7);
    min-width: 148px;
}

.nz-ma-btn-primary:hover {
    filter: brightness(1.06);
}

.nz-ma-btn-ghost {
    background: var(--ma-surface-2);
    color: var(--ma-ink);
    border: .5px solid var(--ma-hairline);
}

.nz-ma-btn-ghost:hover {
    filter: brightness(.97);
}

/* ---------------------------------------------------------------- QR result */
.nz-ma-result {
    text-align: center;
    padding: 4px 0 6px;
    animation: nz-ma-pop .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes nz-ma-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.nz-ma-result-title {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--ma-ink);
    margin: 2px 0 5px;
}

.nz-ma-result-sub {
    font-size: 13px;
    color: var(--ma-ink-2);
    margin: 0 auto 18px;
    max-width: 320px;
    line-height: 1.45;
}

.nz-ma-qr-card {
    width: 246px;
    margin: 0 auto 20px;
    padding: 18px;
    background: #fff;
    border-radius: 24px;
    border: .5px solid rgba(0, 0, 0, .06);
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .08);
    position: relative;
}

.nz-ma-qr-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 42%);
    pointer-events: none;
}

.nz-ma-qr-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nz-ma-token-wrap {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}

.nz-ma-token-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ma-ink-2);
    margin: 0 0 6px;
    padding-left: 2px;
}

.nz-ma-token {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ma-surface-2);
    border: .5px solid var(--ma-hairline);
    border-radius: 12px;
    padding: 7px 7px 7px 12px;
}

.nz-ma-token code {
    flex: 1;
    min-width: 0;
    font-family: var(--ma-mono);
    font-size: 12.5px;
    color: var(--ma-ink);
    word-break: break-all;
    background: none;
    padding: 0;
}

.nz-ma-copy {
    flex: none;
    border: 0;
    border-radius: 9px;
    height: 32px;
    padding: 0 13px;
    background: var(--ma-blue);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--ma-font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: filter .15s, background .25s;
}

.nz-ma-copy:hover {
    filter: brightness(1.07);
}

.nz-ma-copy.copied {
    background: #28c840;
}

.nz-ma-once {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    text-align: left;
    font-size: 12px;
    color: var(--ma-ink-2);
    margin: 16px auto 2px;
    max-width: 320px;
    line-height: 1.45;
}

.nz-ma-once i {
    color: #ff9f0a;
    margin-top: 1px;
}

/* ================================================================ profile tab */
.nz-ma-tab .page-title h4 {
    font-family: var(--ma-font);
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--ma-ink);
}

.nz-ma-tab .nz-ma-intro {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ma-ink-2);
    max-width: 620px;
}

.nz-ma-launch {
    font-family: var(--ma-font);
    font-size: 14px;
    font-weight: 590;
    border: 0;
    border-radius: 980px;
    padding: 9px 18px;
    background: var(--ma-blue);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px -7px rgba(0, 113, 227, .7);
    transition: filter .15s, transform .06s;
}

.nz-ma-launch:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

.nz-ma-launch:active {
    transform: translateY(.5px);
}
