.reg-page {
    max-width: 760px;
    margin: 0.5rem auto 2.5rem;
    padding: 0 1rem;
}

.reg-page--login {
    padding-top: 3.25rem;
}

.reg-page--wide {
    max-width: 1040px;
}

.reg-page--account {
    padding-top: 1.35rem;
}

.reg-sheet--plain {
    margin-top: 0.35rem;
    padding-top: 1.65rem;
}

.reg-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .reg-account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.reg-passes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
}

.reg-pass {
    flex: 1 1 200px;
    max-width: 280px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e4dece;
    border-radius: 16px;
    background: #fff;
}

.reg-pass.is-active {
    border-color: rgba(20, 92, 50, 0.35);
    background: #f3f8ea;
}

.account-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0 0 1.35rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e4dece;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.account-wallet:hover {
    color: inherit;
    text-decoration: none;
    border-color: rgba(20, 92, 50, 0.35);
}

.account-wallet__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.account-wallet__main > i {
    margin-top: 0.15rem;
    color: #145c32;
}

.account-wallet strong {
    display: block;
    color: #1c2a1a;
}

.account-wallet small {
    display: block;
    margin-top: 0.15rem;
    color: #6d7864;
    font-size: 0.78rem;
    line-height: 1.35;
}

.account-wallet__bal {
    flex-shrink: 0;
    color: #145c32;
    font-weight: 700;
    white-space: nowrap;
}

.reg-page__progress.plan-picker-wrapper {
    max-width: none;
    margin: 0.25rem auto 0.5rem;
    padding: 0;
}

.reg-page__progress .plan-progress {
    margin-bottom: 0.35rem;
}

.reg-sheet {
    position: relative;
    margin-top: 2.6rem;
    padding: 3.15rem 1.75rem 1.5rem;
    border-radius: 28px;
    background: #fbf7ef;
    border: 1px solid rgba(138, 171, 62, 0.22);
    box-shadow: 0 16px 40px rgba(26, 34, 16, 0.08);
}

.reg-sheet__logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -54%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    border: 6px solid #fbf7ef;
    box-shadow: 0 8px 18px rgba(26, 34, 16, 0.1);
}

.reg-sheet__logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.reg-sheet h1 {
    margin: 0;
    text-align: center;
    font-family: Palatino, "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.85rem, 5vw, 2.15rem);
    font-weight: 650;
    color: #1a2210;
    letter-spacing: -0.02em;
}

.reg-sheet__lead {
    margin: 0.2rem 0 0.15rem;
    text-align: center;
    color: #3e4b36;
    font-size: 1rem;
}

.reg-sheet__lead a {
    color: #145c32;
    font-weight: 700;
    text-decoration: none;
}

.reg-sheet__lead a:hover {
    text-decoration: underline;
}

.reg-sheet__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.55rem 0 1.15rem;
}

.reg-sheet__rule::before,
.reg-sheet__rule::after {
    content: "";
    width: 4.5rem;
    height: 1px;
    background: #d7c48a;
}

.reg-sheet__rule span {
    width: 7px;
    height: 7px;
    margin: 0 0.45rem;
    background: #c4a35a;
    transform: rotate(45deg);
}

.reg-block { margin-bottom: 1.15rem; }
.reg-block--last { margin-bottom: 0; }

.reg-block h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1c2a1a;
}

.reg-label {
    display: block;
    margin: 0.15rem 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: #1c2a1a;
}

.reg-note {
    margin: -0.15rem 0 0.85rem;
    font-size: 0.78rem;
    color: #6d7864;
}

.wallet-balance {
    font-family: Palatino, "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    font-weight: 650;
    color: #145c32;
}

.wallet-activity {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.wallet-activity li {
    display: grid;
    grid-template-columns: minmax(8.5rem, 11.5rem) minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-top: 1px solid #e4dece;
    color: #1c2a1a;
    font-size: 0.9rem;
}

.wallet-activity time {
    color: #6d7864;
    font-size: 0.82rem;
}

.wallet-activity .is-in,
.wallet-activity .is-out {
    font-weight: 700;
    white-space: nowrap;
}

.wallet-activity .is-in { color: #145c32; }
.wallet-activity .is-out { color: #8a3b32; }

@media (max-width: 640px) {
    .wallet-activity li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wallet-activity time {
        grid-column: 1 / -1;
    }
}

.reg-block h2 span {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #145c32;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reg-field {
    position: relative;
    margin-bottom: 0.65rem;
}

.reg-field > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8a72;
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 2;
}

.reg-sheet .form-control,
.reg-sheet .form-select {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #e4dece;
    background-color: #fff;
    color: #1a2210;
    box-shadow: none;
}

.reg-field .form-control {
    padding-left: 2.55rem;
}

.reg-field--secret .form-control {
    padding-right: 2.7rem;
}

.reg-sheet .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233f5224' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 16px 12px;
    padding-right: 2.6rem;
    cursor: pointer;
}

.reg-sheet .form-control:focus,
.reg-sheet .form-select:focus {
    border-color: #8aab3e;
    box-shadow: 0 0 0 3px rgba(138, 171, 62, 0.22);
    background-color: #fff;
    color: #1a2210;
}

.reg-sheet .mn-country-picker-dd--field .mn-country-picker-dd__btn {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #e4dece;
    background: #fff;
    color: #1a2210;
    padding: 0.45rem 2rem 0.45rem 0.85rem;
    box-shadow: none;
}

.reg-sheet .mn-country-picker-dd--field .mn-country-picker-dd__btn:hover,
.reg-sheet .mn-country-picker-dd--field .mn-country-picker-dd__btn:focus-visible,
.reg-sheet .mn-country-picker-dd--field.is-open .mn-country-picker-dd__btn {
    border-color: #8aab3e;
    box-shadow: 0 0 0 3px rgba(138, 171, 62, 0.22);
}

.reg-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 0.65rem;
    margin-bottom: 0.15rem;
}

.reg-eye {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7d8a72;
}

.reg-eye:hover,
.reg-eye:focus-visible {
    color: #145c32;
    outline: none;
}

.reg-hint {
    margin: -0.15rem 0 0;
    font-size: 0.78rem;
    color: #6d7864;
}

.pwd-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "caption pill" "track track";
    gap: 0.3rem 0.6rem;
    align-items: center;
    margin: -0.15rem 0 0.7rem;
}

.pwd-meter__caption {
    grid-area: caption;
    font-size: 0.82rem;
    color: #4d5846;
}

.pwd-meter__track {
    grid-area: track;
    height: 8px;
    border-radius: 999px;
    background: #e7e1d4;
    overflow: hidden;
}

.pwd-meter__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #c4b8a8;
    transition: width 0.15s ease, background-color 0.15s ease;
}

.pwd-meter__label {
    grid-area: pill;
    justify-self: end;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: #e7f3d4;
    color: #145c32;
    font-size: 0.75rem;
    font-weight: 700;
}

.pwd-meter.is-weak .pwd-meter__fill { background: #c45c26; }
.pwd-meter.is-weak .pwd-meter__label { background: #fde8dc; color: #9a3d12; }
.pwd-meter.is-good .pwd-meter__fill { background: #8aab3e; }
.pwd-meter.is-good .pwd-meter__label { background: #e7f3d4; color: #145c32; }
.pwd-meter.is-strong .pwd-meter__fill { background: #145c32; }
.pwd-meter.is-strong .pwd-meter__label { background: #145c32; color: #fff; }

.pwd-rules {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin: 0.15rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: #eef6df;
    font-size: 0.8rem;
    color: #5c6754;
}

.pwd-rules li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pwd-rules li::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    border: 1.5px solid #b7c4a4;
    background: #fff;
    flex-shrink: 0;
}

.pwd-rules li.is-met {
    color: #145c32;
    font-weight: 650;
}

.pwd-rules li.is-met::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #8aab3e;
    background: #dff0c4;
    color: #145c32;
    font-size: 0.62rem;
    line-height: 1;
}

.reg-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.35rem 0 0.85rem;
    font-size: 0.92rem;
    color: #2c3628;
}

.reg-terms .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    border-color: #b7c4a4;
    accent-color: #145c32;
}

.reg-terms a {
    color: #145c32;
    font-weight: 700;
}

.reg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 52px;
    margin-top: 0.35rem;
    border: 1px solid #6d8a34;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--mn-olive-hover, #9abb4f), var(--mn-olive, #8aab3e));
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

.reg-submit:hover:not(:disabled),
.reg-submit:focus-visible:not(:disabled) {
    background: linear-gradient(to bottom, #a9c85a, var(--mn-olive-hover, #9abb4f));
    color: #1a1a1a;
    outline: none;
}

.reg-submit:disabled {
    opacity: 0.55;
    box-shadow: none;
    cursor: not-allowed;
}

.reg-login {
    margin: 0.95rem 0 0;
    text-align: center;
    color: #5c6754;
    font-size: 0.92rem;
}

.reg-login a,
.reg-mosque a {
    color: #145c32;
    font-weight: 700;
    text-decoration: none;
}

.reg-login a:hover,
.reg-mosque a:hover {
    text-decoration: underline;
}

.reg-mosque {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 0.82rem;
}

html.mn-night .reg-sheet {
    background: rgba(16, 22, 36, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e8edf5;
}

html.mn-night .reg-pass,
html.mn-night .account-wallet {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

html.mn-night .account-wallet strong,
html.mn-night .account-wallet__bal {
    color: #f3f6fb;
}

html.mn-night .account-wallet small {
    color: #c5d0c0;
}

html.mn-night .reg-pass.is-active {
    background: rgba(138, 171, 62, 0.12);
    border-color: rgba(138, 171, 62, 0.4);
}

html.mn-night .reg-sheet__logo {
    background: #101624;
    border-color: rgba(16, 22, 36, 0.72);
}

html.mn-night .reg-sheet h1,
html.mn-night .reg-block h2,
html.mn-night .reg-terms,
html.mn-night .reg-label,
html.mn-night .pwd-meter__caption {
    color: #f3f6fb;
}

html.mn-night .reg-note,
html.mn-night .wallet-activity time {
    color: #c5d0c0;
}

html.mn-night .wallet-balance,
html.mn-night .wallet-activity .is-in {
    color: #d7e7b8;
}

html.mn-night .wallet-activity li {
    color: #f3f6fb;
    border-top-color: rgba(255, 255, 255, 0.12);
}

html.mn-night .wallet-activity .is-out {
    color: #f0b4aa;
}

html.mn-night .reg-sheet__lead,
html.mn-night .reg-hint,
html.mn-night .reg-login {
    color: #c5d0c0;
}

html.mn-night .reg-sheet .form-control,
html.mn-night .reg-sheet .form-select,
html.mn-night .reg-sheet .mn-country-picker-dd--field .mn-country-picker-dd__btn {
    background-color: #141b2c;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e8edf5;
}

html.mn-night .reg-sheet .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d5e4a8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

html.mn-night .reg-sheet .form-control:focus,
html.mn-night .reg-sheet .mn-country-picker-dd--field .mn-country-picker-dd__btn:focus-visible,
html.mn-night .reg-sheet .mn-country-picker-dd--field.is-open .mn-country-picker-dd__btn {
    background: #141b2c;
    color: #e8edf5;
    border-color: #8aab3e;
}

html.mn-night .pwd-rules {
    background: rgba(138, 171, 62, 0.16);
    color: #d5e4a8;
}

html.mn-night .pwd-rules li.is-met {
    color: #d5e4a8;
}

html.mn-night .pwd-meter__track {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 420px) {
    .reg-split {
        grid-template-columns: 1fr;
    }
}

.reg-page .reg-sheet > h1 {
    font-style: normal;
}

.reg-sheet .form-label,
.reg-sheet .form-check-label {
    color: #1c2a1a;
    font-weight: 650;
}

.reg-sheet h5,
.reg-sheet h6,
.reg-sheet .card-header {
    color: #1c2a1a;
}

.reg-sheet h5.border-bottom,
.reg-sheet h6.border-bottom,
.reg-sheet .card-header {
    border-bottom-color: rgba(196, 163, 90, 0.55) !important;
}

.reg-sheet .card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.reg-sheet .card-header,
.reg-sheet .card-body {
    background: transparent;
}

.reg-sheet .btn-primary:not(.btn-sm),
.reg-sheet .btn-success:not(.btn-sm) {
    border-radius: 999px;
    min-height: 48px;
    padding: 0.55rem 1.35rem;
    font-weight: 700;
}

.reg-sheet .btn-outline-secondary {
    border-radius: 999px;
    font-weight: 650;
}

html.mn-night .reg-sheet .form-label,
html.mn-night .reg-sheet .form-check-label,
html.mn-night .reg-sheet h5,
html.mn-night .reg-sheet h6,
html.mn-night .reg-sheet .card-header {
    color: #f3f6fb;
}

/* Message-only sheet (for example "Check your inbox" after registration) */
.reg-sheet--message {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.reg-message__icon {
    width: 64px;
    height: 64px;
    margin: 0.25rem auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(138, 171, 62, 0.16);
    color: #145c32;
    font-size: 1.6rem;
}

.reg-message__text {
    margin: 0 0 0.85rem;
    color: #2f3a28;
    font-size: 1rem;
    line-height: 1.55;
}

.reg-message__email {
    color: #145c32;
    word-break: break-all;
}

a.reg-submit {
    text-decoration: none;
}

html.mn-night .reg-message__text {
    color: #e8edf5;
}

html.mn-night .reg-message__email {
    color: #b9d77a;
}

html.mn-night .reg-message__icon {
    background: rgba(138, 171, 62, 0.22);
    color: #b9d77a;
}
