/* ═══════════════════════════════════════════════════════════════
   NIBRA Rent DZ v1.0.5 — Frontend CSS
   RTL Arabic + LTR French | Mobile First | Full Design System
   Prefix: .nrd-* (مطابق لـ templates/frontend/*.php)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --nrd-primary:   #1B4F72;
  --nrd-secondary: #1ABC9C;
  --nrd-accent:    #F39C12;
  --nrd-danger:    #E74C3C;
  --nrd-success:   #27AE60;
  --nrd-bg:        #f0f4f8;
  --nrd-card:      #ffffff;
  --nrd-border:    #dde3ea;
  --nrd-text:      #1a2a3a;
  --nrd-muted:     #6b7a8d;
  --nrd-radius:    12px;
  --nrd-shadow:    0 2px 16px rgba(27,79,114,.10);
}

/* ── Reset ── */
.nrd-wrap *, .nrd-wrap *::before, .nrd-wrap *::after { box-sizing: border-box; }
.nrd-wrap { direction: rtl; font-family: 'Segoe UI', Arial, Tahoma, sans-serif; font-size: 15px; color: var(--nrd-text); background: var(--nrd-bg); min-height: 50vh; padding: 20px 16px; }
.nrd-wrap.ltr { direction: ltr; }
.nrd-container { max-width: 1100px; margin: 0 auto; }

/* ── Section Title ── */
.nrd-section-title { font-size: 22px; font-weight: 700; color: var(--nrd-primary); border-right: 5px solid var(--nrd-secondary); padding-right: 14px; margin: 0 0 24px; line-height: 1.3; }

/* ── Asset Cards Grid ── */
.nrd-assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.nrd-asset-card { background: var(--nrd-card); border-radius: var(--nrd-radius); box-shadow: var(--nrd-shadow); overflow: hidden; border: 1px solid var(--nrd-border); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.nrd-asset-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(27,79,114,.18); }
.nrd-asset-thumb { height: 200px; overflow: hidden; position: relative; background: linear-gradient(135deg, #d6eaf8, #a9cce3); }
.nrd-asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nrd-asset-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 64px; color: #adc6d8; }
.nrd-asset-badge { position: absolute; top: 12px; right: 12px; background: var(--nrd-primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.nrd-asset-body { padding: 20px; flex: 1; }
.nrd-asset-title { font-size: 17px; font-weight: 700; color: var(--nrd-primary); margin: 0 0 8px; }
.nrd-asset-desc { color: var(--nrd-muted); font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.nrd-asset-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.nrd-asset-price { font-size: 20px; font-weight: 900; color: var(--nrd-secondary); }
.nrd-asset-unit { font-size: 12px; color: var(--nrd-muted); }
.nrd-asset-footer { padding: 16px 20px; border-top: 1px solid var(--nrd-border); }

/* Asset Features Tags */
.nrd-features { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.nrd-feature-tag { background: #f0f9ff; color: var(--nrd-primary); padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; border: 1px solid #bfdbfe; }

/* ── Badges ── */
.nrd-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; }
.nrd-badge-available    { background: var(--nrd-success); }
.nrd-badge-unavailable  { background: var(--nrd-danger); }
.nrd-badge-pending      { background: var(--nrd-muted); }
.nrd-badge-confirmed    { background: var(--nrd-primary); }
.nrd-badge-active       { background: var(--nrd-secondary); }
.nrd-badge-completed    { background: #374151; }
.nrd-badge-cancelled    { background: var(--nrd-danger); }
.nrd-badge-no_show      { background: #6b21a8; }

/* ── Buttons ── */
.nrd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; font-family: inherit; transition: background .2s, transform .1s; }
.nrd-btn:active { transform: scale(.98); }
.nrd-btn-primary   { background: var(--nrd-primary);   color: #fff; }
.nrd-btn-primary:hover { background: #154060; }
.nrd-btn-secondary { background: var(--nrd-secondary); color: #fff; }
.nrd-btn-secondary:hover { background: #17a589; }
.nrd-btn-outline   { background: transparent; color: var(--nrd-primary); border: 2px solid var(--nrd-primary); }
.nrd-btn-danger    { background: var(--nrd-danger); color: #fff; }
.nrd-btn-block     { width: 100%; }
.nrd-btn-sm        { padding: 7px 14px; font-size: 12px; }
.nrd-btn:disabled  { opacity: .5; cursor: not-allowed; }

/* ── Alerts ── */
.nrd-alert { padding: 14px 18px; border-radius: 9px; margin-bottom: 18px; font-size: 14px; }
.nrd-alert-success { background: #d5f5e3; color: #1a6635; border: 1px solid #a9dfbf; }
.nrd-alert-danger  { background: #fce4e4; color: #922b21; border: 1px solid #f5b7b1; }
.nrd-alert-info    { background: #d6eaf8; color: #1a4b72; border: 1px solid #a9cce3; }
.nrd-alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }

/* ── Booking Form ── */
.nrd-booking-form-wrap { background: var(--nrd-card); border-radius: var(--nrd-radius); box-shadow: var(--nrd-shadow); padding: 32px; max-width: 700px; margin: 0 auto; border: 1px solid var(--nrd-border); }
.nrd-booking-form-title { font-size: 20px; font-weight: 700; color: var(--nrd-primary); margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--nrd-border); }
.nrd-form-group { margin-bottom: 18px; }
.nrd-label { display: block; font-size: 13px; font-weight: 700; color: var(--nrd-muted); margin-bottom: 7px; }
.nrd-label span.req { color: var(--nrd-danger); margin-right: 3px; }
.nrd-input, .nrd-select, .nrd-textarea { width: 100%; padding: 11px 15px; border: 1.5px solid var(--nrd-border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--nrd-text); background: #fff; transition: border-color .2s, box-shadow .2s; direction: rtl; }
.nrd-input:focus, .nrd-select:focus, .nrd-textarea:focus { outline: none; border-color: var(--nrd-secondary); box-shadow: 0 0 0 3px rgba(26,188,156,.15); }
.nrd-input.nrd-error { border-color: var(--nrd-danger); }
.nrd-field-error { color: var(--nrd-danger); font-size: 12px; margin-top: 4px; }
.nrd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nrd-form-section-title { font-size: 15px; font-weight: 700; color: var(--nrd-primary); margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--nrd-border); }
.nrd-input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

/* ── Pricing Preview ── */
.nrd-price-preview { background: linear-gradient(135deg, var(--nrd-primary), #1a6891); color: #fff; border-radius: 12px; padding: 20px 24px; margin: 20px 0; }
.nrd-price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.nrd-price-row.total { border-top: 1px solid rgba(255,255,255,.3); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 17px; }
.nrd-price-label { opacity: .85; }
.nrd-price-val { font-weight: 700; }

/* ── Extras Selector ── */
.nrd-extras { margin: 16px 0; }
.nrd-extra-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--nrd-border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.nrd-extra-item:hover { border-color: var(--nrd-secondary); background: #f0fdfb; }
.nrd-extra-item.selected { border-color: var(--nrd-secondary); background: #e0fdf4; }
.nrd-extra-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--nrd-secondary); }
.nrd-extra-name { flex: 1; font-weight: 600; }
.nrd-extra-price { font-weight: 700; color: var(--nrd-secondary); }

/* ── Booking Steps ── */
.nrd-steps { display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; }
.nrd-steps::before { content: ''; position: absolute; top: 16px; right: 10%; left: 10%; height: 2px; background: var(--nrd-border); z-index: 0; }
.nrd-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.nrd-step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--nrd-border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--nrd-muted); }
.nrd-step.active .nrd-step-circle { background: var(--nrd-secondary); border-color: var(--nrd-secondary); color: #fff; }
.nrd-step.done .nrd-step-circle   { background: var(--nrd-primary);   border-color: var(--nrd-primary);   color: #fff; }
.nrd-step-label { font-size: 11px; color: var(--nrd-muted); font-weight: 600; text-align: center; max-width: 80px; }
.nrd-step.active .nrd-step-label { color: var(--nrd-secondary); }

/* ── My Bookings Page ── */
.nrd-bookings-list { display: flex; flex-direction: column; gap: 18px; }
.nrd-booking-item { background: var(--nrd-card); border-radius: var(--nrd-radius); box-shadow: var(--nrd-shadow); border: 1px solid var(--nrd-border); overflow: hidden; transition: box-shadow .2s; }
.nrd-booking-item:hover { box-shadow: 0 6px 24px rgba(27,79,114,.14); }
.nrd-booking-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--nrd-border); background: #f8fafc; flex-wrap: wrap; gap: 10px; }
.nrd-booking-number { font-size: 13px; font-family: monospace; color: var(--nrd-muted); font-weight: 700; }
.nrd-booking-body { padding: 18px 20px; }
.nrd-booking-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.nrd-info-item label { display: block; font-size: 11px; color: var(--nrd-muted); font-weight: 700; margin-bottom: 3px; }
.nrd-info-item span { font-size: 14px; font-weight: 600; }
.nrd-booking-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--nrd-border); padding-top: 14px; margin-top: 6px; }

/* Payment Progress Bar */
.nrd-payment-bar { margin: 12px 0; }
.nrd-payment-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--nrd-muted); margin-bottom: 5px; }
.nrd-progress { height: 8px; background: var(--nrd-border); border-radius: 4px; overflow: hidden; }
.nrd-progress-bar { height: 100%; border-radius: 4px; background: var(--nrd-secondary); transition: width .5s; }

/* ── Availability Calendar Hint ── */
.nrd-avail-hint { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 20px; font-size: 12px; }
.nrd-avail-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-left: 5px; }
.nrd-avail-dot.available   { background: var(--nrd-success); }
.nrd-avail-dot.unavailable { background: var(--nrd-danger); }
.nrd-avail-dot.partial     { background: var(--nrd-accent); }

/* ── Quick Quote ── */
.nrd-quote-box { background: #fff; border: 2px solid var(--nrd-secondary); border-radius: var(--nrd-radius); padding: 24px; margin: 20px 0; box-shadow: 0 4px 20px rgba(26,188,156,.12); }
.nrd-quote-box h4 { color: var(--nrd-secondary); margin: 0 0 16px; font-size: 17px; }
.nrd-quote-result { background: var(--nrd-bg); border-radius: 8px; padding: 16px; margin-top: 16px; }

/* ── Document Upload ── */
.nrd-upload-zone { border: 2px dashed var(--nrd-border); border-radius: 10px; padding: 28px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.nrd-upload-zone:hover { border-color: var(--nrd-secondary); background: #f0fdfb; }
.nrd-upload-zone-icon { font-size: 40px; margin-bottom: 10px; }
.nrd-upload-zone p { color: var(--nrd-muted); font-size: 13px; margin: 0; }

/* ── Deposit Proof Modal ── */
.nrd-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99990; align-items: center; justify-content: center; }
.nrd-modal-overlay.open { display: flex; }
.nrd-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 520px; width: 94%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.nrd-modal-title { font-size: 18px; font-weight: 700; color: var(--nrd-primary); margin: 0 0 20px; }
.nrd-modal-close { position: absolute; top: 16px; left: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--nrd-muted); line-height: 1; }

/* ── Asset Single ── */
.nrd-asset-single { max-width: 900px; margin: 0 auto; }
.nrd-asset-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; border-radius: var(--nrd-radius); overflow: hidden; }
.nrd-asset-gallery img { width: 100%; height: 220px; object-fit: cover; cursor: pointer; transition: transform .2s; }
.nrd-asset-gallery img:first-child { grid-column: 1 / -1; height: 320px; }
.nrd-asset-gallery img:hover { transform: scale(1.02); }
.nrd-asset-details { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.nrd-asset-main { min-width: 0; }
.nrd-asset-sidebar { position: sticky; top: 20px; }

/* Sidebar Booking Box */
.nrd-sidebar-box { background: var(--nrd-card); border: 2px solid var(--nrd-border); border-radius: var(--nrd-radius); padding: 24px; box-shadow: var(--nrd-shadow); }
.nrd-sidebar-price { font-size: 28px; font-weight: 900; color: var(--nrd-primary); margin-bottom: 4px; }
.nrd-sidebar-unit { font-size: 13px; color: var(--nrd-muted); margin-bottom: 18px; }

/* ── Empty States ── */
.nrd-empty { text-align: center; padding: 56px 24px; color: var(--nrd-muted); }
.nrd-empty-icon { font-size: 64px; margin-bottom: 16px; }
.nrd-empty p { font-size: 16px; margin: 0 0 20px; }

/* ── Filters Bar ── */
.nrd-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.nrd-filter-select { padding: 9px 14px; border: 1.5px solid var(--nrd-border); border-radius: 8px; font-size: 13px; background: #fff; direction: rtl; cursor: pointer; }
.nrd-filter-select:focus { outline: none; border-color: var(--nrd-secondary); }
.nrd-search-input { padding: 9px 14px; border: 1.5px solid var(--nrd-border); border-radius: 8px; font-size: 13px; direction: rtl; background: #fff; min-width: 220px; }
.nrd-search-input:focus { outline: none; border-color: var(--nrd-secondary); }

/* ── Pagination ── */
.nrd-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.nrd-page-link { padding: 8px 14px; border: 1.5px solid var(--nrd-border); border-radius: 6px; color: var(--nrd-primary); text-decoration: none; font-size: 13px; font-weight: 600; background: var(--nrd-card); transition: all .2s; }
.nrd-page-link:hover, .nrd-page-link.current { background: var(--nrd-primary); color: #fff; border-color: var(--nrd-primary); }

/* ── Loading Spinner ── */
.nrd-spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: nrd-spin .7s linear infinite; vertical-align: middle; }
@keyframes nrd-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nrd-assets-grid { grid-template-columns: 1fr; gap: 18px; }
  .nrd-asset-details { grid-template-columns: 1fr; }
  .nrd-asset-sidebar { position: static; }
  .nrd-asset-gallery { grid-template-columns: 1fr; }
  .nrd-asset-gallery img:first-child { height: 220px; }
  .nrd-booking-info { grid-template-columns: 1fr; }
  .nrd-form-row { grid-template-columns: 1fr; }
  .nrd-booking-form-wrap { padding: 20px; }
}
@media (max-width: 480px) {
  .nrd-wrap { padding: 8px; }
  .nrd-section-title { font-size: 18px; }
  .nrd-sidebar-price { font-size: 22px; }
  .nrd-booking-header { flex-direction: column; align-items: flex-start; }
  .nrd-steps::before { display: none; }
  .nrd-booking-actions { flex-direction: column; }
  .nrd-btn-block { width: 100%; }
  .nrd-modal { padding: 20px; }
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  .nrd-wrap {
    --nrd-bg: #0d1b2a; --nrd-card: #162436; --nrd-border: #234160;
    --nrd-text: #e0eaf4; --nrd-muted: #7fa3c0;
  }
  .nrd-input, .nrd-select, .nrd-textarea, .nrd-filter-select, .nrd-search-input {
    background: #1a2f45; color: #e0eaf4; border-color: #234160;
  }
  .nrd-price-preview { background: linear-gradient(135deg, #0d2c42, #0f3d5c); }
  .nrd-booking-header { background: #1a2f45; }
}

/* ── Asset Type Icons ── */
.nrd-type-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; background: #f0f4f8; }

/* ── Search Box ── */
.nrd-search-box { display: flex; gap: 10px; align-items: center; background: var(--nrd-card); border: 1.5px solid var(--nrd-border); border-radius: var(--nrd-radius); padding: 6px 10px; box-shadow: var(--nrd-shadow); flex-wrap: wrap; }
.nrd-search-box input { border: none; outline: none; flex: 1; min-width: 180px; font-size: 14px; font-family: inherit; color: var(--nrd-text); }
.nrd-search-box button { background: var(--nrd-primary); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s; }
.nrd-search-box button:hover { background: #154060; }

/* ── Pricing Table ── */
.nrd-pricing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nrd-pricing-table th { background: var(--nrd-primary); color: #fff; padding: 12px 16px; text-align: right; }
.nrd-pricing-table td { padding: 11px 16px; border-bottom: 1px solid var(--nrd-border); }
.nrd-pricing-table tr:nth-child(even) td { background: #f8fafc; }
.nrd-pricing-table .price-col { font-weight: 700; color: var(--nrd-secondary); font-size: 16px; }

/* ── Booking Confirmation Card ── */
.nrd-confirm-card { background: var(--nrd-card); border: 2px solid var(--nrd-success); border-radius: var(--nrd-radius); padding: 32px; text-align: center; max-width: 560px; margin: 0 auto; box-shadow: 0 4px 24px rgba(39,174,96,.14); }
.nrd-confirm-icon { font-size: 64px; margin-bottom: 16px; }
.nrd-confirm-title { font-size: 22px; font-weight: 800; color: var(--nrd-primary); margin: 0 0 8px; }
.nrd-confirm-sub { font-size: 14px; color: var(--nrd-muted); margin: 0 0 24px; }
.nrd-confirm-number { display: inline-block; background: var(--nrd-bg); border: 1.5px solid var(--nrd-border); border-radius: 8px; padding: 8px 20px; font-family: monospace; font-size: 18px; font-weight: 700; color: var(--nrd-primary); margin-bottom: 24px; letter-spacing: 2px; }

/* ── My Bookings — Empty ── */
.nrd-my-bookings-empty { text-align: center; padding: 64px 24px; }
.nrd-my-bookings-empty .nrd-empty-icon { font-size: 72px; opacity: .35; margin-bottom: 20px; }
.nrd-my-bookings-empty h3 { font-size: 20px; font-weight: 700; color: var(--nrd-primary); margin: 0 0 8px; }
.nrd-my-bookings-empty p { color: var(--nrd-muted); font-size: 14px; margin: 0 0 24px; }

/* ── Date Range Picker Hint ── */
.nrd-daterange { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nrd-daterange-sep { color: var(--nrd-muted); font-size: 13px; }
.nrd-nights-badge { background: var(--nrd-primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-right: 8px; }

/* ── Tenant Portal Header ── */
.nrd-portal-header { background: linear-gradient(135deg, var(--nrd-primary), #1a6891); color: #fff; border-radius: var(--nrd-radius); padding: 28px 32px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.nrd-portal-greeting { font-size: 22px; font-weight: 800; }
.nrd-portal-sub { font-size: 13px; opacity: .8; margin-top: 4px; }
.nrd-portal-stats { display: flex; gap: 24px; }
.nrd-portal-stat { text-align: center; }
.nrd-portal-stat-value { font-size: 26px; font-weight: 900; }
.nrd-portal-stat-label { font-size: 11px; opacity: .75; }

/* ── Contract Preview ── */
.nrd-contract-preview { background: #fff; border: 1px solid var(--nrd-border); border-radius: var(--nrd-radius); padding: 32px; max-width: 720px; margin: 0 auto; box-shadow: var(--nrd-shadow); }
.nrd-contract-header { text-align: center; padding-bottom: 20px; border-bottom: 2px solid var(--nrd-primary); margin-bottom: 24px; }
.nrd-contract-title { font-size: 20px; font-weight: 700; color: var(--nrd-primary); }
.nrd-contract-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.nrd-contract-party { border: 1px solid var(--nrd-border); border-radius: 8px; padding: 16px; }
.nrd-contract-party-label { font-size: 11px; font-weight: 700; color: var(--nrd-muted); text-transform: uppercase; margin-bottom: 8px; }
.nrd-contract-field { font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 8px; }
.nrd-contract-field strong { color: var(--nrd-muted); min-width: 100px; }
.nrd-contract-signature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.nrd-signature-box { border-top: 2px solid var(--nrd-primary); padding-top: 12px; text-align: center; font-size: 12px; color: var(--nrd-muted); font-weight: 700; }

/* ── Deposit Upload Progress ── */
.nrd-deposit-steps { counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.nrd-deposit-step { display: flex; gap: 14px; align-items: flex-start; }
.nrd-deposit-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--nrd-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.nrd-deposit-step-num.done { background: var(--nrd-success); }
.nrd-deposit-step-content { flex: 1; }
.nrd-deposit-step-title { font-size: 14px; font-weight: 700; color: var(--nrd-primary); }
.nrd-deposit-step-desc  { font-size: 12px; color: var(--nrd-muted); margin-top: 3px; }

/* ── WhatsApp / Contact CTA ── */
.nrd-contact-bar { background: #25D366; color: #fff; border-radius: var(--nrd-radius); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.nrd-contact-bar p { margin: 0; font-size: 14px; font-weight: 600; }
.nrd-contact-bar a { background: #fff; color: #25D366; padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; }

/* ── Language Switcher ── */
.nrd-lang-switch { display: flex; gap: 4px; background: #f0f4f8; border-radius: 8px; padding: 4px; }
.nrd-lang-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; background: none; color: var(--nrd-muted); transition: all .15s; }
.nrd-lang-btn.active { background: var(--nrd-primary); color: #fff; }

/* ── Review Stars ── */
.nrd-stars { display: flex; gap: 3px; }
.nrd-star { font-size: 18px; cursor: pointer; color: #d1d5db; transition: color .15s; }
.nrd-star.filled, .nrd-star:hover { color: #f59e0b; }
.nrd-review-card { background: var(--nrd-card); border: 1px solid var(--nrd-border); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.nrd-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nrd-reviewer { font-weight: 700; font-size: 14px; }
.nrd-review-date { font-size: 11px; color: var(--nrd-muted); }
.nrd-review-text { font-size: 13px; color: var(--nrd-muted); line-height: 1.7; margin: 0; }

/* ── Countdown Timer ── */
.nrd-countdown { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.nrd-countdown-block { text-align: center; }
.nrd-countdown-num { font-size: 28px; font-weight: 900; color: var(--nrd-danger); font-family: monospace; display: block; line-height: 1; }
.nrd-countdown-label { font-size: 10px; color: var(--nrd-muted); font-weight: 700; text-transform: uppercase; }

/* ── Notification Toast ── */
.nrd-toast-container { position: fixed; top: 20px; left: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 10px; }
.nrd-toast { background: var(--nrd-primary); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 10px; animation: nrd-toast-in .3s ease both; max-width: 340px; }
.nrd-toast.success { background: var(--nrd-success); }
.nrd-toast.error   { background: var(--nrd-danger); }
.nrd-toast.warning { background: var(--nrd-accent); }
@keyframes nrd-toast-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Map Embed Wrapper ── */
.nrd-map-wrap { border-radius: var(--nrd-radius); overflow: hidden; border: 1px solid var(--nrd-border); margin-bottom: 20px; }
.nrd-map-wrap iframe { display: block; width: 100%; height: 280px; border: none; }

/* ── Print / Invoice ── */
@media print {
  .nrd-wrap { background: #fff; padding: 0; }
  .nrd-btn, .nrd-filters, .nrd-pagination { display: none !important; }
  .nrd-booking-item { break-inside: avoid; border: 1px solid #ccc; }
  .nrd-contract-preview { box-shadow: none; border: none; }
}

/* ── RTL Fixes for Arabic inputs ── */
.nrd-wrap input[type="text"],
.nrd-wrap input[type="email"],
.nrd-wrap input[type="tel"],
.nrd-wrap input[type="number"],
.nrd-wrap textarea,
.nrd-wrap select { font-family: 'Tajawal', 'Segoe UI', Arial, sans-serif; }
.nrd-wrap input[type="email"] { direction: ltr; text-align: right; }
.nrd-wrap input[type="tel"]   { direction: ltr; text-align: right; }

/* ── Asset Detail: Tabs ── */
.nrd-detail-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--nrd-border); margin-bottom: 20px; }
.nrd-detail-tab { padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--nrd-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s; }
.nrd-detail-tab.active { color: var(--nrd-primary); border-bottom-color: var(--nrd-secondary); }
.nrd-detail-panel { display: none; }
.nrd-detail-panel.active { display: block; }

/* ── Availability Calendar (Frontend) ── */
.nrd-avail-cal { font-family: inherit; direction: rtl; }
.nrd-avail-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; color: var(--nrd-primary); }
.nrd-avail-cal-nav { background: none; border: 1px solid var(--nrd-border); border-radius: 6px; cursor: pointer; padding: 4px 10px; color: var(--nrd-primary); }
.nrd-avail-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.nrd-avail-cal-day { text-align: center; padding: 7px 4px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .15s; }
.nrd-avail-cal-day:hover { background: #f0f9ff; }
.nrd-avail-cal-day.available   { background: #d5f5e3; color: #1a6635; }
.nrd-avail-cal-day.unavailable { background: #fce4e4; color: #922b21; cursor: not-allowed; }
.nrd-avail-cal-day.selected    { background: var(--nrd-primary); color: #fff; font-weight: 700; }
.nrd-avail-cal-day.in-range    { background: #dbeafe; color: var(--nrd-primary); }
.nrd-avail-cal-day.today       { font-weight: 700; border: 2px solid var(--nrd-secondary); }
.nrd-avail-cal-day.other-month { opacity: .35; cursor: default; }

/* ── Flat Price Summary Table ── */
.nrd-summary-table { width: 100%; font-size: 14px; }
.nrd-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--nrd-border); }
.nrd-summary-row:last-child { border-bottom: none; }
.nrd-summary-row.total { font-size: 16px; font-weight: 800; color: var(--nrd-primary); padding-top: 12px; border-top: 2px solid var(--nrd-border); border-bottom: none; }
.nrd-summary-key { color: var(--nrd-muted); }
.nrd-summary-val { font-weight: 600; }

/* ── Payment Methods ── */
.nrd-payment-methods { display: flex; flex-direction: column; gap: 10px; }
.nrd-payment-method { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--nrd-border); border-radius: 10px; cursor: pointer; transition: all .2s; }
.nrd-payment-method:hover { border-color: var(--nrd-secondary); background: #f0fdfb; }
.nrd-payment-method.selected { border-color: var(--nrd-secondary); background: #e0fdf4; }
.nrd-payment-method input[type="radio"] { accent-color: var(--nrd-secondary); width: 18px; height: 18px; }
.nrd-payment-method-icon { font-size: 28px; }
.nrd-payment-method-name { font-weight: 700; font-size: 14px; }
.nrd-payment-method-desc { font-size: 12px; color: var(--nrd-muted); margin-top: 2px; }

/* ── Social Share Bar ── */
.nrd-share-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nrd-border); }
.nrd-share-label { font-size: 13px; font-weight: 700; color: var(--nrd-muted); }
.nrd-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.nrd-share-btn:hover { opacity: .85; }
.nrd-share-wa  { background: #25D366; color: #fff; }
.nrd-share-fb  { background: #1877F2; color: #fff; }
.nrd-share-tw  { background: #1DA1F2; color: #fff; }
.nrd-share-copy { background: #f1f5f9; color: var(--nrd-primary); border: 1px solid var(--nrd-border); }

/* ── Loyalty / Points Badge ── */
.nrd-points-badge { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.nrd-points-badge .icon { font-size: 16px; }

/* ── Skeleton Loaders ── */
.nrd-skeleton { background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%); background-size: 200% 100%; animation: nrd-skeleton 1.4s ease infinite; border-radius: 6px; }
@keyframes nrd-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.nrd-skeleton-card { height: 300px; border-radius: var(--nrd-radius); margin-bottom: 20px; }
.nrd-skeleton-line { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.nrd-skeleton-line.short { width: 60%; }
.nrd-skeleton-line.medium { width: 80%; }

/* ── RTL-aware margin/padding helpers ── */
.nrd-me-auto  { margin-inline-start: auto; }
.nrd-ms-auto  { margin-inline-end: auto; }
.nrd-text-start { text-align: start; }
.nrd-text-end   { text-align: end; }

/* ── Focus Visible ── */
.nrd-wrap *:focus-visible { outline: 2px solid var(--nrd-secondary); outline-offset: 2px; }

/* ── Booking Flow: Step Panels ── */
.nrd-step-panel { display: none; }
.nrd-step-panel.active { display: block; animation: nrd-fade-in .25s ease both; }
@keyframes nrd-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Customer Document Checklist ── */
.nrd-doc-checklist { list-style: none; padding: 0; margin: 0; }
.nrd-doc-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nrd-border); }
.nrd-doc-item:last-child { border-bottom: none; }
.nrd-doc-icon { font-size: 22px; }
.nrd-doc-name { flex: 1; font-size: 14px; font-weight: 600; }
.nrd-doc-status { font-size: 12px; font-weight: 700; }
.nrd-doc-status.ok      { color: var(--nrd-success); }
.nrd-doc-status.missing { color: var(--nrd-danger); }
.nrd-doc-status.pending { color: var(--nrd-accent); }

/* ── Branch Selector Cards ── */
.nrd-branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nrd-branch-card { border: 2px solid var(--nrd-border); border-radius: 10px; padding: 16px; cursor: pointer; transition: all .18s; }
.nrd-branch-card:hover   { border-color: var(--nrd-secondary); background: #f0fdfb; }
.nrd-branch-card.active  { border-color: var(--nrd-secondary); background: #e0fdf4; }
.nrd-branch-icon  { font-size: 28px; margin-bottom: 8px; }
.nrd-branch-name  { font-weight: 700; font-size: 14px; color: var(--nrd-primary); }
.nrd-branch-addr  { font-size: 12px; color: var(--nrd-muted); margin-top: 4px; }
.nrd-branch-hours { font-size: 11px; color: var(--nrd-muted); margin-top: 3px; }

/* ── Notification Bell ── */
.nrd-notif-bell { position: relative; cursor: pointer; }
.nrd-notif-count { position: absolute; top: -4px; left: -4px; background: var(--nrd-danger); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nrd-notif-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--nrd-card); border: 1px solid var(--nrd-border); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.15); min-width: 300px; z-index: 9999; display: none; }
.nrd-notif-dropdown.open { display: block; }
.nrd-notif-item { padding: 12px 16px; border-bottom: 1px solid var(--nrd-border); font-size: 13px; }
.nrd-notif-item:last-child { border-bottom: none; }
.nrd-notif-item.unread { background: #f0f9ff; }
.nrd-notif-item-title { font-weight: 700; color: var(--nrd-primary); margin-bottom: 3px; }
.nrd-notif-item-time  { font-size: 11px; color: var(--nrd-muted); }

/* ── FAQ Accordion ── */
.nrd-faq { border: 1px solid var(--nrd-border); border-radius: var(--nrd-radius); overflow: hidden; }
.nrd-faq-item { border-bottom: 1px solid var(--nrd-border); }
.nrd-faq-item:last-child { border-bottom: none; }
.nrd-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--nrd-primary); transition: background .15s; }
.nrd-faq-q:hover { background: #f8fafc; }
.nrd-faq-toggle { font-size: 20px; color: var(--nrd-secondary); font-weight: 700; transition: transform .2s; }
.nrd-faq-item.open .nrd-faq-toggle { transform: rotate(45deg); }
.nrd-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: 13px; color: var(--nrd-muted); line-height: 1.8; }
.nrd-faq-item.open .nrd-faq-a { max-height: 400px; padding: 0 20px 16px; }

/* ── Stats Counter Animation ── */
.nrd-counter-wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.nrd-counter-item { text-align: center; }
.nrd-counter-num { font-size: 36px; font-weight: 900; color: var(--nrd-primary); font-family: monospace; }
.nrd-counter-label { font-size: 13px; color: var(--nrd-muted); font-weight: 600; }

/* ── Grid Utilities ── */
.nrd-grid-2  { display: grid; grid-template-columns: 1fr 1fr;     gap: 20px; }
.nrd-grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.nrd-grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.nrd-col-span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .nrd-grid-2, .nrd-grid-3, .nrd-grid-4 { grid-template-columns: 1fr; }
  .nrd-col-span-2 { grid-column: span 1; }
  .nrd-branches-grid { grid-template-columns: 1fr; }
}

/* ── Misc Helpers ── */
.nrd-hidden      { display: none !important; }
.nrd-visible     { display: block !important; }
.nrd-text-center { text-align: center; }
.nrd-mt-0 { margin-top: 0; } .nrd-mt-1 { margin-top: 8px; } .nrd-mt-2 { margin-top: 16px; } .nrd-mt-3 { margin-top: 24px; }
.nrd-mb-0 { margin-bottom: 0; } .nrd-mb-1 { margin-bottom: 8px; } .nrd-mb-2 { margin-bottom: 16px; }
.nrd-fw-bold { font-weight: 700; }
.nrd-text-primary  { color: var(--nrd-primary); }
.nrd-text-secondary { color: var(--nrd-secondary); }
.nrd-text-muted   { color: var(--nrd-muted); }
.nrd-text-danger  { color: var(--nrd-danger); }
.nrd-text-success { color: var(--nrd-success); }
.nrd-divider { border: none; border-top: 1px solid var(--nrd-border); margin: 20px 0; }
/* end nibra-rent-dz v1.0.5 frontend.css */
