@font-face { font-family:"HDF IBM Plex Sans Arabic"; src:url("ibm-plex-sans-arabic-400.ttf") format("truetype"); font-display:swap; font-weight:400; }
@font-face { font-family:"HDF IBM Plex Sans Arabic"; src:url("ibm-plex-sans-arabic-600.ttf") format("truetype"); font-display:swap; font-weight:600 800; }

:root {
    --hdf-primary:#006948; --hdf-primary-hover:#00855d; --hdf-surface:#f3faf5;
    --hdf-card:#fff; --hdf-text:#171d19; --hdf-muted:#536159; --hdf-outline:#c4d2c8;
    --hdf-danger:#ba1a1a; --hdf-danger-bg:#ffdad6;
}

/* WordPress/Digits standalone login uses the same approved card without changing Digits auth. */
body.hdf-login-page { background:var(--hdf-surface)!important; }
body.hdf-login-page > .digits_ui { min-height:100vh!important; }
body.hdf-login-page .digits-form_page.hdf-page {
    align-items:center!important; background:var(--hdf-surface)!important; display:flex!important;
    justify-content:center!important; min-height:100vh!important; padding:24px 16px!important;
}
body.hdf-login-page .digits-form_container.hdf-container {
    align-items:center!important; background:transparent!important; display:flex!important;
    justify-content:center!important; min-height:0!important; width:100%!important;
}
body.hdf-login-page .digits-form_page.hdf-page > .digits-cancel {
    background-image:none!important; color:var(--hdf-primary)!important;
}
body.hdf-login-page .digits-form_page.hdf-page > .digits-cancel::before,
body.hdf-login-page .digits-form_page.hdf-page > .digits-cancel::after {
    background:currentColor!important; border-radius:2px!important; content:""!important;
    height:2px!important; left:4px!important; position:absolute!important; top:11px!important;
    width:16px!important;
}
body.hdf-login-page .digits-form_page.hdf-page > .digits-cancel::before { transform:rotate(45deg)!important; }
body.hdf-login-page .digits-form_page.hdf-page > .digits-cancel::after { transform:rotate(-45deg)!important; }

/* Digits 9 overlay stays an overlay; only its inner .dig-content becomes the card. */
.dig-box.hdf-overlay {
    background:rgba(20,32,26,.48)!important; box-sizing:border-box!important;
    padding:clamp(16px,5vh,48px) 16px!important; text-align:center!important;
}
.dig-box.hdf-overlay::before { display:none!important; }
.digits_login_form .dig-box.hdf-overlay > .digits-form_page > .digits-cancel {
    align-items:center!important; background:#fff!important; border:1px solid var(--hdf-outline)!important;
    border-radius:50%!important; box-shadow:0 4px 14px rgba(15,32,22,.14)!important;
    color:var(--hdf-text)!important; cursor:pointer!important; display:flex!important;
    font-size:0!important; height:38px!important; justify-content:center!important;
    left:max(30px,calc(50% - 192px))!important; opacity:1!important; padding:0!important; position:absolute!important;
    right:auto!important; top:18px!important; transform:none!important; margin:0!important;
    visibility:visible!important; width:38px!important;
    z-index:100!important;
}
.digits_login_form .dig-box.hdf-overlay > .digits-form_page > .digits-cancel::before,
.digits_login_form .dig-box.hdf-overlay > .digits-form_page > .digits-cancel::after {
    background:currentColor!important; border-radius:2px!important; content:""!important;
    height:2px!important; left:10px!important; position:absolute!important; top:17px!important;
    width:16px!important;
}
.digits_login_form .dig-box.hdf-overlay > .digits-form_page > .digits-cancel::before { transform:rotate(45deg)!important; }
.digits_login_form .dig-box.hdf-overlay > .digits-form_page > .digits-cancel::after { transform:rotate(-45deg)!important; }
.dig-box.hdf-overlay .digits-form_page.hdf-page,
.dig-box.hdf-overlay .digits-form_container.hdf-container {
    align-items:center!important; background:transparent!important; display:flex!important;
    height:auto!important; justify-content:center!important; max-height:none!important;
    min-height:0!important; padding:0!important; width:100%!important;
}
.hdf-scope,.hdf-scope * { box-sizing:border-box; font-family:"HDF IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important; }
.dig-box .dig-content.hdf-scope,.dig-box .digits_modal_box.hdf-scope,.hdf-scope.hdf-modal-surface {
    background:var(--hdf-card)!important; border:1px solid rgba(0,105,72,.16)!important;
    border-radius:20px!important; box-shadow:0 24px 60px rgba(15,32,22,.18)!important;
    color:var(--hdf-text)!important; direction:rtl!important; display:inline-block!important;
    height:auto!important; margin:0 auto!important; max-height:calc(100vh - 32px)!important;
    max-width:420px!important; min-height:0!important; overflow-x:hidden!important;
    overflow-y:auto!important; padding:32px!important; position:relative!important;
    text-align:right!important; transform:none!important; vertical-align:top!important;
    width:min(420px,calc(100vw - 32px))!important;
}

/* Neutralise fixed-height/dark One Click template internals. */
.hdf-scope .dig_ma-box,.hdf-scope .digits_login_form,.hdf-scope .digits_bx_cred_frm,
.hdf-scope .digits_bx_cred_frm_container,.hdf-scope .dig_bx_cnt_mdl,.hdf-scope .dig_ul_divd,
.hdf-scope .digloginpage,.hdf-scope .register,.hdf-scope .forgot,.hdf-scope .dark,
.hdf-scope .digits-dark-theme,.hdf-scope .digits-form_login,.hdf-scope .digits-form_body,
.hdf-scope .digits-form_body_wrapper,.hdf-scope .digits-form_tab_body {
    background:transparent!important; border:0!important; box-shadow:none!important;
    color:var(--hdf-text)!important; float:none!important; height:auto!important;
    left:auto!important; max-height:none!important; min-height:0!important;
    overflow:visible!important; padding:0!important; position:relative!important;
    top:auto!important; width:100%!important;
}
.hdf-scope .dig_ul_divd { display:block!important; }
.hdf-scope .dig_ul_left_side,.hdf-scope .dig-box-login-title,.hdf-scope .digits_bx_head,
.hdf-scope .dig_logof_desc,.hdf-scope .digor,.hdf-scope .dig_login_signup_bar,
.hdf-scope [class*="social"],
.hdf-scope .digits_login_remember_me,.hdf-scope .dig_login_rembe,
.hdf-scope input[type="password"],.hdf-scope input[type="password"] + * { display:none!important; }

/* Keep Digits' generated tab controls in the DOM so its native OTP transition can run. */
.hdf-scope .digits-form_tab-bar {
    height:0!important; margin:0!important; opacity:0!important; overflow:hidden!important;
    padding:0!important; pointer-events:none!important; position:relative!important; width:100%!important;
}
.hdf-scope .digits-form_tab_wrapper,.hdf-scope .digits-form_tab_container { width:100%!important; }
.hdf-scope .digits-form_tab_body.digits-tab_active {
    display:block!important; opacity:1!important; visibility:visible!important;
}

.hdf-scope .dig-cont-close,.hdf-scope .digits-cancel {
    align-items:center!important; background:transparent!important; border:0!important;
    box-shadow:none!important; color:#526057!important; display:flex!important;
    font-size:24px!important; height:36px!important; justify-content:center!important;
    line-height:1!important; min-height:36px!important; padding:0!important;
    position:absolute!important; right:auto!important; left:18px!important;
    top:16px!important; width:36px!important; z-index:30!important;
}

.hdf-header { margin:8px 0 28px; padding:0 28px; text-align:center; }
.hdf-title { color:var(--hdf-text)!important; font-size:24px!important; font-weight:700!important; line-height:1.5!important; margin:0 0 8px!important; }
.hdf-description { color:var(--hdf-muted)!important; font-size:15px!important; line-height:1.8!important; margin:0!important; }
.hdf-scope label,.hdf-field-label {
    color:var(--hdf-muted)!important; display:block!important; font-size:14px!important;
    font-weight:600!important; line-height:1.5!important; margin:0 0 8px!important;
    position:static!important; text-align:right!important; transform:none!important; width:auto!important;
}
.hdf-field,.hdf-scope .minput,.hdf-scope .dig_input_wrapper,.hdf-scope .digits_field_wrapper { margin:0 0 18px!important; }
.hdf-scope .minput_inner,.hdf-scope .digits-input-wrapper,.hdf-scope .digcon { margin:0!important; position:relative!important; }
.hdf-scope .digits-form_heading { display:none!important; }
.hdf-scope .digits-form_input_row { margin:0 0 18px!important; position:relative!important; }
.hdf-scope .digits-form_input { background:transparent!important; border:0!important; padding:0!important; position:relative!important; }
.hdf-scope .digits-mobile_wrapper > .digits-form_input:not(.digits-form_countrycode) { width:100%!important; }
.hdf-scope .digits-mobile_wrapper {
    align-items:center!important; background:var(--hdf-surface)!important;
    border:1px solid var(--hdf-outline)!important; border-radius:12px!important;
    display:flex!important; direction:ltr!important; flex-wrap:nowrap!important;
    height:56px!important; margin-top:30px!important; padding:0!important;
}
.hdf-scope .digits-mobile_wrapper::before {
    color:var(--hdf-muted)!important; content:"شماره موبایل"; direction:rtl!important;
    font-size:14px!important; font-weight:600!important; line-height:22px!important;
    position:absolute!important; right:0!important; text-align:right!important; top:-27px!important;
}

/* Country code is excluded: Digits positions it inside the phone input. */
.hdf-scope input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.countrycode),
.hdf-scope select,.hdf-scope textarea {
    background:var(--hdf-surface)!important; border:1px solid var(--hdf-outline)!important;
    border-radius:12px!important; box-shadow:none!important; color:var(--hdf-text)!important;
    font-size:16px!important; height:56px!important; line-height:1.5!important;
    margin:0!important; min-height:56px!important; outline:none!important;
    padding:0 16px!important; transition:border-color .2s,box-shadow .2s!important; width:100%!important;
}
.hdf-scope input.mobile_field { direction:ltr!important; text-align:left!important; }
.hdf-scope .digits-mobile_wrapper input.mobile_field,
.hdf-scope .digits-mobile_wrapper input:not(.countrycode) {
    background:transparent!important; border:0!important; border-radius:0!important;
    box-shadow:none!important; height:54px!important; margin:0!important;
    min-height:54px!important; padding:0 14px!important; width:100%!important;
}
.hdf-scope .countrycodecontainer {
    align-items:center!important; background:transparent!important; bottom:1px!important;
    display:flex!important; height:54px!important; left:1px!important; max-width:100px!important;
    padding:0 10px!important; position:absolute!important; top:auto!important;
    width:auto!important; z-index:10!important;
}
.hdf-scope input.countrycode {
    background:transparent!important; border:0!important; border-right:1px solid var(--hdf-outline)!important;
    border-radius:0!important; box-shadow:none!important; color:var(--hdf-text)!important;
    direction:ltr!important; font-size:14px!important; height:32px!important;
    line-height:32px!important; margin:0!important; min-height:32px!important;
    padding:0 8px!important; text-align:center!important; width:58px!important;
}
.hdf-scope .digits-form_countrycode.countrycodecontainer {
    align-items:center!important; align-self:stretch!important; background:transparent!important;
    border:0!important; border-radius:0!important; bottom:auto!important; display:flex!important;
    flex:0 0 auto!important; height:54px!important; left:auto!important; margin:0!important;
    max-width:none!important; order:0!important; padding:0 10px!important;
    position:static!important; top:auto!important; width:auto!important;
}
.hdf-scope .digits-field-country_flag { flex:0 0 auto!important; margin:0 0 0 4px!important; position:static!important; }
.hdf-scope input:focus,.hdf-scope select:focus,.hdf-scope textarea:focus { border-color:var(--hdf-primary)!important; box-shadow:0 0 0 3px rgba(0,105,72,.14)!important; }

.hdf-scope button,.hdf-scope input[type="submit"],.hdf-scope .dig_login_va,
.hdf-scope .registerbutton,.hdf-scope .transupbutton {
    align-items:center!important; background:var(--hdf-primary)!important; border:0!important;
    border-radius:12px!important; box-shadow:0 6px 18px rgba(0,105,72,.2)!important;
    color:#fff!important; cursor:pointer!important; display:flex!important; font-size:15px!important;
    font-weight:700!important; height:52px!important; justify-content:center!important;
    line-height:1!important; margin:8px 0 0!important; min-height:52px!important;
    padding:0 20px!important; text-transform:none!important; width:100%!important;
}
.hdf-scope button:hover,.hdf-scope input[type="submit"]:hover { background:var(--hdf-primary-hover)!important; }
.digits_login_form .dig-box .digits_modal_box.hdf-scope button.digits-form_submit-btn,
.digits_login_form .dig-box .digits_modal_box.hdf-scope button.digits-form_submit-btn:hover {
    background:var(--hdf-primary)!important; background-color:var(--hdf-primary)!important;
    color:#fff!important;
}
/* Digits prints its standalone theme inline after enqueued styles. Match its
 * specificity so wp-login/admin and their OTP/resend steps keep the approved UI. */
body.hdf-login-page .digits-form_page.hdf-page .digits_modal_box.hdf-scope button.digits-form_submit-btn,
body.hdf-login-page .digits-form_page.hdf-page .digits_modal_box.hdf-scope button.digits-form_submit-btn:hover,
body.hdf-login-page .digits-form_page.hdf-page .digits_modal_box.hdf-scope button.digits-form_submit-btn:focus {
    background:var(--hdf-primary)!important; background-color:var(--hdf-primary)!important;
    color:#fff!important;
}
.digits_modal_box.hdf-scope[data-hdf-step="phone"] .digits-form_submit-btn .digits-form_button-text,
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .digits-form_submit-btn .digits-form_button-text,
.digits_modal_box.hdf-scope[data-hdf-step="profile"] .digits-form_submit-btn .digits-form_button-text { font-size:0!important; }
.digits_modal_box.hdf-scope[data-hdf-step="phone"] .digits-form_submit-btn .digits-form_button-text::after { content:"ادامه"; font-size:15px; }
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .digits-form_submit-btn .digits-form_button-text::after { content:"تأیید"; font-size:15px; }
.digits_modal_box.hdf-scope[data-hdf-step="otp"].hdf-new-user .digits-form_submit-btn .digits-form_button-text::after { content:"ثبت و ورود"; }
.digits_modal_box.hdf-scope[data-hdf-step="profile"] .digits-form_submit-btn .digits-form_button-text::after { content:"ادامه"; font-size:15px; }
.hdf-scope .hdf-secondary-action,.hdf-scope .dig_resendotp,.hdf-scope .dig_edit_phone,.hdf-scope [class*="resend"] {
    background:transparent!important; border:1px solid var(--hdf-outline)!important;
    box-shadow:none!important; color:var(--hdf-primary)!important; margin-top:12px!important;
}
.hdf-scope .dig_error_message,.hdf-scope .digits-form_error,.hdf-scope [role="alert"],.hdf-scope .hdf-error {
    background:var(--hdf-danger-bg)!important; border:1px solid rgba(186,26,26,.3)!important;
    border-radius:10px!important; color:var(--hdf-danger)!important; font-size:14px!important;
    line-height:1.7!important; margin:0 0 16px!important; padding:10px 12px!important; text-align:right!important;
}
.hdf-scope .hdf-password-field { display:none!important; }
.hdf-scope .digits-form_footer {
    align-items:stretch!important; display:flex!important; flex-direction:column!important;
    gap:12px!important; margin:12px 0 0!important; padding:0!important; width:100%!important;
}
.hdf-scope .digits-form_footer:empty { display:none!important; }
.hdf-scope .digits-form_footer .digits-form_link,
.hdf-scope .digits-form_footer .digits-form_resend_otp,
.hdf-scope .digits-form_footer .digits-form_field_button {
    background:transparent!important; border:1px solid var(--hdf-outline)!important;
    border-radius:12px!important; box-shadow:none!important; color:var(--hdf-primary)!important;
    cursor:pointer!important; font-size:14px!important; font-weight:600!important;
    margin:0!important; min-height:48px!important; padding:10px 16px!important;
    text-align:center!important; width:100%!important;
}
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .hdf-edit-phone,
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .hdf-native-edit-phone {
    align-items:center!important; background:#fff!important; border:1px solid var(--hdf-outline)!important;
    border-radius:12px!important; box-shadow:none!important; color:var(--hdf-text)!important;
    cursor:pointer!important; display:flex!important; font-size:14px!important; font-weight:600!important;
    gap:8px!important; height:48px!important; justify-content:center!important; margin:12px 0 0!important;
    min-height:48px!important; padding:0 16px!important; position:relative!important; width:100%!important;
}
.digits_modal_box.hdf-scope:not([data-hdf-step="otp"]) > .hdf-edit-phone { display:none!important; }
.digits_modal_box.hdf-scope > .hdf-edit-phone[hidden] { display:none!important; }
.hdf-edit-phone svg {
    fill:none!important; height:20px!important; stroke:currentColor!important; stroke-linecap:round!important;
    stroke-linejoin:round!important; stroke-width:1.8!important; width:20px!important;
}
.hdf-edit-phone:hover,.hdf-native-edit-phone:hover { background:var(--hdf-surface)!important; color:var(--hdf-primary)!important; }
.hdf-edit-phone:focus-visible,.hdf-native-edit-phone:focus-visible { outline:3px solid rgba(0,105,72,.2)!important; outline-offset:2px!important; }
.hdf-scope .digits_otp_input-field,.hdf-scope input.otp_input,
.hdf-scope input[autocomplete="one-time-code"] {
    direction:ltr!important; font-size:22px!important; font-variant-numeric:tabular-nums!important;
    letter-spacing:.35em!important; text-align:center!important;
}
.dig_popmessage {
    left:50%!important; max-width:calc(100vw - 32px)!important; right:auto!important;
    text-align:right!important; transform:translateX(-50%)!important; z-index:10000001!important;
}
.hdf-scope.hdf-loading { cursor:progress!important; }
.hdf-scope.hdf-loading input[type="submit"] { opacity:.65!important; pointer-events:none!important; }
.hdf-scope .hdf-otp-field { direction:ltr!important; margin-inline:auto!important; max-width:540px!important; position:relative!important; width:100%!important; }
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .digits-form_input_row { margin-bottom:4px!important; }
.digits_modal_box.hdf-scope[data-hdf-step="otp"] .hdf-otp-field { margin-bottom:0!important; }
.hdf-scope .hdf-otp-visual {
    cursor:text; direction:ltr; display:grid; gap:10px; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%;
}
.hdf-scope .hdf-otp-box {
    align-items:center; background:#fbfdfb; border:1.5px solid #8d9a92; border-radius:10px; color:var(--hdf-text);
    display:flex; font-size:25px; font-variant-numeric:tabular-nums; font-weight:600; height:62px; justify-content:center;
    line-height:1; transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.hdf-scope .hdf-otp-box.is-filled { background:#f5faf7; border-color:#708078; }
.hdf-scope .hdf-otp-box.is-active,.hdf-scope .hdf-otp-visual.is-focused .hdf-otp-box.is-active {
    border-color:var(--hdf-primary); box-shadow:0 0 0 3px rgba(0,105,72,.14);
}
.hdf-scope input.hdf-native-otp-input {
    background:transparent!important; border:0!important; box-shadow:none!important; caret-color:transparent!important; color:transparent!important;
    direction:ltr!important; height:100%!important; inset:0!important; letter-spacing:0!important; margin:0!important; opacity:.01!important;
    padding:0!important; position:absolute!important; text-align:left!important; width:100%!important; z-index:3!important;
}
.hdf-scope.hdf-resending { cursor:progress!important; }
.hdf-scope.hdf-resending [class*="resend"],.hdf-scope.hdf-resending .dig_resendotp { opacity:.65!important; pointer-events:none!important; }
.hdf-scope .hdf-resend-disabled,.hdf-scope [class*="resend"][aria-disabled="true"] {
    cursor:not-allowed!important; opacity:.48!important; pointer-events:none!important;
}
.hdf-awaiting-otp {
    min-height:240px!important; overflow:hidden!important; position:relative!important;
}
.hdf-awaiting-otp .hdf-scope { visibility:hidden!important; }
.hdf-otp-pending {
    background:var(--hdf-card)!important; border:1px solid rgba(0,105,72,.16)!important;
    border-radius:20px!important; box-shadow:0 24px 60px rgba(15,32,22,.18)!important;
    color:var(--hdf-text)!important; direction:rtl!important; left:50%!important;
    max-height:calc(100vh - 32px)!important; max-width:420px!important; overflow-y:auto!important;
    padding:40px 32px 32px!important; position:fixed!important; text-align:center!important;
    top:50%!important; transform:translate(-50%,-50%)!important; width:min(420px,calc(100vw - 32px))!important;
    z-index:99!important;
}
.hdf-otp-pending h2 { color:var(--hdf-text)!important; font-size:24px!important; font-weight:700!important; line-height:1.5!important; margin:0 0 8px!important; }
.hdf-otp-pending p { color:var(--hdf-muted)!important; font-size:15px!important; line-height:1.8!important; margin:0 0 28px!important; }
.hdf-otp-pending-boxes { direction:ltr!important; display:grid!important; gap:10px!important; grid-template-columns:repeat(6,minmax(0,1fr))!important; }
.hdf-otp-pending-boxes span { background:#fbfdfb!important; border:1.5px solid #8d9a92!important; border-radius:10px!important; display:block!important; height:62px!important; }
.hdf-otp-pending button { align-items:center!important; background:var(--hdf-primary)!important; border:0!important; border-radius:12px!important; color:#fff!important; cursor:wait!important; display:flex!important; font-family:"HDF IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important; font-size:15px!important; font-weight:700!important; height:52px!important; justify-content:center!important; margin:24px 0 0!important; opacity:.68!important; width:100%!important; }
.hdf-otp-pending button.hdf-otp-pending-secondary { background:transparent!important; border:1px solid var(--hdf-outline)!important; color:var(--hdf-primary)!important; margin-top:12px!important; }
.hdf-scope.hdf-auto-advance { min-height:240px!important; overflow:hidden!important; position:relative!important; }
.hdf-scope.hdf-auto-advance > * { visibility:hidden!important; }
.hdf-scope.hdf-auto-advance::after {
    color:var(--hdf-primary); content:"در حال ارسال کد تأیید…"; display:grid; font-size:16px; font-weight:600;
    inset:0; place-items:center; position:absolute; visibility:visible!important;
}
.hdf-progress { direction:ltr; display:flex; gap:8px; margin:10px 0 24px; }
.hdf-progress span { background:#68dba9; border-radius:99px; height:4px; width:33.333%; }
.hdf-progress span:nth-child(-n+2) { background:var(--hdf-primary); }
.hdf-optional { color:#6d7a72; font-size:12px; font-weight:400; margin-inline-start:4px; }

/* The only profile card is the pre-OTP OneClick requirement, styled to match the final design. */
.hdf-scope.hdf-pre-otp-profile .hdf-header { margin-bottom:24px!important; }
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field { margin-bottom:16px!important; position:relative!important; }
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field .hdf-field-label {
    color:var(--hdf-text)!important; display:block!important; font-size:14px!important;
    font-weight:600!important; line-height:1.6!important; margin:0 0 7px!important; text-align:right!important;
}
.hdf-scope.hdf-pre-otp-profile .hdf-native-lastname-source { display:none!important; }
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field .hdf-profile-input-wrap {
    align-items:center!important; background:var(--hdf-surface)!important; border:1px solid var(--hdf-outline)!important;
    border-radius:12px!important; display:flex!important; height:56px!important; padding:0 14px!important; position:relative!important;
}
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field .hdf-profile-input-wrap:focus-within { border-color:var(--hdf-primary)!important; box-shadow:0 0 0 3px rgba(0,105,72,.14)!important; }
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field .hdf-profile-input-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.countrycode) {
    background:transparent!important; border:0!important; box-shadow:none!important; color:var(--hdf-text)!important;
    direction:rtl!important; font-size:15px!important; height:54px!important; margin:0!important; min-width:0!important;
    outline:0!important; padding:0!important; text-align:right!important; width:100%!important;
}
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field input[type="email"] { direction:ltr!important; text-align:left!important; }
.hdf-scope.hdf-pre-otp-profile .hdf-pending-field svg {
    fill:none!important; flex:0 0 auto!important; height:20px!important; margin-left:10px!important; stroke:#8aa096!important;
    stroke-linecap:round!important; stroke-linejoin:round!important; stroke-width:1.7!important; width:20px!important;
}
.hdf-profile-save-error {
    background:var(--hdf-danger-bg); border:1px solid rgba(186,26,26,.3); border-radius:10px; bottom:20px; color:var(--hdf-danger);
    direction:rtl; font:600 14px/1.7 "HDF IBM Plex Sans Arabic",Tahoma,Arial,sans-serif; left:16px; max-width:calc(100vw - 32px);
    padding:10px 14px; position:fixed; right:16px; text-align:center; z-index:10000001;
}

/* Profile completion is shown only after Digits has verified OTP and logged in a new user. */
.hdf-profile-overlay,.hdf-profile-overlay * { box-sizing:border-box; font-family:"HDF IBM Plex Sans Arabic",Tahoma,Arial,sans-serif; }
.hdf-profile-overlay {
    align-items:center; background:rgba(20,32,26,.48); display:flex; inset:0; justify-content:center;
    overflow:auto; padding:24px 16px; position:fixed; z-index:10000000;
}
.hdf-profile-card {
    background:#fff; border:1px solid rgba(0,105,72,.16); border-radius:20px;
    box-shadow:0 24px 60px rgba(15,32,22,.18); color:var(--hdf-text); direction:rtl;
    max-width:420px; padding:28px; width:100%;
}
.hdf-profile-card h2 { color:var(--hdf-text); font-size:24px; font-weight:700; line-height:1.5; margin:0; text-align:center; }
.hdf-profile-intro { color:var(--hdf-muted); font-size:14px; line-height:1.8; margin:6px 0 24px; text-align:center; }
.hdf-profile-field { display:block; margin:0 0 16px; }
.hdf-profile-field > span:first-child { color:var(--hdf-text); display:block; font-size:14px; font-weight:600; line-height:1.6; margin:0 0 7px; }
.hdf-profile-field b { color:var(--hdf-danger); font-weight:600; }
.hdf-profile-field small { color:#6d7a72; font-size:12px; font-weight:400; }
.hdf-profile-input-wrap {
    align-items:center; background:var(--hdf-surface); border:1px solid var(--hdf-outline);
    border-radius:12px; display:flex; height:56px; padding:0 14px; transition:border-color .2s,box-shadow .2s;
}
.hdf-profile-input-wrap:focus-within { border-color:var(--hdf-primary); box-shadow:0 0 0 3px rgba(0,105,72,.14); }
.hdf-profile-input-wrap svg {
    fill:none; flex:0 0 auto; height:20px; margin-left:10px; stroke:#8aa096;
    stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; width:20px;
}
.hdf-profile-input-wrap input {
    appearance:none; background:transparent; border:0; box-shadow:none; color:var(--hdf-text);
    direction:rtl; font-size:15px; height:54px; margin:0; min-width:0; outline:0; padding:0; width:100%;
}
.hdf-profile-input-wrap input[type="email"] { direction:ltr; text-align:left; }
.hdf-profile-submit {
    align-items:center; background:var(--hdf-primary); border:0; border-radius:12px;
    box-shadow:0 6px 18px rgba(0,105,72,.2); color:#fff; cursor:pointer; display:flex;
    font-size:15px; font-weight:700; gap:10px; height:52px; justify-content:center;
    margin:8px 0 0; padding:0 20px; width:100%;
}
.hdf-profile-submit:hover { background:var(--hdf-primary-hover); }
.hdf-profile-submit:focus-visible { outline:3px solid rgba(0,105,72,.24); outline-offset:3px; }
.hdf-profile-submit:disabled { cursor:progress; opacity:.7; }
.hdf-profile-spinner { animation:hdf-spin .8s linear infinite; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; display:none; height:18px; width:18px; }
.hdf-profile-form.is-loading .hdf-profile-spinner { display:block; }
.hdf-profile-error { background:var(--hdf-danger-bg); border:1px solid rgba(186,26,26,.3); border-radius:10px; color:var(--hdf-danger); font-size:13px; line-height:1.7; margin:0 0 14px; padding:9px 11px; }
.hdf-profile-error[hidden] { display:none; }
@keyframes hdf-spin { to { transform:rotate(360deg); } }

@media (max-width:480px) {
    .dig-box.hdf-overlay { padding:12px!important; }
    .dig-box .dig-content.hdf-scope,.dig-box .digits_modal_box.hdf-scope,.hdf-scope.hdf-modal-surface {
        border-radius:16px!important; max-height:calc(100vh - 24px)!important;
        max-width:100%!important; padding:26px 20px!important; width:calc(100vw - 24px)!important;
    }
    .hdf-title { font-size:22px!important; }
    .hdf-profile-overlay { align-items:flex-start; padding:12px; }
    .hdf-profile-card { border-radius:16px; margin:auto 0; padding:24px 20px; }
    .hdf-profile-card h2 { font-size:22px; }
    .hdf-scope .hdf-otp-visual { gap:6px; }
    .hdf-scope .hdf-otp-box { border-radius:8px; font-size:21px; height:52px; }
    .hdf-otp-pending { border-radius:16px!important; padding:32px 20px 26px!important; width:calc(100vw - 24px)!important; }
    .hdf-otp-pending-boxes { gap:6px!important; }
    .hdf-otp-pending-boxes span { border-radius:8px!important; height:52px!important; }
}
@media (prefers-reduced-motion:reduce) {
    .hdf-scope *,.hdf-scope *::before,.hdf-scope *::after { transition-duration:.01ms!important; }
}
