@import url("vendor/astryx/astryx.css");
@import url("vendor/astryx/theme-neutral.css");

:root {
  --blue: #3852d6;
  --blue-strong: #3148c8;
  --blue-soft: #d7eaff;
  --blue-pale: #eef6ff;
  --ink: #263037;
  --muted: #7d8795;
  --line: #e8ebf0;
  --panel: #ffffff;
  --page: #f6f7f9;
  --dark: #273137;
  --green: #5fc250;
  --red: #ed514b;
  --amber: #fff8df;
  --rose: #fff0ed;
  --violet: #f3eaff;
  --shadow: 0 24px 70px rgba(45, 63, 90, .10);
  --radius: 8px;
  --radius-lg: 24px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f1f5;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: #b0b8c8;
  border-radius: 999px;
  border: 2px solid #f0f1f5;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #b0b8c8 #f0f1f5;
}


body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font, "Segoe UI", Tahoma, Arial, sans-serif);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: min(1640px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.top-strip {
  height: 4px;
  background: var(--blue);
}

.topbar {
  min-height: 72px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
  font-size: 15px;
  font-weight: 600;
  color: #4a5568;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.dark {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.btn.blue {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.btn.ghost {
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0f1f5;
}

.btn.light {
  background: #fff;
  color: var(--ink);
}

.btn.large {
  min-height: 64px;
  padding-inline: 44px;
  font-size: 22px;
}

.btn.wide {
  width: 100%;
  margin-top: 14px;
}

.hero {
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding-block: 88px 72px;
  background:
    radial-gradient(circle at 88% 28%, rgba(200, 234, 255, .35), transparent 22%),
    radial-gradient(circle at 8% 16%, rgba(239, 225, 255, .38), transparent 20%),
    linear-gradient(180deg, #fff 0%, #fafcff 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.15;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: #303a40;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-partners {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #8d949b;
  font-size: 13px;
  font-weight: 600;
}

.partner-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f7fb;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  transition: border-color .2s ease, background .2s ease;
}

.partner-item:hover {
  border-color: var(--blue);
  background: #eef2ff;
}

.hero-panel {
  position: relative;
  max-width: 760px;
}

.hero-photo {
  position: relative;
  padding: 0;
}

.hero-photo-art {
  height: 560px;
  border-radius: 34px;
  background: linear-gradient(180deg, #f5f7fb 0%, #edf1f9 100%);
  border: 1px solid #dfe6ef;
  box-shadow: var(--shadow);
  overflow: hidden;
}


.floating-stat,
.floating-team {
  position: absolute;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 36px rgba(38, 48, 55, .14);
}

.floating-stat {
  top: -30px;
  left: 18px;
  padding: 18px 20px;
  min-width: 120px;
}

.floating-stat strong {
  display: block;
  color: #8d58ff;
  font-size: 20px;
}

.floating-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.floating-team {
  right: 24px;
  bottom: 24px;
  padding: 10px 14px;
}

.floating-team strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.team-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-dots span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c7d3e9 0%, #a3b6d8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.team-dots span:last-child {
  width: auto;
  border-radius: 999px;
  padding-inline: 10px;
  background: var(--blue);
}

.float-card {
  position: absolute;
  min-width: 170px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(38, 48, 55, .14);
  padding: 16px 20px;
  font-weight: 900;
}

.float-card strong {
  color: #8f5bff;
  font-size: 26px;
  margin-inline-end: 8px;
}

.float-card span {
  color: var(--ink);
  font-size: 15px;
}

.growth {
  top: 10%;
  right: -5%;
}

.team {
  bottom: 10%;
  left: -4%;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.16;
}

.section-head.centered {
  display: block;
  text-align: center;
}

.market,
.profile,
.how {
  padding-block: 88px;
}

.filters,
.role-switch,
.service-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chip {
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.chip.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.consultant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.large-grid {
  grid-template-columns: repeat(4, 1fr);
}

.consultant-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 48px rgba(38, 48, 55, .07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consultant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.consultant-card>img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: var(--blue-soft);
}

.consultant-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.visual-1 {
  background: linear-gradient(135deg, #f4f7ff 0%, #e7efff 100%);
}

.visual-2 {
  background: linear-gradient(135deg, #eef6ff 0%, #dcecff 100%);
}

.visual-3 {
  background: linear-gradient(135deg, #f8f3ff 0%, #ece2ff 100%);
}

.consultant-avatar {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(35, 52, 91, .16);
}

.visual-badge {
  position: absolute;
  inset-inline-start: 24px;
  inset-block-end: 22px;
  min-width: 64px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(35, 52, 91, .12);
}

.mini-avatar {
  width: 170px;
  height: 170px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf2ff 0%, #dbe7ff 100%);
  color: var(--blue);
  font-size: 70px;
  font-weight: 900;
}

.card-body {
  padding: 26px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.card-body p {
  color: #4c5661;
  line-height: 1.55;
  min-height: 52px;
}

.price-row {
  margin-top: 14px;
  font-size: 18px;
}

.full {
  width: 100%;
  margin-top: 16px;
}

.card-body small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.rating {
  display: flex;
  gap: 10px;
  color: #e6ab35;
  font-size: 18px;
  font-weight: 900;
}

.rating span {
  color: var(--muted);
}

.consultant-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.consultant-card p {
  min-height: 48px;
  margin: 0;
  color: #4c5661;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.tags,
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tags span,
.category-pills span {
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.card-foot strong {
  font-size: 20px;
}

.profile {
  display: grid;
  grid-template-columns: 1.7fr .8fr;
  gap: 28px;
}

.profile-main,
.review-panel,
.steps article,
.table-card,
.content-card,
.calendar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(38, 48, 55, .06);
}

.profile-main {
  padding: 42px;
}

.mini-profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}

.mini-profile img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 24px;
}

.mini-profile h2 {
  margin: 0 0 12px;
  font-size: 46px;
}

.mini-profile p {
  margin: 0;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 700;
}

.service-tabs {
  margin-top: 34px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border-radius: 14px;
  background: var(--blue-pale);
}

.service-row h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.service-row strong {
  font-size: 24px;
}

.review-panel {
  padding: 38px;
}

.score {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 26px;
}

.bar {
  height: 16px;
  border-radius: 999px;
  background: #eef0f2;
  margin: 22px 0;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.how {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.steps article {
  padding: 34px;
}

.steps span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.steps h3 {
  margin: 24px 0 12px;
  font-size: 30px;
}

.steps p {
  margin: 0;
  color: #4c5661;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 700;
}

.dashboards {
  padding-block: 88px;
  background: var(--page);
}

.dashboard-frame {
  display: none;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: stretch;
}

.dashboard-frame.active {
  display: grid;
}

.side-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 28px;
  min-height: 620px;
}

.side-nav strong {
  display: block;
  color: var(--blue);
  font-size: 25px;
  margin-bottom: 26px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: var(--radius);
  padding-inline: 18px;
  color: #111;
  font-size: 20px;
  font-weight: 800;
}

.side-nav a.active {
  background: #eaf1ff;
}

.dash-content {
  min-width: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.metric-strip div {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 28px;
}

.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.metric-strip strong {
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.table-card,
.calendar-card,
.content-card {
  padding: 28px;
  overflow: hidden;
}

.table-card h3,
.calendar-card h3,
.content-card h3 {
  margin: 0 0 22px;
  font-size: 28px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  direction: ltr;
}

th,
td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 17px;
  font-weight: 700;
}

th {
  color: #8a94a6;
  font-size: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 900;
}

.status.pending {
  color: #7d5b1f;
  background: #fff3cf;
}

.status.paid {
  color: #289b4f;
  background: #eaf9ee;
}

.status.danger {
  color: var(--red);
  background: #fff0ed;
}

.calendar-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-top: 1px solid var(--line);
}

.calendar-grid>span {
  color: var(--muted);
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.slot {
  margin: 10px 0;
  border: 1px solid #e8ddac;
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 900;
}

.slot small {
  color: #6e7480;
}

.slot.amber {
  background: var(--amber);
}

.slot.rose {
  background: var(--rose);
  border-color: #ffd1c8;
}

.slot.violet {
  background: var(--violet);
  border-color: #d8b7ff;
}

.slot.blue-soft {
  background: #eef3ff;
  border-color: #bac9ff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 24px;
}

.content-card label {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 18px;
}

input,
select {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border: 1px solid #b8bec7;
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.modal {
  width: min(1120px, calc(100% - 32px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .32);
}

.modal::backdrop {
  background: rgba(9, 17, 30, .48);
}

.close {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f7;
  color: var(--ink);
  font-size: 28px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  min-height: 720px;
  background: var(--blue-soft);
}

.booking-form,
.booking-summary {
  padding: 56px;
  background: #fff;
}

.booking-summary {
  background: #d5eaff;
  border-right: 1px solid #c2d8f5;
}

.booking-form h2,
.booking-summary h2,
.auth-modal h2 {
  margin: 0 0 26px;
  font-size: 38px;
}

.booking-summary p {
  margin: 32px 0;
  color: #4f5962;
  font-size: 22px;
  line-height: 1.9;
  font-weight: 800;
}

.date-row,
.time-row {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.date-row {
  grid-template-columns: repeat(4, 1fr);
}

.time-row {
  grid-template-columns: repeat(4, 1fr);
}

.date-row button,
.time-row button {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #8b8b8b;
  font-weight: 900;
}

.date-row button.selected,
.time-row button.selected {
  color: var(--ink);
  border-color: var(--ink);
  background: #f8f8f8;
}

.booking-form label,
.auth-modal label {
  display: block;
  margin-top: 18px;
  color: #9aa2b1;
  font-size: 18px;
  font-weight: 900;
}

.addon {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  border-radius: 12px;
  background: var(--blue-soft);
}

.addon input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.addon label {
  margin: 0;
  color: var(--ink);
}

.addon span {
  display: block;
  color: #5f6974;
  font-size: 14px;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.booking-footer strong {
  font-size: 24px;
}

.booking-footer .btn {
  min-width: 260px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-top: 1px solid #aac7e9;
  border-bottom: 1px solid #aac7e9;
  font-weight: 900;
}

.auth-modal {
  max-width: 720px;
  padding: 70px 78px;
  background: #fff;
}

.site-footer {
  background: linear-gradient(180deg, #f2f5fb 0%, #edf2fb 100%);
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap: 32px;
  align-items: start;
}

.footer-grid h4 {
  margin: 0 0 18px;
  font-size: 22px;
}

.footer-grid a {
  display: block;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 700;
}

.footer-brand p {
  max-width: 320px;
  margin: 20px 0;
  line-height: 1.75;
  color: #46515d;
  font-weight: 700;
}

.currency-row select {
  width: 140px;
}

.footer-actions {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.lang-pill {
  width: 84px;
  min-height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 18px;
    font-size: 14px;
  }

  .hero,
  .profile,
  .admin-grid,
  .booking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
    max-width: 680px;
    margin-inline: auto;
  }

  .hero {
    position: relative;
  }

  .hero-stats {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
    z-index: 5 !important;
  }

  .hero-stat {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .hero-stat[data-stat="consult"],
  .hero-stat[data-stat="revenue"] {
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .consultant-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .large-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-frame {
    grid-template-columns: 240px 1fr;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Unified Auth Modal — canonical block
   All auth styling lives here. Do not add auth
   rules anywhere else in this file.
   ============================================ */

.unified-auth {
  max-width: 480px;
  width: 95vw;
  padding: 0 !important;
  border-radius: 28px;
  overflow: hidden;
  max-height: 92vh;
  background: #fff;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.20),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.marketplace-pending .consultant-card { visibility: hidden; }

.unified-auth .auth-form.active {
  display: block;
  max-height: calc(92vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Close button */
.unified-auth .close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #475569;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.unified-auth .close:hover {
  background: rgba(0,0,0,0.12);
  transform: scale(1.08);
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  border-bottom: 1.5px solid #eef2ff;
  background: #f8faff;
}

.auth-tab {
  flex: 1;
  padding: 17px 14px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: #2563eb;
  box-shadow: inset 0 -2.5px 0 #2563eb;
}

/* ── Form containers ── */
.auth-form {
  display: none;
  padding: 28px 32px 30px;
}

.auth-form.active { display: block; }

#auth-signup.auth-form { padding-top: 24px; }

.auth-form--signup {
  background:
    radial-gradient(ellipse at top right, rgba(59,130,246,0.06) 0%, transparent 50%),
    #fff;
}

/* ── Headings ── */
.auth-form h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.auth-sub {
  color: #94a3b8;
  font-size: 13.5px;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ── Input fields ── */
.auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1.5px solid #e8edf5;
  border-radius: 15px;
  margin-bottom: 11px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
  min-height: 52px;
}

.auth-field:focus-within {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  transform: translateY(-1px);
}

.auth-field > i {
  color: #b0bdd0;
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.auth-field > input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
  min-width: 0;
}

.auth-field > input::placeholder {
  color: #b8c4d4;
  font-weight: 400;
}

/* ── Username field — permanent LTR fix ── */
/*
  Problem: html[dir=rtl] reverses flexbox, putting "username" text
  to the right of "khabir.io/" which makes it unreadable.
  Solution: .username-ltr-island forces direction:ltr on a flex sub-container
  so the prefix always appears left of the input, regardless of page direction.
*/
.auth-field--username {
  /* icon (fa-at) stays on the RTL right side — that's fine */
}

.username-ltr-island {
  flex: 1;
  display: flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: embed;
  min-width: 0;
  overflow: hidden;
}

.username-prefix {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  direction: ltr;
  user-select: none;
  padding-left: 0;
}

.username-ltr-island > input,
#signupUsername {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  background: transparent;
  direction: ltr;
  text-align: left;
  font-family: 'Inter', ui-monospace, monospace;
  min-width: 0;
}

.username-ltr-island > input::placeholder {
  color: #c0cad8;
  font-weight: 400;
}

.username-indicator {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
  white-space: nowrap;
}
.username-indicator.available { color: #16a34a; }
.username-indicator.taken     { color: #dc2626; }
.username-indicator.checking  { color: #94a3b8; }

/* Status classes used by existing JS */
.username-status--loading   { color: #2563eb; }
.username-status--available { color: #16a34a; }
.username-status--taken     { color: #dc2626; }

/* ── Password toggle ── */
.password-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.password-toggle:hover { opacity: 0.9; }

/* ── Options row ── */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 14px;
  color: #64748b;
}
.auth-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.forgot-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Primary submit button ── */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(37,99,235,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  margin-top: 4px;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37,99,235,0.38);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}
.auth-submit-btn:active { transform: translateY(0); }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8edf5;
}

/* ── Social button ── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  font-size: 14.5px;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.social-btn:hover {
  background: #f5f8ff;
  border-color: #bcd0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.10);
}

/* ── Terms ── */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.55;
}
.terms-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #2563eb;
  flex-shrink: 0;
}
.terms-check a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.terms-check a:hover { text-decoration: underline; }

/* ── Switch link ── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 14px;
  margin-bottom: 0;
}
.auth-switch a {
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Legacy aliases — keeps existing JS working ── */
.username-shell        { display: contents; }
.username-meta         { display: none !important; }
.username-caption      { display: none !important; }
.username-preview      { display: none !important; }
.username-status       { display: none !important; }
.auth-signup-intro     { display: none !important; }
.auth-consultant-benefits { display: none !important; }
.signup-steps          { display: none !important; }
.signup-step-dot       { display: none !important; }
.signup-step-panel     { display: none !important; }
.role-selector         { display: none !important; }
#signupUsernameGroup[hidden],
#signupUsernameMeta[hidden],
#signupConsultantBenefits[hidden] { display: none !important; }

/* ============================================
   Country Flag on Consultant Cards
   ============================================ */
.country-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* ============================================
   Consultant Public Profile Page
   ============================================ */
.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.profile-header {
  display: flex;
  gap: 32px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  position: relative;
}

.profile-avatar .flag-badge {
  position: absolute;
  bottom: 4px;
  right: -4px;
  font-size: 28px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.profile-info .title {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 12px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats strong {
  display: block;
  font-size: 20px;
  color: var(--blue);
}

.profile-stats span {
  font-size: 13px;
  color: var(--muted);
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 12px;
}

.profile-rating span {
  color: var(--muted);
  font-size: 14px;
}

.profile-bio {
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 16px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span {
  background: var(--blue-pale);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.profile-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.profile-section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section h3 i {
  color: var(--blue);
}

.experience-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-item .year {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  min-width: 70px;
}

.experience-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.experience-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.diploma-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.diploma-item:last-child {
  border-bottom: none;
}

.diploma-item i {
  font-size: 20px;
  color: var(--blue);
}

.diploma-item h4 {
  margin: 0;
  font-size: 14px;
}

.diploma-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--blue);
}

.service-card-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.service-card-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.service-card-price {
  text-align: left;
}

.service-card-price strong {
  display: block;
  font-size: 18px;
  color: var(--blue);
}

.service-card-price span {
  font-size: 12px;
  color: var(--muted);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.availability-slot {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.availability-slot:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.availability-slot .day {
  display: block;
  font-weight: 600;
}

.availability-slot .time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.review-card:last-child {
  border-bottom: none;
}

.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-card .reviewer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--blue);
}

.review-card .reviewer strong {
  font-size: 14px;
}

.review-card .reviewer .stars {
  color: #f5a623;
  font-size: 13px;
  margin-inline-start: auto;
}

.review-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    order: -1;
  }

  .unified-auth {
    margin: 0 12px;
  }

  .auth-form {
    padding: 24px 18px;
  }

  .role-selector {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .topbar {
    min-height: auto;
    padding-block: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 14px;
    font-size: 13px;
  }

  .nav-actions {
    margin-inline-end: 0;
    gap: 8px;
  }

  .btn {
    padding-inline: 14px;
    min-height: 38px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-block: 32px;
    gap: 28px;
    position: relative;
  }

  .hero h1 {
    font-size: clamp(26px, 5vw, 36px);
  }

  .hero h1 span {
    display: inline;
  }

  .hero p {
    font-size: 14px;
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 16px;
    gap: 8px;
  }

  .hero-partners {
    margin-top: 18px;
    gap: 10px;
  }

  .partner-item {
    padding: 4px 10px;
    font-size: 12px;
  }

  .partner-item svg {
    width: 14px;
    height: 14px;
  }

  .hero-photo-art {
    height: 260px;
  }

  .floating-stat {
    top: -20px;
    left: 10px;
    padding: 12px 14px;
    min-width: 90px;
  }

  .floating-stat strong {
    font-size: 16px;
  }

  .floating-stat span {
    font-size: 12px;
  }

  .floating-team {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }

  .floating-team strong {
    font-size: 11px;
  }

  .team-dots span {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .consultant-grid,
  .steps,
  .dashboard-frame,
  .metric-strip,
  .date-row,
  .time-row,
  .mini-profile,
  .service-row,
  .large-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .side-nav {
    min-height: auto;
  }

  .dashboard-frame {
    gap: 12px;
  }

  .side-nav a {
    display: inline-flex;
    margin: 4px;
    font-size: 13px;
  }

  .booking-form,
  .booking-summary,
  .auth-modal {
    padding: 28px 18px;
  }

  .unified-auth {
    margin: 0 8px;
    max-width: 100%;
    border-radius: 14px;
  }

  .unified-auth .auth-form.active {
    max-height: calc(80vh - 44px);
  }

  .auth-form {
    padding: 16px 14px;
  }

  .auth-form h2 {
    font-size: 15px;
  }

  .auth-sub {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .auth-field {
    min-height: 46px;
    padding: 0 12px;
    margin-bottom: 6px;
  }

  .auth-field input {
    font-size: 13px;
    padding: 8px 0;
  }

  .auth-field i {
    font-size: 14px;
  }

  .auth-tab {
    padding: 10px;
    font-size: 13px;
  }

  .role-selector {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .signup-step-actions {
    grid-template-columns: 1fr;
  }

  .auth-consultant-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .role-option {
    padding: 8px;
    flex-direction: row;
    gap: 8px;
  }

  .role-option i {
    font-size: 16px;
  }

  .role-option span {
    font-size: 13px;
  }

  .role-option small {
    font-size: 11px;
  }

  .auth-options {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .auth-divider {
    font-size: 12px;
    margin: 8px 0;
  }

  .auth-switch {
    font-size: 12px;
    margin-top: 8px;
  }

  .social-btn {
    font-size: 13px;
    min-height: 38px;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }

  .terms-check {
    font-size: 12px !important;
  }

  .terms-check input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
  }

  th,
  td {
    min-width: 110px;
    font-size: 13px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .consultant-visual {
    height: 180px;
  }

  .mini-avatar {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .mini-profile {
    gap: 14px;
  }

  .footer-grid {
    gap: 18px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .services-search {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .service-filter-row {
    flex-wrap: wrap;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .category-row {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-chip {
    font-size: 12px;
    padding: 6px 14px;
    white-space: nowrap;
  }

  .carousel-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   Mobile Small (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .shell {
    width: min(100% - 16px, 460px);
  }

  .topbar {
    padding-block: 10px;
    gap: 8px;
  }

  .brand {
    font-size: 18px;
    gap: 6px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
  }

  .nav-links {
    gap: 10px;
    font-size: 12px;
    padding-bottom: 4px;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn {
    padding-inline: 10px;
    min-height: 34px;
    font-size: 12px;
    gap: 6px;
  }

  .hero {
    padding-block: 20px;
    gap: 16px;
  }

  .hero h1 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .hero p {
    font-size: 13px;
    margin-top: 6px;
  }

  .hero-actions {
    margin-top: 10px;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-partners {
    margin-top: 12px;
    gap: 6px;
  }

  .partner-item {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .partner-item svg {
    width: 12px;
    height: 12px;
  }

  .hero-photo-art {
    height: 180px;
    border-radius: 16px;
  }

  .floating-stat {
    top: -14px;
    left: 6px;
    padding: 8px 10px;
    min-width: 60px;
    border-radius: 10px;
  }

  .floating-stat strong {
    font-size: 13px;
  }

  .floating-stat span {
    font-size: 10px;
    margin-top: 2px;
  }

  .floating-team {
    right: 6px;
    bottom: 6px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .floating-team strong {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .team-dots span {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .section-head p {
    font-size: 13px;
  }

  .consultant-card .card-body {
    padding: 12px;
  }

  .consultant-card h3 {
    font-size: 14px;
  }

  .consultant-card p {
    font-size: 12px;
  }

  .consultant-visual {
    height: 140px;
  }

  .steps article {
    padding: 16px;
  }

  .steps article span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .steps article h3 {
    font-size: 14px;
  }

  .steps article p {
    font-size: 12px;
  }

  .unified-auth {
    border-radius: 10px;
    margin: 0 4px;
  }

  .auth-form {
    padding: 10px 8px;
  }

  .auth-form h2 {
    font-size: 13px;
  }

  .auth-tab {
    padding: 8px;
    font-size: 12px;
  }

  .auth-field {
    min-height: 42px;
    padding: 0 10px;
    margin-bottom: 4px;
  }

  .auth-field input {
    font-size: 12px;
    padding: 6px 0;
  }

  .role-option {
    padding: 6px;
    gap: 6px;
  }

  .role-option i {
    font-size: 13px;
  }

  .role-option span {
    font-size: 12px;
  }

  .role-option small {
    font-size: 10px;
  }

  .social-btn {
    font-size: 12px;
    min-height: 32px;
  }

  .social-btn svg {
    width: 14px;
    height: 14px;
  }

  .booking-form,
  .booking-summary,
  .auth-modal {
    padding: 16px 12px;
  }

  .auth-submit-btn {
    min-height: 48px;
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer-actions {
    flex-direction: column;
    gap: 6px;
  }

  .footer-actions .btn {
    width: 100%;
  }

  .mini-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .mini-profile {
    gap: 8px;
  }

  .mini-profile h3 {
    font-size: 15px;
  }

  .mini-profile p {
    font-size: 12px;
  }

  .service-tabs {
    gap: 4px;
  }

  .service-tab {
    font-size: 12px;
    padding: 6px 10px;
  }

  .service-row {
    gap: 8px;
  }

  .service-card {
    padding: 12px;
  }

  .service-card h4 {
    font-size: 13px;
  }

  .service-card p {
    font-size: 12px;
  }

  .review-panel {
    padding: 14px;
  }

  .review-panel h3 {
    font-size: 15px;
  }

  .review-card {
    padding: 10px;
  }

  .review-card p {
    font-size: 12px;
  }

  .review-author strong {
    font-size: 12px;
  }

  .side-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .dash-content {
    padding: 12px;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-card .metric-value {
    font-size: 20px;
  }

  .metric-card .metric-label {
    font-size: 11px;
  }

  .table-card {
    overflow-x: auto;
  }

  th,
  td {
    min-width: 80px;
    font-size: 11px;
    padding: 6px 8px;
  }

  .category-chip {
    font-size: 11px;
    padding: 4px 10px;
  }

  .search-form-card {
    padding: 12px;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .search-grid input,
  .search-grid select {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* Toast animation */
@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   Default Profile Image — face-profile.png
   Replaces text-based letter avatars with the
   default face image for testing purposes.
   ============================================ */
.consultant-avatar,
.mini-avatar,
.profile-avatar,
.review-card .reviewer .avatar {
  background-image: url('../face-profile.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
}

/* Consultant card cover images — use DEFAULT Backgound as default cover image */
.consultant-visual.visual-1,
.consultant-visual.visual-2,
.consultant-visual.visual-3,
.consultant-visual.visual-4 {
  background-image: url('../default-background.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ============================================
   Home Page Animations
   ============================================ */

/* Fade + slide up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade + slide in from left (RTL: from right) */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade + slide in from right (RTL: from left) */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale up */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Float up/down (continuous) */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Pulse glow */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 82, 214, 0.3);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(56, 82, 214, 0);
  }
}

/* ── Hero live stat badges (random pop-up, green theme) ── */
.hero-stats {
  position: relative;
  min-height: 80px;
  margin-bottom: 10px;
}

.hero-stat {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid rgba(22, 163, 74, 0.25);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Random positions — set by JS, fallback defaults */
.hero-stat[data-stat="consult"] {
  top: -50px;
  left: 0;
}

.hero-stat[data-stat="revenue"] {
  top: -10px;
  right: 0;
}

.hero-stat .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.12);
}

.hero-stat .stat-num {
  font-size: 17px;
  font-weight: 900;
  color: #166534;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  line-height: 1.2;
}

/* Burst pop-in — short & snappy */
@keyframes statBurst {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(12px);
  }

  35% {
    opacity: 1;
    transform: scale(1.2) translateY(-8px);
  }

  60% {
    transform: scale(0.88) translateY(4px);
  }

  80% {
    transform: scale(1.05) translateY(-1px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Fade out */
@keyframes statFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.3) translateY(-24px);
  }
}

/* Green glow ring on pop */
.hero-stat.pop-glow {
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  animation: statBurst 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    glowRing 0.6s ease-out 0.1s forwards;
}

@keyframes glowRing {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
}

/* Gentle floating motion after pop — flowing up and down */
.hero-stat.float {
  animation: statFloat 2.8s ease-in-out infinite;
}

@keyframes statFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    position: absolute !important;
    display: flex !important;
    flex-wrap: wrap !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
    top: 12px !important;
    left: 10px !important;
    right: 10px !important;
    gap: 6px !important;
    z-index: 5 !important;
  }

  .hero-stat {
    padding: 4px 10px 4px 8px;
    font-size: 11px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .hero-stat[data-stat="consult"],
  .hero-stat[data-stat="revenue"] {
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .hero-stat .stat-num {
    font-size: 14px;
  }

  .hero-stat .stat-label {
    font-size: 10px;
  }

  .hero-stat .stat-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .hero-stat[data-stat="revenue"] {
    display: none !important;
  }
}



/* Animation utility classes */
.anim-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.anim-scale {
  animation: scaleIn 0.6s ease forwards;
}

.anim-float {
  animation: float 3s ease-in-out infinite;
}

.anim-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Staggered delays */
.anim-delay-1 {
  animation-delay: 0.1s;
}

.anim-delay-2 {
  animation-delay: 0.2s;
}

.anim-delay-3 {
  animation-delay: 0.3s;
}

.anim-delay-4 {
  animation-delay: 0.4s;
}

.anim-delay-5 {
  animation-delay: 0.5s;
}

.anim-delay-6 {
  animation-delay: 0.6s;
}

.anim-delay-7 {
  animation-delay: 0.7s;
}

.anim-delay-8 {
  animation-delay: 0.8s;
}

/* Initial state before animation triggers */
.hero-copy .eyebrow,
.hero-copy .hero-stats,
.hero-copy h1,
.hero-copy p,
.hero-copy .hero-actions,
.hero-copy .hero-partners,
.hero-panel,
section:not(.hero) .section-head .eyebrow,
section:not(.hero) .section-head h2,
section:not(.hero) .section-head .filters,
section:not(.hero) .section-head .role-switch,
.steps article,
.consultant-card,
.categories-grid .category-card,
.subcategories-panel,
.profile-main,
.review-panel,
.dashboard-frame,
.footer-grid>div {
  opacity: 0;
}

/* Hero section — animate on load */
.hero-copy .eyebrow {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-copy .hero-stats {
  opacity: 1;
}

.hero-copy h1 {
  animation: fadeUp 0.7s ease 0.45s forwards;
  margin-top: -70px;
  padding-right: 35px;
}

.hero-copy h1 span {
  color: #006dff;
}

.hero-copy p {
  animation: fadeUp 0.7s ease 0.4s forwards;
  padding-right: 19px;
}

.hero-copy .hero-actions {
  animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-copy .hero-partners {
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.hero-panel {
  animation: fadeInRight 0.9s ease 0.3s forwards;
}

/* Floating elements continuous animation */
.floating-stat {
  animation: float 4s ease-in-out infinite;
}

.floating-team {
  animation: float 4s ease-in-out 2s infinite;
}

/* ==========================================
   Services / Categories Section — Redesigned
   Category card grid + expanding subcategories
   ========================================== */

/* --- Category Card Grid --- */
.services-hero .section-title-group .eyebrow {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.services-hero .section-title-group h2 {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.services-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
  margin: 8px auto 0;
  line-height: 1.7;
  animation: fadeUp 0.7s ease 0.25s forwards;
}

.top-category-section {
  position: sticky;
  top: 76px;
  z-index: 19;
  padding: 10px 0 12px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(38, 48, 55, .05);
}

.category-barline {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Horizontal category tab bar — single scrollable row */
.categories-grid {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5e0 transparent;
  padding-bottom: 10px;
  padding-inline-end: 4px;
  -webkit-overflow-scrolling: touch;
}

.categories-grid::-webkit-scrollbar {
  height: 4px;
}

.categories-grid::-webkit-scrollbar-thumb {
  background: #d0d5e0;
  border-radius: 4px;
}

.categories-grid .category-card {
  min-height: 70px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #dde5f0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 14px;
  color: #4a5568;
  box-shadow: 0 8px 24px rgba(38, 48, 55, .05);
  opacity: 1;
}

.categories-grid .category-card:first-child {
  border-radius: 16px;
}

.categories-grid .category-card:last-child {
  border-radius: 16px;
}

.categories-grid .category-card {
  border-radius: 16px;
}

.categories-grid .category-card:hover {
  color: #9ca3af;
  background: #f8faff;
  border-color: #d0d8f0;
  transform: translateY(-1px);
}

.categories-grid .category-card.selected {
  color: var(--blue);
  background: linear-gradient(180deg, #f0f5ff, #e8f1ff);
  border-color: var(--blue);
  border-bottom-color: var(--blue);
  box-shadow: 0 12px 28px rgba(56, 82, 214, .14);
}

/* Category icon circle — small */
.categories-grid .category-card .cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 18px rgba(0, 0, 0, .08);
}

/* Category name — inline */
.categories-grid .category-card .cat-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
}

/* Mini badge showing consultant count */
.categories-grid .category-card .cat-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 82, 214, .10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

/* --- Subcategories Panel --- */
.subcategories-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 14px;
  padding: 20px 22px;
  min-height: 80px;
  transition: all 0.3s ease;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.subcategories-panel[hidden] {
  display: none;
}

.top-category-section .subcategories-panel {
  opacity: 1;
  animation: categoryPanelIn .25s ease both;
}

@keyframes categoryPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategories-panel.has-selection {
  border-color: #d0d8f0;
  background: #fafbff;
}

/* Subcategories header row */
.subcategories-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.subcategories-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(38, 48, 55, .08);
}

.subcategories-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.subcategories-count {
  font-size: 13px;
  color: var(--muted);
  background: #f1f3f8;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Subcategory accordion groups */
.subcategories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each subcategory group (collapsible) */
.subcat-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: #fff;
}

.subcat-group:hover {
  border-color: #c8d2e8;
}

.subcat-group.open {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(56, 82, 214, 0.08);
}

/* Group header — clickable to expand/collapse */
.subcat-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.subcat-group-header:hover {
  background: #fafbfe;
}

/* Chevron icon */
.subcat-chevron {
  font-size: 12px;
  color: #8896a8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.subcat-group.open .subcat-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

/* Group name */
.subcat-group-name {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* Badge showing leaf count */
.subcat-group-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f3f8;
  padding: 3px 10px;
  border-radius: 20px;
  min-width: 26px;
  text-align: center;
}

.subcat-group.open .subcat-group-badge {
  background: var(--blue-pale);
  color: var(--blue);
}

/* Leaf tags container — hidden by default, shown when group is open */
.subcat-group-leaves {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px 18px;
}

.subcat-group.open .subcat-group-leaves {
  display: flex;
}

/* Individual leaf tag pill */
.leaf-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f5f7fb;
  border: 1px solid #e4e9f2;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaf-tag:hover {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 82, 214, 0.1);
}

/* Placeholder when nothing selected */
.subcategories-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b0b9c5;
  font-size: 15px;
  padding: 12px 0;
  margin: 0;
}

.subcategories-placeholder span {
  color: #9aa7b4;
}

/* --- Mobile Responsive for Services --- */
@media (max-width: 768px) {
  .services-hero {
    padding: 16px 10px;
  }

  .category-barline {
    padding: 0;
    border-radius: 0;
  }

  .top-category-section {
    padding: 8px 0 10px;
  }

  .categories-grid {
    gap: 8px;
    padding-bottom: 8px;
  }

  .categories-grid .category-card {
    min-height: 58px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .categories-grid .category-card .cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }

  .categories-grid .category-card .cat-name {
    font-size: 12px;
  }

  .categories-grid .category-card .cat-badge {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .subcategories-panel {
    padding: 14px 16px;
  }

  .subcategories-list {
    gap: 8px;
  }

  .subcat-group-header {
    padding: 12px 14px;
  }

  .subcat-group-name {
    font-size: 13px;
  }

  .subcat-group-leaves {
    padding: 0 14px 12px 14px;
    gap: 6px;
  }

  .leaf-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Premium marketplace category navigation */
.top-category-section {
  padding: 8px 0 10px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: none;
}

.global-category-nav {
  position: sticky;
  top: 76px;
  z-index: 19;
}

.global-category-nav .categories-grid {
  padding-bottom: 2px;
}

.categories-grid {
  gap: 6px;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

.categories-grid .category-card {
  min-height: 56px;
  padding: 8px 13px;
  gap: 8px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  font: inherit;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.categories-grid .category-card:first-child,
.categories-grid .category-card:last-child {
  border-radius: 12px;
}

.categories-grid .category-card:hover {
  color: #111827;
  border-color: #d6d6d6;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transform: none;
}

.categories-grid .category-card.selected {
  color: #111827;
  border-color: var(--blue);
  border-bottom-color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.categories-grid .category-card .cat-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: #6b7280 !important;
  box-shadow: none;
  font-size: 17px;
  transition: color .18s ease;
}

.categories-grid .category-card .cat-icon i,
.categories-grid .category-card:hover .cat-icon i,
.categories-grid .category-card.selected .cat-icon i {
  color: #6b7280 !important;
}

.categories-grid .category-card.selected .cat-icon {
  color: #6b7280;
}

.categories-grid .category-card .cat-name {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.subcategories-panel,
.subcategories-panel.has-selection {
  min-height: 0;
  margin-top: 0;
  padding: 9px 1px 1px;
  border: 0;
  border-top: 1px solid #eaeaea;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  opacity: 1;
  animation: categoryPanelIn .18s ease both;
}

.subcategories-list {
  display: flex;
  flex-flow: row nowrap;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subcategories-list::-webkit-scrollbar {
  display: none;
}

.subcategory-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #eaeaea;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.subcategory-pill:hover {
  border-color: #cfd3da;
  color: #111827;
}

.subcategory-pill.active {
  border-color: var(--blue);
  background: #f7f8ff;
  color: var(--blue);
}

.market-results-label {
  margin: 4px 0 18px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
}

#consultants .consultant-card[hidden],
.market-empty-state[hidden] {
  display: none !important;
}

.market-empty-state {
  padding: 38px 20px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: #fff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.market-empty-state strong,
.market-empty-state span {
  display: block;
}

.market-empty-state strong {
  margin-bottom: 5px;
  color: #111827;
  font-size: 16px;
}

/* Premium consultation service cards */
.market .section-head {
  margin-bottom: 22px;
}

.market .section-head h2 {
  max-width: 720px;
  font-size: clamp(30px, 3vw, 48px);
}

.market .filters {
  gap: 7px;
}

.market .filters .chip {
  min-height: 38px;
  padding: 0 16px;
  border-color: #eaeaea;
  border-radius: 999px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.market .filters .chip.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.market .large-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.market .consultant-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.market .consultant-card:hover {
  border-color: #d4d4d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, .06);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 0;
}

.service-format {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.service-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  direction: ltr;
}

.service-rating i {
  color: #f4b740;
  font-size: 12px;
}

.service-rating small {
  color: #6b7280 !important;
  font-size: 11px;
  font-weight: 600;
}

.market .consultant-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 18px 17px;
}

.market .consultant-card .service-title {
  min-height: 52px;
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.market .consultant-card .service-description {
  min-height: 63px;
  margin: 8px 0 17px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.consultant-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.market .consultant-summary .consultant-avatar {
  position: static;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #f7f7f8;
  color: #374151;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.consultant-identity {
  min-width: 0;
}

.consultant-identity strong,
.consultant-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultant-identity strong {
  color: #111827;
  font-size: 13px;
}

.consultant-identity strong i {
  color: var(--blue);
  font-size: 11px;
}

.consultant-identity span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
}

.market .consultant-summary .country-flag {
  position: static;
  font-size: 19px;
  filter: none;
}

.market .consultant-summary .country-flag img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.service-details {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}

.service-details span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-details i {
  color: #9ca3af;
}

.service-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 19px;
}

.service-price span,
.service-price strong {
  display: block;
}

.service-price span {
  margin-bottom: 2px;
  color: #9ca3af;
  font-size: 11px;
}

.service-price strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.service-card-footer .book-btn {
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.market .consultant-card .service-availability {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 13px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
  text-align: start;
}

.service-availability i {
  color: #22a06b;
  font-size: 6px;
}

@media (max-width: 1180px) {
  .market .large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .market {
    padding-block: 58px;
  }

  .market .section-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .market .section-head h2 {
    font-size: 30px;
  }

  .market .filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .market .filters::-webkit-scrollbar {
    display: none;
  }

  .market .large-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .market .consultant-card .service-title,
  .market .consultant-card .service-description {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .categories-grid .category-card {
    min-height: 50px;
    padding: 7px 11px;
  }

  .categories-grid .category-card .cat-icon {
    width: 18px;
    height: 18px;
    font-size: 15px;
  }

  .categories-grid .category-card .cat-name {
    font-size: 12px;
  }

  .subcategories-panel,
  .subcategories-panel.has-selection {
    padding: 8px 1px 0;
  }

  .subcategory-pill {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* Compact marketplace card facts */
.market .consultant-card,
.specialist-card {
  background-color: #fff;
  background-image: none;
}

.market .consultant-card .card-body,
.specialist-card {
  position: relative;
}

.market .consultant-card .service-title,
.specialist-card h2 {
  min-height: 0;
}

.market .consultant-card .service-description,
.specialist-card>p {
  min-height: 0;
  margin-bottom: 13px;
}

.consultant-summary,
.specialist-person {
  padding: 11px;
  border: 1px solid #eceef1;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
}

.service-quick-facts {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 13px;
  overflow-x: auto;
  padding: 10px 11px;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  scrollbar-width: none;
}

.service-quick-facts::-webkit-scrollbar {
  display: none;
}

.service-quick-facts>* {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
}

.service-quick-facts>*:not(:last-child)::after {
  content: none;
}

.service-quick-facts>*:not(:last-child) {
  margin-inline-end: 11px;
}

.service-quick-facts i {
  color: #8b93a1;
  font-size: 10px;
}

.service-quick-facts strong {
  color: #111827;
  font-size: 11px;
}

.service-quick-facts .group-price {
  gap: 5px;
}

.group-price del {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.group-price b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #16845b;
  font-size: 9px;
  font-weight: 800;
}

.workspace-discount {
  display: inline-flex;
  margin-inline-start: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #16845b;
  font-size: 11px;
  font-weight: 800;
}

.pricing-error {
  display: block;
  margin-top: 7px;
  color: #c2413b;
  font-weight: 700;
}

.service-quick-facts .available {
  color: #16845b;
}

.service-quick-facts .available i {
  color: #16845b;
}

.service-booking-action,
.specialist-booking-action {
  width: 100%;
  min-height: 41px;
  margin-top: 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.specialist-card .specialist-booking-action {
  margin-top: 11px;
}

@media (max-width: 700px) {
  .service-quick-facts {
    font-size: 10px;
  }

  .service-quick-facts>*:not(:last-child)::after {
    margin-inline: 6px;
  }
}

/* Specialist marketplace page */
.specialist-page {
  background: #fafafa;
  color: #111827;
}

.specialist-page .site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: #eaeaea;
}

.specialist-hero {
  padding-block: 42px 34px;
}

.market-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #6b7280;
  font-size: 13px;
}

.market-breadcrumb a:hover {
  color: var(--blue);
}

.market-breadcrumb i {
  color: #c5c8ce;
  font-size: 9px;
}

.market-breadcrumb span {
  color: #111827;
  font-weight: 700;
}

.specialist-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.specialist-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.specialist-heading p {
  max-width: 760px;
  margin: 13px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.specialist-heading>.btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
  border-color: #eaeaea;
  border-radius: 10px;
  box-shadow: none;
  font-size: 13px;
}

.specialist-market {
  display: block;
  padding-bottom: 90px;
}

.specialist-filters {
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.specialist-filters-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(190px, 1fr));
  gap: 0;
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 0.5) 100%);
  border-radius: 20px 0 0 20px;
}

.filter-panel-head span,
.filter-panel-head small {
  display: block;
}

.filter-panel-head span {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.filter-panel-head small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.filter-panel-head button {
  padding: 8px 14px;
  border: 0;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-panel-head button:hover {
  background: var(--blue);
  color: #fff;
}

.filter-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  transition: background 0.2s;
}

.filter-field:hover {
  background: rgba(255, 255, 255, 0.6);
}

.filter-field:last-child {
  border-inline-end: 0;
  border-radius: 0 20px 20px 0;
}

.filter-field>span,
.filter-field legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 750;
}

.filter-field>span i,
.filter-field legend i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  color: var(--blue);
  font-size: 12px;
}

.filter-field select,
.price-inputs input,
.results-toolbar select,
.specialist-booking-dialog select,
.specialist-booking-dialog textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  padding: 0 14px;
  outline: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-field select:hover,
.price-inputs input:hover {
  background: #f3f4f6;
}

.filter-field select:focus,
.price-inputs input:focus,
.results-toolbar select:focus,
.specialist-booking-dialog select:focus,
.specialist-booking-dialog textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-inputs label span {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.price-inputs input {
  min-width: 0;
  cursor: text;
}

.price-input-wrap {
  position: relative;
  display: block;
}

.price-input-wrap input {
  padding-inline-end: 42px;
}

.currency-label {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
}

.minimum-price-note {
  display: block;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
}

.specialist-results {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 17px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}

.results-toolbar strong,
.results-toolbar div span {
  display: block;
}

.results-toolbar strong {
  font-size: 14px;
}

.results-toolbar div span {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 11px;
}

.results-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.results-toolbar select {
  width: auto;
  min-height: 36px;
  font-size: 12px;
}

.specialist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.specialist-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.specialist-card:hover {
  border-color: #d4d4d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}

.specialist-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.specialist-card h2 {
  min-height: 75px;
  margin: 14px 0 7px;
  font-size: 17px;
  line-height: 1.5;
}

.specialist-card>p {
  min-height: 60px;
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
}

.specialist-person {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 13px 0;
  border-block: 1px solid #f0f0f0;
}

.specialist-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #f7f7f8;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.specialist-person strong,
.specialist-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specialist-person strong {
  font-size: 12px;
}

.specialist-person strong i {
  color: var(--blue);
  font-size: 10px;
}

.specialist-person small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
}

.specialist-country {
  grid-column: 2;
  color: #6b7280;
  font-size: 10px;
}

.specialist-meta {
  display: flex;
  gap: 12px;
  margin-top: 13px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
}

.specialist-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.specialist-meta i {
  color: #9ca3af;
}

.specialist-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.specialist-price small,
.specialist-price strong {
  display: block;
}

.specialist-price small {
  color: #9ca3af;
  font-size: 10px;
}

.specialist-price strong {
  margin-top: 2px;
  font-size: 17px;
}

.specialist-book-btn {
  min-height: 39px;
  padding-inline: 15px;
  border-radius: 9px;
  font-size: 12px;
}

.specialist-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 650;
}

.specialist-availability i {
  color: #22a06b;
  font-size: 6px;
}

.specialist-empty {
  padding: 70px 24px;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.specialist-empty>i {
  color: #c4c8cf;
  font-size: 34px;
}

.specialist-empty h2 {
  margin: 17px 0 7px;
  font-size: 20px;
}

.specialist-empty p {
  margin: 0 0 20px;
  color: #6b7280;
}

.specialist-empty[hidden],
.specialist-grid[hidden],
#countryFilterField[hidden] {
  display: none !important;
}

.specialist-booking-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .18);
}

.specialist-booking-dialog::backdrop {
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(3px);
}

.specialist-booking-dialog h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}

.specialist-booking-dialog>p {
  margin: 8px 0 22px;
  color: #6b7280;
}

.specialist-booking-dialog label {
  display: block;
  margin-top: 15px;
  color: #374151;
  font-size: 12px;
  font-weight: 750;
}

.specialist-booking-dialog label select,
.specialist-booking-dialog label textarea {
  margin-top: 7px;
}

.specialist-booking-dialog textarea {
  min-height: 100px;
  padding-block: 10px;
  resize: vertical;
}

.dialog-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
}

.specialist-footer {
  border-top: 1px solid #eaeaea;
  background: #fff;
}

.specialist-footer>div {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .specialist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .specialist-filters-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel-head {
    grid-column: 1 / -1;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 700px) {
  .specialist-page .nav-links {
    display: none;
  }

  .specialist-page .nav-actions .ghost {
    display: none;
  }

  .specialist-hero {
    padding-block: 28px 24px;
  }

  .market-breadcrumb {
    margin-bottom: 20px;
  }

  .specialist-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .specialist-heading h1 {
    font-size: 28px;
  }

  .specialist-market {
    gap: 18px;
    padding-bottom: 60px;
  }

  .specialist-filters-top {
    grid-template-columns: 1fr;
  }

  .filter-field {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-inline-end: 0;
    border-radius: 0;
  }

  .filter-panel-head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px 20px 0 0;
  }

  .filter-field:last-child {
    border-bottom: 0;
    border-radius: 0 0 20px 20px;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-toolbar label,
  .results-toolbar select {
    width: 100%;
  }

  .specialist-grid {
    grid-template-columns: 1fr;
  }

  .specialist-card h2,
  .specialist-card>p {
    min-height: 0;
  }

  .specialist-footer>div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

/* Consultants section */
.market .section-head .eyebrow {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.market .section-head h2 {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.market .section-head .filters {
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.consultant-card:nth-child(1) {
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.consultant-card:nth-child(2) {
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.consultant-card:nth-child(3) {
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.consultant-card:nth-child(4) {
  animation: fadeUp 0.6s ease 0.6s forwards;
}

/* Profile section */
.profile-main {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.review-panel {
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* How it works section */
.how .section-head .eyebrow {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.how .section-head h2 {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.steps article:nth-child(1) {
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.steps article:nth-child(2) {
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.steps article:nth-child(3) {
  animation: fadeUp 0.6s ease 0.5s forwards;
}

/* Dashboard section */
.dashboards .section-head .eyebrow {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.dashboards .section-head h2 {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.dashboards .section-head .role-switch {
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.dashboard-frame:nth-child(2) {
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.dashboard-frame:nth-child(3) {
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.dashboard-frame:nth-child(4) {
  animation: fadeUp 0.7s ease 0.5s forwards;
}

/* Footer */
.footer-grid>div:nth-child(1) {
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.footer-grid>div:nth-child(2) {
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.footer-grid>div:nth-child(3) {
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.footer-grid>div:nth-child(4) {
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* Carousel footer */
.carousel-footer {
  animation: fadeUp 0.6s ease 0.5s forwards;
}

/* Booking modal */
.booking-modal[open] .booking-form {
  animation: fadeUp 0.5s ease forwards;
}

.booking-modal[open] .booking-summary {
  animation: fadeUp 0.5s ease 0.15s forwards;
}

/* Auth modal */
.auth-modal[open] .auth-tabs {
  animation: fadeUp 0.5s ease 0.1s forwards;
}

.auth-modal[open] .auth-form.active {
  animation: fadeUp 0.5s ease 0.2s forwards;
}

/* Button hover animations */
.btn.dark:not(.full):hover {
  animation: pulseGlow 0.6s ease;
}

/* Consultant card hover lift */
.consultant-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consultant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(38, 48, 55, 0.15);
}

/* Partner items hover */
.partner-item {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-2px);
}

/* Step numbers animation */
.steps article span {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps article:hover span {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(56, 82, 214, 0.25);
}

/* Chip hover */
.chip {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

/* Service row hover */
.service-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-row:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(38, 48, 55, 0.08);
}

/* Metric strip items */
.metric-strip div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-strip div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 48, 55, 0.08);
}

/* Side nav links */
.side-nav a {
  transition: transform 0.2s ease, padding 0.2s ease;
}

.side-nav a:hover {
  transform: translateX(-4px);
}

/* ============================================
   Live Booking Notification Toast
   Floating toast that periodically appears
   showing real-time booking activity.
   ============================================ */

/* Slide in from the left side */
@keyframes notifSlideIn {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide out to the left side */
@keyframes notifSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}

/* Pulse dot animation for the green indicator */
@keyframes notifPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* Notification container — fixed at bottom-left */
#live-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 8px 32px rgba(38, 48, 55, 0.14);
  max-width: 380px;
  direction: ltr;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
  transition: none;
}

/* When visible — slide in */
#live-notification.visible {
  animation: notifSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* When hiding — slide out */
#live-notification.hiding {
  animation: notifSlideOut 0.4s ease-in forwards;
}

/* Green pulsing dot */
#live-notification .notif-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: notifPulse 1.5s ease-in-out infinite;
}

/* Notification icon (avatar circle) */
#live-notification .notif-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3852d6, #5b72f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
}

#live-notification .notif-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Notification text */
#live-notification .notif-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #263037;
  direction: rtl;
  text-align: right;
}

#live-notification .notif-text strong {
  font-weight: 600;
  color: #1a1f24;
}

#live-notification .notif-text .notif-service {
  font-size: 12px;
  color: #6b7a86;
}

#live-notification .notif-text .notif-time {
  font-size: 11px;
  color: #9aa8b4;
}

/* RTL adjustment — keep on left side */
html[dir="rtl"] #live-notification {
  left: 24px;
  right: auto;
}

html[dir="rtl"] #live-notification .notif-text {
  text-align: right;
}

/* Mobile: smaller and closer to edge */
@media (max-width: 640px) {
  #live-notification {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 12px 16px 12px 12px;
    border-radius: 14px;
  }

  html[dir="rtl"] #live-notification {
    left: 16px;
    right: 16px;
  }

  #live-notification .notif-text {
    font-size: 12px;
  }

  #live-notification .notif-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }
}

/* Final compact-card overrides */
.market .consultant-card,
.specialist-grid .specialist-card {
  background-color: #fff;
  background-image: none;
}

.service-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid #eaeaea;
  background: #f3f6ff;
}

.cover-meta {
  position: absolute;
  inset-inline: 12px;
  inset-block-start: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.cover-meta .service-format,
.cover-meta .service-rating {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  backdrop-filter: blur(5px);
}

.cover-meta .service-format {
  color: #111827;
  font-size: 10px;
  font-weight: 800;
}

.cover-meta .service-rating {
  color: #111827;
  font-size: 11px;
}

.cover-availability {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-end: 11px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #16845b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  backdrop-filter: blur(5px);
  font-size: 10px;
  font-weight: 800;
}

.cover-availability i {
  font-size: 10px;
}

.service-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.consultant-card:hover .service-cover img,
.specialist-card:hover .service-cover img {
  transform: scale(1.025);
}

.specialist-card {
  padding: 0;
  overflow: hidden;
}

.specialist-card .specialist-card-top,
.specialist-card>h2,
.specialist-card>p,
.specialist-card>.specialist-person,
.specialist-card>.service-quick-facts,
.specialist-card>.specialist-booking-action {
  margin-inline: 18px;
}

.specialist-card>h2 {
  margin-top: 16px;
}

.specialist-card .specialist-card-top {
  margin-top: 16px;
}

.specialist-card>.specialist-booking-action {
  width: calc(100% - 36px);
  margin-bottom: 18px;
}

.specialist-grid .specialist-card h2,
.specialist-grid .specialist-card>p {
  min-height: 0;
}

.specialist-grid .specialist-card>p {
  margin-bottom: 13px;
}

.specialist-grid .specialist-person {
  padding: 11px;
  border: 1px solid #eceef1;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
}

/* Home page narrative redesign */
.market-head {
  align-items: flex-start;
}

.section-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}

.centered-copy {
  margin-inline: auto;
  text-align: center;
}

.market-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.market-guide-card {
  padding: 18px 20px;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.market-guide-card strong,
.market-guide-card span {
  display: block;
}

.market-guide-card strong {
  margin-bottom: 6px;
  color: #111827;
  font-size: 15px;
}

.market-guide-card span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.consultation-flow {
  margin-top: 28px;
}

.profile,
.dashboards {
  display: none;
}

.experience-preview {
  padding: 88px 0 96px;
  background: #f8f9fb;
  border-top: 1px solid #efefef;
}

.experience-head {
  margin-bottom: 28px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-card {
  padding: 28px;
  border: 1px solid #eaeaea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  background: #f6f8ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.experience-card h3 {
  margin: 18px 0 10px;
  color: #111827;
  font-size: 26px;
  line-height: 1.35;
}

.experience-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.85;
}

.experience-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-right: 18px;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
}

.experience-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.trust-item {
  padding: 20px 22px;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 5px;
  color: #111827;
  font-size: 15px;
}

.trust-item span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {

  .market-guide,
  .experience-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Scroll Hint Arrows (Flesh) for Mobile */
@media (max-width: 768px) {
  .category-barline {
    position: relative;
  }

  .category-barline::before,
  .category-barline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 10;
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
  }

  .category-barline::before {
    right: 0;
    /* Arrow pointing left/right for scroll hint */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23ea580c\" stroke-width=\"3\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 18l6-6-6-6\"/></svg>');
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
  }

  .category-barline::after {
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23ea580c\" stroke-width=\"3\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15 18l-6-6 6-6\"/></svg>');
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
  }
}

/* High Quality Hub Categories Grid */
.market-category-hub {
  margin-bottom: 40px;
  background: var(--blue-soft, #f4f6f9);
  border-radius: var(--radius-lg, 16px);
  padding: 32px;
  text-align: center;
}

.hub-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark, #0f172a);
  margin-bottom: 8px;
}

.hub-header p {
  font-size: 16px;
  color: var(--muted, #64748b);
  margin-bottom: 24px;
}

.hub-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hub-category-card {
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
}

.hub-category-card:hover,
.hub-category-card.selected {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(38, 48, 55, 0.08);
  border-color: var(--blue, #3852d6);
  color: var(--blue, #3852d6);
}

.hub-category-card i {
  font-size: 24px;
  color: var(--blue, #3852d6);
  transition: transform 0.2s ease;
}

.hub-category-card:hover i,
.hub-category-card.selected i {
  transform: scale(1.1);
}

.hub-subcategories-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  animation: fadeDown 0.3s ease;
}

.hub-subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Hero Panel Responsiveness */
.hero-panel {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  max-width: 600px;
  position: relative;
  padding: 0;
  /* Removed padding as requested */
}

.hero-photo-art {
  width: 100%;
  height: auto !important;
  aspect-ratio: 5 / 6;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 18%, rgba(122, 95, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #fdfdff 0%, #eef3fb 100%);
  border: 1px solid #dfe6ef;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 46% 16%;
  transform: scale(1.08);
  transform-origin: center top;
}

@media (max-width: 768px) {
  .hero-photo-art {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .hero-photo-img {
    object-position: 50% 14%;
    transform: scale(1.04);
  }

  .floating-stat {
    left: -10px;
    top: 0;
    transform: scale(0.85);
    transform-origin: top left;
  }

  .floating-team {
    right: -10px;
    bottom: 0;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}

/* Ensure service titles are exactly 2 lines high to align grids perfectly */
.market .consultant-card .service-title,
.specialist-card h2,
.consultant-card .service-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.5 !important;
  min-height: 3em !important;
  /* 2 lines of 1.5em each */
  height: 3em !important;
  /* Force exactly 2 lines height */
  margin-bottom: 8px !important;
  white-space: normal !important;
}

/* Scroll Arrows (Fl�ches) */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.scroll-arrow:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.scroll-arrow.right-arrow {
  right: -10px;
}

.scroll-arrow.left-arrow {
  left: -10px;
}

.dragging {
  cursor: grab !important;
  user-select: none;
}

.dragging * {
  pointer-events: none !important;
}

.categories-grid,
.subcategories-list,
.hub-subcategories-list {
  cursor: pointer;
}

/* ── How Expert Section ── */
.how-expert {
  padding-block: 96px;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.how-expert-head {
  text-align: center;
  margin-bottom: 56px;
}

.how-expert-head h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
}

.how-gradient-text {
  background: linear-gradient(135deg, #3852d6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-expert-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

.how-expert-steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.expert-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(38, 48, 55, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.expert-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(38, 48, 55, .12);
}

.expert-step--gold {
  border-color: #fbbf24;
  background: linear-gradient(160deg, #fffdf0 0%, #fff 100%);
}

.expert-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--step-bg, #eef2ff);
  color: var(--step-color, var(--blue));
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.expert-step:hover .expert-step-icon {
  transform: scale(1.08);
}

.expert-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.expert-step-num {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--page);
  padding: 3px 10px;
  border-radius: 999px;
}

.expert-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.expert-step p {
  margin: 0;
  font-size: 14px;
  color: #4c5661;
  line-height: 1.65;
}

.expert-step-connector {
  color: #c5cdd8;
  font-size: 18px;
  padding: 0 8px;
  flex-shrink: 0;
}

.how-expert-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.how-expert-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.how-expert-note i {
  color: var(--green);
}

@media (max-width: 860px) {
  .how-expert-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .expert-step {
    max-width: 100%;
    flex-direction: row;
    text-align: start;
  }
  .expert-step-body {
    align-items: flex-start;
  }
  .expert-step-connector {
    transform: rotate(90deg);
    align-self: center;
  }
}
