/* Customer PWA — mobile-first */
.app-body {
  background: #f3f7fc;
  min-height: 100vh;
  padding-bottom: 88px;
  font-family: "Tajawal", "Plus Jakarta Sans", Arial, sans-serif;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e3edf7;
  backdrop-filter: blur(12px);
}
.app-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.app-brand .brand-logo { width: 42px; height: 42px; flex: 0 0 42px; }
.app-brand .logo-img { width: 100%; height: 100%; object-fit: contain; }
.app-brand strong { display: block; color: #0b2b4a; font-size: 15px; font-weight: 800; line-height: 1.1; }
.app-brand small { display: block; color: #7a8ba0; font-size: 8.5px; letter-spacing: .6px; margin-top: 2px; }
.app-content { max-width: 560px; margin: 0 auto; padding: 16px 14px 28px; }
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #e3edf7;
  box-shadow: 0 -8px 30px rgba(7, 20, 38, .06);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.app-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 12px;
  color: #7a8ba0;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}
.app-nav a .icon { width: 21px; height: 21px; }
.app-nav a.active { color: #0b2b4a; background: #eef6ff; }

.app-hero {
  background: linear-gradient(135deg, #0b2b4a, #145da0);
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(11, 43, 74, .18);
}
.app-hero h1 { font-size: 21px; margin: 6px 0 4px; font-weight: 900; }
.app-hero p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.6; }
.app-hero .app-hero-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-hero .points { text-align: center; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px 12px; }
.app-hero .points strong { display: block; font-size: 20px; color: #ffd89b; }
.app-hero .points small { font-size: 9px; color: rgba(255,255,255,.7); }

.app-card {
  background: #fff;
  border: 1px solid #e3edf7;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(7, 20, 38, .04);
}
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.app-card-head h2 { font-size: 15px; margin: 0; color: #0b2b4a; font-weight: 800; }
.app-card-head p { margin: 3px 0 0; color: #7a8ba0; font-size: 11px; }
.app-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-card .meta > div { background: #f7fbff; border: 1px solid #e8f1f9; border-radius: 12px; padding: 8px 10px; }
.app-card .meta small { display: block; color: #7a8ba0; font-size: 10px; }
.app-card .meta strong { display: block; color: #0b2b4a; font-size: 12.5px; margin-top: 2px; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.app-actions .btn { flex: 1; min-width: 120px; }
.app-empty { text-align: center; padding: 22px 10px; color: #7a8ba0; }
.app-empty .icon { width: 34px; height: 34px; color: #9fb3c8; margin-bottom: 6px; }
.app-empty strong { display: block; color: #0b2b4a; font-size: 14px; }
.app-empty p { margin: 4px 0 0; font-size: 12px; }

.status-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-requested { background: #fff5db; color: #a56b00; }
.status-preparing { background: #e8f2ff; color: #1a5fb4; }
.status-ready { background: #e4f8ef; color: #087a58; }
.status-delivered { background: #e9eef5; color: #34495e; }
.status-cancelled { background: #fdeaea; color: #b3261e; }

.app-service-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e3edf7; }
.app-service-row:last-child { border-bottom: 0; }
.app-service-row span { color: #0b2b4a; font-weight: 700; font-size: 12.5px; }
.app-service-row small { color: #7a8ba0; font-size: 10px; display: block; }
.app-service-row a { font-size: 11px; font-weight: 800; color: #1a5fb4; text-decoration: none; }

.app-form .field { margin-bottom: 12px; }
.app-form label { display: block; color: #0b2b4a; font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.app-form input, .app-form select, .app-form textarea {
  width: 100%; border: 1px solid #d7e5f2; border-radius: 12px;
  padding: 11px 12px; font-size: 14px; background: #fff; color: #0b2b4a;
}
.app-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-form .service-option { display: flex; align-items: center; gap: 9px; border: 1px solid #e3edf7; border-radius: 12px; padding: 9px 10px; margin-bottom: 6px; background: #fff; }
.app-form .service-option input { width: 17px; height: 17px; accent-color: #ff5a00; }
.app-form .service-option span { flex: 1; }
.app-form .service-option strong { display: block; font-size: 12.5px; color: #0b2b4a; }
.app-form .service-option small { color: #7a8ba0; font-size: 10px; }
.app-form .price-tag { color: #ff5a00; font-weight: 800; font-size: 12px; }
.app-form .price-box { display: flex; justify-content: space-between; align-items: center; background: #fff7ed; border: 1px solid #ffe0bf; border-radius: 14px; padding: 12px 14px; margin: 8px 0 14px; }
.app-form .price-box .value { font-size: 22px; font-weight: 900; color: #ff5a00; }
.app-form .price-box small { color: #9a6b3a; }

.app-timeline { position: relative; margin: 8px 0 0; padding: 0; list-style: none; }
.app-timeline li { position: relative; padding: 0 0 16px 32px; border-inline-start: 2px solid #e3edf7; margin-inline-start: 9px; }
.app-timeline li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.app-timeline .dot { position: absolute; inset-inline-start: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #cfdded; border: 2px solid #fff; }
.app-timeline li.done .dot { background: #087a58; }
.app-timeline li.current .dot { background: #ff5a00; box-shadow: 0 0 0 4px rgba(255,90,0,.15); }
.app-timeline strong { display: block; font-size: 13px; color: #0b2b4a; }
.app-timeline small { color: #7a8ba0; font-size: 10.5px; }

.app-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.app-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 26px 22px; box-shadow: 0 24px 60px rgba(7, 20, 38, .12); border: 1px solid #e3edf7; }
.app-login-logo { text-align: center; margin-bottom: 12px; }
.app-login-logo .brand-logo { width: 118px; height: 118px; margin: 0 auto; }
.app-login-logo .logo-img { width: 100%; height: 100%; object-fit: contain; }
.app-login h1 { text-align: center; font-size: 22px; color: #0b2b4a; margin: 4px 0; }
.app-login p { text-align: center; color: #7a8ba0; font-size: 12.5px; margin: 0 0 16px; }
.app-login .demo-note { background: #f3f9ff; border: 1px dashed #b9d7f3; border-radius: 12px; padding: 9px 12px; color: #1a5fb4; font-size: 11.5px; margin-bottom: 12px; }

.app-qr { text-align: center; }
.app-qr img { width: 170px; height: 170px; }
.app-code { text-align: center; font-family: Consolas, monospace; font-size: 21px; font-weight: 800; color: #0b2b4a; letter-spacing: 1.5px; margin: 6px 0; }

@media (max-width: 380px) {
  .app-form .form-grid { grid-template-columns: 1fr; }
  .app-card .meta { grid-template-columns: 1fr; }
}
