* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; -webkit-tap-highlight-color: transparent; }

body {
  background: #0b141a;
  color: #e9edef;
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  background: #0b141a;
}

/* ============================================================ */
/* ==================== الهيدر ================================ */
/* ============================================================ */

.header {
  background: #202c33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #2a3942;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.round-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.2s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.logout-customer-btn {
  background: rgba(241, 92, 109, 0.15);
  border: 1px solid #f15c6d;
  color: #f15c6d;
}
.logout-customer-btn:hover {
  background: #f15c6d;
  color: #fff;
  transform: scale(1.08);
}
.logout-customer-btn:active { transform: scale(0.95); }

.add-tokens-btn {
  background: linear-gradient(135deg, #00a884, #005c4b);
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
  padding-bottom: 4px;
}
.add-tokens-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 168, 132, 0.6);
}
.add-tokens-btn:active { transform: scale(0.95); }

/* زر التحميل في الهيدر */
.download-header-btn {
  background: linear-gradient(135deg, #0e3d5c, #005c7a) !important;
  border: 1px solid #53bdeb !important;
  color: #fff !important;
  font-size: 20px !important;
}
.download-header-btn:hover {
  background: #53bdeb !important;
  color: #fff !important;
  transform: scale(1.08);
}
.download-header-btn:active { transform: scale(0.95); }

/* زر قائمة الموبايل (3 شخطات) */
.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid #00a884;
  color: #00a884;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.hamburger-btn:hover {
  background: #00a884;
  color: #fff;
  transform: scale(1.08);
}
.hamburger-btn:active { transform: scale(0.95); }

.token-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0e3d5c, #005c7a);
  border: 1px solid #53bdeb;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(83, 189, 235, 0.2);
  flex-shrink: 0;
}
.token-balance .token-icon { font-size: 16px; }
.token-balance .token-count {
  font-weight: bold;
  color: #53bdeb;
  font-size: 16px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #005c4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info {
  min-width: 0;
  overflow: hidden;
  text-align: right;
}
.info .name {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info .status {
  font-size: 11.5px;
  color: #8696a0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================ */
/* ================ قائمة الموبايل المنسدلة ================== */
/* ============================================================ */

.mobile-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85%;
  height: 100vh;
  background: #202c33;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 70px 0 20px;
  overflow-y: auto;
}
.mobile-dropdown.show { transform: translateX(0); }

.mobile-dropdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-dropdown-overlay.show { opacity: 1; pointer-events: all; }

.mobile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #e9edef;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  text-align: right;
  border-bottom: 1px solid #1f2c33;
}
.mobile-menu-item:hover { background: #2a3942; }
.mobile-menu-item:active { background: #00a884; }
.mobile-menu-item.danger { color: #f15c6d; }
.mobile-menu-item.danger:hover { background: rgba(241, 92, 109, 0.15); }

.mobile-menu-item .mm-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.mobile-menu-item .mm-info { flex: 1; text-align: right; }
.mobile-menu-item .mm-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 3px;
}
.mobile-menu-item .mm-sub {
  font-size: 12px;
  color: #8696a0;
}

/* ============================================================ */
/* ==================== المحتوى ============================== */
/* ============================================================ */

.content {
  flex: 1;
  padding: 16px;
  padding-bottom: 100px;
}

.section-title {
  font-size: 15px;
  font-weight: bold;
  margin: 16px 0 12px;
  padding-right: 10px;
  border-right: 3px solid #00a884;
}
.section-title:first-child { margin-top: 0; }

/* ============================================================ */
/* ============== فورم بيانات السيارة ======================== */
/* ============================================================ */

.car-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #1a262d;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 14px;
}
@media (max-width: 700px) { .car-form { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 450px) { .car-form { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 12.5px;
  color: #8696a0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-group.required label { color: #e9edef; }
.req-star { color: #f15c6d; font-weight: bold; font-size: 14px; }

.form-group input {
  background: #202c33;
  border: 1.5px solid #2a3942;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e9edef;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: 0.2s;
  width: 100%;
}
.form-group input:focus { border-color: #00a884; background: #182229; }
.form-group input.error {
  border-color: #f15c6d;
  background: #2a1218;
  animation: shake 0.3s;
}
.form-group input::placeholder { color: #5c6872; font-size: 13px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================================ */
/* ==================== شبكة الخدمات ========================= */
/* ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 500px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-btn {
  background: #202c33;
  border: 2px solid #2a3942;
  border-radius: 12px;
  padding: 12px 8px;
  color: #e9edef;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 90px;
  justify-content: center;
}
.service-btn:active { transform: scale(0.96); }
.service-btn.selected {
  background: #005c4b;
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.25);
}
.svc-icon { font-size: 24px; }
.svc-name { font-weight: bold; font-size: 12.5px; letter-spacing: 0.2px; }
.svc-desc { font-size: 10.5px; color: #8696a0; line-height: 1.3; }

/* ============================================================ */
/* ============== صندوق التوكن المطلوب ======================= */
/* ============================================================ */

.token-cost-box {
  background: linear-gradient(135deg, #0e3d5c, #0a2a3f);
  border: 2px solid #53bdeb;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.token-cost-label { color: #8696a0; font-size: 14px; font-weight: 600; }
.token-cost-value { font-size: 22px; font-weight: bold; color: #53bdeb; }
.token-cost-balance { font-size: 13px; font-weight: 600; }

/* ============================================================ */
/* ==================== الملاحظات ============================ */
/* ============================================================ */

.note-box { margin-top: 14px; }
.note-label { font-size: 13px; color: #8696a0; margin-bottom: 6px; font-weight: 600; }

.note-box textarea,
.payment-section input[type="text"] {
  width: 100%;
  background: #202c33;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: 12px;
  color: #e9edef;
  font-size: 15px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.note-box textarea:focus,
.payment-section input[type="text"]:focus { border-color: #00a884; }
.note-box textarea::placeholder,
.payment-section input[type="text"]::placeholder { color: #8696a0; }

/* ============================================================ */
/* ==================== قسم الدفع ============================ */
/* ============================================================ */

.payment-section {
  margin-top: 14px;
  background: #1a262d;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 12px;
}
.payment-info {
  background: #202c33;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 4px;
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}
.payment-row + .payment-row { border-top: 1px solid #2a3942; }
.pay-label { color: #8696a0; font-weight: 600; flex-shrink: 0; }
.pay-value {
  color: #00d49f;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: right;
  word-break: break-word;
}
.pay-value.wallet-id {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  background: #182229;
  padding: 6px 10px;
  border-radius: 6px;
  word-break: break-all;
  direction: ltr;
  text-align: center;
}

.copy-wallet-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: linear-gradient(135deg, #00a884, #005c4b);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.copy-wallet-btn:active { transform: scale(0.97); }

.payment-section input.error {
  border-color: #f15c6d !important;
  background: #2a1218 !important;
}

/* ============================================================ */
/* ==================== QR Code ============================== */
/* ============================================================ */

.qr-container {
  margin-top: 14px;
  background: #202c33;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.qr-label {
  font-size: 12.5px;
  color: #8696a0;
  margin-bottom: 10px;
  font-weight: 600;
}
.qr-frame {
  display: inline-block;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #00a884;
}
.qr-frame img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 6px;
}

/* ============================================================ */
/* ==================== رفع الملفات ========================== */
/* ============================================================ */

.upload-section { margin-top: 20px; }
.drop-zone {
  background: #202c33;
  border: 2px dashed #2a3942;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.drop-zone:active { border-color: #00a884; background: #1a262d; }
.drop-zone.error {
  border-color: #f15c6d !important;
  background: #2a1218 !important;
  animation: shake 0.4s;
}
.drop-icon { font-size: 34px; margin-bottom: 6px; }
.drop-text { font-size: 14px; margin-bottom: 4px; }
.drop-hint { font-size: 11.5px; color: #8696a0; }

.upload-required-hint {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: 0.3s;
  display: none;
}
.upload-required-hint.show {
  display: block;
  background: #4a1218;
  color: #f15c6d;
  border: 1px solid #f15c6d;
}
.upload-required-hint.ok {
  display: block;
  background: #0e3a2a;
  color: #00d49f;
  border: 1px solid #00a884;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.file-item {
  background: #202c33;
  border-radius: 8px;
  padding: 8px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.file-item img { width: 100%; height: 70px; object-fit: cover; border-radius: 5px; }
.file-item .file-icon { font-size: 28px; padding: 15px 0; }
.file-item .f-name { font-size: 10.5px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .f-size { font-size: 10px; color: #8696a0; }
.file-item .remove-btn {
  position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px;
  background: #f15c6d; color: white;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ============================================================ */
/* ==================== زر الإرسال =========================== */
/* ============================================================ */

.submit-btn {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 876px;
  margin: 0 auto;
  padding: 15px;
  background: #00a884;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 40;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.submit-btn:active:not(:disabled) { background: #008f72; transform: scale(0.98); }
.submit-btn:disabled { background: #374248; color: #8696a0; cursor: not-allowed; }

/* ============================================================ */
/* ==================== الطلبات السابقة ====================== */
/* ============================================================ */

.my-requests { margin-top: 30px; }
.requests-list { display: flex; flex-direction: column; gap: 12px; }
.request-card {
  background: #202c33;
  border-radius: 12px;
  padding: 14px;
  border-right: 4px solid #8696a0;
}
.request-card.pending { border-right-color: #f0b232; }
.request-card.in-progress { border-right-color: #53bdeb; }
.request-card.done { border-right-color: #00a884; }
.request-card.rejected { border-right-color: #f15c6d; }

.req-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.req-time { font-size: 11.5px; color: #8696a0; }
.req-status {
  font-size: 11px; padding: 3px 10px;
  border-radius: 12px; font-weight: bold;
}
.req-status.pending { background: #4a3a12; color: #f0b232; }
.req-status.in-progress { background: #163d50; color: #53bdeb; }
.req-status.done { background: #0e3a2a; color: #00d49f; }
.req-status.rejected { background: #4a1218; color: #f15c6d; }

.req-car-summary {
  background: #182229;
  border-right: 3px solid #53bdeb;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #53bdeb;
  font-weight: 600;
}

.req-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.req-services .svc-badge {
  background: linear-gradient(135deg, #005c4b, #007a63);
  color: #e9edef;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #00a884;
}

.req-text { font-size: 13.5px; line-height: 1.5; color: #d1d7db; margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }
.req-files, .req-reply-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.req-file-thumb, .req-reply-file-thumb {
  width: 55px; height: 55px;
  border-radius: 6px; object-fit: cover;
  cursor: pointer; border: 1px solid #2a3942;
}
.req-file-doc, .req-reply-file-doc {
  display: flex; align-items: center; gap: 6px;
  background: #182229; padding: 6px 10px;
  border-radius: 6px; text-decoration: none;
  color: #e9edef; font-size: 12px;
  max-width: 180px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.req-reply {
  background: #005c4b;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.req-reply-label { font-size: 11px; color: #aebac1; margin-bottom: 4px; font-weight: bold; }

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}
.payment-badge.pending { background: #4a3a12; color: #f0b232; }
.payment-badge.paid { background: #0e3a2a; color: #00d49f; }

/* ============================================================ */
/* ==================== عارض الصور =========================== */
/* ============================================================ */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 300;
  display: none; justify-content: center; align-items: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; border-radius: 8px; }

/* ============================================================ */
/* ==================== نافذة ================================ */
/* ============================================================ */

.modal {
  position: fixed; inset: 0;
  background: rgba(11, 20, 26, 0.95);
  z-index: 200;
  display: none; justify-content: center; align-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal.active { display: flex; }
.modal-box {
  background: #202c33;
  padding: 26px 22px;
  border-radius: 14px;
  text-align: center;
  width: 100%; max-width: 420px;
  margin: auto;
}
.modal-box h2 { margin-bottom: 8px; font-size: 20px; }
.modal-box p { margin-bottom: 18px; color: #8696a0; font-size: 13.5px; }
.modal-box input {
  width: 100%; padding: 13px;
  border-radius: 8px; border: 1px solid #2a3942;
  background: #2a3942; color: #fff;
  margin-bottom: 12px; outline: none; font-size: 15px;
}
.modal-box input:focus { border-color: #00a884; }
.modal-box button.auth-btn {
  width: 100%; padding: 13px;
  border-radius: 8px; border: none;
  background: #00a884; color: #fff;
  font-weight: bold; cursor: pointer; font-size: 15px;
}
.back-link {
  display: block;
  margin-top: 14px;
  color: #53bdeb;
  text-decoration: none;
  font-size: 13px;
}

/* خيارات الشحن */
.recharge-option {
  padding: 12px;
  background: #182229;
  border: 2px solid #2a3942;
  border-radius: 10px;
  color: #e9edef;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  font-size: 14px;
}
.recharge-option:hover {
  border-color: #53bdeb;
  background: #0e3d5c;
}
.recharge-option.active {
  border-color: #53bdeb;
  background: linear-gradient(135deg, #0e3d5c, #005c7a);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(83, 189, 235, 0.3);
}

.sham-payment-info {
  background: #182229;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 13.5px;
  color: #e9edef;
  line-height: 1.7;
  text-align: right;
}
.sham-payment-info b { color: #00d49f; }

/* ============================================================ */
/* ============== نافذة التحميل (APK + EXE) ================== */
/* ============================================================ */

.download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #182229;
  border: 2px solid #2a3942;
  border-radius: 12px;
  text-decoration: none;
  color: #e9edef;
  transition: 0.2s;
  cursor: pointer;
}
.download-option:hover {
  border-color: #00a884;
  background: #1a262d;
  transform: translateY(-2px);
}
.download-option:active { transform: scale(0.98); }

.download-option .do-icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}
.download-option .do-info { flex: 1; text-align: right; }
.download-option .do-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}
.download-option .do-desc {
  font-size: 12.5px;
  color: #8696a0;
}
.download-option .do-arrow {
  font-size: 24px;
  color: #00a884;
}

/* ============================================================ */
/* ==================== Toast ================================ */
/* ============================================================ */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #00a884;
  color: white;
  padding: 14px 28px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  z-index: 999999;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  box-shadow: 0 8px 30px rgba(0, 168, 132, 0.5);
  max-width: 90%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error {
  background: #f15c6d;
  box-shadow: 0 8px 30px rgba(241, 92, 109, 0.5);
}

/* ============================================================ */
/* ============== شاشات تسجيل الدخول ========================= */
/* ============================================================ */

.auth-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a262d 0%, #0b141a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.auth-card {
  background: #202c33;
  border: 1px solid #2a3942;
  border-radius: 18px;
  padding: 32px 26px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin: auto;
}
.auth-logo {
  width: 70px; height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #005c4b);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 25px rgba(0, 168, 132, 0.4);
}
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #e9edef;
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: #8696a0;
  margin-bottom: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #182229;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 20px;
}
.auth-tab {
  background: none;
  border: none;
  padding: 10px;
  color: #8696a0;
  font-weight: bold;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.auth-tab.active {
  background: #00a884;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.auth-field label {
  font-size: 13px;
  color: #e9edef;
  font-weight: 600;
}
.auth-field input {
  background: #2a3942;
  border: 1.5px solid #2a3942;
  border-radius: 10px;
  padding: 12px 14px;
  color: #e9edef;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
  font-family: inherit;
}
.auth-field input:focus {
  border-color: #00a884;
  background: #182229;
}
.auth-field input::placeholder { color: #5c6872; font-size: 13.5px; }

.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #00a884, #005c4b);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 6px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(0, 168, 132, 0.4); }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { background: #374248; cursor: not-allowed; }

.auth-link {
  text-align: center;
  color: #53bdeb;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}
.auth-link:hover { color: #7fd1f5; }

.auth-error {
  color: #f15c6d;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  padding: 4px 0;
}

.auth-info {
  font-size: 14px;
  color: #e9edef;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ============================================================ */
/* ==================== لوحة التحكم ========================== */
/* ============================================================ */

.admin-body {
  background: #0b141a;
  overflow-x: hidden;
}

.admin-app {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: #0b141a;
  position: relative;
}

.admin-sidebar {
  width: 320px;
  background: #111b21;
  border-left: 1px solid #2a3942;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 60;
}

.admin-sidebar-header {
  padding: 16px;
  background: #202c33;
  border-bottom: 1px solid #2a3942;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-title { font-size: 16px; font-weight: bold; }
.admin-sub { font-size: 12px; color: #8696a0; margin-top: 3px; }
.sidebar-close-btn {
  background: none; border: none; color: #8696a0;
  font-size: 20px; cursor: pointer; display: none;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.sidebar-close-btn:hover { background: #2a3942; color: #fff; }

.sidebar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px 10px;
  background: #0b141a;
  border-bottom: 1px solid #2a3942;
}
.sidebar-tab {
  padding: 8px 6px;
  background: none;
  border: none;
  color: #8696a0;
  font-weight: bold;
  font-size: 12.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  position: relative;
}
.sidebar-tab.active {
  background: #00a884;
  color: #fff;
}
.sidebar-tab:hover:not(.active) {
  background: #202c33;
  color: #e9edef;
}
.badge {
  background: #f15c6d;
  color: white;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  margin-right: 4px;
  font-weight: bold;
}

.admin-customer-list,
.admin-recharge-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.admin-customer-list::-webkit-scrollbar,
.admin-recharge-list::-webkit-scrollbar { width: 5px; }
.admin-customer-list::-webkit-scrollbar-thumb,
.admin-recharge-list::-webkit-scrollbar-thumb { background: #374248; }

.admin-customer-item {
  padding: 12px 14px;
  border-bottom: 1px solid #1f2c33;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.15s;
}
.admin-customer-item:hover { background: #202c33; }
.admin-customer-item.active { background: #2a3942; border-right: 3px solid #00a884; }

.ac-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #005c4b);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 16px;
  flex-shrink: 0;
  color: #fff;
}
.ac-info { flex: 1; overflow: hidden; min-width: 0; }
.ac-name {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-last { font-size: 12px; color: #8696a0; margin-top: 3px; }
.ac-meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  font-size: 11px; color: #8696a0;
  flex-shrink: 0;
}
.ac-unread {
  background: #00a884; color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px; font-weight: bold;
}

.admin-logout-btn {
  margin: 12px;
  padding: 12px;
  background: #f15c6d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
.admin-logout-btn:active { background: #d94a5a; }

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  background: #202c33;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2a3942;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-menu-btn {
  background: none; border: none;
  color: #aebac1; font-size: 24px;
  cursor: pointer; padding: 6px 10px;
  border-radius: 8px;
  display: none;
}
.admin-menu-btn:hover { background: #2a3942; color: #fff; }
.admin-header-right { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.admin-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #005c4b);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.admin-info { min-width: 0; overflow: hidden; }
.admin-info .admin-name { font-weight: bold; font-size: 15px; }
.admin-info .admin-status {
  font-size: 12px; color: #8696a0; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-site-link {
  color: #53bdeb; text-decoration: none;
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-site-link:hover { background: #2a3942; }

.admin-content {
  flex: 1;
  padding: 16px;
  overflow-x: hidden;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #8696a0;
  gap: 12px;
}
.admin-empty-icon { font-size: 64px; opacity: 0.4; }
.admin-empty p { font-size: 15px; }

.admin-customer-header {
  background: #202c33;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ac-header-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #005c4b);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}
.ac-header-info { flex: 1; min-width: 150px; }
.ac-header-name { font-size: 16px; font-weight: bold; }
.ac-header-status { font-size: 12px; color: #8696a0; margin-top: 4px; line-height: 1.6; }

.admin-requests {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req-customer-info {
  background: #182229;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-right: 3px solid #53bdeb;
}
.req-info-row {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  padding: 3px 0;
  flex-wrap: wrap;
}
.req-info-label { color: #8696a0; font-weight: 600; flex-shrink: 0; }
.req-info-value { color: #e9edef; font-weight: 600; word-break: break-word; }

.req-section { margin-bottom: 12px; }
.req-section-title {
  font-size: 12.5px;
  color: #8696a0;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 6px;
  border-right: 2px solid #00a884;
}

.req-details-box {
  background: linear-gradient(135deg, #0e3d5c 0%, #0a2a3f 100%);
  border: 2px solid #53bdeb;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 4px 15px rgba(83, 189, 235, 0.15);
}
.req-details-header {
  font-size: 13px;
  color: #53bdeb;
  font-weight: 800;
  margin-bottom: 10px;
}
.req-details-content {
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.car-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
}
.car-info-item {
  display: flex;
  gap: 6px;
  font-size: 13.5px;
  padding: 3px 0;
  flex-wrap: wrap;
}
.car-info-item .ci-label { color: #53bdeb; font-weight: 700; flex-shrink: 0; }
.car-info-item .ci-value { color: #ffffff; font-weight: 500; word-break: break-word; }

.admin-reply-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a3942;
}
.admin-reply-box textarea {
  width: 100%;
  background: #182229;
  border: 1px solid #2a3942;
  border-radius: 8px;
  padding: 12px;
  color: #e9edef;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.admin-reply-box textarea:focus { border-color: #00a884; }

.admin-reply-attach { margin-top: 8px; }
.reply-attach-btn {
  background: #2a3942;
  color: #e9edef;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}
.reply-attach-btn:active { background: #374248; }

.reply-files-preview {
  display: flex; gap: 8px;
  flex-wrap: wrap; margin-top: 8px;
}
.reply-file-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: #182229;
  border-radius: 8px;
  padding: 6px;
  min-width: 70px; max-width: 100px;
  font-size: 10.5px; text-align: center;
}
.reply-file-item img {
  width: 60px; height: 60px;
  object-fit: cover; border-radius: 5px;
}
.reply-file-item .rf-icon { font-size: 28px; padding: 12px 0; }
.reply-file-item .rf-name {
  width: 100%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  color: #e9edef; margin-top: 4px;
}
.reply-file-item .rf-remove {
  position: absolute;
  top: -6px; left: -6px;
  width: 20px; height: 20px;
  background: #f15c6d; color: white;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 12px;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.admin-reply-actions {
  display: flex; flex-direction: column;
  gap: 10px; margin-top: 10px;
}
.btn-send-reply {
  background: #00a884;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.btn-send-reply:active { background: #008f72; }

.admin-status-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.btn-status {
  background: #2a3942;
  color: #e9edef;
  border: none;
  padding: 9px 4px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-status:active { transform: scale(0.96); }
.btn-status.active-pending { background: #f0b232; color: #000; }
.btn-status.active-progress { background: #53bdeb; color: #000; }
.btn-status.active-done { background: #00a884; color: #fff; }
.btn-status.active-reject { background: #f15c6d; color: #fff; }

.admin-payment-box {
  background: #1a262d;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}
.admin-payment-box .pay-ref {
  color: #00d49f;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  word-break: break-all;
}
.admin-payment-box .pay-ref span {
  font-family: 'Courier New', monospace;
  background: #182229;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
}
.admin-payment-box .pay-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 6px;
}
.admin-payment-box .pay-status.paid { background: #0e3a2a; color: #00d49f; }
.admin-payment-box .pay-status.pending { background: #4a3a12; color: #f0b232; }
.btn-verify-payment {
  background: #00a884;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.recharge-btn {
  background: linear-gradient(135deg, #0e3d5c, #005c7a);
  border: 1px solid #53bdeb;
  color: #53bdeb;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
  font-family: inherit;
}
.recharge-btn:hover { background: #53bdeb; color: #fff; }

.wa-contact-btn {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wa-contact-btn:hover { background: #25D366; color: #fff; }

.delete-customer-btn {
  background: rgba(241, 92, 109, 0.15);
  border: 1px solid #f15c6d;
  color: #f15c6d;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
  font-family: inherit;
}
.delete-customer-btn:hover { background: #f15c6d; color: #fff; }

/* ============================================================ */
/* ============== كروت طلبات الشحن =========================== */
/* ============================================================ */

.recharge-card {
  background: #202c33;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #2a3942;
  border-right: 4px solid #53bdeb;
}
.recharge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.recharge-card-name { font-size: 15px; font-weight: bold; color: #e9edef; }
.recharge-card-time { font-size: 11.5px; color: #8696a0; margin-top: 3px; }
.recharge-card-tokens {
  background: linear-gradient(135deg, #0e3d5c, #005c7a);
  color: #53bdeb;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 15px;
  border: 1px solid #53bdeb;
}
.recharge-card-usd { font-size: 13.5px; color: #e9edef; margin-bottom: 6px; }
.recharge-card-usd b { color: #00d49f; }
.recharge-card-ref { font-size: 13.5px; color: #e9edef; margin-bottom: 8px; word-break: break-all; }
.recharge-card-ref span {
  background: #182229;
  padding: 3px 8px;
  border-radius: 5px;
  color: #00d49f;
}
.recharge-card-img-wrap { margin: 10px 0; text-align: center; }
.recharge-card-img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #2a3942;
  transition: 0.2s;
}
.recharge-card-img:hover { border-color: #00a884; }

.recharge-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.btn-approve {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #00a884, #005c4b);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn-approve:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 168, 132, 0.4); }
.btn-approve:active { transform: scale(0.97); }
.btn-reject {
  background: rgba(241, 92, 109, 0.15);
  border: 1px solid #f15c6d;
  color: #f15c6d;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn-reject:hover { background: #f15c6d; color: #fff; }

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 55;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-overlay.show { display: block; opacity: 1; }

/* ============================================================ */
/* ==================== Responsive =========================== */
/* ============================================================ */

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    height: 100vh;
    z-index: 60;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; align-items: center; justify-content: center; }
  .admin-menu-btn { display: flex; }
  .admin-content { padding: 12px; }
}

@media (max-width: 700px) {
  /* نظهر زر القائمة على الموبايل */
  .hamburger-btn { display: flex; }
  
  /* نخفي زر التحميل من الهيدر (متوفر في القائمة) */
  .download-header-btn { display: none !important; }
  
  /* نخفي زر الباب من الهيدر (متوفر في القائمة) */
  .logout-customer-btn { display: none !important; }
}

@media (max-width: 600px) {
  .admin-header { padding: 10px 12px; }
  .admin-avatar { width: 38px; height: 38px; font-size: 18px; }
  .admin-info .admin-name { font-size: 14px; }
  .admin-info .admin-status { font-size: 11px; }

  .admin-status-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .btn-status { font-size: 12px; padding: 10px 6px; }

  .admin-customer-header { padding: 12px; }
  .ac-header-avatar { width: 44px; height: 44px; font-size: 18px; }
  .ac-header-name { font-size: 14.5px; }

  .request-card { padding: 12px; }
  .req-file-thumb, .req-reply-file-thumb { width: 50px; height: 50px; }
  .reply-file-item { min-width: 60px; max-width: 85px; }
  .reply-file-item img { width: 50px; height: 50px; }

  .qr-frame img { width: 160px; height: 160px; }

  .req-details-content { font-size: 15px; padding: 10px; line-height: 1.6; }
  .req-details-box { padding: 12px; }
  .req-details-header { font-size: 12.5px; }

  .car-info-grid { grid-template-columns: 1fr; }

  /* هيدر الزبون على الموبايل */
  .header { padding: 8px 10px; gap: 6px; }
  .round-icon-btn { width: 38px; height: 38px; font-size: 18px; }
  .add-tokens-btn { font-size: 22px; }
  .avatar { width: 38px; height: 38px; font-size: 18px; }
  .token-balance { padding: 6px 10px; }
  .token-balance .token-count { font-size: 14px; }
  .info .name { font-size: 13px; }
  .info .status { font-size: 10.5px; }

  .toast {
    font-size: 13.5px;
    padding: 12px 20px;
    white-space: normal;
    max-width: 85%;
  }
}

@media (max-width: 500px) {
  .hamburger-btn { width: 38px; height: 38px; font-size: 20px; }
  .mobile-dropdown { width: 260px; }
  .download-option { padding: 14px; }
  .download-option .do-icon { font-size: 30px; width: 44px; }
}

@media (max-width: 400px) {
  .admin-status-buttons { grid-template-columns: 1fr; }
  .admin-content { padding: 10px; }

  .svc-name { font-size: 11px; }
  .svc-icon { font-size: 20px; }
  .service-btn { min-height: 80px; padding: 10px 6px; }
}