/* ==========================================================================
   Partner B2B, Credit/Cheque, OTP, and Pro My Account Styles
   Donyaye Zaban Publishing Theme (dzabanomid)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OTP Modal
   -------------------------------------------------------------------------- */
.dz-otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dz-otp-modal.is-active {
    display: flex;
}
.dz-otp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dz-otp-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(46, 204, 113, 0.2);
    animation: dzPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
}
@keyframes dzPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.dz-otp-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: 0.2s;
}
.dz-otp-close:hover {
    background: #fee2e2;
    color: #ef4444;
}
.dz-otp-header {
    text-align: center;
    margin-bottom: 24px;
}
.dz-otp-logo {
    max-height: 48px;
    margin-bottom: 12px;
}
.dz-otp-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.dz-otp-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}
.dz-otp-step {
    display: none;
}
.dz-otp-step.active {
    display: block;
}
.dz-otp-field {
    margin-bottom: 18px;
}
.dz-otp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.dz-otp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.dz-otp-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 75px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1e293b;
    transition: 0.2s;
}
.dz-otp-input-wrap input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
    outline: none;
}
.dz-input-prefix {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    pointer-events: none;
    direction: ltr;
}
.dz-otp-role-select {
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}
.dz-otp-role-select label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}
.dz-role-radios {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dz-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #334155;
    cursor: pointer;
}
.dz-btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.dz-btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}
.dz-otp-code-wrap input {
    width: 100%;
    padding: 14px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 12px;
    border: 2px solid #2ecc71;
    border-radius: 14px;
    color: #1e293b;
    background: #f0fdf4;
}
.dz-otp-sent-info {
    font-size: 0.85rem;
    color: #475569;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.6;
}
.dz-btn-link {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    margin-right: 4px;
}
.dz-otp-timer-wrap {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 18px;
}
.dz-otp-timer-wrap span {
    font-weight: 700;
    color: #e11d48;
}
.dz-otp-sim-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-align: center;
}
.dz-otp-msg {
    margin-top: 14px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
    padding: 10px;
    border-radius: 10px;
}
.dz-otp-msg.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.dz-otp-msg.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   2. Product Page Partner Box & Bulk Order CTA
   -------------------------------------------------------------------------- */
.dz-partner-product-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid rgba(46, 204, 113, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.1);
}
.dz-ppb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.dz-ppb-icon img {
    width: 36px;
    height: 36px;
}
.dz-ppb-title .badge-tag {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.dz-ppb-title strong {
    display: block;
    font-size: 0.95rem;
    color: #0f5132;
}
.dz-ppb-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}
.dz-ppb-price-val .num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f5132;
}
.dz-ppb-price-val .currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: #198754;
    margin-right: 4px;
}
.dz-ppb-discount {
    font-size: 0.8rem;
    color: #157347;
    font-weight: 600;
}
.dz-ppb-footer {
    border-top: 1px dashed rgba(46, 204, 113, 0.4);
    padding-top: 10px;
    font-size: 0.8rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.dz-ppb-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}
.dz-ppb-link:hover {
    text-decoration: underline;
}

.dz-bulk-order-cta-wrap {
    margin: 15px 0 25px;
}
.dz-btn-bulk-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 40px;
    border: 1.5px dashed #2ecc71;
    background: rgba(46, 204, 113, 0.08);
    color: #0f5132;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.dz-btn-bulk-order:hover {
    background: #2ecc71;
    color: #ffffff;
    border-style: solid;
}

/* --------------------------------------------------------------------------
   3. Pro My Account Dashboard
   -------------------------------------------------------------------------- */
.dz-myaccount-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.dz-mah-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.dz-mah-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}
.dz-mah-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}
.dz-badge-partner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.dz-badge-customer {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.dz-link-upgrade {
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-right: 10px;
}
.dz-mah-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.dz-mah-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-meta .val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
}
.stat-meta .lbl {
    font-size: 0.75rem;
    color: #64748b;
}

.dz-panel-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.dz-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}
.dz-panel-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.dz-credit-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.dz-credit-card {
    border-radius: 18px;
    padding: 20px;
    color: #ffffff;
}
.dz-credit-card.primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.dz-credit-card.warning { background: linear-gradient(135deg, #f59e0b, #b45309); }
.dz-credit-card.success { background: linear-gradient(135deg, #10b981, #047857); }
.dz-credit-card .lbl {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 6px;
}
.dz-credit-card .val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}
.dz-credit-notice {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 18px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.8;
}
.dz-credit-notice ul {
    margin: 8px 0 0;
    padding-right: 20px;
}

/* Pro Tables */
.dz-pro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.dz-pro-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.dz-pro-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.dz-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-cleared { background: #e0f2fe; color: #0369a1; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* Custom Modal */
.dz-custom-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dz-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}
.dz-modal-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    direction: rtl;
}
.dz-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}
.dz-modal-head h4 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #1e293b; }
.dz-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; }

.dz-form-group { margin-bottom: 14px; }
.dz-form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.dz-form-group input, .dz-form-group select, .dz-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
}
.dz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Fast Bulk Search */
.dz-bulk-search-box {
    position: relative;
    margin-top: 15px;
}
.dz-bulk-search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #2ecc71;
    border-radius: 14px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.1);
}
.dz-bulk-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
}
.dz-bulk-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.15s;
}
.dz-bulk-result-item:hover {
    background: #f0fdf4;
}
.dz-bulk-result-item .item-title { font-weight: 700; font-size: 0.85rem; color: #1e293b; }
.dz-bulk-result-item .item-price { font-size: 0.8rem; color: #16a34a; font-weight: 700; }

/* --------------------------------------------------------------------------
   4. B2B Partner Landing Page
   -------------------------------------------------------------------------- */
.dz-partner-landing {
    direction: rtl;
    font-family: inherit;
}
.dz-pl-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.dz-pl-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.dz-pl-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.dz-tag-pill {
    display: inline-block;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.dz-pl-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 18px;
}
.dz-pl-hero-content p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 28px;
}
.dz-pl-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.dz-btn-lg {
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.dz-btn-primary.dz-btn-lg {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
}
.dz-btn-primary.dz-btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.5);
}
.dz-btn-secondary.dz-btn-lg {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dz-btn-secondary.dz-btn-lg:hover {
    background: rgba(255, 255, 255, 0.2);
}
.dz-pl-visual-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(12px);
}
.dz-pl-icon-main {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}
.dz-pl-stat-badge strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: #2ecc71;
}
.dz-pl-stat-badge span {
    font-size: 0.9rem;
    color: #94a3b8;
}

.dz-pl-features {
    padding: 70px 0;
    background: #f8fafc;
}
.dz-pl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.dz-pl-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: 0.25s;
}
.dz-pl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #2ecc71;
}
.dz-pl-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.dz-pl-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}
.dz-pl-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.dz-pl-form-section {
    padding: 70px 0;
    background: #ffffff;
}
.dz-pl-form-box {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.dz-pl-form-header {
    text-align: center;
    margin-bottom: 30px;
}
.dz-pl-form-header h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 8px;
}
.dz-pl-form-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}
.dz-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.dz-partner-msg {
    padding: 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
}
.dz-partner-msg.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.dz-partner-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 768px) {
    .dz-pl-hero-grid { grid-template-columns: 1fr; }
    .dz-form-grid-2, .dz-form-row { grid-template-columns: 1fr; }
    .dz-pl-form-box { padding: 24px; }
}
