/* MKHAYA ADMIN SIGN-IN — a verbatim copy of Mkhaya.Driver/wwwroot/css/auth.css (itself a copy of
   Mkhaya.Rider/wwwroot/css/auth.css), so the admin sign-in is the same design as both apps.
   Keep the three in step. Only the header comment differs. */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --mk-terracotta: #C15A2C;
    --mk-earth: #8D5A2B;
    --mk-ink: #1A1A1A;
    --mk-sand: #FFF6EB;
    --mk-sand-deep: #FFF0DC;
    --mk-wa: #25D366;
    --mk-wa-soft: #DCF8C6;
    --mk-wa-deep: #128C7E;
    --mk-line: rgba(0, 0, 0, 0.05);
    --mk-muted: rgba(26, 26, 26, 0.6);
}

/* ---------- Screen shell ---------- */
.mk-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--mk-sand);
    color: var(--mk-ink);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.mk-auth *,
.mk-auth *::before,
.mk-auth *::after {
    box-sizing: border-box;
}

.mk-auth button,
.mk-auth input,
.mk-auth select {
    font-family: inherit;
}

.mk-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mk-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mk-blob-splash-tl { top: -80px; left: -80px; width: 320px; height: 320px; background: rgba(193, 90, 44, 0.15); filter: blur(48px); }
.mk-blob-splash-br { bottom: -96px; right: -80px; width: 360px; height: 360px; background: rgba(141, 90, 43, 0.15); filter: blur(50px); }
.mk-blob-login { top: -80px; right: -60px; width: 260px; height: 260px; background: rgba(193, 90, 44, 0.10); filter: blur(40px); }

/* ---------- Logo tile ---------- */
.mk-logo-tile {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mk-logo-tile-xl {
    width: 128px;
    height: 128px;
    padding: 10px;
    border-radius: 32px;
    box-shadow: 0 20px 60px -16px rgba(193, 90, 44, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mk-logo-tile-xl img { border-radius: 22px; }

.mk-logo-tile-lg {
    width: 112px;
    height: 112px;
    padding: 10px;
    border-radius: 32px;
    box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.3);
}

.mk-logo-tile-lg img { border-radius: 24px; }

.mk-logo-tile-sm {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mk-logo-tile-sm img { border-radius: 8px; }

/* ---------- Splash (Splash.razor + index.html boot splash) ---------- */
.mk-splash {
    align-items: center;
    justify-content: center;
    padding-top: var(--mkhaya-safe-top, 0px);
}

.mk-splash-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mk-splash-wordmark {
    margin: 32px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--mk-ink);
}

.mk-splash-sub {
    margin: -2px 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: rgba(141, 90, 43, 0.8);
}

.mk-dots {
    margin-top: 24px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.mk-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mk-terracotta);
    animation: mk-bounce 1s infinite;
}

.mk-dots span:nth-child(2) { opacity: 0.6; animation-delay: 0.15s; }
.mk-dots span:nth-child(3) { opacity: 0.3; animation-delay: 0.3s; }

.mk-splash-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(40px + var(--mkhaya-safe-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.mk-splash-foot-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(141, 90, 43, 0.6);
}

.mk-shimmer-track {
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.1);
    overflow: hidden;
}

.mk-shimmer-bar {
    width: 50%;
    height: 100%;
    border-radius: 999px;
    background: var(--mk-terracotta);
    animation: mk-shimmer 1.2s ease-in-out infinite;
}

.mk-pop { animation: mk-pop 1s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes mk-pop {
    0% { transform: scale(0.85) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes mk-fade-in {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes mk-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes mk-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes mk-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Login / code screens ---------- */
.mk-auth-head {
    position: relative;
    z-index: 1;
    padding: calc(var(--mkhaya-safe-top, 0px) + 30px) 24px 16px;
    animation: mk-fade-in 0.35s ease;
}

.mk-hero-title {
    margin: 28px 0 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--mk-ink);
}

.mk-hero-title span { color: var(--mk-terracotta); }

.mk-hero-sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--mk-muted);
}

.mk-screen-title {
    margin: 24px 0 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.mk-screen-sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--mk-muted);
}

.mk-screen-sub strong { color: var(--mk-ink); font-weight: 600; }

.mk-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--mk-line);
    background: #fff;
    font-size: 16px;
    color: var(--mk-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mk-auth-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 20px calc(24px + var(--mkhaya-safe-bottom, 0px));
    animation: mk-fade-in 0.35s ease;
}

.mk-auth-body-code { padding-top: 32px; }

.mk-card {
    display: block;
    margin: 0;
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.mk-card-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mk-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(26, 26, 26, 0.5);
}

.mk-chip-sand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(141, 90, 43, 0.1);
    background: var(--mk-sand);
    font-size: 10px;
    font-weight: 600;
    color: var(--mk-earth);
}

.mk-chip-icon { font-size: 12px !important; width: 12px !important; height: 12px !important; }

.mk-label {
    display: block;
    margin: 0 0 6px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--mk-muted);
}

.mk-optional { font-weight: 500; opacity: 0.6; }

/* ---------- Inputs ---------- */
.mk-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    background: var(--mk-sand);
    font-size: 15px;
    font-weight: 500;
    color: var(--mk-ink);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.mk-input::placeholder { color: rgba(26, 26, 26, 0.3); }

.mk-input:focus {
    border-color: rgba(193, 90, 44, 0.3);
    box-shadow: 0 0 0 2px rgba(193, 90, 44, 0.2);
}

.mk-input-sm { height: 48px; font-size: 14px; }
.mk-input-xs { height: 46px; padding: 0 12px; font-size: 13px; }
.mk-input-date { font-size: 13px; padding: 0 12px; }

.mk-input-error {
    background: #FFF0F0;
    border-color: rgba(193, 90, 44, 0.3);
}

.mk-select {
    padding-left: 12px;
    padding-right: 28px;
    font-size: 13px;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-opacity='.5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.mk-input-wrap { position: relative; }
.mk-input-with-eye { padding-right: 48px; }
.mk-input-with-action { padding-right: 124px; }

.mk-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--mk-line);
    background: #fff;
    color: rgba(26, 26, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mk-eye .mud-icon-root { font-size: 18px; }
.mk-eye-sm { width: 32px; height: 32px; right: 6px; }

.mk-inline-action {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: var(--mk-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.mk-inline-action-icon { font-size: 14px !important; width: 14px !important; height: 14px !important; }

.mk-field-error,
.mk-field-hint {
    margin: -8px 0 0 4px;
    font-size: 11px;
    font-weight: 600;
}

.mk-field-error { color: var(--mk-terracotta); }
.mk-field-hint { color: rgba(26, 26, 26, 0.5); }

/* ---------- Phone input (AuthPhoneInput.razor) ---------- */
.mk-phone-row {
    display: flex;
    gap: 8px;
}

.mk-phone-code {
    flex: 0 0 auto;
    min-width: 64px;
    height: 52px;
    padding: 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mk-ink);
    cursor: pointer;
}

.mk-phone-code:active { background: var(--mk-sand-deep); }
.mk-phone-flag { font-size: 20px; line-height: 1; }
.mk-phone-caret { font-size: 10px; opacity: 0.5; }

.mk-phone-row .mk-input { flex: 1; min-width: 0; }

.mk-phone-compact .mk-phone-code { min-width: 60px; height: 48px; font-size: 13px; gap: 4px; }
.mk-phone-compact .mk-input { height: 48px; font-size: 14px; }

.mk-phone-menu {
    margin-top: 8px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--mk-line);
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: mk-fade-in 0.2s;
}

.mk-phone-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--mk-ink);
    text-align: left;
    cursor: pointer;
}

.mk-phone-menu-item:active,
.mk-phone-menu-item-on { background: var(--mk-sand); }
.mk-phone-menu-flag { font-size: 18px; line-height: 1; }
.mk-phone-menu-dial { margin-left: auto; color: rgba(26, 26, 26, 0.5); }

/* ---------- Buttons ---------- */
.mk-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.mk-btn:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.mk-btn-arrow { font-size: 16px; letter-spacing: 0; }
.mk-btn-tall { height: 56px; }

.mk-btn-dark {
    background: var(--mk-ink);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}

.mk-btn-dark:not(:disabled):active { background: #000; }

.mk-btn-terracotta {
    background: var(--mk-terracotta);
    box-shadow: 0 12px 24px -12px rgba(193, 90, 44, 0.6);
}

.mk-btn-alt {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(141, 90, 43, 0.15);
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-earth);
    cursor: pointer;
}

.mk-btn-alt:active { background: var(--mk-sand-deep); }

.mk-wa-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mk-wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-wa-dot .mud-icon-root { font-size: 13px; width: 13px; height: 13px; }

.mk-switch-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
    text-decoration: none;
}

.mk-switch-link span {
    color: var(--mk-terracotta);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mk-text-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
    cursor: pointer;
}

.mk-fine-print {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: rgba(26, 26, 26, 0.5);
}

.mk-auth-foot {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mk-foot-motto {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(141, 90, 43, 0.4);
}

/* ---------- Bead row (AuthBeadRow.razor) ---------- */
.mk-beads {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.mk-bead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mk-bead-top { width: 14px; height: 3px; border-radius: 999px; background: rgba(141, 90, 43, 0.3); }
.mk-bead-tilt-left { transform: rotate(-12deg); }
.mk-bead-tilt-right { transform: rotate(12deg); }
.mk-bead-stem { width: 2px; height: 6px; border-radius: 999px; background: rgba(193, 90, 44, 0.2); }

/* ---------- WhatsApp badges ---------- */
.mk-wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    background: var(--mk-wa-soft);
    font-size: 11px;
    font-weight: 600;
    color: var(--mk-wa-deep);
}

.mk-wa-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mk-wa-deep); }

.mk-wa-badge-caps {
    margin-top: 12px;
    height: auto;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Code boxes (AuthOtpBoxes.razor) ---------- */
.mk-otp {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mk-otp-box {
    flex: 0 1 48px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--mk-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mk-otp-box-filled { background: var(--mk-sand); }

.mk-otp-box-active {
    border-color: var(--mk-terracotta);
    box-shadow: 0 0 0 4px rgba(193, 90, 44, 0.15);
}

.mk-otp-compact .mk-otp-box { flex-basis: 46px; height: 54px; background: var(--mk-sand); box-shadow: none; }

/* One real input stretched over all six boxes — its own text and caret are invisible; the boxes
   show the digits. Kept at 16px so Android doesn't zoom on focus. */
.mk-otp-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    font-size: 16px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mk-otp-input::selection { background: transparent; }

.mk-resend-card {
    margin-top: 24px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--mk-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.7);
}

.mk-resend-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: var(--mk-muted);
}

.mk-resend-btn {
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--mk-terracotta);
    cursor: pointer;
}

.mk-resend-btn:disabled { color: rgba(26, 26, 26, 0.3); cursor: default; }

.mk-verifying {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: var(--mk-ink);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: mk-fade-in 0.2s;
}

.mk-spinner {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: mk-spin 0.9s linear infinite;
}

.mk-verifying-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.mk-verifying-sub { font-size: 11px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Registration wizard ---------- */
.mk-reg-head {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: calc(var(--mkhaya-safe-top, 0px) + 20px) 24px 12px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--mk-line);
}

.mk-reg-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mk-reg-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--mk-ink);
    text-decoration: none;
}

.mk-reg-close-spacer { width: 32px; }

.mk-reg-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mk-reg-brand img { width: 24px; height: 24px; border-radius: 8px; object-fit: contain; }
.mk-reg-brand span { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; }

.mk-steps {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-step-last { flex: 0 0 auto; }

.mk-step-dot {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: rgba(26, 26, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
}

.mk-step-dot-done { background: var(--mk-ink); border-color: var(--mk-ink); color: #fff; }

.mk-step-dot-active {
    background: var(--mk-terracotta);
    border-color: var(--mk-terracotta);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(193, 90, 44, 0.15);
}

.mk-step-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.mk-step-line-done { background: var(--mk-ink); }

.mk-step-labels {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(26, 26, 26, 0.4);
}

.mk-step-label-on { color: var(--mk-terracotta); }

.mk-reg-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px calc(24px + var(--mkhaya-safe-bottom, 0px));
    animation: mk-fade-in 0.35s ease;
}

.mk-reg-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mk-reg-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--mk-muted);
}

.mk-reg-sub strong { color: var(--mk-ink); font-weight: 600; }

.mk-restored {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(193, 90, 44, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: var(--mk-terracotta);
}

.mk-badge-row { display: flex; gap: 8px; }

.mk-card-reg {
    border-radius: 24px;
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mk-line);
}

.mk-stack { display: flex; flex-direction: column; gap: 16px; }
.mk-stack-lg { display: flex; flex-direction: column; gap: 20px; }

.mk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mk-grid-2 > div { min-width: 0; }

.mk-note {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--mk-line);
    background: rgba(26, 26, 26, 0.05);
}

.mk-note-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--mk-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-note-icon .mud-icon-root { font-size: 13px; width: 13px; height: 13px; color: var(--mk-earth); }

.mk-note p {
    margin: 0;
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
    color: var(--mk-muted);
}

.mk-info-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--mk-line);
    background: #fff;
}

.mk-info-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-earth);
}

.mk-info-icon .mud-icon-root { font-size: 18px; }
.mk-info-title { font-size: 12px; font-weight: 700; }
.mk-info-sub { margin-top: 4px; font-size: 11px; line-height: 16px; color: var(--mk-muted); }

/* Step 3 */
.mk-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mk-required-chip {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(193, 90, 44, 0.1);
    color: var(--mk-terracotta);
    font-size: 9px;
}

.mk-photo-pick {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(141, 90, 43, 0.3);
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: var(--mk-ink);
    cursor: pointer;
}

.mk-photo-pick:active { background: var(--mk-sand-deep); }

.mk-photo-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: var(--mk-earth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
}

.mk-photo-thumb-on { border-color: var(--mk-ink); }
.mk-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-photo-title { font-size: 13px; font-weight: 600; }
.mk-photo-sub { font-size: 11px; color: var(--mk-muted); }

.mk-divider { height: 1px; background: var(--mk-line); }

.mk-dashed-pick {
    width: 100%;
    height: 64px;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    background: var(--mk-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.5);
    cursor: pointer;
}

.mk-dashed-pick-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--mk-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-dashed-pick-icon .mud-icon-root { font-size: 15px; width: 15px; height: 15px; color: var(--mk-earth); }

/* Step 4 */
.mk-done {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.mk-done-text { margin-top: 24px; padding: 0 24px; }

.mk-ready-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mk-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mk-ready-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--mk-wa); }

.mk-done-title {
    margin: 16px 0 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.mk-done-sub {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--mk-muted);
}

.mk-summary {
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--mk-line);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.mk-summary-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mk-sand);
    color: var(--mk-earth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
}

.mk-summary-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mk-summary-text { min-width: 0; }
.mk-summary-name { font-size: 13px; font-weight: 600; }

.mk-summary-meta {
    font-size: 11px;
    color: rgba(26, 26, 26, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-summary-check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--mk-wa-soft);
    color: var(--mk-wa-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mk-done-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Driver-only bits (kept here too so the two apps' copies stay identical) ---------- */
.mk-ready-pill-amber span { background: #E0A95C; }
.mk-input-plate { text-transform: uppercase; }
.mk-input-plate::placeholder { text-transform: none; }

/* ---------- Spacing utilities — last, so they win over component margins (e.g. .mk-label) ---------- */
.mk-mt-4 { margin-top: 16px; }
.mk-mt-5 { margin-top: 20px; }
.mk-mb-2 { margin-bottom: 8px; }
