@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;
}

/* Shared accessibility and rendering safeguards. */
.visually-hidden:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

main>section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

dialog:not([open]) {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.public-header-icon,
.public-header-profile {
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-header-icon {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: visible;
  border-radius: 50%;
  font-size: 18px;
}

.public-header-icon:hover {
  color: var(--blue);
  background: #f3f6ff;
}

.public-header-profile {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8edf7;
}

.public-header-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-header-initial {
  color: var(--blue);
  font-weight: 800;
  font-size: 17px;
}

.page-loading-skeleton {
  position: fixed;
  inset: 76px 0 0;
  z-index: 15;
  padding: 32px max(16px, 5vw);
  background: var(--surface, #f8fafc);
  pointer-events: none;
}

.page-loading-skeleton>div,
.page-skeleton-grid>div,
.page-skeleton-kpis>div,
.page-skeleton-panel,
.page-skeleton-profile>* {
  background: linear-gradient(100deg, #e8edf5 20%, #f8fafc 45%, #e8edf5 70%);
  background-size: 220% 100%;
  animation: pageSkeletonShimmer 1.3s ease-in-out infinite;
  border-radius: 16px;
}

.page-skeleton-title {
  height: 42px;
  width: min(420px, 70%);
  margin-bottom: 28px;
}

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

.page-skeleton-grid>div {
  min-height: 260px;
}

.page-skeleton-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.page-skeleton-profile i {
  width: 110px;
  height: 110px;
  border-radius: 50% !important;
}

.page-skeleton-profile span {
  height: 22px;
  width: 220px;
}

.page-skeleton-profile span:last-child {
  width: 320px;
}

.page-skeleton-lines {
  display: grid;
  gap: 16px;
}

.page-skeleton-lines div {
  height: 170px;
}

.page-skeleton-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.page-skeleton-kpis>div {
  height: 120px;
}

.page-skeleton-panel {
  height: 330px;
}

@keyframes pageSkeletonShimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

.page-loading-skeleton.is-done {
  opacity: 0;
  transition: opacity .25s ease;
}

@media (max-width: 700px) {

  .page-skeleton-grid,
  .page-skeleton-kpis {
    grid-template-columns: 1fr;
  }

  .page-skeleton-grid>div {
    min-height: 150px;
  }
}

.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-actions .btn,
.btn.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 36px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #006dff 0%, #3852d6 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 109, 255, 0.25), 0 2px 6px rgba(0, 109, 255, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn i,
.btn.hero-cta i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.hero-actions .btn:hover,
.btn.hero-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #005ce6 0%, #2f45c0 100%);
  box-shadow: 0 12px 28px rgba(0, 109, 255, 0.35), 0 4px 10px rgba(0, 109, 255, 0.2);
  color: #ffffff;
}

.hero-actions .btn:hover i,
.btn.hero-cta:hover i {
  transform: translateX(-5px);
}

.hero-actions .btn:active,
.btn.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 109, 255, 0.2);
}

.hero-partners {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  max-width: 320px;
  width: 100%;
}

.partner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 38px;
  background: #f5f7fb;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  color: #64748b;
  font-size: 16px;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.partner-item:hover {
  border-color: var(--blue);
  background: #eef2ff;
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 109, 255, 0.12);
}

.hero-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* ── Hero Interactive Live Stage ── */
.hero-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.hero-stage-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 109, 255, 0.18), rgba(56, 82, 214, 0.08), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-live-card {
  position: relative;
  z-index: 1;
  margin-top: -77px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35), 0 10px 20px rgba(0, 109, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.45), 0 12px 25px rgba(0, 109, 255, 0.15);
}

/* Header bar */
.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-card-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-pulse-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.live-timer {
  font-size: 12px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.live-badge-hd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 109, 255, 0.2);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Video Stage Area */
.live-card-video {
  position: relative;
  height: 330px;
  background: radial-gradient(circle at 50% 35%, #1e293b 0%, #090d16 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-main-speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -12px;
}

.speaker-avatar-wrapper {
  position: relative;
}

.speaker-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006dff 0%, #3852d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 109, 255, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.speaker-initial {
  font-size: 34px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Audio Waveform */
.speaker-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.speaker-audio-wave span {
  display: block;
  width: 3px;
  height: 12px;
  background: #22c55e;
  border-radius: 2px;
  animation: soundWave 1.2s ease-in-out infinite alternate;
}

.speaker-audio-wave span:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.speaker-audio-wave span:nth-child(3) { animation-delay: 0.4s; height: 20px; }
.speaker-audio-wave span:nth-child(4) { animation-delay: 0.1s; height: 14px; }
.speaker-audio-wave span:nth-child(5) { animation-delay: 0.3s; height: 10px; }

@keyframes soundWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.4); }
}

.speaker-meta {
  color: #ffffff;
}

.speaker-name {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.verified-badge {
  color: #38bdf8;
  font-size: 15px;
}

.speaker-topic {
  font-size: 13px;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.4;
}

/* PiP Self View */
.video-pip-tile {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 52px;
  height: 52px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #e2e8f0;
}

.pip-mic {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 5px;
  font-size: 9px;
  color: #22c55e;
}

/* Floating Dock */
.video-dock {
  position: absolute;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.dock-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.dock-btn.danger {
  background: #ef4444;
  color: #ffffff;
}

.dock-btn.danger:hover {
  background: #dc2626;
}

/* ── Floating Micro-Widgets ── */
.hero-float-widget {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
}

.hero-float-widget:hover {
  transform: translateY(-3px) scale(1.02);
}

.hero-float-widget .widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.hero-float-widget .widget-title {
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 1px;
}

.hero-float-widget .widget-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

/* Widget 1: Rating */
.widget-rating {
  top: -16px;
  inset-inline-end: -16px;
  animation: heroFloat1 4.5s ease-in-out infinite alternate;
}

.widget-rating .star-icon {
  background: #fffbeb;
  color: #f59e0b;
}

/* Widget 2: Earnings */
.widget-earnings {
  bottom: -16px;
  inset-inline-start: -16px;
  animation: heroFloat2 5s ease-in-out infinite alternate;
}

.widget-earnings .earnings-icon {
  background: #eff6ff;
  color: #006dff;
}

.widget-earnings .earnings-num {
  color: #006dff;
}

.widget-earnings .trend-up {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 6px;
  margin-inline-start: 4px;
}

/* Widget 3: Schedule */
.widget-schedule {
  top: 65px;
  inset-inline-start: -48px;
  animation: heroFloat3 5.5s ease-in-out infinite alternate;
}

.widget-schedule .schedule-icon {
  background: #f0fdf4;
  color: #16a34a;
}

@keyframes heroFloat1 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes heroFloat2 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(8px); }
}

@keyframes heroFloat3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .hero-stage-wrapper {
    max-width: 100%;
    margin-top: 16px;
    padding: 16px 0;
  }

  .hero-live-card {
    margin-top: 0 !important;
    border-radius: 22px;
  }

  .live-card-video {
    height: 270px;
    padding: 18px;
  }

  .speaker-avatar {
    width: 72px;
    height: 72px;
  }

  .speaker-initial {
    font-size: 26px;
  }

  .widget-schedule {
    display: none;
  }

  .widget-rating {
    top: -10px;
    inset-inline-end: 6px;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .widget-earnings {
    bottom: -10px;
    inset-inline-start: 6px;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .hero-float-widget .widget-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 7px;
  }

  .hero-float-widget .widget-title {
    font-size: 9.5px;
  }

  .hero-float-widget .widget-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 14px 18px !important;
    gap: 12px !important;
  }

  .hero-stage-wrapper {
    margin-top: 0;
    padding: 6px 0 10px;
  }

  .hero-copy {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }

  .hero-copy h1,
  .hero h1 {
    padding-bottom: 8px !important;
    font-size: 26px !important;
  }

  .hero-actions {
    margin-top: 12px !important;
  }

  .hero-partners {
    margin-top: 14px !important;
  }

  .hero-live-card {
    border-radius: 18px;
  }

  .live-card-header {
    padding: 10px 14px;
  }

  .live-pulse-text {
    font-size: 12px;
  }

  .live-timer {
    font-size: 11px;
    padding: 1px 6px;
  }

  .live-card-video {
    height: 230px;
    padding: 14px;
  }

  .video-main-speaker {
    margin-top: -6px;
  }

  .speaker-avatar {
    width: 66px;
    height: 66px;
  }

  .speaker-initial {
    font-size: 24px;
  }

  .video-pip-tile {
    width: 44px;
    height: 44px;
    top: 8px;
    inset-inline-start: 8px;
    border-radius: 10px;
  }

  .pip-avatar {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .video-dock {
    bottom: 8px;
    gap: 6px;
    padding: 4px 8px;
  }

  .dock-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .widget-rating {
    top: 10px;
    inset-inline-end: 2px;
    padding: 2px 5px;
    gap: 0px;
    border-radius: 72px;
  }

  .widget-earnings {
    bottom: 0px;
    inset-inline-start: 0px;
    padding: 1px 2px;
    gap: 0px;
    border-radius: 101px;
  }

  .hero-float-widget .widget-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-radius: 6px;
  }

  .hero-float-widget .widget-title {
    font-size: 8.5px;
  }

  .hero-float-widget .widget-subtitle {
    font-size: 10px;
  }
}


.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 {
  position: relative;
  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);
}

/* A native link gives desktop users the expected link cursor and browser URL
   preview across the card, without nesting the profile or booking actions. */
.service-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.consultant-card .service-title a,
.consultant-card .consultant-summary,
.consultant-card .book-btn {
  position: relative;
  z-index: 2;
}

.consultant-card[role="link"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .consultant-card:hover .service-title a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
  }
}

.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;
}

.market-section-intro {
  margin-bottom: 24px;
  text-align: right;
}

.market-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(56, 82, 214, 0.08);
  border: 1px solid rgba(56, 82, 214, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue, #3852d6);
  margin-bottom: 8px;
}

.market-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.market-section-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.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.4fr 1fr 1fr;
  gap: 36px;
  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 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  width: fit-content;
  max-width: 100%;
}

.footer-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 2px 6px 2px 4px;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  width: fit-content;
}

.footer-control-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
  width: 86px;
  min-width: 86px;
  flex-shrink: 0;
}

.footer-control-label i {
  color: #3852d6;
  font-size: 11px;
  width: 12px;
  text-align: center;
}

.footer-control-pill select,
.currency-row select,
.currency-select,
.timezone-select {
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  width: 160px;
  min-width: 160px;
}

.footer-control-pill select:disabled {
  cursor: default;
  opacity: 1;
  background: #f8fafc;
  color: #0f172a;
  user-select: none;
}

.footer-control-pill select:focus,
.currency-row select:focus,
.currency-select:focus,
.timezone-select:focus {
  border-color: #3852d6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(56, 82, 214, 0.12);
}

.footer-control-pill .khabir-tz-custom-select,
.footer-control-pill .khabir-cur-custom-select {
  width: 160px;
  min-width: 160px;
}

.footer-control-pill .khabir-tz-trigger,
.footer-control-pill .khabir-cur-trigger {
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  width: 100%;
}

.footer-control-pill .khabir-tz-trigger-flag,
.footer-control-pill .khabir-cur-trigger-flag {
  width: 16px;
  height: 12px;
}

.footer-control-pill .khabir-tz-chevron,
.footer-control-pill .khabir-cur-chevron {
  font-size: 8.5px;
}

.footer-control-pill .khabir-tz-trigger:hover,
.footer-control-pill .khabir-cur-trigger:hover,
.footer-control-pill .khabir-tz-custom-select.is-open .khabir-tz-trigger,
.footer-control-pill .khabir-cur-custom-select.is-open .khabir-cur-trigger {
  background: #ffffff;
  border-color: #3852d6;
}

/* Tap Shield: Temporarily prevents mobile ghost clicks from activating underlying links */
body.khabir-tap-shield a,
body.khabir-tap-shield button:not(.khabir-tz-trigger):not(.khabir-cur-trigger) {
  pointer-events: none !important;
}

body.khabir-modal-open {
  overflow: hidden !important;
}

.currency-row:has(.is-open) {
  z-index: 99999;
  position: relative;
}

.footer-control-pill:has(.is-open),
.footer-control-pill.is-open {
  z-index: 99999;
  position: relative;
}

.footer-control-pill .khabir-tz-custom-select.is-open,
.footer-control-pill .khabir-cur-custom-select.is-open {
  z-index: 99999;
}

/* Custom Timezone Select with SVG Flag Logos */
.khabir-tz-custom-select {
  position: relative;
  display: inline-block;
  direction: rtl;
  font-family: inherit;
  user-select: none;
  min-width: 210px;
  max-width: 100%;
  vertical-align: middle;
}

.khabir-tz-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-family: inherit;
}

.khabir-tz-trigger:hover {
  border-color: #3852d6;
}

.khabir-tz-custom-select.is-open .khabir-tz-trigger,
.khabir-tz-trigger:focus {
  border-color: #3852d6;
  box-shadow: 0 0 0 3px rgba(56, 82, 214, 0.12);
  outline: none;
}

.khabir-tz-trigger-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.khabir-tz-trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.khabir-tz-chevron {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.2s ease;
  margin-left: 2px;
  flex-shrink: 0;
}

.khabir-tz-custom-select.is-open .khabir-tz-chevron {
  transform: rotate(180deg);
  color: #3852d6;
}

.khabir-tz-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 99999;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}

.khabir-tz-search-wrap {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 4px 2px 8px 2px;
  border-bottom: 1px solid #f1f5f9;
  z-index: 2;
}

.khabir-tz-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  box-sizing: border-box;
}

.khabir-tz-search:focus {
  border-color: #3852d6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(56, 82, 214, 0.12);
}

.khabir-tz-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-top: 2px;
}

.khabir-tz-custom-select.dropup .khabir-tz-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.15), 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.khabir-tz-custom-select.is-open .khabir-tz-dropdown {
  display: flex;
  animation: tzMenuFadeIn 0.15s ease-out;
}

@keyframes tzMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.khabir-tz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.khabir-tz-option:hover {
  background: #f1f5f9;
  color: #3852d6;
}

.khabir-tz-option.is-selected {
  background: #eff4ff;
  color: #2563eb;
  font-weight: 700;
}

.khabir-tz-option-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.khabir-tz-option-name {
  flex: 1;
  text-align: right;
  white-space: nowrap;
}

.khabir-tz-option-offset {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-left: 6px;
  flex-shrink: 0;
}

.khabir-tz-option.is-selected .khabir-tz-option-offset {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.khabir-tz-check {
  font-size: 11px;
  color: #2563eb;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.khabir-tz-option.is-selected .khabir-tz-check {
  opacity: 1;
}

.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 !important;
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-block: 36px 24px;
    gap: 20px;
  }

  .hero-copy {
    order: 2 !important;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero-stats {
    display: none !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;
  overflow-wrap: break-word;
}

.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-bio {
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.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;
  gap: 28px;
}

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

.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);
}

.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: 11px;
  color: var(--blue);
}

.reply-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reply-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2ff;
  color: #3852d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.reply-avatar-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3852d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.reply-name {
  font-size: 13px;
  color: #334155;
}

.reply-verified {
  color: #3852d6;
  font-size: 13px;
}

.reply-date {
  font-size: 11px;
  color: #94a3b8;
}

.reply-text {
  margin: 6px 0 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-avatar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3852d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.reply-inline-icon {
  color: #3852d6;
  font-size: 11px;
  margin-inline-end: 6px;
}

.review-reply {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 12px;
}

.svc-reply-toggle {
  background: none;
  border: none;
  color: #3852d6;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.svc-reply-toggle:hover {
  text-decoration: underline;
}

.svc-review-reply {
  margin-top: 10px;
}

.svc-reply-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.svc-reply-form[hidden] {
  display: none;
}

.svc-reply-form textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  box-sizing: border-box;
}

.svc-reply-form textarea:focus {
  outline: 2px solid #3852d6;
  outline-offset: 1px;
  border-color: #3852d6;
}

.svc-reply-save {
  background: #3852d6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.svc-reply-save:disabled {
  opacity: .6;
  cursor: default;
}

.svc-reply-status {
  font-size: 12px;
  color: #64748b;
}

.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: grid;
}

.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;
}

#expertReviewsSection .review-card .reviewer,
#serviceReviewsList .review-card .reviewer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 10px;
}

#expertReviewsSection .review-card .reviewer .reviewer-avatar,
#expertReviewsSection .review-card .reviewer .avatar,
#serviceReviewsList .review-card .reviewer .reviewer-avatar,
#serviceReviewsList .review-card .reviewer .avatar,
#serviceReviewsList .review-card .reviewer .reviewer-avatar-initial {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}

#expertReviewsSection .review-card .reviewer strong,
#serviceReviewsList .review-card .reviewer strong {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

#expertReviewsSection .review-card .reviewer .review-date,
#serviceReviewsList .review-card .reviewer .review-date {
  margin-inline-start: 0;
  margin-inline-end: 0;
  flex: 0 0 auto;
}

#expertReviewsSection .review-card .reviewer .stars,
#serviceReviewsList .review-card .reviewer .stars {
  flex-basis: 100%;
  color: #f5a623;
  font-size: 13px;
  margin-inline-start: 0;
}

#expertReviewsSection .review-meta-grid,
#serviceReviewsList .review-meta-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin-top: 0px;
  margin-inline-start: 25px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-inline-start: 3px solid #eb9325;
  border-radius: 25px;
  font-size: 9px;
}

#expertReviewsSection .review-meta-label,
#serviceReviewsList .review-meta-label {
  color: #64748b;
  font-weight: 700;
}

#expertReviewsSection .review-meta-value,
#serviceReviewsList .review-meta-value {
  color: #334155;
  overflow-wrap: break-word;
}

#expertReviewsSection .review-card p,
#serviceReviewsList .review-card p {
  margin-top: 10px;
}

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

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

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

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

  .btn-share-profile {
    width: 100%;
    justify-content: center;
  }

  .profile-info h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 6px;
  }

  .profile-info h1 .profile-name-text {
    order: 2;
  }

  .profile-info h1 .verified-badge {
    order: 3;
  }

  .profile-info h1 .profile-country-flag {
    order: 1;
  }

  .profile-info h1 .profile-h1-break {
    order: 4;
    flex-basis: 100%;
    height: 0;
  }

  .profile-info h1 .presence-badge {
    order: 5;
  }

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

  .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-actions .btn,
  .btn.hero-cta {
    min-height: 48px;
    padding: 0 28px;
    font-size: 16px;
  }

  .hero-partners {
    margin-top: 18px;
    gap: 10px;
    width: 100%;
    max-width: 340px;
  }

  .partner-item {
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
  }

  .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: 12px;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .btn.hero-cta {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
    border-radius: 999px;
  }

  .hero-partners {
    margin-top: 16px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .partner-item {
    flex: 1;
    min-width: 0;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }

  .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;
  }
}

/* ============================================
/* 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 {
    min-height: auto !important;
    padding-block: 20px 24px !important;
    gap: 16px !important;
  }

  .hero-copy {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
    text-align: center;
  }

  .hero-stats {
    display: none !important;
  }

  .hero-copy h1,
  .hero h1 {
    margin-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 0 !important;
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.25 !important;
  }

  .hero-copy p,
  .hero-desc {
    display: none !important;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 14px;
  }

  .hero-partners {
    margin: 18px auto 0;
    justify-content: center;
  }

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

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

  .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: 42px;
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.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;
  display: flex;
  flex-direction: column;
}

.market .consultant-card .card-body,
.specialist-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.market .consultant-card .service-title,
.specialist-card h2,
.specialist-grid .specialist-card h2 {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin: 0 0 6px 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.market .consultant-card .service-description,
.specialist-card>p,
.specialist-grid .specialist-card>p {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin: 0 0 12px 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.consultant-summary,
.specialist-person,
.specialist-grid .specialist-person {
  margin-top: auto;
  min-height: 56px;
  height: 56px;
  padding: 8px 12px;
  border: 1px solid #eceef1;
  border-radius: 11px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.service-quick-facts,
.specialist-card>.service-quick-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  height: 40px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

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

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

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

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

.service-quick-facts strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.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-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 {
  position: relative;
  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 {
  display: block;
}

.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-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-radius: 16px 16px 0 0;
  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: 1px;
  inset-block-end: 2px;
  z-index: 2;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0px;
  padding: 0 3px;
  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: 8px;
  font-weight: 800;
}

.cover-availability i {
  font-size: 8px;
  margin-inline-end: 2px;
}

.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-card>.service-quick-facts {
  width: calc(100% - 36px);
}

.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-flow: row nowrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Native link surface for the category browse cards. It provides the normal
   desktop URL preview/cursor while the profile and booking controls stay
   independently actionable above it. */
.specialist-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.specialist-card .specialist-profile-link,
.specialist-card .specialist-booking-action {
  position: relative;
  z-index: 2;
}

.specialist-card-link-overlay:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.khabir-default-avatar {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  border-radius: inherit;
}

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

@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;
}

.specialist-profile-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

/* 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-row-frame {
  position: relative;
  min-width: 0;
}

.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);
}

.subcategory-scroll-frame .scroll-arrow {
  width: 26px;
  height: 26px;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: 0 2px 5px rgba(38, 48, 55, .10);
  font-size: 11px;
}

.subcategory-scroll-frame .scroll-arrow:hover {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}

.scroll-arrow.right-arrow {
  inset-inline-start: -10px;
}

.scroll-arrow.left-arrow {
  inset-inline-end: -10px;
}

.dragging {
  cursor: grab !important;
  user-select: none;
}

.dragging * {
  pointer-events: none !important;
}

.categories-grid,
.subcategories-list,
.hub-subcategories-list {
  cursor: pointer;
  scroll-behavior: auto;
}

/* ============================================
   SaaS Expert & Creator Platform Section
   ============================================ */
.saas-expert-section {
  padding-block: 100px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
  position: relative;
  overflow: hidden;
}

.saas-section-head {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.saas-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 109, 255, 0.08);
  border: 1px solid rgba(0, 109, 255, 0.18);
  color: #006dff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 109, 255, 0.06);
}

.saas-badge-pill i {
  color: #006dff;
  font-size: 13px;
}

.saas-section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.saas-gradient-text {
  background: linear-gradient(135deg, #006dff 0%, #3852d6 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.saas-section-head p {
  font-size: 16.5px;
  color: #64748b;
  max-width: 580px;
  line-height: 1.7;
  margin: 0 auto;
}

/* 3-Card Grid */
.saas-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
}

.saas-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.saas-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.09), 0 6px 16px rgba(0, 109, 255, 0.06);
  border-color: rgba(0, 109, 255, 0.3);
}

/* Preview Windows */
.saas-card-preview {
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 24px 20px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Preview 1: Schedule */
.preview-schedule .mini-calendar-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-cal-day {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.mini-cal-day.active {
  background: #eff6ff;
  color: #006dff;
  border-color: #bfdbfe;
  font-weight: 700;
}

.preview-schedule .mini-slots-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-slot {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mini-slot.active {
  background: linear-gradient(135deg, #006dff 0%, #3852d6 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 109, 255, 0.25);
}

.mini-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: pulseDot 2s infinite;
}

/* Preview 2: Payouts */
.preview-payouts .mini-payout-box {
  width: 100%;
  max-width: 250px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

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

.payout-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.payout-brand {
  font-size: 11px;
  font-weight: 700;
  color: #003087;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.payout-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.payout-amount {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.payout-trend {
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
}

.payout-footer-status {
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Preview 3: Video Mockup */
.preview-video .mini-video-mockup {
  width: 100%;
  max-width: 250px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-room-header {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
  animation: pulseDot 1.5s infinite;
}

.mini-room-dock {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-dock-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 9px;
  display: grid;
  place-items: center;
}

.mini-dock-btn.danger {
  background: #ef4444;
}

/* Card Content */
.saas-card-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.saas-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.saas-card-icon.icon-blue {
  background: #eff6ff;
  color: #006dff;
}

.saas-card-icon.icon-purple {
  background: #faf5ff;
  color: #7c3aed;
}

.saas-card-icon.icon-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.saas-card-content h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.saas-card-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* High-Converting SaaS Banner */
.saas-cta-banner {
  background: linear-gradient(145deg, #0b1120 0%, #1e293b 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25), 0 10px 20px rgba(0, 109, 255, 0.1);
}

.saas-cta-glow {
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 109, 255, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.saas-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.saas-cta-text h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.saas-cta-text p {
  font-size: 15.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

.saas-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn.saas-cta-btn {
  background: linear-gradient(135deg, #006dff 0%, #3852d6 100%);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 109, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn.saas-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 109, 255, 0.55);
}

.btn.saas-cta-btn i {
  transition: transform 0.2s ease;
}

.btn.saas-cta-btn:hover i {
  transform: translateX(-4px);
}

.saas-cta-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}

.saas-cta-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.saas-cta-badges i {
  color: #38bdf8;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .saas-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .saas-expert-section {
    padding-block: 60px;
  }

  .saas-section-head {
    margin-bottom: 36px;
  }

  .saas-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .saas-cta-banner {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .saas-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .saas-cta-action {
    width: 100%;
  }

  .btn.saas-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .saas-cta-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Final mobile layout contract for the public marketplace journey. Keep this
   layer last: several legacy pages still contain desktop-first page styles. */
@media (max-width: 768px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 2rem, 42rem) !important;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .topbar {
    min-height: 60px !important;
    gap: 12px !important;
    padding-block: 8px;
  }

  .brand img {
    width: 42px !important;
    height: 42px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions {
    gap: 6px !important;
    min-width: 0;
  }

  .nav-actions .btn {
    min-height: 44px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .top-category-section {
    overflow: hidden;
  }

  .category-barline {
    width: 100% !important;
    padding-inline: 0;
  }

  /* Legacy full-section hints spanned both rows and looked like shared
     controls. Real buttons now belong to each independent scroll frame. */
  .category-barline::before,
  .category-barline::after {
    content: none !important;
  }

  .categories-grid {
    display: flex !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    gap: 8px !important;
    padding: 5px 1rem 6px !important;
  }

  .categories-grid .category-card {
    flex: 0 0 auto;
    min-width: 78px !important;
    scroll-snap-align: start;
    min-height: 46px !important;
    padding: 6px 9px !important;
    gap: 6px !important;
  }

  .categories-grid .category-card .cat-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 13px !important;
  }

  .categories-grid .category-card .cat-name {
    font-size: 12px !important;
    white-space: nowrap;
  }

  .subcategories-panel {
    overflow: visible;
    padding-block: 5px 1px !important;
  }

  .subcategories-list {
    display: flex !important;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    gap: 8px !important;
    padding: 0 1rem 4px !important;
  }

  .subcategories-list>* {
    min-height: 36px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .scroll-arrow {
    width: 28px;
    height: 28px;
  }

  .subcategory-scroll-frame .scroll-arrow {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .scroll-arrow.right-arrow {
    inset-inline-start: 2px;
  }

  .scroll-arrow.left-arrow {
    inset-inline-end: 2px;
  }

  .consultant-grid,
  .large-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .hub-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px;
  }

  .hub-category-card {
    min-width: 0;
    min-height: 72px;
    padding: 8px 4px;
    gap: 6px;
    font-size: 11px;
  }

  .hub-category-card i {
    font-size: 18px;
  }

  .consultant-card,
  .service-card,
  .service-card-horizontal {
    min-width: 0 !important;
    width: 100%;
  }

  .consultant-card {
    padding: 18px !important;
  }

  .consultant-card .btn,
  .service-card .btn,
  .service-card-horizontal .btn {
    min-height: 48px;
  }

  .specialist-filters {
    margin-inline: 0 !important;
  }

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

  .filter-panel-head,
  .filter-field,
  .price-filter {
    grid-column: 1 !important;
    width: auto !important;
  }

  .filter-field {
    min-height: 52px;
  }

  .filter-field select,
  .price-pill input {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  .consultation-details {
    padding-inline: 0 !important;
  }

  .consultation-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 16px !important;
  }

  .consultation-main {
    order: 1 !important;
    grid-area: auto !important;
    border-radius: 16px !important;
    padding: 16px 12px !important;
  }

  .consultation-sidebar {
    order: 2 !important;
    grid-area: auto !important;
    border-radius: 16px !important;
    padding: 16px 14px !important;
    position: static !important;
  }

  .consultation-reviews-card {
    order: 3 !important;
    grid-area: auto !important;
    display: block !important;
    border-radius: 16px !important;
    padding: 16px 14px !important;
  }

  .consultation-header {
    padding: 16px 12px !important;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
  }

  .consultation-header h1 {
    font-size: clamp(17px, 4.4vw, 19px) !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    width: 100% !important;
  }

  .consultation-meta {
    gap: 8px !important;
    font-size: 13px !important;
  }

  .consultation-actions {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .consultation-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }

  .booking-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 94dvh !important;
    margin: auto 0 0 !important;
    border-radius: 22px 22px 0 0 !important;
  }

  .booking-modal form {
    max-height: 94dvh !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #bookingSlotsStep,
  #bookingReviewStep {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
  }

  .booking-modal-header {
    margin-block-end: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .booking-modal-header h2 {
    font-size: 1.25rem !important;
  }

  .booking-progress {
    gap: 4px !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0;
  }

  .booking-progress li {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 6px 4px !important;
    font-size: 11px !important;
  }

  .booking-time-grid,
  .booking-days {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .booking-slot span,
  .slot-btn {
    min-height: 48px !important;
    font-size: 14px !important;
  }

  .booking-actions {
    flex-direction: column-reverse !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 1rem !important;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .booking-actions .btn {
    width: 100% !important;
    min-height: 52px !important;
  }

  .calendar-picker {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .calendar-days-grid {
    gap: 3px !important;
  }

  .calendar-day-cell {
    min-height: 42px;
    font-size: 13px !important;
  }

  .auth-modal {
    width: min(100vw - 1rem, 32rem) !important;
    max-height: 94dvh;
    margin: auto;
  }

  .auth-modal form {
    padding: 1.25rem !important;
  }

  .auth-modal input,
  .auth-modal button {
    min-height: 48px;
    font-size: 16px;
  }

  .profile-header {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .profile-header h1 {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
    overflow-wrap: anywhere;
  }

  .profile-body {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .profile-actions {
    width: 100%;
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 1rem) !important;
  }

  .topbar {
    gap: 6px !important;
  }

  .nav-actions .btn {
    padding-inline: 8px;
    font-size: 13px;
  }

  .consultation-main,
  .consultation-sidebar {
    padding: 12px 10px !important;
  }

  .consultation-header {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }

  .consultation-header h1 {
    font-size: clamp(16px, 4.2vw, 17.5px) !important;
    line-height: 1.38 !important;
  }

  .booking-time-grid,
  .booking-days {
    grid-template-columns: 1fr !important;
  }

  .booking-progress li {
    font-size: 10px !important;
  }
}

/* Auth and booking modal quality layer. */
.auth-modal::backdrop,
.booking-modal::backdrop {
  background: rgba(15, 23, 42, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.unified-auth {
  animation: auth-modal-in .4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}

@keyframes auth-modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }

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

.unified-auth .auth-tabs {
  padding: 6px;
  gap: 4px;
  background: rgba(241, 245, 249, 0.6);
  border: 0;
  border-radius: 16px;
  margin-bottom: 20px;
}

.unified-auth .auth-tab {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s ease;
}

.unified-auth .auth-tab.active {
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  color: #0f172a;
}

.unified-auth .auth-field {
  position: relative;
  margin-bottom: 16px;
}

.unified-auth .auth-field>input {
  min-height: 52px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  padding-left: 48px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.unified-auth .auth-field>input:focus {
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.unified-auth .auth-field>input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.unified-auth .auth-field i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}

.unified-auth .auth-submit-btn,
.unified-auth .auth-form>.btn {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.unified-auth .auth-submit-btn:hover,
.unified-auth .auth-form>.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.unified-auth .auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 16px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.unified-auth .auth-divider::before,
.unified-auth .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.unified-auth .auth-divider span {
  padding: 0 16px;
}

.unified-auth .social-btn {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #334155 !important;
  transition: all 0.2s ease;
}

.unified-auth .social-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.unified-auth h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center;
  margin-bottom: 0.5rem !important;
}

.unified-auth .auth-sub {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.unified-auth .username-ltr-island {
  min-width: 0;
}

.unified-auth .username-ltr-island>input {
  min-width: 0;
}

/* Every booking implementation keeps its action footer visible while the
   dates/fields scroll. */
.booking-modal {
  display: flex !important;
  flex-direction: column !important;
  max-height: 90dvh !important;
}

.booking-modal>form,
.booking-modal .booking-panel {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.booking-modal #bookingStepsContainer,
.booking-modal .booking-step.active {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.booking-modal #bookingSlotsStep,
.booking-modal .booking-modal-body,
.booking-modal .slots-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.booking-modal .booking-actions,
.booking-modal .booking-sticky-footer,
.booking-modal .booking-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  margin-top: auto;
}

.booking-modal .booking-actions {
  flex-shrink: 0;
}

.booking-modal .booking-sticky-footer {
  flex-shrink: 0;
}

.booking-modal .booking-footer {
  padding-block: 14px;
}

.booking-modal .booking-layout {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.booking-modal .booking-form {
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .unified-auth {
    width: min(100vw - 1rem, 34rem) !important;
    max-height: 94dvh !important;
    border-radius: 22px !important;
  }

  .unified-auth .auth-form.active {
    max-height: calc(94dvh - 68px) !important;
  }

  .unified-auth .auth-form {
    padding: 22px 18px 20px !important;
  }

  .booking-modal .booking-layout {
    display: block !important;
  }

  .booking-modal .booking-summary {
    display: none;
  }

  .booking-modal .booking-form {
    padding: 22px 18px !important;
  }

  .booking-modal .booking-footer {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .booking-modal .booking-footer .btn {
    min-width: 0;
    width: 100%;
    min-height: 50px;
  }
}

/* Expert dashboard: public-site return action belongs in the header, not the sidebar. */
.expert-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.expert-dashboard-shell .header-search {
  display: none !important;
}

.expert-home-link:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.expert-logout-link {
  inline-size: 100%;
  border: 0;
  background: transparent;
  color: #dc2626;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.expert-logout-link:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.expert-logout-link:disabled {
  cursor: wait;
  opacity: .6;
}

@media (max-width: 560px) {
  .expert-home-link {
    inline-size: 40px;
    justify-content: center;
    padding-inline: 0;
  }

  .expert-home-link span {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.expert-flat-sidebar .sidebar-section-title {
  display: none !important;
}

/* Dashboard navigation is a single list for every role; section labels are not UI. */
.sidebar-nav .sidebar-section-title {
  display: none !important;
}

.sidebar-nav .sidebar-section {
  margin-block: 0 !important;
  padding-block: 0 !important;
  border-block: 0 !important;
}

.expert-flat-sidebar .sidebar-section {
  margin-block: 0;
  padding-block: 0;
  border: 0;
}

/* ── Role Selection Modal ── */
.role-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.role-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.role-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 32px 28px 24px;
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-modal-backdrop.is-open .role-modal-dialog {
  transform: scale(1) translateY(0);
}

.role-modal-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.role-modal-close:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #ef4444;
  transform: rotate(90deg);
}

.role-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.role-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eef4ff;
  color: #006dff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 10px;
}

.role-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.role-modal-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.role-modal-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.role-card:hover {
  border-color: #006dff;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 109, 255, 0.1);
}

.role-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.role-card:hover .role-card-icon {
  transform: scale(1.08);
}

.role-card-icon.expert {
  background: #eef4ff;
  color: #006dff;
}

.role-card-icon.user {
  background: #f0fdf4;
  color: #16a34a;
}

.role-card-info {
  flex: 1;
  min-width: 0;
}

.role-card-info strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.role-card-info small {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

.role-card-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.role-card:hover .role-card-action {
  background: #006dff;
  color: #ffffff;
  transform: translateX(-4px);
}

.role-modal-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
}

.role-modal-footer a {
  color: #006dff;
  font-weight: 700;
  text-decoration: none;
  margin-inline-start: 4px;
}

.role-modal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .role-modal-dialog {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .role-card {
    padding: 14px;
    gap: 12px;
  }

  .role-card-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .role-card-info strong {
    font-size: 15px;
  }
}
.sidebar-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #3852d6;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-view-profile:hover {
  text-decoration: underline;
}

.sidebar-view-profile i {
  font-size: 10px;
}

