.ma-premium {
    padding: 30px 0 80px;
    background: #fff;
}
.ma-premium-head {
    text-align: center;
    margin-bottom: 34px;
}
.ma-premium-head h2 {
    color: #0c1e4f;
    font-weight: 800;
    margin-bottom: 8px;
}
.ma-premium-head p {
    color: #5d667a;
    margin: 0;
}
.ma-register {
    display: inline-block;
    margin-top: 18px;
    background: #f6c412;
    color: #0c1e4f !important;
    border: 2px solid #f6c412;
    border-radius: 3px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none !important;
}
.ma-register:hover {
    background: #0c1e4f;
    border-color: #0c1e4f;
    color: #fff !important;
}
.ma-login,
.ma-form {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}
.ma-login {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(12, 30, 79, .08);
    padding: 24px;
}
.ma-login h3,
.ma-toolbar p {
    color: #0c1e4f;
    margin: 0 0 14px;
}
.ma-login label,
.ma-form label {
    display: block;
    color: #0c1e4f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ma-login input,
.ma-form input,
.ma-form select,
.ma-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid #d5d8e2;
    border-radius: 4px;
    padding: 10px 12px;
    font-weight: 500;
}
.ma-form-error {
    color: #b42318;
    margin: 0 0 12px;
}
.ma-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.ma-text-button,
.ma-card-actions button,
.ma-pager button {
    background: #fff;
    color: #0c1e4f;
    border: 1px solid #0c1e4f;
    border-radius: 3px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}
.ma-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.ma-card-actions .is-danger {
    color: #b42318;
    border-color: #b42318;
}
.ma-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}
.ma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.ma-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}
.ma-note {
    color: #5d667a;
    font-size: 13px;
}
.ma-form {
    overflow: auto;
    flex: 1;
    min-height: 0;
    padding: 18px 18px 24px;
}
@media (max-width: 700px) {
    .ma-form-grid { grid-template-columns: 1fr; }
    .ma-toolbar { align-items: flex-start; flex-direction: column; }
}
.ma-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(12, 30, 79, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ma-modal[hidden] {
    display: none !important;
}
.ma-step-label {
    margin: 0 0 8px;
    color: #0c1e4f;
    font-size: 13px;
    font-weight: 700;
}
.ma-step[hidden] { display: none !important; }
.ma-step h3 {
    margin: 0 0 8px;
    color: #0c1e4f;
    font-size: 22px;
}
.ma-step .ma-step-copy {
    margin: 0 0 14px;
    color: #5d667a;
    font-size: 14px;
}
.ma-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0 16px;
    font-size: 14px;
}
.ma-check input { width: auto; margin-top: 3px; }
.ma-wizard-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.ma-form .ma-register {
    margin-top: 0;
}
.ma-purpose {
    background: #fff6f8;
    border-radius: 10px;
    padding: 12px 14px;
}
.ma-calendar {
    margin-top: 8px;
}
.ma-camera-block {
    margin: 8px 0 14px;
}
.ma-camera-stage[hidden] { display: none !important; }
.ma-camera-live video,
.ma-camera-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #111;
    border-radius: 12px;
    display: block;
}
.ma-mirror { transform: scaleX(-1); }
.ma-camera-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.ma-camera-actions .ma-register,
.ma-camera-actions .ma-text-button {
    flex: 1;
    margin-top: 0;
    text-align: center;
}
.ma-done {
    padding: 24px 18px 28px;
}
.ma-done h3 {
    margin: 0 0 8px;
    color: #0c1e4f;
}
.ma-done-value {
    margin: 0 0 12px;
    color: #0c1e4f;
    font-size: 20px;
    font-weight: 800;
}
.ma-done[hidden] { display: none !important; }
.ma-modal-card {
    width: min(720px, 100%);
    height: min(860px, calc(100vh - 48px));
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ma-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #0c1e4f;
    color: #fff;
}
.ma-modal-close {
    background: #f6c412;
    color: #0c1e4f;
    border: 0;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}
body.ma-register-open {
    overflow: hidden;
}
.ma-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.ma-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(12, 30, 79, .08);
    text-align: center;
    overflow: hidden;
    padding-bottom: 16px;
}
.ma-card img,
.ma-photo-fallback {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #0c1e4f;
}
.ma-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
}
.ma-card h3 {
    color: #0c1e4f;
    font-size: 16px;
    margin: 14px 12px 4px;
}
.ma-card p,
.ma-empty {
    color: #8b93a7;
    font-size: 13px;
    margin: 0;
}
.ma-empty {
    grid-column: 1 / -1;
    text-align: center;
}
@media (max-width: 1199px) {
    .ma-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
    .ma-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ma-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
    .ma-grid { grid-template-columns: 1fr; }
}

#ma-profile-form .ma-field {
    display: block;
    width: 100%;
    margin: 0 0 14px;
}
#ma-profile-form .ma-field-label {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    color: #0c1e4f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
#ma-profile-form .ma-control,
#ma-profile-form select,
#ma-profile-form textarea,
#ma-profile-form input:not([type="checkbox"]):not([type="hidden"]) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    margin: 0;
    font-size: 16px;
}
#ma-profile-form input[type="file"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}
button.sww-btn {
    cursor: pointer;
    font-family: inherit;
}
#ma-profile-form input[type="file"].ma-upload {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 10px 0;
}
#ma-form-modal .d-none { display: none !important; }
#ma-form-modal .guided-stage,
#ma-form-modal .id-stage {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}
#ma-form-modal .guided-stage video,
#ma-form-modal .id-stage video,
#ma-form-modal .preview-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #111;
    border-radius: 12px;
    display: block;
}
#ma-form-modal .guided-stage video { transform: scaleX(-1); }
#ma-form-modal .guided-oval {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 58%;
    height: 68%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 50%;
    box-shadow: 0 0 0 2000px rgba(0,0,0,.35);
    pointer-events: none;
}
#ma-form-modal .guided-stage.is-ready .guided-oval { border-color: #2eae4e; }
#ma-form-modal .guided-status,
#ma-form-modal .id-status {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,.62);
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 700;
}
#ma-form-modal .guided-hold {
    height: 6px;
    background: #ececec;
    border-radius: 6px;
    margin-top: 8px;
    overflow: hidden;
}
#ma-form-modal .guided-hold span {
    display: block;
    height: 100%;
    width: 0;
    background: #2eae4e;
}
#ma-form-modal .id-frame {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 16%;
    bottom: 22%;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 14px;
    box-shadow: 0 0 0 2000px rgba(0,0,0,.45);
    pointer-events: none;
}
#ma-form-modal .id-stage.is-ready .id-frame { border-color: #2eae4e; }
#ma-form-modal .camera-explain .ma-register,
#ma-form-modal .guided-live .ma-register,
#ma-form-modal .camera-preview .ma-register,
#ma-form-modal .camera-preview .ma-text-button {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}
#ma-form-modal .ma-register:hover,
#ma-form-modal .ma-register:focus {
    background: #f6c412;
    border-color: #f6c412;
    color: #0c1e4f !important;
}
#ma-form-modal .ma-camera-actions {
    display: flex;
    gap: 10px;
}
#ma-form-modal .ma-camera-actions .ma-register,
#ma-form-modal .ma-camera-actions .ma-text-button {
    flex: 1;
    width: auto;
}
    min-height: 48px;
    line-height: 1.2;
}
#ma-profile-form .ma-calendar,
#ma-profile-form .ma-camera-block > .ma-camera-stage .ma-register,
#ma-profile-form .ma-open-camera,
#ma-profile-form .ma-capture {
    display: block;
    width: 100%;
    margin-top: 8px;
    text-align: center;
}
#ma-profile-form .ma-note {
    display: block;
    width: 100%;
    margin: 8px 0 0;
}
#ma-profile-form .ma-honeypot,
.ma-honeypot {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}
@media (max-width: 767px) {
    .ma-modal {
        padding: 0;
        align-items: stretch;
    }
    .ma-modal-card {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .ma-modal-bar {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
    .ma-form {
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
        max-width: none;
    }
    .ma-wizard-nav {
        flex-direction: column;
    }
    .ma-wizard-nav .ma-register,
    .ma-wizard-nav .ma-text-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    .ma-premium {
        padding: 16px 0 40px;
    }
    .ma-premium-head {
        padding: 0 8px;
    }
    .ma-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .ma-toolbar > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .ma-toolbar .ma-register,
    .ma-toolbar .ma-text-button {
        display: block;
        width: 100%;
        margin-top: 0;
        text-align: center;
    }
}

#ma-email-code {
    padding: 4px 16px 8px;
}
#ma-email-code h3 {
    margin: 0 0 8px;
    color: #0c1e4f;
}
#ma-email-code .ma-code {
    font-size: 28px;
    letter-spacing: 0.35em;
    text-align: center;
}
#ma-verify-code,
#ma-resend-code {
    display: block;
    width: 100%;
    margin-top: 10px;
}
