/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B4F72;
  --primary-light: #2E86C1;
  --accent: #F39C12;
  --bg: #F2F5F9;
  --card-bg: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #4A5568;
  --text-light: #94A3B8;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 2px 16px rgba(27,79,114,0.10);
  --shadow-md: 0 6px 28px rgba(27,79,114,0.18);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

body.dark-mode {
  --bg: #121212;
  --card-bg: #1e1e1e;
  --text-dark: #f0f0f0;
  --text-mid: #a0a0a0;
  --text-light: #707070;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 28px rgba(0,0,0,0.5);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(80px + var(--safe-bottom));
  -webkit-tap-highlight-color: transparent;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1B4F72 0%, #2471A3 70%, #1ABC9C 100%);
  padding-top: var(--safe-top);
}

.header-content { padding: 14px 16px 12px; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.header-title { text-align: center; flex: 1; }
.header-title h1 { color: #fff; font-size: 1.25rem; font-weight: 900; line-height: 1.2; }
.header-title p { color: rgba(255,255,255,0.75); font-size: 0.72rem; margin-top: 1px; }
.header-icon { font-size: 1.8rem; }

.admin-btn, .back-btn {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  color: #fff;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.admin-btn:active, .back-btn:active { background: rgba(255,255,255,0.3); transform: scale(0.95); }

/* Search */
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  backdrop-filter: blur(8px);
}
.search-box { position: relative; }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.65); }
.search-box input:focus { background: rgba(255,255,255,0.25); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  display: flex;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(27,79,114,0.10);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  min-height: 58px;
}
.nav-btn .nav-icon { font-size: 1.4rem; line-height: 1; }
.nav-btn.active { color: var(--primary); }
.nav-btn.active .nav-icon { transform: scale(1.1); }
.nav-btn:active { transform: scale(0.92); }

/* ===== MAIN ===== */
.main-content { padding: 16px 14px 8px; max-width: 480px; margin: 0 auto; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section-dot {
  width: 5px; height: 24px;
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
  border-radius: 3px;
}
.section-title h2 { font-size: 1rem; font-weight: 800; color: var(--text-dark); }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 12px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  -webkit-tap-highlight-color: transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--primary));
}
.service-card:active { transform: scale(0.93); box-shadow: none; }

.service-emoji { font-size: 2.8rem; line-height: 1; display: block; }
.service-name { font-size: 0.88rem; font-weight: 800; line-height: 1.3; color: var(--text-dark); }

/* ===== SUBCATEGORIES ===== */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sub-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition);
}
.sub-card:active { transform: scale(0.95); background: #F8FAFC; }
.sub-icon { font-size: 1.6rem; flex-shrink: 0; }
.sub-name { font-size: 0.88rem; font-weight: 700; }

/* ===== CHIPS FILTER ===== */
.chips-container {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 16px 16px;
  margin: 0 -16px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips-container::-webkit-scrollbar {
  display: none;
}
.chip {
  background: var(--card-bg);
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.chip.active {
  background: var(--primary);
  color: #fff;
}
body.dark-mode .chip {
  background: var(--card-bg);
  color: var(--text-dark);
}
body.dark-mode .chip.active {
  background: var(--primary);
  color: #fff;
}

/* ===== LISTINGS ===== */
.listings-grid { display: flex; flex-direction: column; gap: 10px; }

.listing-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  min-height: 80px;
  -webkit-tap-highlight-color: transparent;
}
.listing-card:active { transform: scale(0.97); background: #F8FAFC; }

.listing-img {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  overflow: hidden;
}
.listing-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.listing-info { flex: 1; min-width: 0; }
.listing-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-sub { font-size: 0.75rem; color: var(--text-light); margin-bottom: 5px; }
.listing-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.listing-fee { font-size: 0.72rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.stars { color: #F59E0B; font-size: 0.75rem; }
.rating-num { font-size: 0.73rem; color: var(--text-mid); font-weight: 600; }
.listing-arrow { color: var(--text-light); font-size: 1.3rem; flex-shrink: 0; }

/* ===== DETAIL PAGE ===== */
.detail-main { padding: 14px 14px 8px; max-width: 480px; margin: 0 auto; padding-bottom: calc(100px + var(--safe-bottom)); }

.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.profile-img-wrap { margin-bottom: 12px; }
.profile-img {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
  border: 3px solid var(--accent);
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { font-size: 1.15rem; font-weight: 900; margin-bottom: 4px; }
.profile-specialty { color: var(--primary-light); font-size: 0.82rem; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.rating-row { display: flex; align-items: center; justify-content: center; gap: 6px; }

.info-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.info-body { flex: 1; }
.info-label { font-size: 0.72rem; color: var(--text-light); margin-bottom: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.info-value { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); line-height: 1.5; }

/* Sticky action buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.action-btn-wide { grid-column: span 2; }

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 12px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { transform: scale(0.96); }
.btn-call { background: linear-gradient(135deg, #27AE60, #2ECC71); color: #fff; }
.btn-whatsapp { background: linear-gradient(135deg, #128C7E, #25D366); color: #fff; }
.btn-location { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state, .no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}
.empty-icon, .no-results-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state p, .no-results p { font-size: 1rem; font-weight: 700; color: var(--text-mid); }
.empty-state small { font-size: 0.8rem; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 14px;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ===== ADMIN ===== */
.admin-body { background: #0D1B2A; min-height: 100vh; padding-bottom: 20px; }

.admin-header {
  background: linear-gradient(135deg, #0D1B2A, #1B4F72);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header h1 { color: #fff; font-size: 1rem; font-weight: 900; }
.admin-logout { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.82rem; min-height: 40px; }

.admin-main { padding: 14px; max-width: 480px; margin: 0 auto; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  font-family: 'Cairo', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-height: 42px;
}
.admin-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-tab:active { transform: scale(0.95); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-card-title { color: #fff; font-size: 0.92rem; font-weight: 800; }

.form-group { margin-bottom: 12px; }
.form-label { display: block; color: rgba(255,255,255,0.65); font-size: 0.78rem; margin-bottom: 6px; font-weight: 700; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  min-height: 46px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.form-select option { background: #1B4F72; }
.form-textarea { resize: vertical; min-height: 80px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #E67E22);
  color: #fff; border: none; border-radius: 12px;
  padding: 14px; font-family: 'Cairo', sans-serif;
  font-size: 0.92rem; font-weight: 800; cursor: pointer; width: 100%;
  transition: var(--transition); min-height: 50px;
}
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }

.btn-danger {
  background: rgba(231,76,60,0.15); border: 1px solid #E74C3C;
  color: #FC5C5C; border-radius: 10px; padding: 9px 13px;
  font-family: 'Cairo', sans-serif; font-size: 0.82rem; cursor: pointer;
  min-height: 40px; transition: var(--transition);
}
.btn-danger:active { background: rgba(231,76,60,0.3); }

.btn-cancel {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: 12px; padding: 13px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); min-height: 48px;
}
.btn-cancel:active { background: rgba(255,255,255,0.12); }

.listing-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 12px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.listing-item-name { color: #fff; font-size: 0.88rem; font-weight: 700; }
.listing-item-sub { color: rgba(255,255,255,0.45); font-size: 0.76rem; margin-top: 2px; }

.alert {
  padding: 12px 14px; border-radius: 12px;
  font-size: 0.83rem; font-weight: 700; margin-bottom: 12px; display: none;
}
.alert-success { background: rgba(39,174,96,0.12); border: 1px solid #27AE60; color: #2ECC71; }
.alert-error { background: rgba(231,76,60,0.12); border: 1px solid #E74C3C; color: #FC5C5C; }

/* Login */
.login-body {
  background: linear-gradient(160deg, #0D1B2A 0%, #1B4F72 100%);
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.login-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px; padding: 36px 24px;
  width: 100%; max-width: 360px; text-align: center;
}
.login-icon { font-size: 3rem; margin-bottom: 14px; }
.login-title { color: #fff; font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.login-sub { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-bottom: 28px; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(27,79,114,0.2); border-radius: 3px; }

/* ===== AD POPUP ===== */
.ad-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.ad-overlay.active { opacity: 1; pointer-events: all; }
.ad-overlay.closing { opacity: 0; pointer-events: none; }

.ad-modal {
  background: linear-gradient(135deg, #1B4F72, #2E86C1);
  border-radius: 28px;
  padding: 28px 22px 22px;
  width: 100%; max-width: 360px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
.ad-overlay.active .ad-modal { transform: translateY(0); }

.ad-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.ad-close:active { background: rgba(255,255,255,0.3); transform: scale(0.9); }

.ad-image-wrap {
  width: 100%; border-radius: 18px;
  overflow: hidden; margin-bottom: 16px;
  max-height: 180px;
}
.ad-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ad-body { margin-bottom: 14px; }
.ad-title { color: #fff; font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; line-height: 1.4; }
.ad-desc { color: rgba(255,255,255,0.82); font-size: 0.85rem; line-height: 1.6; }

.ad-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; min-height: 10px; }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: 0.3s; }
.ad-dot.active { background: #fff; width: 20px; border-radius: 4px; }

.ad-nav { justify-content: space-between; margin-bottom: 12px; }
.ad-nav-btn {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.ad-nav-btn:active { background: rgba(255,255,255,0.3); transform: scale(0.92); }

.ad-link-btn {
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary);
  border-radius: 14px; padding: 13px;
  font-family: 'Cairo', sans-serif; font-size: 0.9rem; font-weight: 800;
  text-decoration: none; margin-bottom: 10px;
  transition: 0.2s;
}
.ad-link-btn:active { transform: scale(0.97); opacity: 0.9; }

.ad-dismiss {
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75); border-radius: 12px; padding: 11px;
  font-family: 'Cairo', sans-serif; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; width: 100%; transition: 0.2s;
}
.ad-dismiss:active { background: rgba(255,255,255,0.2); }

/* Toggle Switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle-label { color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 700; }
.toggle {
  position: relative; width: 48px; height: 26px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15); border-radius: 26px; cursor: pointer;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; right: 3px;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: #27AE60; }
.toggle input:checked + .toggle-slider::before { right: calc(100% - 23px); }

/* Ad badge in listing */
.ad-active-badge {
  font-size: 0.7rem; background: #27AE60; color: #fff;
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
}
.ad-inactive-badge {
  font-size: 0.7rem; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4);
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
}

/* ===== SKELETON LOADERS ===== */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--bg) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
}
.skeleton * { opacity: 0; }
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== BACK TO TOP & DARK MODE TOGGLE ===== */
.floating-btn {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  border: none;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.floating-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#backToTopBtn { right: 20px; }
#addServiceBtn { 
  left: 20px; 
  opacity: 1; 
  pointer-events: auto; 
  transform: none; 
  background: var(--card-bg); 
  color: var(--text-dark);
  border: 1px solid var(--bg);
}
body.dark-mode #addServiceBtn { background: var(--bg); border: 1px solid var(--text-mid); }

/* ===== PWA BANNER ===== */
.pwa-banner {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom) + 60px);
  left: 16px;
  right: 16px;
  background: var(--card-bg);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transform: translateY(150%);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
body.dark-mode .pwa-banner {
  border-color: rgba(255,255,255,0.1);
}
.pwa-banner.show {
  transform: translateY(0);
}
.pwa-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-icon {
  font-size: 2rem;
}
.pwa-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.pwa-text p {
  font-size: 0.8rem;
  color: var(--text-mid);
}
.pwa-actions {
  display: flex;
  gap: 8px;
}
.pwa-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}
.pwa-close {
  background: transparent;
  color: var(--text-light);
  border: none;
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
}
