:root {
  --ink: #132027;
  --muted: #5e6f78;
  --line: rgba(120, 154, 168, 0.34);
  --paper: #edf6f9;
  --white: #ffffff;
  --brand: #2d7f98;
  --brand-dark: #19576d;
  --accent: #d9a15f;
  --sun: #f3c880;
  --blue: #4c83ac;
  --rose-glow: rgba(114, 167, 190, 0.28);
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
  --bg-tilt: 0deg;
  --shadow: 0 24px 62px rgba(21, 47, 59, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 248, 251, 0.94) 0%, rgba(248, 252, 250, 0.98) 48%, rgba(228, 239, 242, 1) 100%),
    linear-gradient(115deg, rgba(118, 170, 194, 0.32), rgba(246, 219, 177, 0.18) 44%, rgba(27, 42, 51, 0.08));
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(255, 255, 255, 0.38) 4% 5%, transparent 5% 11%, rgba(255, 255, 255, 0.32) 11% 12%, transparent 12% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(15, 37, 48, 0.97), rgba(10, 27, 36, 0.98)),
    linear-gradient(135deg, rgba(79, 142, 167, 0.28), rgba(232, 183, 116, 0.14));
  color: #f3fbfc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 18px 0 46px rgba(80, 45, 58, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d7f98, #d9a15f);
  color: white;
  box-shadow: 0 12px 30px rgba(45, 127, 152, 0.32);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #d9edf1;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
}

.nav button.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #c6dde3;
  line-height: 1.45;
  font-size: 14px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.shell.view-home .main {
  background:
    linear-gradient(180deg, rgba(238, 248, 251, 0.36), rgba(238, 248, 251, 0.58) 58%, rgba(238, 248, 251, 0.78)),
    linear-gradient(115deg, rgba(7, 22, 30, 0.18), rgba(45, 127, 152, 0.1) 45%, rgba(243, 200, 128, 0.12)),
    var(--market-image, url("assets/city-towers-background.png"));
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.main::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
  background:
    linear-gradient(180deg, rgba(151, 193, 210, 0.24), rgba(255, 255, 255, 0.04) 54%, transparent 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, rgba(246, 219, 177, 0.13) 52%, transparent 82%),
    linear-gradient(90deg,
      transparent 0 1.5%,
      rgba(53, 83, 96, 0.2) 1.5% 5%,
      transparent 5% 7%,
      rgba(53, 83, 96, 0.26) 7% 11.5%,
      transparent 11.5% 13%,
      rgba(53, 83, 96, 0.18) 13% 16.5%,
      transparent 16.5% 19%,
      rgba(53, 83, 96, 0.25) 19% 24.5%,
      transparent 24.5% 28%,
      rgba(53, 83, 96, 0.16) 28% 31.5%,
      transparent 31.5% 34%,
      rgba(53, 83, 96, 0.28) 34% 38.5%,
      transparent 38.5% 42%,
      rgba(53, 83, 96, 0.19) 42% 46.5%,
      transparent 46.5% 50%,
      rgba(53, 83, 96, 0.25) 50% 55.5%,
      transparent 55.5% 59%,
      rgba(53, 83, 96, 0.18) 59% 63.5%,
      transparent 63.5% 66%,
      rgba(53, 83, 96, 0.27) 66% 71.5%,
      transparent 71.5% 75%,
      rgba(53, 83, 96, 0.17) 75% 79%,
      transparent 79% 82%,
      rgba(53, 83, 96, 0.24) 82% 87.5%,
      transparent 87.5% 91%,
      rgba(53, 83, 96, 0.2) 91% 95.5%,
      transparent 96% 100%);
  background-size: 100% 100%, 100% 100%, 100% 210px;
  background-position: 0 0, 0 0, 0 90px;
}

.shell.view-home .main::before {
  opacity: 0.26;
}

.topbar {
  background: rgba(248, 253, 253, 0.78);
  border-bottom: 1px solid rgba(120, 154, 168, 0.28);
  backdrop-filter: blur(18px);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.role-switch {
  display: flex;
  background: rgba(225, 241, 245, 0.76);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.access-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.58);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.access-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  min-height: 36px;
  padding: 0 11px;
  color: var(--muted);
  font-weight: 800;
}

.access-switch button.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 31, 38, 0.1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supabase-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  color: #5b4b21;
  background: rgba(255, 250, 239, 0.88);
  border: 1px solid rgba(217, 161, 95, 0.34);
}

.supabase-status.connected {
  color: #174b37;
  background: rgba(224, 246, 235, 0.9);
  border-color: rgba(74, 163, 117, 0.34);
}

.supabase-status.offline {
  color: #74362f;
  background: rgba(255, 231, 226, 0.9);
  border-color: rgba(200, 98, 82, 0.32);
}

.market-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.market-picker label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-picker select {
  min-height: 34px;
  max-width: 150px;
  border: 1px solid rgba(120, 154, 168, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0 8px;
}

.currency-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(120, 154, 168, 0.28);
  border-radius: 999px;
  background: rgba(235, 248, 251, 0.88);
  color: var(--brand-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-picker select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 10px;
}

.role-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
}

.role-switch button.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 31, 38, 0.1);
}

[dir="rtl"] .nav button,
[dir="rtl"] .booking-top,
[dir="rtl"] .panel-header,
[dir="rtl"] .brand,
[dir="rtl"] .topbar,
[dir="rtl"] .topbar-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .booking-meta {
  direction: rtl;
}

[dir="rtl"] .service-feature > div {
  padding: 18px 0 18px 18px;
}

.shell[dir="rtl"] {
  direction: ltr;
}

.shell[dir="rtl"] .sidebar,
.shell[dir="rtl"] .topbar,
.shell[dir="rtl"] .content,
.shell[dir="rtl"] .bottom-nav,
.shell[dir="rtl"] .metric,
.shell[dir="rtl"] .panel,
.shell[dir="rtl"] .service-card,
.shell[dir="rtl"] .booking-card,
.shell[dir="rtl"] .provider-card,
.shell[dir="rtl"] .service-feature {
  direction: rtl;
}

.shell[dir="rtl"] .dashboard-grid,
.shell[dir="rtl"] .metrics,
.shell[dir="rtl"] .service-grid,
.shell[dir="rtl"] .providers {
  direction: ltr;
}

.content {
  padding: 26px 28px 90px;
  position: relative;
  z-index: 1;
}

.app-credit {
  position: relative;
  z-index: 1;
  margin: -62px 28px 28px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #52707b;
  font-size: 13px;
  text-align: center;
}

.app-credit strong {
  color: var(--brand-dark);
  font-size: 15px;
}

.app-credit small {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}

.safety-disclaimer,
.legal-disclaimer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(217, 161, 95, 0.36);
  border-radius: 8px;
  background: rgba(255, 250, 239, 0.74);
  color: #5f4a2d;
  box-shadow: 0 14px 34px rgba(79, 59, 36, 0.08);
}

.legal-disclaimer {
  display: block;
  margin-top: 16px;
  color: #5e4a31;
}

.safety-disclaimer p,
.legal-disclaimer p {
  margin: 4px 0 0;
  line-height: 1.45;
  font-size: 14px;
}

.legal-disclaimer h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.limited-profile {
  position: relative;
}

.limited-profile::after {
  content: "Guest preview";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.92);
  color: #6a4b1f;
  font-size: 11px;
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  align-items: start;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel,
.service-card,
.booking-card,
.provider-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(120, 76, 91, 0.04), 0 18px 44px rgba(111, 64, 80, 0.08);
  backdrop-filter: blur(16px);
}

.shell.view-home .metric,
.shell.view-home .panel,
.shell.view-home .booking-card,
.shell.view-home .provider-card {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(226, 243, 248, 0.48);
  box-shadow: 0 18px 54px rgba(7, 22, 30, 0.14);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-header h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.panel-header p,
.panel > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(9, 25, 34, 0.54), rgba(45, 127, 152, 0.2) 45%, rgba(243, 200, 128, 0.14)),
    var(--market-image, url("assets/city-towers-background.png"));
  background-size: cover, calc(118% + 28px) auto;
  background-position:
    center,
    calc(50% + var(--bg-shift-x)) calc(48% + var(--bg-shift-y));
  color: white;
  padding: 34px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(27, 62, 78, 0.24);
  transform: perspective(1200px) rotateX(var(--bg-tilt));
  transition: background-position 120ms ease-out, transform 160ms ease-out;
}

.hero-market-chip {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(235, 248, 251, 0.42);
  border-radius: 999px;
  background: rgba(9, 28, 38, 0.34);
  color: #effcff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(9, 28, 38, 0.14) 20%, rgba(7, 22, 30, 0.62) 100%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0 3%,
      rgba(19, 40, 49, 0.68) 3% 7%,
      rgba(255, 255, 255, 0) 7% 10%,
      rgba(19, 40, 49, 0.75) 10% 15%,
      rgba(255, 255, 255, 0) 15% 18%,
      rgba(19, 40, 49, 0.58) 18% 22%,
      rgba(255, 255, 255, 0) 22% 25%,
      rgba(19, 40, 49, 0.74) 25% 31%,
      rgba(255, 255, 255, 0) 31% 34%,
      rgba(19, 40, 49, 0.62) 34% 39%,
      rgba(255, 255, 255, 0) 39% 42%,
      rgba(19, 40, 49, 0.78) 42% 48%,
      rgba(255, 255, 255, 0) 48% 51%,
      rgba(19, 40, 49, 0.62) 51% 56%,
      rgba(255, 255, 255, 0) 56% 60%,
      rgba(19, 40, 49, 0.72) 60% 66%,
      rgba(255, 255, 255, 0) 66% 69%,
      rgba(19, 40, 49, 0.6) 69% 73%,
      rgba(255, 255, 255, 0) 73% 77%,
      rgba(19, 40, 49, 0.76) 77% 84%,
      rgba(255, 255, 255, 0) 84% 87%,
      rgba(19, 40, 49, 0.66) 87% 92%,
      rgba(255, 255, 255, 0) 92% 100%);
  background-size: 100% 100%, 100% 72%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(55% + var(--bg-shift-x)) 18%, rgba(255, 255, 255, 0.46), transparent 23%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 24%, rgba(243, 200, 128, 0.18) 58%, transparent 86%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 40%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: #eaf8fb;
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #2d7f98, #d9a15f);
  box-shadow: 0 12px 28px rgba(45, 127, 152, 0.26);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #226a80, #c58c4d);
}

.btn.outline {
  border-color: var(--line);
  background: var(--white);
}

.btn.warn {
  color: white;
  background: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.service-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.service-carousel-controls .btn {
  min-height: 38px;
}

.service-card,
.provider-card,
.booking-card {
  padding: 16px;
}

.clickable-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus {
  border-color: rgba(45, 127, 152, 0.5);
  box-shadow: 0 18px 44px rgba(111, 64, 80, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.service-card-image {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card-image:hover,
.service-card-image:focus {
  border-color: rgba(45, 127, 152, 0.55);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.service-card-image.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 127, 152, 0.16), var(--shadow);
}

.service-card-image.selected::after {
  content: "Featured";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(9, 28, 38, 0.22);
}

.shell.view-home .service-feature {
  animation: featureLift 420ms ease both;
}

@keyframes featureLift {
  from {
    opacity: 0.82;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.service-card-image:hover img,
.service-card-image:focus img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(9, 28, 38, 0.04), rgba(9, 28, 38, 0.84));
  color: white;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf9fb;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.service-card h3,
.provider-card h3,
.booking-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.profile-sign-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.profile-sign {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(177, 206, 216, 0.72);
  border-radius: 50%;
  background: rgba(235, 248, 251, 0.92);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.profile-sign-row .profile-sign:nth-child(2) {
  background: rgba(255, 242, 246, 0.92);
  border-color: rgba(219, 178, 190, 0.68);
  color: #743b55;
}

.shell[dir="rtl"] .profile-sign-row {
  margin-left: 0;
  margin-right: 8px;
}

.service-card p,
.provider-card p,
.booking-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.service-card-image p {
  color: rgba(255, 255, 255, 0.86);
}

.service-card-image .chip {
  background: rgba(255, 255, 255, 0.9);
}

.subservice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.subservice-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.service-card-image .subservice-chip {
  color: #263945;
  background: rgba(255, 255, 255, 0.86);
}

.btn.mini {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.service-feature {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.service-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.service-feature > div {
  padding: 18px 18px 18px 0;
}

.service-feature h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.service-feature p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #33424c;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 252, 0.82);
  padding: 10px 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field select[multiple] {
  min-height: 118px;
  padding-block: 9px;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #33424c;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.choice-pill input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--brand);
}

.choice-pill:has(input:checked) {
  background: rgba(255, 242, 246, 0.94);
  border-color: rgba(219, 178, 190, 0.7);
  color: #5e3448;
}

.field input[type="file"] {
  padding: 9px;
  background: rgba(255, 255, 255, 0.74);
}

.verification-panel {
  position: relative;
  overflow: hidden;
}

.verification-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.verification-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(45, 127, 152, 0.28);
  border-radius: 8px;
  background: rgba(235, 248, 251, 0.78);
  color: #244d5b;
  line-height: 1.45;
}

.admin-login-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(620px, 100%);
}

.admin-demo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-error {
  grid-column: 1 / -1;
  color: #74362f;
  background: rgba(255, 231, 226, 0.9);
  border-color: rgba(200, 98, 82, 0.32);
}

.admin-hero-panel {
  background: linear-gradient(135deg, rgba(19, 32, 39, 0.9), rgba(45, 127, 152, 0.78));
  color: white;
}

.admin-hero-panel p,
.admin-hero-panel h2 {
  color: white;
}

.admin-request-card {
  border-left: 4px solid var(--brand);
}

.admin-inline-field {
  margin-top: 12px;
}

.admin-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-alert {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(111, 64, 80, 0.1);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-alert:hover,
.admin-alert:focus {
  border-color: rgba(45, 127, 152, 0.5);
  box-shadow: 0 18px 42px rgba(111, 64, 80, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.admin-alert.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 127, 152, 0.14), 0 18px 42px rgba(111, 64, 80, 0.14);
}

.admin-alert span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.admin-alert strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 30px;
}

.admin-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-alert.critical span {
  color: #7c231c;
  background: #ffe2df;
}

.admin-alert.warning span {
  color: #75450b;
  background: #fff0cf;
}

.admin-alert.normal span {
  color: #174b37;
  background: rgba(224, 246, 235, 0.94);
}

.admin-filter-panel {
  display: grid;
  gap: 16px;
}

.admin-filter-group {
  display: grid;
  gap: 8px;
}

.admin-filter-group h3 {
  margin: 0;
  font-size: 14px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #33424c;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-filter strong {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(235, 248, 251, 0.92);
  color: var(--brand-dark);
  font-size: 12px;
}

.admin-filter.active {
  border-color: var(--brand);
  background: rgba(235, 248, 251, 0.95);
  box-shadow: 0 0 0 3px rgba(45, 127, 152, 0.12);
}

.admin-work-panel {
  display: grid;
  gap: 16px;
}

.work-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.work-score {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(177, 206, 216, 0.6);
  border-radius: 8px;
  background: rgba(235, 248, 251, 0.7);
  padding: 12px;
}

.work-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-score strong {
  font-size: 26px;
}

.work-score.danger {
  background: rgba(255, 224, 220, 0.74);
  border-color: rgba(194, 52, 45, 0.24);
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.calendar-day span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day strong {
  font-size: 28px;
}

.calendar-day small {
  color: var(--muted);
  font-size: 11px;
}

.calendar-day.steady {
  background: rgba(255, 250, 239, 0.9);
}

.calendar-day.busy {
  background: rgba(255, 224, 220, 0.86);
  border-color: rgba(194, 52, 45, 0.22);
}

.admin-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table-head,
.admin-table-row {
  min-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1.4fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.admin-table-head {
  color: var(--muted);
  background: rgba(235, 248, 251, 0.8);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-row {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.verification-steps {
  display: grid;
  gap: 10px;
}

.verify-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.verify-step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(235, 248, 251, 0.9);
  color: var(--brand-dark);
  font-weight: 900;
}

.verify-step.active {
  border-color: rgba(45, 127, 152, 0.42);
  box-shadow: 0 12px 28px rgba(45, 127, 152, 0.1);
}

.verify-step.active span {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.list {
  display: grid;
  gap: 12px;
}

.booking-card {
  display: grid;
  gap: 12px;
}

.booking-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: #0f3f3c;
  background: #d9f2ef;
  white-space: nowrap;
}

.status.accepted {
  color: #164178;
  background: #dfeeff;
}

.status.completed {
  color: #49640e;
  background: #e8f4c9;
}

.status.requested {
  color: #75450b;
  background: #fff0cf;
}

.status.cancelled {
  color: #7c231c;
  background: #ffe2df;
}

.status.rejected {
  color: #7c1f1a;
  background: #ffe0dc;
  border: 1px solid rgba(194, 52, 45, 0.28);
}

.status.rejected::before {
  content: "!";
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border-radius: 50%;
  color: white;
  background: #c2342d;
  font-size: 11px;
  font-weight: 900;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button,
.link-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.chip-button {
  color: #173f52;
  font-weight: 900;
}

.link-button {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.title-link {
  font-size: inherit;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.contact-actions .btn {
  min-height: 34px;
  padding: 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(235, 248, 251, 0.9);
  color: #33424c;
  padding: 0 10px;
  font-size: 13px;
}

.chip.profile-skill {
  background: rgba(255, 242, 246, 0.9);
  color: #5e3448;
  border: 1px solid rgba(219, 178, 190, 0.48);
  font-weight: 800;
}

.job-category-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.job-category {
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #33424c;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.job-category:hover,
.job-category:focus {
  border-color: rgba(45, 127, 152, 0.5);
  box-shadow: 0 14px 34px rgba(111, 64, 80, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.job-category.active {
  border-color: var(--brand);
  background: rgba(235, 248, 251, 0.92);
  box-shadow: 0 0 0 3px rgba(45, 127, 152, 0.12);
}

.job-category-icon {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 242, 246, 0.92);
  color: #743b55;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.job-category strong {
  font-size: 13px;
  line-height: 1.2;
}

.job-category small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.availability.available {
  color: #174b37;
  background: rgba(224, 246, 235, 0.94);
}

.availability.soon {
  color: #6a4b1f;
  background: rgba(255, 250, 239, 0.96);
}

.availability.busy {
  color: #74362f;
  background: rgba(255, 231, 226, 0.94);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.2);
}

.providers {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  font-weight: 900;
  margin-bottom: 12px;
}

.provider-photo {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid rgba(235, 248, 251, 0.96);
  box-shadow: 0 12px 28px rgba(35, 78, 94, 0.18);
}

.profile-photo-button {
  display: inline-flex;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.profile-photo-button:focus {
  outline: 3px solid rgba(45, 127, 152, 0.28);
  outline-offset: 3px;
  border-radius: 50%;
}

.profile-display {
  overflow: hidden;
  padding: 0;
}

.profile-cover {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(45, 127, 152, 0.86), rgba(217, 161, 95, 0.68)),
    var(--market-image, url("assets/city-towers-background.png"));
  background-size: cover;
  background-position: center;
}

.profile-main {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 0 22px 22px;
  margin-top: -58px;
}

.profile-photo-large {
  width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 5px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 42px rgba(35, 78, 94, 0.2);
}

.profile-main h2 {
  margin: 8px 0 8px;
  font-size: 28px;
}

.profile-main p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-info-panel {
  display: grid;
  gap: 10px;
}

.profile-info-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(177, 206, 216, 0.45);
  padding: 9px 0;
}

.profile-info-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-info-row strong {
  color: var(--ink);
  font-size: 14px;
}

.bottom-nav {
  display: none;
}

.empty {
  border: 1px dashed #b8c5cd;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfd;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .language-picker {
    width: 100%;
  }

  .access-switch {
    width: 100%;
  }

  .access-switch button {
    flex: 1;
  }

  .safety-disclaimer {
    align-items: stretch;
    flex-direction: column;
  }

  .market-picker {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .market-picker label {
    display: grid;
    gap: 4px;
  }

  .market-picker select {
    max-width: none;
    width: 100%;
  }

  .language-picker select {
    flex: 1;
  }

  .content {
    padding: 16px 14px 92px;
  }

  .app-credit {
    margin: -70px 14px 82px;
    padding: 0 12px;
  }

  .dashboard-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .admin-alert-grid,
  .work-score-grid,
  .service-grid,
  .providers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-feature {
    grid-template-columns: 1fr;
  }

  .profile-main {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .profile-photo-large {
    width: 160px;
  }

  .service-feature > div {
    padding: 0 16px 16px;
  }

  [dir="rtl"] .service-feature > div {
    padding: 0 16px 16px;
  }

  .hero {
    min-height: 430px;
    padding: 24px 18px;
  }

  .service-carousel-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shell.view-home .main {
    background-attachment: scroll;
    background-position: center top;
  }

  .bottom-nav {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-top: 1px solid var(--line);
    z-index: 3;
  }

  .bottom-nav button {
    min-height: 64px;
    border: 0;
    background: white;
    color: var(--muted);
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 12px;
  }

  .bottom-nav button.active {
    color: var(--brand);
    font-weight: 800;
  }
}

@media (max-width: 560px) {
  .metrics,
  .admin-alert-grid,
  .work-score-grid,
  .service-grid,
  .providers {
    grid-template-columns: 1fr;
  }

  .mini-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar h1 {
    font-size: 20px;
  }

  .hero {
    min-height: 500px;
  }

  .role-switch {
    width: 100%;
  }

  .market-picker {
    grid-template-columns: 1fr;
  }

  .role-switch button {
    flex: 1;
  }

  .profile-cover {
    min-height: 120px;
  }

  .profile-main,
  .profile-info-row {
    grid-template-columns: 1fr;
  }

  .profile-main {
    padding: 0 16px 18px;
    margin-top: -42px;
  }

  .profile-photo-large {
    width: min(180px, 100%);
  }
}
