/* Proof Car Care customer PWA — light app design, active only in standalone (body.pwa-app) */
body.pwa-app { background: #eef2f7 !important; }

/* Top app bar from existing nav */
body.pwa-app nav {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .08) !important;
  position: sticky !important; top: 0; z-index: 900;
  backdrop-filter: none !important;
  border-bottom: none !important;
}
body.pwa-app .nav-brand, body.pwa-app .nav-brand span, body.pwa-app .nav-brand i { color: #0f172a !important; }
body.pwa-app .nav-brand img, body.pwa-app .nav-brand svg { filter: none !important; }
body.pwa-app .nav-cta {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important; border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, .35) !important;
}

/* Hero becomes a compact gradient banner */
body.pwa-app .hero {
  background: linear-gradient(160deg, #0ea5e9 0%, #0369a1 100%) !important;
  border-radius: 0 0 28px 28px !important;
  min-height: auto !important;
  padding: 28px 18px 34px !important;
}
body.pwa-app .hero-title { font-size: 1.6rem !important; line-height: 1.35 !important; }
body.pwa-app .hero-sub { font-size: .95rem !important; opacity: .92; }
body.pwa-app .hero .badge { background: rgba(255,255,255,.18) !important; color:#fff !important; }
body.pwa-app .hero-stats {
  display: flex !important; gap: 10px !important; flex-wrap: wrap !important;
}
body.pwa-app .hero-stats .stat {
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  backdrop-filter: blur(6px);
}
body.pwa-app .hero-features { gap: 8px !important; }
body.pwa-app .hero-features .feature-item {
  background: rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-size: .8rem !important;
}

/* Booking form as an elevated app card */
body.pwa-app .hero-form-wrap { margin-top: 18px !important; }
body.pwa-app .form-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12) !important;
  border: none !important;
  overflow: hidden;
}
body.pwa-app .form-card .form-card-header {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}
body.pwa-app .form-card input, body.pwa-app .form-card select, body.pwa-app .form-card textarea {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  color: #0f172a !important;
}
body.pwa-app .form-card input:focus, body.pwa-app .form-card select:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.18) !important;
}
body.pwa-app .form-card button[type="submit"], body.pwa-app .form-card .submit-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-radius: 14px !important;
}

/* Generic sections read as app cards on light bg */
body.pwa-app section:not(.hero) { padding: 26px 16px !important; }

/* Bottom tab bar (created by JS in standalone) */
.pwa-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; direction: rtl;
  background: #ffffff;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, .10);
  border-top: 1px solid #e2e8f0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pwa-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 7px; text-decoration: none;
  color: #64748b; font-size: .72rem; font-weight: 600;
}
.pwa-tabbar a i { font-size: 1.15rem; }
.pwa-tabbar a.pwa-tab-active, .pwa-tabbar a:active { color: #0ea5e9; }
body.pwa-app { padding-bottom: 74px !important; }
body.pwa-app #client-chat-toggle { bottom: 92px !important; }
body.pwa-app #client-chat-box { bottom: 160px !important; }

/* Install banner (browser mode only) */
.pwa-install-banner {
  position: fixed; right: 14px; left: 14px; bottom: 14px; z-index: 1100;
  display: flex; align-items: center; gap: 12px; direction: rtl;
  background: #0f172a; color: #fff;
  border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .35);
  animation: pwaSlideUp .45s ease;
  font-family: inherit;
}
@keyframes pwaSlideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pwa-install-banner img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.pwa-install-banner .pwa-ib-text { flex: 1; min-width: 0; }
.pwa-install-banner .pwa-ib-title { font-weight: 800; font-size: .92rem; }
.pwa-install-banner .pwa-ib-sub { font-size: .74rem; color: #94a3b8; margin-top: 2px; }
.pwa-install-banner .pwa-ib-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; border: none;
  border-radius: 12px; padding: 9px 14px; font-weight: 800; font-size: .82rem;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.pwa-install-banner .pwa-ib-close {
  background: none; border: none; color: #64748b; font-size: 1.05rem;
  cursor: pointer; padding: 4px; line-height: 1;
}
.pwa-install-toast {
  position: fixed; bottom: 90px; right: 16px; left: 16px; z-index: 1101;
  background: #1e293b; color: #e2e8f0; border-radius: 14px;
  padding: 12px 16px; font-size: .85rem; text-align: center; direction: rtl;
  box-shadow: 0 12px 30px rgba(15,23,42,.4);
}

.pwa-tabbar{top:auto;height:auto;min-height:0;max-height:none;}

body.pwa-app .hero-title span { background:none !important; -webkit-text-fill-color:#fff !important; color:#fff !important; }
body.pwa-app .hero-sub { color:rgba(255,255,255,.95) !important; }
body.pwa-app .hero-stats .stat-label { color:rgba(255,255,255,.88) !important; }
body.pwa-app .form-card-header p { color:rgba(255,255,255,.92) !important; }
