@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root{
  --blue:#0A3D91;
  --blue-dark:#08357f;
  --yellow:#F5B301;

  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --bg:#ffffff;
  --card: rgba(255,255,255,.88);
  --text:#0f172a;
  --muted:#334155;
  --border:var(--cs-line-dbe3f1, #dbe3f1);
  --shadow: 0 14px 40px rgba(15,23,42,.10);
}

/* Prevent body scroll when cards scroll internally */
body {
  overflow-x: hidden;
  position: relative;
}

main, .page-main, .dashboard-main {
  padding-top: 90px !important;
  width: 100%;
}

/* ===== Scrollbar styling for scrollable cards ===== */
.admin-card::-webkit-scrollbar,
.dash-card::-webkit-scrollbar,
.settings-card::-webkit-scrollbar,
.card::-webkit-scrollbar,
main::-webkit-scrollbar,
.page-main::-webkit-scrollbar {
  width: 6px;
}
.admin-card::-webkit-scrollbar-track,
.dash-card::-webkit-scrollbar-track,
.settings-card::-webkit-scrollbar-track,
.card::-webkit-scrollbar-track,
main::-webkit-scrollbar-track,
.page-main::-webkit-scrollbar-track {
  background: var(--cs-surface-f1f5f9, #f1f5f9);
  border-radius: 999px;
}
.admin-card::-webkit-scrollbar-thumb,
.dash-card::-webkit-scrollbar-thumb,
.settings-card::-webkit-scrollbar-thumb,
.card::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb,
.page-main::-webkit-scrollbar-thumb {
  background: var(--cs-surface-cbd5e1, #cbd5e1);
  border-radius: 999px;
}
.admin-card::-webkit-scrollbar-thumb:hover,
.dash-card::-webkit-scrollbar-thumb:hover,
.settings-card::-webkit-scrollbar-thumb:hover,
.card::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover,
.page-main::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ordinary cards use the page scroll; dialogs and chat lists opt in separately. */
.admin-card, .dash-card, .settings-card, .card {
  max-height: none;
}

/* Finished lists should allow scrolling to continue onto the page. */
[style*="overflow-y:auto"],
[style*="overflow:auto"],
[style*="overflow-y:scroll"],
[style*="overflow:scroll"] {
  overscroll-behavior: auto;
}

/* ===== Reviews scrollbar styling ===== */
[id^="reviewsList_"]::-webkit-scrollbar {
  width: 6px;
}
[id^="reviewsList_"]::-webkit-scrollbar-track {
  background: var(--cs-surface-f1f5f9, #f1f5f9);
  border-radius: 999px;
}
[id^="reviewsList_"]::-webkit-scrollbar-thumb {
  background: var(--cs-surface-cbd5e1, #cbd5e1);
  border-radius: 999px;
}
[id^="reviewsList_"]::-webkit-scrollbar-thumb:hover {
  background: #0a3d91;
}

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
canvas,
iframe{
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-ui);
  font-weight: 700;
}

button, .btn, .tab, .nav-link, .logo, .label{
  font-family: var(--font-ui);
}

b, strong{
  font-weight: 600;
}

a{ text-decoration:none; color: inherit; }

.container{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
}

/* ===== GLOBAL MODALS / POPUPS ===== */
.modal-bg,
.modal-overlay,
.verify-backdrop,
.review-modal,
.details-overlay,
.request-modal-overlay,
.auth-modal-bg,
.ach-overlay,
.loading-overlay,
.chat-popup-overlay{
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.58) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200 !important;
}

.modal,
.details-modal,
.request-modal,
.ach-modal,
.verify-result-modal,
.auth-modal{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(760px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  overflow: auto !important;
  background: var(--cs-surface-ffffff, #ffffff) !important;
  color: var(--text) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28) !important;
  z-index: 1210 !important;
}

.modal-box,
.modal-content,
.loading-content{
  width: min(920px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  margin: clamp(16px, 4vh, 38px) auto !important;
  overflow: auto !important;
  background: var(--cs-surface-ffffff, #ffffff) !important;
  color: var(--text) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28) !important;
}

.chat-popup{
  width: min(420px, calc(100vw - 16px)) !important;
  max-height: calc(100vh - 20px) !important;
  border-radius: 22px !important;
}

.modal-head,
.modal-header,
.auth-modal-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px 22px 14px !important;
  border-bottom: 1px solid var(--cs-line-e5e7eb, #e5e7eb) !important;
}

.modal-title,
.modal-header h2,
.modal-head h2,
.auth-modal-title{
  margin: 0 !important;
  color: var(--cs-ink-0a3d91, var(--blue)) !important;
  font-size: clamp(18px, 2.2vw, 24px) !important;
  line-height: 1.2 !important;
}

.modal-body,
.auth-modal-body{
  padding: 18px 22px 22px !important;
  overflow: auto !important;
}

.auth-modal-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.modal-footer,
.modal-actions,
.auth-modal-actions{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 16px 22px 20px !important;
  border-top: 1px solid var(--cs-line-e5e7eb, #e5e7eb) !important;
}

.modal-close,
.close,
.verify-close,
.request-modal-close{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid var(--cs-line-dbe3f1, #dbe3f1) !important;
  background: var(--cs-surface-ffffff, #ffffff) !important;
  color: var(--cs-ink-334155, #334155) !important;
  cursor: pointer !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: background .15s ease, transform .15s ease !important;
}

.modal-close:hover,
.close:hover,
.verify-close:hover,
.request-modal-close:hover{
  background: var(--cs-surface-eff6ff, #eff6ff) !important;
  transform: translateY(-1px);
}

.modal-actions .btn,
.modal-footer .btn,
.auth-modal-actions .btn,
.modal-actions button,
.modal-footer button,
.auth-modal-actions button{
  min-height: 44px;
}

@media (max-width: 900px){
  .modal,
  .details-modal,
  .request-modal,
  .ach-modal,
  .verify-result-modal,
  .auth-modal,
  .chat-popup{
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 16px !important;
  }

  .modal-box,
  .modal-content,
  .loading-content{
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 16px !important;
  }

  .modal-head,
  .modal-header,
  .auth-modal-head,
  .modal-body,
  .auth-modal-body,
  .modal-footer,
  .modal-actions,
  .auth-modal-actions{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 640px){
  .modal-footer,
  .modal-actions,
  .auth-modal-actions{
    justify-content: stretch !important;
  }

  .modal-footer > *,
  .modal-actions > *,
  .auth-modal-actions > *{
    width: 100% !important;
  }
}

@media (max-width: 900px){
  .container{ padding: 0 18px; }
}

@media (max-width: 600px){
  .container{ padding: 0 12px; }
}

/* ===== BUTTONS ===== */
.btn{
  border: none;
  cursor:pointer;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: .15s ease;
  user-select:none;
}
.btn:active{ transform: scale(.98); }

/* White pill buttons (top right) */
.btn-pill{
  background:var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
  border: 2px solid rgba(255,255,255,.9);
}
.btn-pill:hover{ filter: brightness(.96); }

/* Primary CTA (blue pill) */
.btn-primary{
  background: var(--blue-dark);
  color:#fff;
  padding: 16px 30px;
  font-size: 16px;
}
.btn-primary:hover{ filter: brightness(1.05); }

/* Secondary CTA (outline blue) */
.btn-secondary{
  background:var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
  border: 2px solid var(--blue);
  padding: 16px 30px;
  font-size: 16px;
}
.btn-secondary:hover{
  background: var(--blue);
  color: #fff;
}

/* Secondary CTA (outline/yellow accent) */
.btn-accent{
  background:var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
  border: 2px solid rgba(245,179,1,.75);
  padding: 14px 26px;
  font-size: 15px;
}
.btn-accent:hover{
  background: rgba(245,179,1,.12);
}

/* ===== HERO (background illustration) ===== */
.hero{
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 46px 0 70px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/landing-bg.png") center/cover no-repeat;
  opacity: .22; /* low opacity background */
  pointer-events:none;
}
.hero-content{
  position: relative;
  text-align:center;
  padding-top: 24px;
}

.hero-title{
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-subtitle{
  max-width: 860px;
  margin: 0 auto;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.55;
}
.hero-cta{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap:wrap;
}

.section-title{
  margin-top: 42px;
  font-size: 22px;
  font-weight: 700;
}

/* How it works list */
.how-list{
  margin-top: 16px;
  max-width: 780px;
  margin-left:auto;
  margin-right:auto;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.how-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06), -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18);
}
.how-item b{
  display:block;
  margin-bottom: 4px;
  font-size: 14.5px;
}
.how-item span{
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 750;
}

/* ===== MODAL (Choose Service) ===== */
.modal-bg{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.30);
  z-index: 50;
}
.modal{
  display:none;
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(820px,92%);
  background:var(--cs-surface-ffffff, #fff);
  border: 1px solid var(--border);
  border-radius: 18px;
  z-index: 60;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
}
.modal-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.modal-title{
  font-weight: 700;
  color: var(--cs-ink-0a3d91, var(--blue));
}
.modal-body{
  padding: 16px;
}
.service-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.service-btn{
  width:100%;
  text-align:left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:var(--cs-surface-ffffff, #fff);
  font-weight: 600;
  color: var(--cs-ink-0a3d91, var(--blue));
}
.service-btn:hover{
  background: rgba(10,61,145,.06);
  border-color: rgba(10,61,145,.25);
}

/* ===== FORMS (Register/Login) ===== */
.form-wrap{
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 46px 0 70px;
}
.form-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/landing-bg.png") center/cover no-repeat;
  opacity: .18;
  pointer-events:none;
}
.card{
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow), -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18);
  padding: 22px;
}

/* Keep authentication cards compact while module cards can use full width */
.form-wrap .card{
  max-width: 520px;
  margin: 0 auto;
}
.card h1{
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align:center;
}
.card .hint{
  text-align:center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: -4px;
  margin-bottom: 10px;
}
.label{
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 6px;
}
.input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: var(--cs-surface-ffffff, #fff);
  font-size: 15px;
  font-family: var(--font-body);
}
.input:focus, select:focus{
  border-color: rgba(10,61,145,.55);
  box-shadow: 0 0 0 3px rgba(10,61,145,.12);
}
.full-btn{
  width:100%;
  margin-top: 16px;
}
.small{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-align:center;
}
.small a{
  color: var(--cs-ink-0a3d91, var(--blue));
  text-decoration: underline;
  font-weight: 600;
}

/* ===== BROWSE PAGE (User landing not login) ===== */
.page{
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 30px 0 24px;
}
.page::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/landing-bg.png") center/cover no-repeat;
  opacity: .10;
  pointer-events:none;
}
.page-inner{
  position: relative;
}

.top-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.welcome{
  font-weight: 700;
}
.subline{
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.searchbar{
  width: min(420px, 100%);
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
}
.searchbar input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  outline: none;
  box-shadow: -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18);
}
.searchbar input:focus{
  border-color: rgba(10,61,145,.45);
  box-shadow: 0 0 0 3px rgba(10,61,145,.10);
}

.tabs {
  margin-top: 12px;
  position: relative;
}

.tabs[open] .tabs-toggle::after{
  transform: rotate(180deg);
}

.tabs-toggle{
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--cs-surface-ffffff, #fff);
  border: 2px solid rgba(10,61,145,.18);
  color: var(--cs-ink-0a3d91, var(--blue));
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}

.tabs-toggle::-webkit-details-marker{ display:none; }

.tabs-toggle::after{
  content: "▾";
  font-size: 14px;
  transition: transform .15s ease;
}

.tabs-menu{
  display: none;
  margin-top: 10px;
  background: var(--cs-surface-white-97, rgba(255,255,255,.97));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
  gap: 10px;
  flex-wrap: wrap;
}

.tabs[open] .tabs-menu{
  display: flex;
}

.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:2px solid #0A3D91;
  color:var(--cs-ink-0a3d91, #0A3D91);
  font-weight:600;
  text-decoration:none;
  background:var(--cs-surface-ffffff, #fff);
  transition: 0.15s ease;
}

.tab:hover{
  background: rgba(10,61,145,0.08);
}

.tab.active{
  background:#0A3D91;
  color:#fff;
}

/* Active tab */
.tab.active{
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}

/* Hover on active tab (subtle) */
.tab.active:hover{
  background: var(--blue-dark);
}


.list{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.worker-card{
  display:flex;
  gap: 14px;
  align-items:center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.07), -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18);
}
.avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}
.meta{ flex: 1; }
.meta .name{
  font-weight: 700;
}
.meta .info{
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.actions{
  display:flex;
  gap: 10px;
  align-items:center;
}
.btn-mini{
  padding: 9px 14px;
  border-radius: 999px;
  border: 2px solid rgba(10,61,145,.25);
  background: var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
  font-weight: 600;
  cursor:pointer;
}
.btn-mini:hover{ background: rgba(10,61,145,.06); }

/* Legend */
.legend{
  position: static;              /* remove floating */
  margin-top: 18px;
  background: var(--cs-surface-ffffff, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 10px 24px rgba(15,23,42,.10), -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18);
}

.legend h4{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legend-item{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 6px 0;
}
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  display:inline-block;
}
.dot.pending{ background: #F5B301; }
.dot.approved{ background: #22c55e; }
.dot.rejected{ background: #ef4444; }
.dot.active{ background: #16a34a; }
.dot.inactive{ background: #dc2626; }

.status-legend-inline{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.status-legend-inline .legend-item{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-ink-334155, #334155);
}

.status-legend-note{
  font-size: 14px;
  color: var(--cs-ink-64748b, #64748b);
}

@media (max-width: 900px){
  .service-grid{ grid-template-columns: 1fr; }
  .legend{ position: static; width: 100%; margin-top: 14px; }
  .hero-title{ font-size: 26px; }
}

/* ===== SERVICES MODULE (cards with photos) ===== */
.services-wrap{
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 22px 0 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.services-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/landing-bg.png") center/cover no-repeat;
  opacity: .10;
  pointer-events:none;
}
.services-inner{ position: relative; flex: 1; display: flex; flex-direction: column; }

.services-title{
  font-size: 26px;
  font-weight: 700;
  margin-top: 10px;
}
.services-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  max-width: 850px;
}

.service-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  flex: 1;
  grid-auto-rows: 1fr;
  align-content: stretch;
}

.service-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.07);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10,61,145,.14);
  border-color: rgba(10,61,145,.3);
}
.services-wrap .service-grid{
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
}

.service-media{
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cs-surface-d8e2f0, #d8e2f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.service-body{
  padding: 10px 12px 11px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.service-name{
  font-weight: 700;
  color: var(--cs-ink-0a3d91, var(--blue));
  font-size: 14px;
  line-height: 1.3;
}
.service-desc{
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-top-rated{
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-ink-0a3d91, var(--blue));
}
.service-review-count{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}
.service-review-hint{
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1200px){
  .services-wrap .service-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 900px){
  .services-wrap .service-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .services-wrap .service-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 400px){
  .services-wrap .service-grid{ grid-template-columns: 1fr; }
}

/* ===== Auth Required Modal ===== */
.auth-modal-bg{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.30);
  z-index: 70;
}
.auth-modal{
  display:none;
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width: min(520px, 92%);
  background:var(--cs-surface-ffffff, #fff);
  border: 1px solid var(--border);
  border-radius: 18px;
  z-index: 80;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
}
.auth-modal-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.auth-modal-title{
  font-weight: 700;
  color: var(--cs-ink-0a3d91, var(--blue));
}
.auth-modal-body{
  padding: 16px;
}
.auth-modal-text{
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}
.auth-modal-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-close{
  border: 2px solid rgba(10,61,145,.25);
  background:var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
}


/* Book button style (matches your UI) */
.btn-book{
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid rgba(10,61,145,.25);
  background: var(--cs-surface-ffffff, #fff);
  color: var(--cs-ink-0a3d91, var(--blue));
  font-weight: 600;
  cursor:pointer;
}
.btn-book:hover{
  background: rgba(10,61,145,.06);
}
.btn-book.tab-style{
  background: var(--blue);
  color: #fff;
  border: 2px solid transparent;
  padding: 9px 18px;
  font-weight: 600;
}

.btn-book.tab-style:hover{
  background: var(--blue-dark);
}
/* ===== Background photo wrapper (light) ===== */
.bg-photo-page{
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 22px 0 24px !important;
}

.bg-photo-page::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/landing-bg.png") center/cover no-repeat;
  opacity: .12;            /* adjust 0.08–0.18 */
  pointer-events:none;
}

.bg-photo-inner{
  position: relative; /* keeps content above background */
  width: 100%;
}

/* Make tabs feel clickable */
.tab{
  transition: all .15s ease;
}
.tab:hover{
  background: rgba(10,61,145,.08);
  border-color: rgba(10,61,145,.45);
}
.tab.active:hover{
  background: var(--blue-dark);
}
/* Hover-only buttons (no functionality yet) */
.btn-disabled{
  pointer-events: none;   /* disables clicking */
  opacity: 1;             /* keep readable */
}

/* Still show hover style visually */
.btn-mini.btn-disabled:hover,
.btn-book.btn-disabled:hover{
  filter: brightness(0.95);
}

/* Make book button match dashboard tab style */
.btn-book{
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  border: 2px solid transparent;
  font-weight: 950;
  cursor: default;
}
.btn-book:hover{
  background: var(--blue-dark);
}
.topbar{ background:#0A3D91; color:#fff; }
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.logo{ color:#fff; font-weight:900; text-decoration:none; font-size:22px; }
.nav-right{ display:flex; align-items:center; gap:6px; position:relative; }
.nav-link{ color:#fff; text-decoration:none; font-weight:700; padding:6px 10px; border-radius:8px; }
.nav-link:hover{ background:var(--cs-surface-white-012, rgba(255,255,255,0.12)); text-decoration:none; }

/* MENU */
.menu-wrap{ position:relative; }
.menu-btn{
  background:transparent;
  border:none;
  color:#fff;
  font-size:26px;
  cursor:pointer;
  padding:6px 10px;
  border-radius:10px;
}
.menu-btn:hover{ background:var(--cs-surface-white-012, rgba(255,255,255,0.12)); }

/* Dropdown: hidden by default */
.menu-dropdown{
  position:absolute;
  right:0;
  top:44px;
  width:220px;
  background:var(--cs-surface-ffffff, #fff);
  border:1px solid var(--cs-line-e5e7eb, #e5e7eb);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  overflow:hidden;
  display:none;
  z-index:9999;
}
.menu-dropdown.open{ display:block; }

.menu-dropdown a{
  display:block;
  padding:12px 14px;
  color:var(--cs-ink-111827, #111827);
  text-decoration:none;
  font-weight:700;
}
.menu-dropdown a:hover{ background:var(--cs-surface-f3f4f6, #f3f4f6); }

.menu-sep{ height:1px; background:var(--cs-surface-e5e7eb, #e5e7eb); margin:6px 0; }
.menu-dropdown a.danger{ color:var(--cs-ink-b91c1c, #b91c1c); }

/* ===== FIX TOPBAR (override old navbar styles) ===== */
.topbar{
  height: 78px;
  background: #0A3D91;
  color: #fff;
  display:flex;
  align-items:center;
}
.topbar-inner{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.logo{
  color:#fff;
  font-weight:900;
  text-decoration:none;
  font-size:22px;
  display:flex;
  align-items:center;
  gap:11px;
}
.logo-mark{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.55);
  background: linear-gradient(145deg, var(--cs-surface-f8fbff, #f8fbff), var(--cs-surface-d9e7ff, #d9e7ff));
  box-shadow: 0 8px 16px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.95);
}
.logo-img{
  height:38px;
  width:auto;
  display:block;
  flex-shrink:0;
  mix-blend-mode:normal;
  filter: saturate(1.28) contrast(1.12) brightness(1.03);
}
.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.02;
  gap:1px;
}
.logo-top,
.logo-bottom{
  font-size: 14px;
  font-weight:800;
  letter-spacing:2.25px;
  text-transform:uppercase;
  color:#ffffff;
  text-decoration:none;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.logo-bottom{
  margin-left:8px;
}
.pg-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  margin-bottom:26px;
}
.pg-brand-icon{
  width:96px;
  height:96px;
  border-radius:28px;
  background:var(--cs-surface-ffffff, #ffffff);
  border:1.5px solid rgba(10,61,145,.13);
  box-shadow:0 4px 6px rgba(10,61,145,.06), 0 16px 40px rgba(10,61,145,.14), inset 0 1px 0 rgba(255,255,255,1);
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.pg-brand-img{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
}
/* Light/white text variant — inside dark/blue backgrounds */
.pg-brand--light .pg-brand-icon{
  background:var(--cs-surface-white-96, rgba(255,255,255,.96));
  border-color:rgba(255,255,255,.5);
  box-shadow:0 8px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,1);
}
/* Blue brand header strip for white-background cards */
.card-brand-header{
  background:linear-gradient(135deg,#0a3d91 0%,#1e40af 100%);
  padding:28px 28px 24px;
  margin:-22px -22px 22px;
  border-radius:16px 16px 0 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.card-brand-header .pg-brand-icon{
  background:var(--cs-surface-white-96, rgba(255,255,255,.96));
  border-color:rgba(255,255,255,.5);
  box-shadow:0 8px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,1);
}
.card-brand-header-title{
  color:#fff;
  font-size:18px;
  font-weight:800;
  margin-top:4px;
}
.card-brand-header-sub{
  color:rgba(255,255,255,.7);
  font-size: 14px;
  font-weight:500;
  text-align:center;
}

.logo-admin-tag{
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background: var(--cs-surface-white-16, rgba(255,255,255,.16));
  color:#fff;
  font-size: 14px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  line-height:1.6;
}
.nav-right{
  display:flex;
  align-items:center;
  gap: 4px;
  position:relative;
}
.nav-link{
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-weight:700;
  font-size: 14.5px;
  padding:8px 12px;
  border-radius:10px;
  transition: background .15s, color .15s;
}
.nav-link:hover{
  background: var(--cs-surface-white-013, rgba(255,255,255,0.13));
  color: #fff;
}
.nav-link-active{
  background: var(--cs-surface-white-018, rgba(255,255,255,0.18));
  color: #fff !important;
}

/* ── Navbar icon buttons (chat + bell + calendar) ── */
.nav-icon-wrap{ position:relative; display:flex; align-items:center; }
/* small left gap before the icon cluster */
.nav-right > .nav-icon-wrap:first-of-type,
.nav-right > a.nav-icon-btn:first-of-type{
  margin-left:10px;
}
.nav-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:transparent;
  border:none;
  border-radius:8px;
  color:rgba(255,255,255,0.88);
  cursor:pointer;
  position:relative;
  transition:background .15s ease, color .15s ease;
  text-decoration:none;
  flex-shrink:0;
  outline:none;
  padding:0;
}
.nav-icon-btn svg{
  width:20px;
  height:20px;
  stroke-width:2;
  display:block;
}
.nav-icon-btn:hover,
.nav-icon-btn[aria-expanded="true"]{
  background:var(--cs-surface-white-013, rgba(255,255,255,0.13));
  color:#fff;
}
.nav-icon-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  background:#ef4444;
  color:#fff;
  font-size: 11px;
  font-weight:800;
  line-height:1;
  min-width:20px;
  height:20px;
  border-radius:99px;
  padding:0 3px;
  display:none;
  align-items:center;
  justify-content:center;
  border:2px solid #0A3D91;
  pointer-events:none;
  letter-spacing:0;
  z-index:10;
  flex-shrink:0;
}
.nav-icon-badge.on { display:inline-flex; }
@media (max-width: 640px) {
  .nav-icon-badge {
    top:-4px;
    right:-4px;
    font-size:10px;
    min-width:18px;
    height:18px;
    padding:0 2px;
  }
}
@media (max-width: 480px) {
  .nav-icon-btn {
    width:36px;
    height:36px;
  }
  .nav-icon-btn svg {
    width:18px;
    height:18px;
  }
  .nav-icon-badge {
    top:-3px;
    right:-3px;
    font-size:9px;
    min-width:16px;
    height:16px;
    padding:0 2px;
    border-width:1.5px;
  }
}
@media (max-width: 360px) {
  .nav-icon-btn {
    width:34px;
    height:34px;
  }
  .nav-icon-badge {
    top:-3px;
    right:-3px;
    font-size:9px;
    min-width:15px;
    height:15px;
  }
}

/* ── Active calendar icon state ── */
.nav-icon-btn-active{
  background:var(--cs-surface-white-018, rgba(255,255,255,0.18)) !important;
  color:#fff !important;
}

/* ── Chat popup dropdown ── */
.chat-popup{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  width:min(360px, calc(100vw - 24px));
  background:var(--cs-surface-ffffff, #fff);
  border:1px solid var(--cs-line-dbe3f1, #dbe3f1);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(2,6,23,.22);
  z-index:9999;
  display:none;
}
.chat-popup.open{ display:block; }
.chat-popup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px 10px;
  border-bottom:1px solid var(--cs-line-e2e8f0, #e2e8f0);
}
.chat-popup-title{ font-size:15px; font-weight:800; color:var(--cs-ink-0f172a, #0f172a); }
.chat-popup-seeall-head{ font-size: 14px; font-weight:700; color:var(--cs-ink-0a3d91, #0a3d91); text-decoration:none; }
.chat-popup-seeall-head:hover{ text-decoration:underline; }
.chat-popup-list{
  max-height:380px;
  overflow-y:auto;
  padding:6px;
}
.chat-popup-list::-webkit-scrollbar{ width:4px; }
.chat-popup-list::-webkit-scrollbar-thumb{ background:var(--cs-surface-cbd5e1, #cbd5e1); border-radius:99px; }
.chat-conv-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border-radius:10px;
  text-decoration:none;
  transition:background .15s ease;
}
.chat-conv-item:hover{ background:var(--cs-surface-f1f5f9, #f1f5f9); }
.chat-conv-unread .chat-conv-name{ font-weight:800; color:var(--cs-ink-0f172a, #0f172a); }
.chat-conv-avatar{
  flex-shrink:0;
  width:40px;
  height:40px;
  border-radius:50%;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:800;
}
.chat-conv-body{ flex:1; min-width:0; }
.chat-conv-row{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.chat-conv-name{ font-size: 14px; font-weight:600; color:var(--cs-ink-1e293b, #1e293b); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-conv-time{ font-size: 14px; color:var(--cs-ink-94a3b8, #94a3b8); flex-shrink:0; }
.chat-conv-preview{ font-size: 14px; color:var(--cs-ink-64748b, #64748b); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; margin-top:2px; }
.chat-conv-dot{ width:9px; height:9px; border-radius:50%; background:#0a3d91; flex-shrink:0; margin-top:2px; }
.chat-popup-foot{
  border-top:1px solid var(--cs-line-e2e8f0, #e2e8f0);
  padding:8px 16px;
  text-align:center;
}
.chat-popup-foot a{ font-size: 14px; font-weight:700; color:var(--cs-ink-0a3d91, #0a3d91); text-decoration:none; }
.chat-popup-foot a:hover{ text-decoration:underline; }

/* ── Notification dropdown ── */
.notif-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  width:min(360px, calc(100vw - 24px));
  background:var(--cs-surface-ffffff, #fff);
  border:1px solid var(--cs-line-dbe3f1, #dbe3f1);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(2,6,23,.22);
  z-index:9999;
  display:none;
}
.notif-dropdown.open{ display:block; }
.notif-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px 10px;
}
.notif-head-title{ font-size:15px; font-weight:800; color:var(--cs-ink-0f172a, #0f172a); }
.notif-tabs{
  display:flex;
  gap:4px;
  padding:0 12px 8px;
  border-bottom:1px solid var(--cs-line-e2e8f0, #e2e8f0);
}
.notif-tab{
  padding:5px 14px;
  border-radius:999px;
  border:none;
  background:transparent;
  font-size: 14px;
  font-weight:600;
  color:var(--cs-ink-64748b, #64748b);
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.notif-tab:hover{ background:var(--cs-surface-f1f5f9, #f1f5f9); color:var(--cs-ink-0f172a, #0f172a); }
.notif-tab.active{ background:#0a3d91; color:#fff; }
.notif-list{
  max-height:300px;
  overflow-y:auto;
  padding:6px;
}
.notif-list::-webkit-scrollbar{ width:4px; }
.notif-list::-webkit-scrollbar-thumb{ background:var(--cs-surface-cbd5e1, #cbd5e1); border-radius:99px; }
.notif-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px;
  border-radius:10px;
  text-decoration:none;
  transition:background .15s ease;
  cursor:default;
}
.notif-item[href]{ cursor:pointer; }
.notif-item[href]:hover{ background:var(--cs-surface-f1f5f9, #f1f5f9); }
.notif-ico{
  flex-shrink:0;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.notif-ico.blue  { background:var(--cs-surface-eff6ff, #eff6ff); color:var(--cs-ink-1d4ed8, #1d4ed8); }
.notif-ico.green { background:var(--cs-surface-f0fdf4, #f0fdf4); color:var(--cs-ink-16a34a, #16a34a); }
.notif-ico.amber { background:var(--cs-surface-fffbeb, #fffbeb); color:var(--cs-ink-d97706, #d97706); }
.notif-ico.red   { background:var(--cs-surface-fef2f2, #fef2f2); color:var(--cs-ink-dc2626, #dc2626); }
.notif-body{ flex:1; min-width:0; }
.notif-title{ font-size: 14px; font-weight:700; color:var(--cs-ink-0f172a, #0f172a); line-height:1.3; }
.notif-sub  { font-size: 12.5px; color:var(--cs-ink-64748b, #64748b); margin-top:2px; }
.notif-time { font-size: 14px; color:var(--cs-ink-94a3b8, #94a3b8); flex-shrink:0; margin-top:2px; }
.notif-empty{ text-align:center; padding:22px 16px; color:var(--cs-ink-94a3b8, #94a3b8); font-size: 14px; font-weight:600; }
.notif-foot{
  border-top:1px solid var(--cs-line-e2e8f0, #e2e8f0);
  padding:8px 16px;
  text-align:center;
}
.notif-foot a{ font-size: 14px; font-weight:700; color:var(--cs-ink-0a3d91, #0a3d91); text-decoration:none; }
.notif-foot a:hover{ text-decoration:underline; }

@media (max-width: 520px) {
  .chat-popup,
  .notif-dropdown {
    right: -8px;
  }
}

.profile-menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:0;
  border:none;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  flex:0 0 auto;
}
.profile-menu-wrap{ flex:0 0 auto; }
.profile-menu-btn:hover,
.profile-menu-btn[aria-expanded="true"]{
  background: var(--cs-surface-white-014, rgba(255,255,255,0.14));
  transform: translateY(-1px);
}
.profile-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--cs-surface-ffffff, #ffffff) 0%, var(--cs-surface-dbeafe, #dbeafe) 100%);
  color:var(--cs-ink-0a3d91, #0A3D91);
  font-family: var(--font-ui);
  font-size:14px;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.16);
}
.profile-avatar-lg{
  width:44px;
  height:44px;
  font-size:16px;
}
.profile-avatar-img{
  object-fit:cover;
  background:none;
}
.pill{
  display: inline-flex;
  align-items: center;
  background:var(--cs-surface-ffffff, #fff);
  color:var(--cs-ink-0a3d91, #0A3D91);
  padding: 8px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size: 14.5px;
  border: 2px solid rgba(255,255,255,0.9);
  transition: filter .15s, background .15s;
  white-space: nowrap;
}
.pill:hover{ filter: brightness(0.95); }

/* Ghost/outline pill — transparent with white border */
.pill-ghost{
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid rgba(255,255,255,.6);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.pill-ghost:hover{ background: var(--cs-surface-white-1, rgba(255,255,255,.1)); border-color: var(--cs-line-ffffff, #fff); color: #fff; }

/* Navbar welcome/username label */
.nav-welcome{
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* hamburger + dropdown */
.menu-wrap{ position:relative; display:flex; align-items:center; }
.menu-btn{
  background:transparent;
  border:none;
  color:#fff;
  font-size:26px;
  cursor:pointer;
  padding:6px 10px;
  border-radius:10px;
}
.menu-btn:hover{ background:var(--cs-surface-white-012, rgba(255,255,255,0.12)); }

.menu-dropdown{
  position:absolute;
  right:0;
  top:52px;
  width:220px;
  background:var(--cs-surface-ffffff, #fff);
  border:1px solid var(--cs-line-e5e7eb, #e5e7eb);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  overflow:hidden;
  display:block;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:9999;
}
.menu-dropdown.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform: translateY(0) scale(1);
}
.menu-dropdown a{
  display:block;
  padding:12px 14px;
  color:var(--cs-ink-111827, #111827);
  text-decoration:none;
  font-weight:800;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.menu-dropdown a:hover{
  background:var(--cs-surface-f3f4f6, #f3f4f6);
  color:var(--cs-ink-0a3d91, #0A3D91);
  padding-left:18px;
}
.menu-sep{ height:1px; background:var(--cs-surface-e5e7eb, #e5e7eb); margin:6px 0; }
.menu-dropdown a.danger{ color:var(--cs-ink-b91c1c, #b91c1c); }
.menu-dropdown a.danger:hover{ color:var(--cs-ink-991b1b, #991b1b); }
.dev-return-form{ margin:0; }
.dev-return-btn{
  display:block;
  width:100%;
  padding:12px 14px;
  border:0;
  background:var(--cs-surface-eef2ff, #eef2ff);
  color:var(--cs-ink-3730a3, #3730a3);
  text-align:left;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.dev-return-btn:hover{ background:var(--cs-surface-e0e7ff, #e0e7ff); color:var(--cs-ink-312e81, #312e81); }
.profile-dropdown{
  width:260px;
  border-radius:16px;
  border:1px solid var(--cs-line-dbe3f1, #dbe3f1);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  padding:8px;
}
.profile-dropdown-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 10px 8px;
}
.profile-dropdown-head strong{
  display:block;
  color:var(--cs-ink-0f172a, #0f172a);
  font-size:14px;
  line-height:1.2;
}
.profile-dropdown-head span:last-child{
  display:block;
  margin-top:2px;
  color:var(--cs-ink-64748b, #64748b);
  font-size: 14px;
  font-weight:700;
}

/* FORCE FIX: navbar always blue + fixed layout */
.topbar{
  background:#0A3D91 !important;
  color:#fff !important;
  width:100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.1) !important;
}

.topbar-inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:16px 28px !important;
}

@media (max-width: 900px){
  .topbar-inner{ padding:16px 18px !important; }
}

@media (max-width: 600px){
  .topbar-inner{ padding:14px 12px !important; }
}

.nav-right{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
}

/* Nav desktop wrapper — overrides Bootstrap .nav-link { display:block } */
.nav-desktop{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:2px !important;
}

/* Topbar nav links must be inline-flex to prevent Bootstrap block override */
.topbar .nav-link{
  display:inline-flex !important;
  align-items:center !important;
  white-space:nowrap !important;
}

/* Bootstrap-assisted mobile responsiveness across modules */
@media (max-width: 768px){
  .topbar{
    height: auto;
    min-height: 78px;
  }

  .topbar-inner{
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .logo{
    font-size: 20px;
    gap: 8px;
  }
  .logo-mark{ width: 42px; height: 42px; border-radius: 12px; }
  .logo-img{ height: 33px; }
  .logo-top,
  .logo-bottom{ font-size: 14px; letter-spacing: 1.75px; }
  .logo-bottom{ margin-left: 6px; }
  .logo-admin-tag{ font-size: 14px; padding: 2px 7px; margin-left: 6px; }

  .nav-right{
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px !important;
  }

  .nav-link,
  .pill{
    padding: 8px 12px;
    font-size: 14px;
  }

  .menu-wrap{
    margin-left: auto;
  }

  .menu-dropdown{
    position: fixed;
    top: 86px;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
  }

  .tabs-menu{
    width: 100%;
  }

  .tab{
    width: 100%;
    justify-content: center;
  }

  .top-row{
    align-items: flex-start;
  }
}

/* Cross-module responsive fallbacks for pages with legacy inline/grid styles */
@media (max-width: 992px){
  img,
  video,
  iframe,
  canvas,
  svg{
    max-width: 100%;
    height: auto;
  }

  .admin-layout,
  .settings-layout,
  .stats-grid,
  .request-row,
  .app-card,
  .info-grid,
  .modal-actions,
  .request-actions,
  .sub-form,
  .doc-check{
    grid-template-columns: 1fr !important;
    flex-wrap: wrap !important;
  }

  .table,
  .admin-table,
  table{
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr 1fr"]{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px){
  .card,
  .admin-card,
  .settings-card,
  .dash-card{
    padding: 14px !important;
    border-radius: 12px;
  }

  .welcome{
    font-size: 20px;
  }

  .searchbar{
    width: 100%;
  }

  .filter-tabs{
    overflow-x: auto;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    padding-bottom: 6px;
  }
}

/* ===== Side accent shadow — applies to all card variants globally ===== */
.dash-card,
.settings-card,
.admin-card,
.onboarding-card,
.subscription-card {
  box-shadow: 0 10px 24px rgba(15,23,42,.08), -3px 0 0 0 rgba(15,23,42,.18), 3px 0 0 0 rgba(15,23,42,.18) !important;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE SYSTEM — CalambaServe
   Breakpoints: 1200 / 992 / 768 / 640 / 480 / 360
   ============================================================ */

/* ── Nav-desktop: visible only on ≥769px (display set in FORCE FIX above) ── */
.mobile-nav-divider { display:none; }
.mobile-nav-link { display:none; }
.mobile-nav-btn { display:none; }

/* ── Avatar dropdown mobile links: hidden on desktop ── */
.ad-mobile-link { display: none !important; }
.ad-mobile-sep  { display: none !important; }

/* ── Mobile hamburger nav menu ── */
.mobile-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a3d91;
  border-top: 1px solid rgba(255,255,255,.14);
  z-index: 9998;
  padding: 10px 0 14px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(2,6,23,.22);
}
.mobile-nav-menu.open { display:flex; }
.mobile-nav-menu a {
  display: block;
  padding: 13px 20px;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 0;
  transition: background .15s;
}
.mobile-nav-menu a:hover { background: var(--cs-surface-white-1, rgba(255,255,255,.1)); color: #fff; }
.mobile-nav-menu a.mobile-nav-active { color: #fff; background: var(--cs-surface-white-15, rgba(255,255,255,.15)); }
.mobile-nav-menu .mobile-nav-sep { height: 1px; background: var(--cs-surface-white-14, rgba(255,255,255,.14)); margin: 6px 14px; }
.mobile-nav-menu a.mobile-nav-danger { color: #fca5a5; }
.topbar { position: relative; }

@media (max-width: 768px) {
  /* ── Topbar ── */
  .topbar { height: auto !important; min-height: 66px !important; }
  .topbar-inner {
    padding: 12px 16px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  /* ── Logo shrink ── */
  .logo { gap: 7px; }
  .logo-mark { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
  .logo-img { height: 29px !important; }
  .logo-top, .logo-bottom { font-size: 13px !important; letter-spacing: 1.5px !important; }
  .logo-bottom { margin-left: 5px !important; }
  .logo-admin-tag { font-size: 11px !important; padding: 2px 6px !important; margin-left: 5px !important; }

  /* ── Nav-right ── */
  .nav-right { gap: 6px !important; }

  /* ── Hide desktop nav links, show hamburger ── */
  .nav-desktop { display: none !important; }
  /* ── Also hide standalone nav-links in any topbar (worker/admin pages) ── */
  .topbar .nav-link { display: none !important; }
  /* ── Show avatar dropdown mobile links ── */
  .ad-mobile-link { display: block !important; }
  .ad-mobile-sep  { display: block !important; }
  .mobile-nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: background .15s;
  }
  .mobile-nav-btn:hover { background: var(--cs-surface-white-12, rgba(255,255,255,.12)); }
  .mobile-nav-btn svg { display: block; }

  /* ── nav-welcome: hide on mobile ── */
  .nav-welcome { display: none !important; }

  /* ── Profile menu button smaller ── */
  .profile-menu-btn { width: 38px !important; height: 38px !important; }
  .profile-avatar { width: 32px !important; height: 32px !important; font-size: 12px !important; }

  /* ── Pill buttons in navbar ── */
  .pill, .pill-ghost, .pill-outline, .pill-solid {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }

  /* ── Hero ── */
  .hero { padding: 28px 0 40px !important; min-height: auto !important; }
  .hero-content { padding-top: 12px !important; }
  .hero-cta { flex-direction: column !important; align-items: center !important; gap: 10px !important; }
  .btn-primary, .btn-secondary {
    width: 100% !important;
    max-width: 320px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  .hero-cta-strip {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    margin-top: 28px !important;
  }
  .how-list { max-width: 100% !important; }
  .section-title { font-size: 22px !important; }

  /* ── Worker/browse cards ── */
  .worker-card { flex-wrap: wrap !important; }
  .worker-card .actions { flex-wrap: wrap !important; }

  /* ── Top row (browse header) ── */
  .top-row { align-items: flex-start !important; }
  .searchbar { width: 100% !important; }

  /* ── Tabs: horizontal scroll ── */
  .tabs-menu {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
  }
  .tab { flex-shrink: 0 !important; }

  /* ── Cards ── */
  .card { padding: 18px 14px !important; }

  /* ── Form wrap ── */
  .form-wrap .card { margin: 0 8px !important; }

  /* ── Page padding ── */
  .page { padding: 18px 0 20px !important; }
  .bg-photo-page { padding: 16px 0 20px !important; }

  /* ── Services grid ── */
  .services-wrap .service-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Modals ── */
  .service-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  /* ── Landing page hero title ── */
  .hero-title { font-size: clamp(22px, 7vw, 32px) !important; }
  .hero-subtitle { font-size: 14px !important; }

  /* ── Top row stacks ── */
  .top-row { flex-direction: column !important; gap: 8px !important; }
  .welcome { font-size: 18px !important; }

  /* ── Worker cards ── */
  .worker-card { flex-direction: column !important; align-items: stretch !important; }
  .worker-card .avatar { align-self: flex-start; }
  .worker-card .actions {
    width: 100% !important;
    justify-content: flex-end !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .worker-card .actions .btn-mini,
  .worker-card .actions .btn-book { flex: 1 1 auto !important; text-align: center !important; }

  /* ── Tables: force horizontal scroll ── */
  .table-container { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  table, .admin-table { width: 100% !important; min-width: 600px; }

  /* ── Stats grids ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Admin card padding ── */
  .admin-card { padding: 14px !important; }
}

@media (max-width: 480px) {
  .topbar-inner { padding: 10px 12px !important; }
  .logo-text { display: none !important; }
  .logo-mark { width: 36px !important; height: 36px !important; }

  /* ── Stats: single column ── */
  .stats-grid { grid-template-columns: 1fr !important; }

  /* ── Service cards: 1 col ── */
  .services-wrap .service-grid { grid-template-columns: 1fr !important; }

  /* ── Shrink font sizes ── */
  .admin-card-header h2 { font-size: 18px !important; }
  .stat-number { font-size: 22px !important; }
}

@media (max-width: 360px) {
  .topbar-inner { padding: 8px 10px !important; }
  .card { padding: 14px 10px !important; }
}

/* ── Page-level grids with inline styles: force reflow ── */
@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Chatbot: safe positioning on small screens ── */
@media (max-width: 640px) {
  .cs-chatbot { right: 12px !important; bottom: 12px !important; }
  .cs-chatbot-toggle { width: 50px !important; height: 50px !important; }
  .cs-chatbot-panel {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 90px) !important;
    max-height: 520px !important;
  }
}

/* ── Notification/chat dropdowns: full width on mobile ── */
@media (max-width: 640px) {
  .notif-dropdown,
  .chat-popup {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -8px 30px rgba(2,6,23,.18) !important;
  }
  .menu-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: 300px !important;
  }
}

/* ── Admin layout mobile ── */
@media (max-width: 900px) {
  .admin-layout { gap: 12px !important; }
  .admin-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-menu .menu-item { white-space: nowrap; }
}

/* ── Registration steps: responsive ── */
@media (max-width: 640px) {
  .card-brand-header { padding: 20px 14px 18px !important; margin: -18px -14px 18px !important; }
  .input, select { padding: 10px 10px !important; font-size: 14px !important; }
  .label { font-size: 13px !important; }
  .full-btn { margin-top: 14px !important; }
}

/* ── Contact-list in admin messages: mobile ── */
@media (max-width: 640px) {
  .contact-row { flex-wrap: wrap; gap: 8px; padding: 10px 12px !important; }
  .contact-meta { min-width: 0; flex: 1 1 140px; }
  .contact-msg-btn { width: 100% !important; text-align: center !important; margin-top: 4px; }
}

/* ── Compose modal: full-screen on mobile ── */
@media (max-width: 640px) {
  .compose-modal { padding: 18px 14px !important; width: calc(100vw - 16px) !important; }
  .compose-modal-actions { flex-direction: column !important; }
  .compose-cancel, .compose-send { width: 100% !important; text-align: center !important; }
}

/* ── Pagination bar: wrap nicely ── */
@media (max-width: 480px) {
  .tbl-pagebar { gap: 4px !important; }
  .pg-btn { padding: 5px 10px !important; font-size: 12px !important; }
}

/* ── Prevent any element from breaking layout ── */
* { min-width: 0; }
img, video, iframe, object, embed, canvas, svg { max-width: 100%; height: auto; }

/* ===== Global Topbar Auto-Hide on Scroll ===== */
body.has-topbar {
  padding-top: var(--topbar-offset, 78px);
}

.topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  transform: translateY(0);
  opacity: 1;
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform;
}

.topbar.topbar-hidden {
  transform: translateY(calc(-100% - 8px));
  opacity: .98;
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    transition: none;
  }
}

/* ============================================================
   DEVICE COMPATIBILITY FOUNDATION
   Keep the current visual system while making every shared module
   independent of the remotely loaded Bootstrap reset.
   ============================================================ */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

main,
header,
footer,
section,
article,
aside,
nav,
.container,
.topbar-inner,
.bg-photo-inner,
.hero-content,
.services-inner,
.form-wrap,
.admin-content,
.chat-container {
  max-width: 100%;
}

p,
li,
td,
th,
label,
.subline,
.message-block,
.chat-message,
.cs-chatbot-msg {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

button,
a,
input,
select,
textarea,
[role="button"] {
  touch-action: manipulation;
}

.hero-title-wrap,
.hero-title,
.hero-subtitle,
.section-title,
.section-sub,
.hero-cta,
.hero-cta-strip,
.how-list,
.how-item,
.pg-brand {
  max-width: 100%;
}

.hero-title-wrap {
  width: 100%;
}

.table-container,
.admin-menu,
.filter-tabs,
.service-filter-chips,
.tabs-menu {
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.table-container {
  width: 100%;
  max-width: 100%;
}

.modal,
.modal-box,
.modal-content,
.details-modal,
.request-modal,
.verify-result-modal,
.compose-modal,
.auth-modal {
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  /* Long pages should use normal document scrolling on small devices. */
  .admin-card,
  .dash-card,
  .settings-card,
  .card,
  .onboarding-card,
  .subscription-card {
    max-height: none !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
  }

  .admin-menu,
  .filter-tabs,
  .service-filter-chips,
  .tabs-menu,
  .table-container,
  table,
  .admin-table {
    -webkit-overflow-scrolling: touch;
  }

  .admin-menu,
  .filter-tabs,
  .service-filter-chips,
  .tabs-menu {
    scroll-snap-type: x proximity;
  }

  .admin-menu > *,
  .filter-tabs > *,
  .service-filter-chips > *,
  .tabs-menu > * {
    scroll-snap-align: start;
  }

  .form-row,
  .field-row,
  .info-grid,
  .request-detail-grid,
  .doc-grid,
  .ai-grid,
  .pa-insights,
  .pa-grid-two {
    grid-template-columns: 1fr !important;
  }

  .app-card,
  .request-row,
  .contact-row,
  .toolbar,
  .toolbar-left,
  .toolbar-right,
  .top-row,
  .admin-card-header,
  .pa-toolbar,
  .pa-section-head {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-inline-space: 12px;
  }

  body.has-topbar {
    padding-top: var(--topbar-offset, 66px);
  }

  main,
  .page-main,
  .dashboard-main {
    padding-top: 72px !important;
  }

  .container {
    padding-left: max(var(--mobile-inline-space), env(safe-area-inset-left)) !important;
    padding-right: max(var(--mobile-inline-space), env(safe-area-inset-right)) !important;
  }

  .topbar-inner {
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }

  .topbar .nav-right {
    flex: 0 0 auto;
  }

  .topbar .logo {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .hero-title-wrap,
  .hero-title,
  .hero-subtitle,
  .section-title,
  .section-sub {
    width: 100%;
  }

  .hero-cta,
  .hero-cta-strip,
  .modal-actions,
  .modal-footer,
  .auth-modal-actions,
  .compose-modal-actions,
  .request-actions,
  .action-line {
    width: 100%;
  }

  .hero-cta > *,
  .hero-cta-strip > *,
  .modal-actions > *,
  .modal-footer > *,
  .auth-modal-actions > *,
  .compose-modal-actions > * {
    max-width: 100%;
  }

  .how-item {
    padding: 14px !important;
    gap: 12px !important;
  }

  .admin-menu {
    padding-inline: 8px !important;
  }

  .admin-table,
  .table-container table {
    margin-bottom: 0;
  }

  [style*="min-width:280px"],
  [style*="min-width: 280px"],
  [style*="min-width:300px"],
  [style*="min-width: 300px"] {
    min-width: 0 !important;
  }

  .theme-row {
    grid-template-columns: 1fr !important;
  }

  .service-filter select {
    min-width: 0 !important;
  }

  .chat-input-area,
  .chat-input-row,
  .message-input-row {
    max-width: 100%;
  }

  .message-block {
    max-width: 92% !important;
  }

  .modal,
  .details-modal,
  .request-modal,
  .ach-modal,
  .verify-result-modal,
  .auth-modal {
    width: calc(100% - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .modal-box,
  .modal-content,
  .loading-content,
  .compose-modal {
    width: calc(100% - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }
}

@media (max-width: 480px) {
  .topbar .pill,
  .topbar .pill-outline,
  .topbar .pill-solid {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  .modal-head,
  .modal-header,
  .auth-modal-head,
  .modal-body,
  .auth-modal-body,
  .modal-footer,
  .modal-actions,
  .auth-modal-actions {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .stat-row,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .inline-input,
  .action-line .inline-input,
  .action-line .btn-mini,
  .request-actions,
  .request-actions > * {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .modal,
  .details-modal,
  .request-modal,
  .ach-modal,
  .verify-result-modal,
  .auth-modal,
  .modal-box,
  .modal-content,
  .compose-modal {
    max-height: calc(100dvh - 12px) !important;
  }
}
