/* ================= صفحه رزروهای من ================= */
.bookings-container {
    padding: 30px 30px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= بریدکرامب ================= */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--gray, #6b7280);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb .separator {
    font-size: 0.7rem;
    color: var(--border, #e5e7eb);
}

/* ================= هدر ================= */
.bookings-header {
    text-align: center;
    margin-bottom: 30px;
}

.bookings-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark, #1e1e1e);
    margin-bottom: 8px;
}

.bookings-subtitle {
    font-size: 1rem;
    color: var(--gray, #6b7280);
}

/* ================= تب‌ها ================= */
.bookings-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.booking-tab {
    padding: 10px 24px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 30px;
    background: white;
    color: var(--gray, #6b7280);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-tab:hover {
    border-color: var(--primary, #3396D3);
    color: var(--primary, #3396D3);
}

.booking-tab.active {
    background: var(--primary, #3396D3);
    color: white;
    border-color: var(--primary, #3396D3);
}

/* ================= لیست رزروها ================= */
.bookings-list {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

/* کارت رزرو */
.booking-card {
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.booking-card:hover {
    box-shadow: 0 10px 25px rgba(51, 150, 211, 0.1);
    border-color: var(--primary, #3396D3);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-id {
    font-size: 0.85rem;
    color: var(--gray, #6b7280);
    background: var(--light, #f9fafb);
    padding: 4px 10px;
    border-radius: 20px;
    direction: ltr;
    display: inline-block;
}

.booking-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- وضعیت‌های واقعی رزرو (۶ حالت) ---------- */
.status-pending {
    /* 0: در انتظار پرداخت */
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    /* 1: تایید شده */
    background: #dbeafe;
    color: #1e3a8a;
}

.status-started {
    /* 2: شروع شده - تحویل داده شده */
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    /* 3: پایان یافته */
    background: #f3f4f6;
    color: #374151;
}

.status-cancelled {
    /* 4: لغو شده */
    background: #fee2e2;
    color: #991b1b;
}

.status-expired {
    /* 6: منقضی شده */
    background: #e5e7eb;
    color: #111827;
}

/* کلاس قدیمی paid تبدیل به confirmed */
.status-paid {
    background: #dbeafe;
    color: #1e3a8a;
}

/* کلاس قدیمی failed حذف شده چون دیگر نداریم */

.booking-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.booking-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light, #f9fafb);
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark, #1e1e1e);
}

.booking-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray, #6b7280);
}

.booking-meta i {
    color: var(--primary, #3396D3);
    margin-left: 4px;
}

.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.booking-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary, #3396D3);
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.btn-pay {
    padding: 8px 16px;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-pay:hover {
    background: #a7f3d0;
    border-color: #10b981;
}

/* تایمر شمارش معکوس پرداخت */
.timer-badge {
    font-weight: bold;
    color: #065f46;
    /* سبز تیره */
    background-color: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin-left: 10px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

/* دکمه‌های عملیات */
.btn-details {
    padding: 8px 16px;
    background: var(--light, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    color: var(--dark, #1e1e1e);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-details:hover {
    background: white;
    border-color: var(--primary, #3396D3);
    color: var(--primary, #3396D3);
}

.btn-cancel {
    padding: 8px 16px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-cancel:hover {
    background: #fecaca;
    border-color: #ef4444;
    color: #991b1b;
}

.btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================= حالت‌های صفحه ================= */
.state-box {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border, #e5e7eb);
    margin: 40px auto;
    max-width: 600px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border, #e5e7eb);
    border-top-color: var(--primary, #3396D3);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.error-state i,
.empty-state i,
.access-denied i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-state i {
    color: #ef4444;
}

.error-state h3 {
    color: #b91c1c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state i {
    color: var(--gray, #6b7280);
}

.empty-state h3 {
    color: var(--dark, #1e1e1e);
    margin-bottom: 15px;
}

.access-denied i {
    color: #f59e0b;
}

.access-denied h3 {
    color: #b45309;
    margin-bottom: 15px;
}

.btn-retry,
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-retry,
.btn-primary {
    background: var(--primary, #3396D3);
    color: white;
}

.btn-retry:hover,
.btn-primary:hover {
    background: var(--primary-hover, #2a73a8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 150, 211, 0.3);
}

.btn-retry {
    margin-top: 20px;
}

.btn-outline {
    background: white;
    color: var(--primary, #3396D3);
    border: 2px solid var(--primary, #3396D3);
}

.btn-outline:hover {
    background: var(--primary, #3396D3);
    color: white;
}

/* ================= صفحه‌بندی ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark, #1e1e1e);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 10px;
}

.page-btn:hover:not(.active):not(.disabled) {
    background: var(--light, #f9fafb);
    border-color: var(--primary, #3396D3);
    color: var(--primary, #3396D3);
}

.page-btn.active {
    background: var(--primary, #3396D3);
    border-color: var(--primary, #3396D3);
    color: #fff;
    cursor: default;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================= مودال ================= */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.booking-modal .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.modal-header h3 {
    margin: 0;
    color: var(--dark, #1e1e1e);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray, #6b7280);
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: var(--light, #f9fafb);
    color: var(--dark, #1e1e1e);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-modal .warning-text {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 10px 0;
    text-align: center;
}

/* ================= جزئیات رزرو ================= */
.booking-detail-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--light, #f9fafb);
    border-radius: 10px;
}

.booking-detail-label {
    width: 120px;
    font-weight: 600;
    color: var(--gray, #6b7280);
}

.booking-detail-value {
    flex: 1;
    color: var(--dark, #1e1e1e);
}

.booking-detail-value.id {
    direction: ltr;
    font-family: monospace;
    background: white;
    padding: 10px;
    border-radius: 20px;
}

/* ==================== BOOKING DETAILS MODAL ==================== */
#bookingDetailsBody {
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
}

/* Header */
.details-header {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.details-image-wrapper {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-image-placeholder {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.details-header-info {
    flex: 1;
    min-width: 0;
}

.details-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.details-id-row {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-label-inline {
    color: #64748b;
}

.details-id-value {
    color: #475569;
    background: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.details-id-value:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.details-id-value.copied {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.details-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-code {
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Sections */
.details-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.details-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-section-title i {
    color: #3b82f6;
}

/* Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.detail-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s;
}

.detail-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-label i {
    color: #3b82f6;
    font-size: 0.85rem;
}

.detail-value {
    font-size: 0.93rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.detail-value.price-highlight {
    color: #047857;
    font-size: 1rem;
}

.currency-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
    margin-right: 4px;
}

.ltr-text {
    direction: ltr;
    text-align: left;
    display: inline-block;
    unicode-bidi: embed;
}

/* Copy & Links */
.copy-trigger {
    transition: all 0.2s;
}

.copy-trigger:hover {
    color: #3b82f6;
}

.copy-icon {
    color: #94a3b8;
    margin-right: 6px;
    font-size: 0.85em;
    cursor: pointer;
}

.copy-icon:hover {
    color: #3b82f6;
}

.link-phone {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-phone:hover {
    color: #047857;
    text-decoration: underline;
}

.link-primary {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Boolean */
.boolean-yes {
    color: #047857;
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.boolean-no {
    color: #b91c1c;
    background: #fee2e2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Needed Dates */
.needed-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.needed-dates-list li {
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.needed-dates-list li i {
    color: #3b82f6;
}

/* Delivery */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.delivery-item-header {
    background: #eef2ff;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e40af;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-item-json {
    padding: 10px;
    margin: 0;
    font-size: 0.78rem;
    background: #1e293b;
    color: #e2e8f0;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    max-height: 220px;
}

.delivery-empty {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Loading & Error */
.details-loading {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.details-error {
    text-align: center;
    padding: 50px 20px;
    color: #b91c1c;
}

.details-error i.bi-exclamation-triangle-fill {
    font-size: 3rem;
}

.btn-retry-details {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-retry-details:hover {
    background: #2563eb;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Responsive */
@media (max-width: 576px) {
    .details-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .details-image-wrapper {
        margin: 0 auto;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .details-id-row,
    .details-status-row {
        justify-content: center;
    }

    .contract-otp-input {
        width: 190px;
        height: 50px;
        font-size: 21px;
        letter-spacing: 6px;
    }

    .contract-otp-section {
        padding: 14px;
    }
}

/* ================= ریسپانسیو ================= */
@media (max-width: 768px) {
    .bookings-container {
        padding: 0 20px;
    }

    .bookings-title {
        font-size: 1.8rem;
    }

    .booking-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .booking-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booking-meta {
        justify-content: center;
    }

    .booking-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .booking-actions {
        width: 100%;
        justify-content: space-between;
    }

    .booking-price-wrap {
        width: 100%;
    }

    .shipping-note {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bookings-title {
        font-size: 1.5rem;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .booking-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-details,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }

    .report-notice {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    .owner-contact-row {
        flex-direction: column;
        gap: 2px;
    }
}

/* ================= گزارش خرابی ================= */
.video-url-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.video-url-row .form-control {
    flex: 1;
}

.remove-video-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    color: #666;
}

.remove-video-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.btn-report {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    color: #b45309;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-report:hover {
    background: #ffb74d;
    color: #fff;
}

.btn-report:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* استایل‌های عمومی فرم داخل مودال (در صورت نیاز) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark, #1e1e1e);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.required-star {
    color: #ef4444;
}

.msg-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.msg-box.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.msg-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #bbf7d0;
}

.uploaded-files-list .uploaded-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uploaded-files-list .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.uploaded-files-list .remove-upload {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}

.progress-bar {
    transition: width 0.3s;
    background: #0d6efd;
    border-radius: 2px;
}

/* ==================== CONTRACT OTP ==================== */

.contract-otp-section {
    margin-top: 15px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.contract-otp-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contract-otp-title i {
    font-size: 20px;
}

.contract-otp-description {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 15px;
    line-height: 1.8;
}

.contract-otp-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.contract-otp-input {
    width: 220px;
    height: 52px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    text-align: center;
    direction: ltr;
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.contract-otp-input:focus {
    border-color: var(--primary, #3396D3);
    box-shadow: 0 0 0 3px rgba(51, 150, 211, 0.12);
}

.contract-otp-message {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}

.contract-otp-message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contract-otp-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.contract-otp-message.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.contract-otp-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.contract-otp-verify-btn {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
}

.contract-otp-resend-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.contract-otp-resend-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.contract-otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contract-otp-timer {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    margin-top: 10px;
}

.contract-otp-timer strong {
    color: #1e3a8a;
}

/* ==================== RENTIDI CONTRACT ==================== */

.rentidi-contract {
    width: 100%;
}

.contract-main-header {
    text-align: center;
    border-bottom: 3px double #1e3a8a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contract-main-header h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 21px;
    line-height: 1.8;
}

.contract-section-title {
    color: #1e3a8a;
    margin: 24px 0 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 800;
}

.contract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 13px;
}

.contract-table th,
.contract-table td {
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    vertical-align: top;
}

.contract-table th {
    background: #f3f4f6;
    font-weight: 700;
    text-align: center;
}

.contract-table td:first-child {
    background: #f8fafc;
}

.contract-party-box {
    padding: 14px;
    border-radius: 9px;
    margin: 15px 0;
}

.contract-party-box h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.contract-party-box p {
    margin: 5px 0;
}

.owner-party {
    background: #f8fafc;
    border-right: 4px solid #9ca3af;
}

.owner-party h4 {
    color: #374151;
}

.borrower-party {
    background: #fffbeb;
    border-right: 4px solid #f59e0b;
}

.borrower-party h4 {
    color: #92400e;
}

.contract-arbitration-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
}

.contract-arbitration-box p {
    margin: 6px 0;
}

.contract-check-list {
    padding-right: 25px;
    line-height: 2;
}

.contract-check-list li {
    margin-bottom: 5px;
}

.contract-signature-table td,
.contract-signature-table th {
    text-align: center;
}

.ltr-contract {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* ================= هشدار گزارش خرابی ================= */
.report-notice {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-right: 4px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.9;
    text-align: right;
}

.report-notice-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #b45309;
}

.report-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.report-notice-list li i {
    color: #d97706;
    margin-top: 5px;
    flex-shrink: 0;
}

.report-notice strong {
    color: #78350f;
}

.report-notice-closed {
    background: #f3f4f6;
    border-color: #d1d5db;
    border-right-color: #9ca3af;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= توضیح هزینه حمل زیر مبلغ کل ================= */
.booking-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.shipping-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 380px;
}

.shipping-note i {
    color: var(--primary, #3396D3);
    margin-top: 5px;
    flex-shrink: 0;
}

.shipping-note strong {
    color: #1e293b;
}

/* ================= اطلاعات اجاره‌دهنده (تحویل حضوری) ================= */
.owner-contact-box {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-right: 4px solid var(--primary, #3396D3);
    border-radius: 10px;
    color: #0c4a6e;
    font-size: 0.88rem;
    line-height: 1.9;
    text-align: right;
}

.owner-contact-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #075985;
}

.owner-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.owner-contact-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    color: #475569;
    flex-shrink: 0;
}

.owner-contact-label i {
    color: var(--primary, #3396D3);
}

.owner-contact-value {
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.owner-contact-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-right-color: #94a3b8;
    color: #475569;
}

.owner-contact-locked .owner-contact-title {
    color: #334155;
    margin-bottom: 2px;
}

.owner-contact-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}


@media (max-width: 700px) {

    .rentidi-contract {
        font-size: 13px !important;
    }

    .contract-table {
        font-size: 12px;
    }

    .contract-table th,
    .contract-table td {
        padding: 6px;
    }

    .contract-main-header h2 {
        font-size: 18px;
    }
}