.theme-otp-auth {
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
}

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

.theme-otp-panel {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 18px;
    padding: 12px 0;
    color: #20242a;
}

.theme-otp-panel.is-hidden,
.theme-otp-step {
    display: none;
}

.theme-otp-step.is-active {
    display: block;
}

.theme-otp-title {
    display: table;
    margin: 0 0 26px 0;
    color: #22a9f5;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    border-bottom: 2px solid #22a9f5;
}

.theme-otp-form {
    display: grid;
    gap: 18px;
    margin: 0;
}

.theme-otp-form input {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f6f6f7;
    color: #252a31;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 18px;
    outline: none;
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.theme-otp-form input::placeholder {
    color: #b9bcc2;
}

.theme-otp-form input:focus {
    background: #ffffff;
    border-color: #35b7f6;
    box-shadow: 0 0 0 4px rgba(53, 183, 246, .12);
}

.theme-otp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #45bbf4 0%, #35aeee 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 20px;
    box-shadow: none;
    transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.theme-otp-button:hover,
.theme-otp-button:focus {
    color: #ffffff;
    filter: brightness(.98);
    transform: translateY(-1px);
}

.theme-otp-button:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.theme-otp-switch {
    margin: 34px 0 0;
    text-align: center;
    color: #b4b4b7;
    font-size: 15px;
    font-weight: 500;
}

.theme-otp-switch a {
    color: #60646c;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 0;
}

.theme-otp-switch a:hover,
.theme-otp-switch a:focus {
    color: #22a9f5;
}

.theme-otp-hint {
    margin: -12px 0 18px;
    color: #8c919b;
    font-size: 13px;
    line-height: 1.9;
}

.theme-otp-back {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 0;
    background: transparent;
    color: #8b9098;
    cursor: pointer;
    padding: 0;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
}

.theme-otp-back:hover,
.theme-otp-back:focus {
    color: #22a9f5;
}

.theme-otp-message {
    display: none;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.8;
}

.theme-otp-message.is-error,
.theme-otp-message.is-success {
    display: block;
}

.theme-otp-message.is-error {
    background: #fff2f2;
    color: #c24141;
    border: 1px solid #ffd1d1;
}

.theme-otp-message.is-success {
    background: #f0fbff;
    color: #1883bd;
    border: 1px solid #c7edff;
}

.theme-otp-auth-single .theme-otp-panel,
.theme-otp-auth-combined .theme-otp-panel {
    min-height: 0;
}

.theme-otp-auth-logged-in .theme-otp-panel {
    background: #ffffff;
    padding: 20px;
}

@media (max-width: 480px) {
    .theme-otp-auth {
        max-width: 100%;
    }

    .theme-otp-title {
        font-size: 16px;
    }

    .theme-otp-form input,
    .theme-otp-button {
        min-height: 50px;
    }
}

.theme-otp-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #22a9f5;
    cursor: pointer;
    padding: 0;
    margin: -6px 0 0;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 169, 245, .35);
}

.theme-otp-link-button:hover,
.theme-otp-link-button:focus {
    color: #128ed3;
    border-bottom-color: #128ed3;
    outline: none;
}

.theme-otp-link-button:disabled {
    cursor: wait;
    opacity: .65;
}

/* v5 UI refinements */
.theme-otp-form input,
.theme-otp-form select,
.theme-otp-select {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #edf0f3 !important;
}

.theme-otp-form input::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.theme-otp-form select,
.theme-otp-select {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid #edf0f3;
    border-radius: 9px;
    font-size: 14px;
    padding: 0 18px;
    outline: none;
    box-shadow: none;
}

.theme-otp-form select:focus,
.theme-otp-select:focus {
    background: #ffffff;
    border-color: #35b7f6 !important;
    box-shadow: 0 0 0 4px rgba(53, 183, 246, .12);
}

.theme-otp-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -6px;
}

.theme-otp-secondary-actions .theme-otp-link-button {
    margin: 0;
}

.theme-otp-timer {
    min-height: 22px;
    color: #8c919b;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
    margin-top: -6px;
}

.theme-otp-resend-button {
    margin: -8px auto 0;
}

.theme-otp-link-button.is-disabled,
.theme-otp-link-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.theme-otp-reset-panel .theme-otp-back[data-theme-otp-show],
.theme-otp-reset-panel .theme-otp-back[data-theme-otp-show]:hover {
    text-decoration: none;
}

@media (max-width: 480px) {
    .theme-otp-secondary-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v7 field labels and RTL placeholders */
.theme-otp-input-group {
    display: grid;
    gap: 8px;
}

.theme-otp-input-label {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.theme-otp-auth .theme-otp-form input,
.theme-otp-auth .theme-otp-form select,
.theme-otp-auth .theme-otp-select {
    direction: rtl;
    text-align: right;
}

.theme-otp-auth .theme-otp-form input::placeholder {
    direction: rtl;
    text-align: right;
}

.theme-otp-auth input[type="tel"],
.theme-otp-auth input[inputmode="tel"],
.theme-otp-auth input[inputmode="numeric"] {
    direction: ltr;
    text-align: right;
}

.theme-otp-button:disabled,
.theme-otp-link-button:disabled {
    cursor: not-allowed !important;
}

/* v8 field direction */
.theme-otp-form input,
.theme-otp-form select,
.theme-otp-select {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
}

.theme-otp-form input::placeholder {
    direction: ltr !important;
    text-align: left !important;
}

.theme-otp-input-label {
    direction: rtl;
    text-align: right;
}

/* v25 mobile edge spacing */
.theme-otp-auth {
    padding-left: 2px;
    padding-right: 2px;
}


/* v26 verified mobile notice */
.theme-otp-verified-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #118a3b;
    font-weight: 800;
}

.theme-otp-verified-note strong {
    font-weight: 800;
}

.theme-otp-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #15a34a;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
}

/* v35 purchase verification */
.theme-otp-kyc-wrapper .theme-otp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}
.theme-otp-kyc-form .theme-otp-label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 700;
}
.theme-otp-kyc-form textarea,
.theme-otp-kyc-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}
.theme-otp-kyc-status {
    margin: 12px 0 16px;
}
.theme-otp-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    padding: 10px 12px;
    border-radius: 12px;
}
.theme-otp-alert {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 12px;
}

/* v37 KYC multi-row form */
.theme-otp-kyc-form {
    gap: 18px;
}
.theme-otp-kyc-rows {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.theme-otp-kyc-document-row {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}
.theme-otp-kyc-document-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.theme-otp-kyc-remove-row,
.theme-otp-kyc-add-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0ea;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}
.theme-otp-kyc-add-row {
    margin-top: 4px;
}
.theme-otp-kyc-document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr);
    gap: 20px;
    align-items: start;
}
.theme-otp-kyc-document-fields,
.theme-otp-kyc-document-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.theme-otp-kyc-input-field .theme-otp-label span {
    color: #d63638;
}
.theme-otp-birth-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 8px;
}
.theme-otp-kyc-upload-box {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #1f2937;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    padding: 20px;
}
.theme-otp-kyc-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.theme-otp-kyc-upload-box span {
    font-weight: 700;
}
.theme-otp-kyc-upload-box small,
.theme-otp-kyc-row-help {
    color: #64748b;
    font-size: 12px;
}
@media (max-width: 760px) {
    .theme-otp-kyc-document-grid {
        grid-template-columns: 1fr;
    }
}

/* v38 KYC wording and remove button */
.theme-otp-kyc-remove-row {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    font-weight: 800;
}
.theme-otp-kyc-remove-row:hover,
.theme-otp-kyc-remove-row:focus {
    border-color: #f87171 !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
}
.theme-otp-birth-date-row input::placeholder {
    color: #9ca3af !important;
}

/* v39 KYC editable state and existing files */
.theme-otp-kyc-current-file {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.theme-otp-kyc-current-file img {
    width: 120px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.theme-otp-kyc-readonly input,
.theme-otp-kyc-readonly textarea,
.theme-otp-kyc-readonly select {
    background: #f8fafc;
    color: #475569;
}

/* v40 KYC row-level review refinements */
.theme-otp-kyc-document-head {
    gap: 12px;
}
.theme-otp-kyc-document-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-otp-kyc-row-note {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-size: 13px;
}
.theme-otp-kyc-document-row.is-readonly {
    background: #f8fafc;
}
.theme-otp-kyc-document-row.is-readonly input,
.theme-otp-kyc-document-row.is-readonly select,
.theme-otp-kyc-document-row.is-readonly textarea {
    background: #f1f5f9;
    cursor: not-allowed;
}
.theme-otp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.theme-otp-badge-success { background: #dcfce7; color: #166534; }
.theme-otp-badge-warning { background: #fef3c7; color: #92400e; }
.theme-otp-badge-danger { background: #fee2e2; color: #991b1b; }

/* v41: KYC secure files and approved rows */
.theme-otp-kyc-document-row.is-readonly input,
.theme-otp-kyc-document-row.is-readonly textarea,
.theme-otp-kyc-document-row.is-readonly select {
    font-weight: 400;
    color: #111827;
}
.theme-otp-kyc-current-file a {
    display: none;
}
.theme-otp-kyc-current-file img {
    cursor: zoom-in;
}

/* v42: approved KYC values are readable but previews are not exposed as links */
.theme-otp-kyc-current-file img {
    cursor: default;
}


/* v48 KYC file selection feedback and numeric validation */
.theme-otp-kyc-selected-file {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    pointer-events: none;
}
.theme-otp-kyc-selected-file-info {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    line-height: 1.8;
    word-break: break-word;
}
.theme-otp-kyc-selected-file-preview {
    width: 128px;
    height: 88px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.theme-otp-kyc-form-message:empty {
    display: none;
}

/* v49: KYC message spacing and fixed first row behavior */
.theme-otp-kyc-wrapper .theme-otp-alert,
.theme-otp-kyc-wrapper .theme-otp-success,
.theme-otp-kyc-form-message {
    margin: 0 0 18px;
}
.theme-otp-kyc-form-message.theme-otp-alert,
.theme-otp-kyc-form-message.theme-otp-success {
    display: block;
}

/* v52: KYC row status colors */
.theme-otp-kyc-document-row.is-status-approved {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.theme-otp-kyc-document-row.is-status-pending {
    background: #fffbeb;
    border-color: #fed7aa;
}
.theme-otp-kyc-document-row.is-status-rejected {
    background: #fff1f2;
    border-color: #fecdd3;
}
.theme-otp-kyc-document-row.is-status-approved.is-readonly input,
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea,
.theme-otp-kyc-document-row.is-status-approved.is-readonly select {
    background: #f3f4f6;
    color: #374151;
}
.theme-otp-kyc-document-row.is-status-approved.is-readonly .theme-otp-kyc-upload-box {
    background: #f8fafc;
}


/* v53: enforce subtle gray readonly fields inside approved KYC rows */
.theme-otp-kyc-document-row.is-status-approved.is-readonly input[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly select:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly input:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea:disabled {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
    box-shadow: none !important;
}

/* v55: KYC processing state */
.theme-otp-kyc-form-message.theme-otp-info {
    display: block;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 12px;
    border-radius: 12px;
}
.theme-otp-kyc-form.is-loading .theme-otp-button {
    cursor: wait;
    opacity: .78;
}

/* v64: cart KYC gate alert and refreshed approved KYC card design */
.theme-otp-cart-kyc-notices {
    margin: 0 0 18px;
}
.theme-otp-cart-kyc-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #fecaca;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7f7 100%);
    color: #7f1d1d;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 14px 34px rgba(220, 38, 38, .10);
}
.theme-otp-cart-kyc-alert + .theme-otp-cart-kyc-alert {
    margin-top: 10px;
}
.theme-otp-cart-kyc-alert-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}
.theme-otp-cart-kyc-alert-message {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 2;
    font-weight: 600;
}
.theme-otp-cart-kyc-alert .theme-otp-kyc-notice-button,
.theme-otp-cart-kyc-alert a.theme-otp-kyc-notice-button,
.theme-otp-cart-kyc-notices .theme-otp-kyc-notice-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ef4444 0%, #be123c 100%) !important;
    color: #fff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(225, 29, 72, .22);
}
.theme-otp-cart-kyc-alert .theme-otp-kyc-notice-button:hover,
.theme-otp-cart-kyc-alert .theme-otp-kyc-notice-button:focus {
    transform: translateY(-1px);
    filter: brightness(.98);
}

.theme-otp-kyc-document-row.is-status-approved {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffc 55%, #eefcf7 100%);
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 118, 110, .10);
}
.theme-otp-kyc-document-row.is-status-approved::before {
    content: "";
    position: absolute;
    inset-inline-start: -70px;
    top: -85px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .22), rgba(16, 185, 129, 0) 70%);
    pointer-events: none;
}
.theme-otp-kyc-document-row.is-status-approved::after {
    content: "تایید شده";
    position: absolute;
    inset-inline-end: 18px;
    bottom: 14px;
    opacity: .08;
    color: #047857;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -1px;
    pointer-events: none;
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-document-head {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    margin: -2px -2px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(16, 185, 129, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-badge-success {
    background: #064e3b;
    color: #ecfdf5;
    box-shadow: 0 8px 18px rgba(6, 78, 59, .16);
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-document-grid,
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-row-note {
    position: relative;
    z-index: 1;
}
.theme-otp-kyc-document-row.is-status-approved.is-readonly input[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly select:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly input:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea:disabled {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(16, 185, 129, .22) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
}
.theme-otp-kyc-document-row.is-status-approved.is-readonly .theme-otp-kyc-upload-box,
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-current-file {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(16, 185, 129, .24) !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .07);
}
@media (max-width: 760px) {
    .theme-otp-cart-kyc-alert-message {
        display: block;
    }
    .theme-otp-cart-kyc-alert .theme-otp-kyc-notice-button {
        width: 100%;
        margin-top: 10px;
    }
    .theme-otp-kyc-document-row.is-status-approved::after {
        font-size: 24px;
    }
}

/* v65: unified modern KYC row statuses without bottom watermark */
.theme-otp-kyc-document-row.is-status-approved::after,
.theme-otp-kyc-document-row.is-status-pending::after,
.theme-otp-kyc-document-row.is-status-rejected::after {
    content: none !important;
    display: none !important;
}
.theme-otp-kyc-document-row.is-status-approved,
.theme-otp-kyc-document-row.is-status-pending,
.theme-otp-kyc-document-row.is-status-rejected {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .075);
}
.theme-otp-kyc-document-row.is-status-approved {
    --theme-otp-kyc-row-accent: 16, 185, 129;
    --theme-otp-kyc-row-accent-dark: #064e3b;
    --theme-otp-kyc-row-badge-bg: #064e3b;
    --theme-otp-kyc-row-badge-color: #ecfdf5;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffc 56%, #eefcf7 100%) !important;
    border-color: rgba(16, 185, 129, .35) !important;
}
.theme-otp-kyc-document-row.is-status-pending {
    --theme-otp-kyc-row-accent: 245, 158, 11;
    --theme-otp-kyc-row-accent-dark: #92400e;
    --theme-otp-kyc-row-badge-bg: #92400e;
    --theme-otp-kyc-row-badge-color: #fff7ed;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 56%, #fff7e6 100%) !important;
    border-color: rgba(245, 158, 11, .34) !important;
}
.theme-otp-kyc-document-row.is-status-rejected {
    --theme-otp-kyc-row-accent: 244, 63, 94;
    --theme-otp-kyc-row-accent-dark: #9f1239;
    --theme-otp-kyc-row-badge-bg: #9f1239;
    --theme-otp-kyc-row-badge-color: #fff1f2;
    background: linear-gradient(135deg, #ffffff 0%, #fff8fa 56%, #fff1f4 100%) !important;
    border-color: rgba(244, 63, 94, .30) !important;
}
.theme-otp-kyc-document-row.is-status-approved::before,
.theme-otp-kyc-document-row.is-status-pending::before,
.theme-otp-kyc-document-row.is-status-rejected::before {
    content: "";
    position: absolute;
    inset-inline-start: -70px;
    top: -85px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-otp-kyc-row-accent), .20), rgba(var(--theme-otp-kyc-row-accent), 0) 70%);
    pointer-events: none;
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-document-head,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-kyc-document-head,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-kyc-document-head {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    margin: -2px -2px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(var(--theme-otp-kyc-row-accent), .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-badge-success,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-badge-warning,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-badge-danger {
    background: var(--theme-otp-kyc-row-badge-bg) !important;
    color: var(--theme-otp-kyc-row-badge-color) !important;
    box-shadow: 0 8px 18px rgba(var(--theme-otp-kyc-row-accent), .16);
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-document-grid,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-kyc-document-grid,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-kyc-document-grid,
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-row-note,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-kyc-row-note,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-kyc-row-note {
    position: relative;
    z-index: 1;
}
.theme-otp-kyc-document-row.is-status-approved input,
.theme-otp-kyc-document-row.is-status-approved textarea,
.theme-otp-kyc-document-row.is-status-approved select,
.theme-otp-kyc-document-row.is-status-pending input,
.theme-otp-kyc-document-row.is-status-pending textarea,
.theme-otp-kyc-document-row.is-status-pending select,
.theme-otp-kyc-document-row.is-status-rejected input,
.theme-otp-kyc-document-row.is-status-rejected textarea,
.theme-otp-kyc-document-row.is-status-rejected select {
    border-color: rgba(var(--theme-otp-kyc-row-accent), .18);
}
.theme-otp-kyc-document-row.is-status-approved.is-readonly input[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea[readonly],
.theme-otp-kyc-document-row.is-status-approved.is-readonly select:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly input:disabled,
.theme-otp-kyc-document-row.is-status-approved.is-readonly textarea:disabled,
.theme-otp-kyc-document-row.is-status-pending.is-readonly input[readonly],
.theme-otp-kyc-document-row.is-status-pending.is-readonly textarea[readonly],
.theme-otp-kyc-document-row.is-status-pending.is-readonly select:disabled,
.theme-otp-kyc-document-row.is-status-pending.is-readonly input:disabled,
.theme-otp-kyc-document-row.is-status-pending.is-readonly textarea:disabled,
.theme-otp-kyc-document-row.is-status-rejected.is-readonly input[readonly],
.theme-otp-kyc-document-row.is-status-rejected.is-readonly textarea[readonly],
.theme-otp-kyc-document-row.is-status-rejected.is-readonly select:disabled,
.theme-otp-kyc-document-row.is-status-rejected.is-readonly input:disabled,
.theme-otp-kyc-document-row.is-status-rejected.is-readonly textarea:disabled {
    background: rgba(255, 255, 255, .90) !important;
    border-color: rgba(var(--theme-otp-kyc-row-accent), .22) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
}
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-upload-box,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-kyc-upload-box,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-kyc-upload-box,
.theme-otp-kyc-document-row.is-status-approved .theme-otp-kyc-current-file,
.theme-otp-kyc-document-row.is-status-pending .theme-otp-kyc-current-file,
.theme-otp-kyc-document-row.is-status-rejected .theme-otp-kyc-current-file {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(var(--theme-otp-kyc-row-accent), .24) !important;
    box-shadow: 0 10px 24px rgba(var(--theme-otp-kyc-row-accent), .07);
}

/* PidoGame Auth — scoped design-system bridge and dark-mode layer. */
.theme-otp-auth,
.theme-otp-wrapper,
.theme-otp-cart-kyc-notices {
    --theme-otp-bg: var(--pido-surface, #ffffff);
    --theme-otp-bg-soft: var(--pido-surface-soft, #f3f5f9);
    --theme-otp-bg-strong: var(--pido-surface-strong, #e8ecf3);
    --theme-otp-control-bg: var(--pido-control-bg, #eef1f7);
    --theme-otp-control-hover: var(--pido-control-hover, #e2e7f0);
    --theme-otp-text: var(--pido-text, #181c32);
    --theme-otp-muted: var(--pido-text-muted, #6b7280);
    --theme-otp-border: var(--pido-border, #e3e7ed);
    --theme-otp-primary: var(--pido-primary, #009ef7);
    --theme-otp-primary-hover: var(--pido-primary-hover, #008bd9);
    --theme-otp-primary-rgb: var(--pido-primary-rgb, 0, 158, 247);
    --theme-otp-danger: var(--pido-danger, #ef4444);
    --theme-otp-success: #16a36a;
    --theme-otp-warning: #d99000;
    --theme-otp-card-radius: var(--pido-radius-card, 12px);
    --theme-otp-control-radius: var(--pido-radius-control, 8px);
    color: var(--theme-otp-text);
    font-family: var(--pido-font-family, inherit);
}

.theme-otp-auth .theme-otp-panel,
.theme-otp-wrapper .theme-otp-card {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg) !important;
    border: 1px solid var(--theme-otp-border) !important;
    border-radius: var(--theme-otp-card-radius) !important;
    box-shadow: var(--pido-shadow, none) !important;
}

.theme-otp-auth .theme-otp-panel {
    padding: clamp(20px, 3vw, 30px) !important;
}

.theme-otp-auth .theme-otp-title,
.theme-otp-wrapper .theme-otp-title {
    display: block !important;
    margin: 0 0 22px !important;
    padding: 0 0 12px !important;
    color: var(--theme-otp-text) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-otp-border) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
}

.theme-otp-auth .theme-otp-input-group,
.theme-otp-wrapper .theme-otp-kyc-input-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.theme-otp-auth .theme-otp-input-label,
.theme-otp-wrapper .theme-otp-label {
    margin: 0 !important;
    color: var(--theme-otp-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}

.theme-otp-auth .theme-otp-form input:not([type="hidden"]),
.theme-otp-auth .theme-otp-form select,
.theme-otp-auth .theme-otp-select,
.theme-otp-wrapper .theme-otp-form input:not([type="hidden"]),
.theme-otp-wrapper .theme-otp-form select,
.theme-otp-wrapper .theme-otp-form textarea {
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-control-bg) !important;
    border: 1px solid var(--theme-otp-border) !important;
    border-radius: var(--theme-otp-control-radius) !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    outline: 0 !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

.theme-otp-auth .theme-otp-form textarea,
.theme-otp-wrapper .theme-otp-form textarea {
    min-height: 110px !important;
    resize: vertical;
}

.theme-otp-auth .theme-otp-form input::placeholder,
.theme-otp-wrapper .theme-otp-form input::placeholder,
.theme-otp-wrapper .theme-otp-form textarea::placeholder {
    color: var(--theme-otp-muted) !important;
    opacity: .72 !important;
}

.theme-otp-auth .theme-otp-form input:not([type="hidden"]):focus,
.theme-otp-auth .theme-otp-form select:focus,
.theme-otp-wrapper .theme-otp-form input:not([type="hidden"]):focus,
.theme-otp-wrapper .theme-otp-form select:focus,
.theme-otp-wrapper .theme-otp-form textarea:focus {
    background: var(--theme-otp-bg) !important;
    border-color: var(--theme-otp-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--theme-otp-primary-rgb), .13) !important;
}

.theme-otp-auth .theme-otp-button,
.theme-otp-wrapper .theme-otp-button,
.theme-otp-wrapper .theme-otp-kyc-add-row {
    min-height: 48px !important;
    padding: 10px 18px !important;
    color: #fff !important;
    background: var(--theme-otp-primary) !important;
    border: 1px solid var(--theme-otp-primary) !important;
    border-radius: var(--theme-otp-control-radius) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.theme-otp-auth .theme-otp-button:hover,
.theme-otp-auth .theme-otp-button:focus-visible,
.theme-otp-wrapper .theme-otp-button:hover,
.theme-otp-wrapper .theme-otp-button:focus-visible,
.theme-otp-wrapper .theme-otp-kyc-add-row:hover,
.theme-otp-wrapper .theme-otp-kyc-add-row:focus-visible {
    color: #fff !important;
    background: var(--theme-otp-primary-hover) !important;
    border-color: var(--theme-otp-primary-hover) !important;
    transform: none !important;
    filter: none !important;
}

.theme-otp-auth button:focus-visible,
.theme-otp-auth a:focus-visible,
.theme-otp-wrapper button:focus-visible,
.theme-otp-wrapper a:focus-visible {
    outline: 3px solid rgba(var(--theme-otp-primary-rgb), .28) !important;
    outline-offset: 2px !important;
}

.theme-otp-auth .theme-otp-hint,
.theme-otp-auth .theme-otp-switch,
.theme-otp-auth .theme-otp-timer,
.theme-otp-wrapper .theme-otp-kyc-row-help {
    color: var(--theme-otp-muted) !important;
}

.theme-otp-auth .theme-otp-switch a,
.theme-otp-auth .theme-otp-link-button,
.theme-otp-auth .theme-otp-back {
    color: var(--theme-otp-primary) !important;
    background: transparent !important;
}

.theme-otp-password-control {
    position: relative;
    min-width: 0;
}

.theme-otp-password-control > input {
    padding-inline-end: 74px !important;
}

.theme-otp-password-toggle {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    z-index: 2;
    min-width: 56px;
    min-height: 34px;
    padding: 4px 8px;
    transform: translateY(-50%);
    color: var(--theme-otp-primary);
    background: var(--theme-otp-bg);
    border: 1px solid var(--theme-otp-border);
    border-radius: calc(var(--theme-otp-control-radius) - 2px);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.theme-otp-message,
.theme-otp-kyc-form-message,
.theme-otp-alert,
.theme-otp-success,
.theme-otp-info,
.theme-otp-note {
    border-radius: var(--theme-otp-control-radius) !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
}

.theme-otp-message.is-error,
.theme-otp-alert {
    color: #b42332 !important;
    background: rgba(239, 68, 68, .09) !important;
    border: 1px solid rgba(239, 68, 68, .28) !important;
}

.theme-otp-message.is-success,
.theme-otp-success {
    color: #087a4d !important;
    background: rgba(22, 163, 106, .10) !important;
    border: 1px solid rgba(22, 163, 106, .26) !important;
}

.theme-otp-message.is-info,
.theme-otp-info,
.theme-otp-note {
    color: var(--theme-otp-text) !important;
    background: rgba(var(--theme-otp-primary-rgb), .08) !important;
    border: 1px solid rgba(var(--theme-otp-primary-rgb), .22) !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-row,
.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-approved,
.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-pending,
.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-rejected {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg-soft) !important;
    border: 1px solid var(--theme-otp-border) !important;
    border-radius: var(--theme-otp-card-radius) !important;
    box-shadow: none !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-approved {
    border-inline-start: 4px solid var(--theme-otp-success) !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-pending {
    border-inline-start: 4px solid var(--theme-otp-warning) !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-row.is-status-rejected {
    border-inline-start: 4px solid var(--theme-otp-danger) !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-row::before,
.theme-otp-wrapper .theme-otp-kyc-document-row::after {
    content: none !important;
    display: none !important;
}

.theme-otp-wrapper .theme-otp-kyc-document-head {
    margin: 0 0 16px !important;
    padding: 0 0 14px !important;
    color: var(--theme-otp-text) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-otp-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.theme-otp-wrapper .theme-otp-kyc-upload-box,
.theme-otp-wrapper .theme-otp-kyc-current-file,
.theme-otp-wrapper .theme-otp-kyc-row-note,
.theme-otp-wrapper .theme-otp-kyc-document-row.is-readonly input[readonly],
.theme-otp-wrapper .theme-otp-kyc-document-row.is-readonly textarea[readonly],
.theme-otp-wrapper .theme-otp-kyc-document-row.is-readonly select:disabled {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg) !important;
    border-color: var(--theme-otp-border) !important;
    box-shadow: none !important;
}

.theme-otp-wrapper .theme-otp-kyc-upload-box {
    border-style: dashed !important;
}

.theme-otp-wrapper .theme-otp-kyc-remove-row {
    color: var(--theme-otp-danger) !important;
    background: transparent !important;
    border: 1px solid rgba(239, 68, 68, .28) !important;
    border-radius: var(--theme-otp-control-radius) !important;
}

.theme-otp-wrapper [hidden] {
    display: none !important;
}

.theme-otp-cart-kyc-alert {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg) !important;
    border: 1px solid var(--theme-otp-border) !important;
    border-inline-start: 4px solid var(--theme-otp-danger) !important;
    border-radius: var(--theme-otp-card-radius) !important;
    box-shadow: none !important;
}

.theme-otp-cart-kyc-alert .theme-otp-kyc-notice-button {
    color: #fff !important;
    background: var(--theme-otp-primary) !important;
    border: 1px solid var(--theme-otp-primary) !important;
    border-radius: var(--theme-otp-control-radius) !important;
    box-shadow: none !important;
}

html[data-pido-theme="dark"] .theme-otp-message.is-error,
html[data-pido-theme="dark"] .theme-otp-alert {
    color: #ffb4bc !important;
}

html[data-pido-theme="dark"] .theme-otp-message.is-success,
html[data-pido-theme="dark"] .theme-otp-success {
    color: #8de0ba !important;
}

@media (max-width: 640px) {
    .theme-otp-auth .theme-otp-panel,
    .theme-otp-wrapper .theme-otp-card {
        padding: 18px !important;
    }

    .theme-otp-wrapper .theme-otp-kyc-document-grid,
    .theme-otp-wrapper .theme-otp-birth-date-row {
        grid-template-columns: 1fr !important;
    }

    .theme-otp-wrapper .theme-otp-kyc-document-head {
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-otp-auth *,
    .theme-otp-wrapper * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* PidoGame Auth 5.1.1 — production UI corrections. */
.theme-otp-auth .theme-otp-switch {
    margin-top: 42px !important;
}

.theme-otp-auth .theme-otp-password-control {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.theme-otp-auth .theme-otp-password-control > input[data-theme-otp-password="1"] {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 14px !important;
    padding-left: 92px !important;
}

.theme-otp-auth .theme-otp-password-toggle {
    right: auto !important;
    left: 8px !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    min-width: 66px;
    max-width: 76px;
    white-space: nowrap;
}

/* Editable KYC controls use the normal surface; approved/locked values use a muted control surface. */
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row:not(.is-readonly) input:not([type="hidden"]):not([type="file"]),
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row:not(.is-readonly) textarea,
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row:not(.is-readonly) select {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg) !important;
    border-color: var(--theme-otp-border) !important;
    opacity: 1 !important;
}

.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-readonly input:not([type="hidden"]):not([type="file"]),
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-readonly textarea,
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-readonly select,
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-status-approved.is-readonly input[readonly],
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-status-approved.is-readonly textarea[readonly],
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-status-approved.is-readonly select:disabled {
    color: var(--theme-otp-text) !important;
    background: var(--theme-otp-bg-strong) !important;
    border-color: var(--theme-otp-border) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row:not(.is-readonly) .theme-otp-kyc-upload-box {
    background: var(--theme-otp-bg) !important;
}

.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-readonly .theme-otp-kyc-upload-box,
.theme-otp-wrapper .theme-otp-kyc-form .theme-otp-kyc-document-row.is-readonly .theme-otp-kyc-current-file {
    background: var(--theme-otp-bg-strong) !important;
}

@media (max-width: 480px) {
    .theme-otp-auth .theme-otp-switch {
        margin-top: 36px !important;
    }

    .theme-otp-auth .theme-otp-password-control > input[data-theme-otp-password="1"] {
        padding-left: 86px !important;
    }

    .theme-otp-auth .theme-otp-password-toggle {
        min-width: 60px;
        max-width: 68px;
        font-size: 11px;
    }
}

