/* Design tokens – match reference */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --color-brand: #f27d26;
  --color-bg-main: #fcfcfb;
  --color-ink: #333333;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-card: #ffffff;
  --color-pill: #5c3a35;
  --color-heading: #4a3434;
  --color-text-main: #5c4a4a;
  --color-green: #22c55e;
  --color-nav-text: #4A3434;
}

::selection {
  background: rgba(242, 125, 38, 0.10);
  color: var(--color-brand);
}

.brand {
  color: var(--color-brand);
}

html,
body {
  height: 100%;
}

/* local icon helper */
.icon {
  width: 1em;
  /* height: 1em; */
  display: inline-block;
  vertical-align: middle;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg-main);
  color: var(--color-ink);
}

/* Layout */
.container-custom {
  max-width: 1152px;
  /* ~ tailwind max-w-6xl */
  margin: 0 auto;
  padding: 0 24px;
}

.container-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .container-header {
    padding: 0 20px;
  }
}

.main-wrap {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: 72px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Nav centered absolutely so it sits exactly in the middle */
.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  .header-nav {
    position: static;
    transform: none;
    margin: 0 auto;
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-pill {
  border: 0;
  background: transparent;
  color: var(--color-nav-text);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  text-decoration: none;
}

/* Buttons */
.btn-pill {
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.btn-join {
  background: var(--color-pill);
  color: #fff;
}

.btn-login {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-nav-text);
  padding: 6px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 160ms ease;
}

.btn-login:hover {
  opacity: 0.8;
  color: var(--color-heading);
}

.btn-pill:hover {
  opacity: 0.92;
}

/* Breadcrumb + title */
.breadcrumb-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.breadcrumb-mini .sep {
  color: #9ca3af;
  font-size: 0.75rem;
}

.breadcrumb-mini .active {
  color: #1f2937;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 32px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  /* Force 2 columns on mobile/tablet */
  gap: 12px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 160ms ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 575px) {
  .service-card {
    flex-direction: row;
    /* Keep horizontal as per Image 2 */
    align-items: center;
    /* Center icon and text line */
    padding: 10px 8px;
    /* More compact */
    gap: 10px;
    /* Tighter gap */
  }

  .service-icon {
    width: 32px;
    /* Smaller icon */
    height: 32px;
    flex: 0 0 32px;
  }

  .service-icon .icon {
    width: 18px;
    height: 18px;
  }

  .service-title {
    font-size: 0.75rem;
    /* Slightly smaller title */
    line-height: 1.2;
  }

  .service-desc {
    font-size: 0.65rem;
    /* Smaller description */
    white-space: normal;
    /* Ensure wrapping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.service-card.selected {
  background: #fdfaf8;
  border-color: #f27d26;
  box-shadow: 0 1px 3px rgba(242, 125, 38, 0.08);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #4a3434;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.service-icon .icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.service-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-heading);
  margin: 0;
}

.service-text {
  flex: 1 1 auto;
  min-width: 0;
}

.service-check {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #f27d26;
  display: none;
}

.service-check .icon {
  width: 20px;
  height: 20px;
  display: block;
}

.service-card.selected .service-check {
  display: block;
}

.service-desc {
  font-size: 0.75rem;
  color: #8c7e7e;
  margin: 2px 0 0;
  font-weight: 400;
}

/* Filter pill */
.filter-wrap {
  margin-top: 60px;
  margin-bottom: 48px;
}

.filter-pill {
  max-width: 34rem;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #FFBB00;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  /* ensure context for dropdowns if needed, though they are inside .filter-item */
}

/* Service landing + detail: pill chỉ rộng đủ nội dung (tránh khoảng trống bên phải khi ít mục, vd. detail) */
.filter-pill--service-page {
  width: fit-content;
  max-width: min(52rem, calc(100% - 32px));
  box-sizing: border-box;
}

.filter-pill--service-page .asap-wrap {
  padding-left: 10px;
  padding-right: 14px;
}

@media (max-width: 576px) {
  .filter-wrap {
    margin-top: 32px;
    margin-bottom: 28px;
  }

  .filter-pill--service-page {
    max-width: 420px;
    width: 100%;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px 8px;
    border-radius: 18px;
  }

  .filter-pill--service-page .filter-sep {
    display: none;
  }

  .filter-pill--service-page .filter-item {
    flex: 1 1 auto;
  }

  .filter-pill--service-page .filter-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .filter-pill--service-page .asap-wrap {
    margin-left: auto;
    padding: 0 6px;
  }

  .filter-pill--service-page .filter-dropdown {
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 12px) !important;
    transform: translateX(-50%) translateY(-6px) !important;
    width: calc(100vw - 32px) !important;
    max-width: 440px !important;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(18, 22, 30, 0.12);
  }

  .filter-pill--service-page .filter-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }

  .filter-pill--service-page .fd-addons,
  .filter-pill--service-page .fd-price {
    min-width: 0;
    width: 100%;
  }

  .filter-pill--service-page .filter-dropdown-inner {
    padding: 16px 18px;
  }

  .filter-pill--service-page .fd-addons-header {
    font-size: 0.8125rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    display: flex;
    justify-content: flex-start;
    text-align: left;
  }

  .filter-pill--service-page .fd-addon-item {
    font-size: 0.8125rem;
    padding: 8px 4px;
    margin-bottom: 4px;
  }

  .filter-pill--service-page .fd-price-header {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
  }

  .filter-pill--service-page .fd-price-mid {
    margin-left: auto;
    width: auto;
    font-size: 0.6875rem;
  }

  .filter-pill--service-page .fd-price-range-label {
    font-size: 0.8125rem;
    width: auto;
    margin-left: 0;
  }

  .filter-pill--service-page .fd-range-labels {
    font-size: 0.75rem;
  }
}

.filter-btn {
  flex: 0 1 auto;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.filter-btn-muted {
  color: #adb5bd;
}

.filter-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  /* default lighter icons */
  width: 1em;
  height: 1em;
}

/* icons should be fully opaque on non-muted buttons */
.filter-btn:not(.filter-btn-muted) .filter-icon {
  opacity: 1;
}

.filter-input {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  color: var(--color-ink);
  outline: none;
}

.filter-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.filter-sep {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 4px;
}

/* ── Filter dropdown panels ── */
.filter-item {
  position: static;
  display: flex;
  align-items: center;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  z-index: 200;
  /* allow inner content to wrap to multiple lines instead of forcing single-row overflow */
  white-space: normal;
}

.filter-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
}

.filter-dropdown-inner {
  padding: 10px 12px;
}

/* Services dropdown */
.fd-services {
  /* Use grid to pin the plain label at left and the pill group at right */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px 16px;
  padding: 8px 12px;
  /* Allow content to wrap to next lines and limit overall width on small screens */
  width: min(760px, 92vw);
}

.fd-service-plain {
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5c4a4a;
  /* Brownish color from design */
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.fd-service-plain {
  flex: 0 0 auto;
  order: 0;
  align-self: start;
  margin-top: 4px;
}

.fd-service-plain:hover {
  opacity: 0.8;
}

.fd-service-plain.fd-active {
  color: #4a3434;
  /* Slightly darker when active */
}

.fd-service-icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
  flex: 1 1 auto;
  order: 1;
  justify-content: flex-end;
  justify-self: end;
}

.fd-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
  /* softer, less prominent outline */
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fd-service-pill:hover {
  background: #f9fafb;
  color: #1f2937;
}

.fd-service-pill.fd-active {
  /* subtle active state: lighter yellow and clear 1px border */
  border: 1px solid rgba(255, 187, 0, 0.28);
  background: #fff;
  color: #1f2937;
  font-weight: 500;
}

.fd-service-pill .icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* Add-ons dropdown */
.fd-addons {
  min-width: 240px;
}

.fd-addons-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.fd-addons-header .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.fd-addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 0.8125rem;
  color: #374151;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 120ms ease;
  margin-bottom: 2px;
}

.fd-addon-item:hover {
  background: #f9fafb;
}

.fd-addon-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #FFBB00;
  cursor: pointer;
  flex-shrink: 0;
}

/* Price Range dropdown */
.fd-price {
  min-width: 420px;
}

.fd-price-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fd-price-header .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.fd-price-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.fd-price-range-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3b82f6;
  margin-left: 4px;
}

.fd-price-mid {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: auto;
}

/* Dual-range slider */
.fd-range-wrap {
  position: relative;
  height: 28px;
  margin-bottom: 4px;
}

.fd-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: #e5e7eb;
  border-radius: 999px;
  pointer-events: none;
}

.fd-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
}

.fd-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
  margin: 0;
}

.fd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  transition: transform 120ms ease;
}

.fd-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.fd-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}

.fd-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 6px;
}

/* Active filter button highlight */
.filter-trigger.filter-open {
  background: rgba(255, 187, 0, 0.08);
  color: #1f2937;
}

.filter-trigger.filter-open .filter-icon {
  opacity: 1;
}

.asap-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  flex: 0 0 auto;
}

.asap-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0;
}

.asap-toggle {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  position: relative;
  transition: background-color 160ms ease;
  flex-shrink: 0;
  cursor: pointer;
}

.asap-toggle[aria-pressed="true"] {
  background: var(--color-brand);
}

.asap-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.asap-toggle[aria-pressed="true"] .asap-knob {
  transform: translateX(22px);
}

/* Category sections */
.category-section {
  margin-bottom: 56px;
}

.section-header {
  position: relative;
  margin-bottom: 24px;
}

.section-title {
  margin: 0 auto;
  max-width: calc(100% - 10rem);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-heading);
}

@media (min-width: 576px) {
  .section-title {
    font-size: 1rem;
  }
}

.section-title .brand {
  color: #FFBB00;
  font-weight: 500;
}

.see-more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #4A3434;
  border: 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.see-more .arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
}

@media (min-width: 576px) {
  .see-more {
    display: inline-flex;
  }
}

.see-more:hover {
  background: #374151;
  opacity: 1;
}

.see-more-sm {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.see-more-sm .see-more {
  position: static;
  transform: none;
}

@media (min-width: 576px) {
  .see-more-sm {
    display: none;
  }
}

.editors-scroll-wrap {
  position: relative;
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-bottom: 6px;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .editors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
  .editors-grid {
    grid-template-columns: 1fr;
  }
}

/* home.html variant – horizontal scroll (more than 4 cards) */
.editors-grid--scroll {
  display: flex;
  flex-direction: row;
  grid-template-columns: unset;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.editors-grid--scroll::-webkit-scrollbar {
  height: 0;
}

/* Improve horizontal scrolling on small screens:
   - add comfortable left/right padding so first/last cards aren't clipped
   - enable scroll snapping so cards align fully into view
   - give cards a right margin for spacing
*/
.editors-grid--scroll {
  padding-inline-start: 12px;
  padding-inline-end: 30px;
  /* reserve space for scroll button */
  gap: 12px;
  scroll-snap-type: x mandatory;
}

.editors-grid--scroll .editor-card {
  scroll-snap-align: start;
  margin-right: 0px;
}

.editors-grid--scroll .editor-card {
  /* flex: 0 0 calc(25% - 12px); */
  min-width: 266px;
}

@media (max-width: 900px) {
  .editors-grid--scroll .editor-card {
    flex: 0 0 calc(50% - 8px);
  }
}

/* Mobile tweaks to avoid clipping on narrow viewports */
@media (max-width: 576px) {
  .editors-grid--scroll {
    padding-inline-end: 56px;
  }

  .editors-grid--scroll .editor-card {
    min-width: 240px;
    flex: 0 0 auto;
  }

  .scroll-next-btn {
    right: 8px;
    z-index: 30;
  }
}

.scroll-next-btn {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: box-shadow 160ms ease, background 160ms ease;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

/* position adjustment for mobile scroll buttons */
@media (max-width: 576px) {
  .scroll-next-btn {
    right: 4px;
  }
}

.scroll-next-btn:hover {
  background: #f9fafb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.scroll-next-btn .icon {
  width: 16px;
  height: 16px;
}

/* Editor card */
.editor-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  min-width: 0;
  max-width: 100%;
  position: relative;
  /* Added for stretched-link support */
}

/* Highlight cho các Editor đang bật ASAP */
.editor-card.is-asap,
.top-editor-card.is-asap,
.mp-card.is-asap {
  border: 2px solid #f27d26 !important;
}

.editor-card a {
  text-decoration: none;
  color: inherit;
}

/* Stretched link: makes the entire .editor-card clickable */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.editor-name a:hover {
  text-decoration: underline;
  color: var(--color-brand);
}

.editor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

/* Dual-link support: ensure profile links are above the stretched post link */
.profile-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

.editor-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.editor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.editor-card:hover .editor-media img {
  transform: scale(1.05);
}

.editor-fly {
  /* position: absolute; */
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  color: #4b5563;
  display: grid;
  place-items: center;
  transition: background-color 160ms ease;
}

.editor-fly .icon {
  width: 18px;
  height: 18px;
}

.editor-fly:hover {
  background: #fff;
}

.editor-body {
  padding: 10px 12px 12px;
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.editor-head-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.editor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.country {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.editor-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9CA3AF;
  font-weight: 400;
  font-size: 13px;
}

.rating .star {
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 1;
  /* Không dùng opacity để chỉnh màu chính xác bằng filter */
}

.rating .star:not(.on) {
  filter: invert(85%) sepia(5%) saturate(100%) hue-rotate(200deg) brightness(95%) contrast(90%);
  /* Màu xám đặc theo thiết kế 2 */
}

.rating .star.on {
  /* filter matching #f27d26 orange */
  filter: invert(65%) sepia(87%) saturate(3002%) hue-rotate(344deg) brightness(98%) contrast(93%);
}

.rating .reviews {
  font-weight: 500;
  color: #9ca3af;
}

.rating-score {
  font-weight: 700;
  color: var(--color-brand);
}

.rating-no {
  font-weight: 400;
  color: #9ca3af;
}

.auto-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #f27d26;
  color: #4A3434;
}

.auto-pill .icon {
  color: var(--color-nav-text);
  width: 0.75rem;
  height: 0.75rem;
}

.auto-pill span {
  font-size: 0.6875rem;
  font-weight: 600;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: 8px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px 12px;
  background: linear-gradient(90deg, #FFCBA3 0%, #FF7EFF 100%);
  color: #E01F00;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.badge-sep {
  color: #E01F00;
  margin: 0 6px;
  font-weight: 300;
  opacity: 0.4;
}

.badge-discount {
  color: #E01F00;
  font-weight: 700;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
}

.price .label {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 400;
  white-space: nowrap;
}

.price .value {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.price-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  /* Tăng khoảng cách một chút */
  flex-shrink: 0;
  vertical-align: middle;
  color: #000;
  /* Để icon dùng màu đen gốc hoặc opacity */
  line-height: 0;
  transform: translateY(-1px);
  /* Nhích lên 1px để cân giữa chữ */
}

.price-info svg {
  display: block;
  opacity: 0.6;
  margin-bottom: -8px;
  /* Làm mờ nhẹ như thiết kế */
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  opacity: 0.6;
  transition: opacity 160ms ease;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-link {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
}

.footer-link:hover {
  color: #4b5563;
}

/* Floating help button */
.help-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
  z-index: 50;
  transition: transform 180ms ease;
}

.help-fab:hover {
  transform: scale(1.08);
}

.help-fab .icon {
  width: 20px;
  height: 20px;
}

/* Mobile nav strip */
.mobile-nav-strip {
  border-top: 1px solid var(--color-border);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-nav-strip::-webkit-scrollbar {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 14px;
  white-space: nowrap;
}

.mobile-nav-item {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--color-nav-text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.mobile-nav-item:hover {
  color: var(--color-brand);
}

.mobile-nav-item .icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE – iPad / Tablet  (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  /* Nav: đã đổi sang gap-3 trong HTML, đế bảo vệ text khỏi bị cắt */
  .nav-pill {
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .editor-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 160px;
  }

  .filter-pill {
    padding: 10px 16px;
    /* giữ nguyên max-width: 36rem từ base, không override */
  }
}

/* ============================================================
   RESPONSIVE – iPad Mini / Tablet  (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Header */
  .header-inner {
    height: 56px;
  }

  /* Services grid: 2 cột trên tablet */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Page title nhỏ hơn */
  .page-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }

  /* Filter pill: khôi phục max-width gọn hơn, căn trái nội dung */
  .filter-pill {
    max-width: fit-content;
    padding: 9px 18px;
    justify-content: flex-start;
    gap: 0;
    margin: 0 auto;
  }

  .filter-pill--service-page {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .filter-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .asap-wrap {
    padding: 0 8px;
  }

  .asap-label {
    font-size: 0.75rem;
  }

  /* Editor card: 2 cột */
  .editor-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 180px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .site-footer {
    padding: 32px 0;
    margin-top: 48px;
  }

  /* Main layout spacing */
  .main-wrap {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .filter-wrap {
    margin-top: 40px;
    margin-bottom: 36px;
  }

  .category-section {
    margin-bottom: 40px;
  }

  /* Section header */
  .section-title {
    max-width: calc(100% - 8rem);
    font-size: 0.9rem;
  }
}

/* ============================================================
   RESPONSIVE – Mobile  (max-width: 576px)
   ============================================================ */
@media (max-width: 576px) {

  /* Container padding rộng hơn tay cầm */
  .container-custom {
    padding: 0 14px;
  }

  /* Header */
  .header-inner {
    height: 52px;
  }

  .site-logo {
    height: 34px;
  }

  .btn-pill {
    padding: 5px 13px;
    font-size: 13px;
  }

  /* Breadcrumb */
  .breadcrumb-mini {
    margin-bottom: 16px;
    font-size: 0.75rem;
  }

  /* Page title */
  .page-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
  }

  /* Services grid: 1 cột trên mobile */
  .services-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
  }

  /* Service card: layout ngang gọn hơn */
  .service-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .service-icon {
    width: 36px;
    height: 36px;
  }

  .service-icon .icon {
    width: 20px;
    height: 20px;
  }

  .service-title {
    font-size: 0.8125rem;
  }

  .service-desc {
    font-size: 0.6875rem;
  }

  /* Filter pill: full width, cuộc thành 2 dòng nếu cần */
  .filter-wrap {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .filter-pill {
    max-width: 100%;
    padding: 7px 10px;
    flex-wrap: nowrap;
    gap: 0;
    border-radius: 999px;
    /* Remove overflow-x: auto and use a simpler approach or ensure it doesn't clip */
    overflow: visible;
    justify-content: space-between;
  }

  .filter-btn {
    padding: 5px 7px;
    font-size: 0.6875rem;
    gap: 4px;
  }

  .filter-sep {
    height: 16px;
    margin: 0 2px;
  }

  .asap-wrap {
    padding: 0 6px;
    gap: 6px;
  }

  .asap-label {
    font-size: 0.6875rem;
  }

  .asap-toggle {
    width: 40px;
    height: 22px;
  }

  .asap-knob {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .asap-toggle[aria-pressed="true"] .asap-knob {
    transform: translateX(18px);
  }

  /* Section title: full width trên mobile */
  .section-title {
    max-width: 100%;
    font-size: 0.875rem;
    text-align: left;
    padding-right: 0;
  }

  .section-header {
    margin-bottom: 16px;
  }

  /* Editor card: nhỏ hơn, scroll ngang vẫn ổn */
  .editor-card {
    flex: 0 0 calc(75vw);
    min-width: 190px;
    max-width: 280px;
  }

  .editors-grid {
    gap: 12px;
  }

  /* Scroll button ẩn trên mobile */
  .scroll-next-btn {
    display: none;
  }

  /* Footer */
  .site-footer {
    padding: 24px 0;
    margin-top: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-inner .d-flex {
    flex-wrap: wrap;
    gap: 12px !important;
  }

  .footer-link {
    font-size: 11px;
  }

  /* FAB: nhỏ hơn trên mobile */
  .help-fab {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  /* Main layout spacing */
  .main-wrap {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .category-section {
    margin-bottom: 32px;
  }

  .filter-wrap {
    margin-top: 24px;
    margin-bottom: 24px;
    position: relative;
    /* ensure absolute positioning works for children */
  }

  /* Mobile Dropdown - Absolute positioning below trigger (home.html style) */
  .filter-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-6px) !important;
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
    background: #ffffff !important;
    border: 1px solid #FFEDC2 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
    z-index: 1000 !important;
    white-space: normal;
  }

  .filter-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }

  .filter-dropdown-inner {
    padding: 10px 12px !important;
    /* More compact padding */
    background: #ffffff !important;
    border-radius: 30px !important;
    width: 100% !important;
    max-height: 380px;
    overflow-y: auto;
  }

  /* Ensure the pill doesn't clip children */
  .filter-pill {
    overflow: visible !important;
  }

  /* Match Sample 1 typography and spacing within the dropdown */
  .fd-services,
  .fd-addons,
  .fd-price {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 2px !important;
  }

  /* Header Title (e.g., Image Enhancement) - REDUCED SIZE */
  .fd-service-plain,
  .fd-addons-header span:not(.icon),
  .fd-price-title {
    font-size: 0.9375rem !important;
    /* Reduced from 1.1rem */
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    padding: 6px 0 !important;
    display: block !important;
    pointer-events: none;
    border: none !important;
    background: transparent !important;
    line-height: 1.2 !important;
  }

  /* Item list behavior */
  .fd-service-icon-group,
  .fd-addons-list,
  .fd-price-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Pill-like items - REDUCED SIZE AND PADDING */
  .fd-service-pill,
  .fd-addon-item {
    width: 100% !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.8125rem !important;
    /* Reduced from 0.95rem */
    color: #4b5563 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }

  .fd-service-pill:last-child,
  .fd-addon-item:last-child {
    border-bottom: none !important;
  }

  .fd-service-pill .icon,
  .fd-addons-header .icon,
  .icon-addon-mobile {
    width: 16px !important;
    /* Reduced from 20px */
    height: 16px !important;
    opacity: 0.6 !important;
    flex-shrink: 0;
  }

  .fd-service-pill.fd-active {
    color: var(--color-brand) !important;
    font-weight: 600 !important;
  }

  /* Price range specifics on mobile - REDUCED SIZES */
  .fd-price-range-label {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin-left: auto !important;
    font-weight: 400 !important;
  }

  .fd-price-header {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .fd-range-wrap {
    padding: 10px 4px !important;
  }

  .fd-range-labels {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.75rem !important;
    color: #999 !important;
    margin-top: 4px !important;
  }

  .fd-price-mid {
    display: none !important;
    /* Hide to save space on mobile */
  }

  /* Show original headers and icons on mobile */
  .fd-addons-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-align: left !important;
  }

  .fd-price-header > .icon {
    display: block !important;
    opacity: 0.7 !important;
  }
}

/* ============================================================
   RESPONSIVE – Small Mobile  (max-width: 390px)
   ============================================================ */
@media (max-width: 390px) {

  .btn-join,
  .btn-login {
    padding: 4px 10px;
    font-size: 12px;
  }

  .page-title {
    font-size: 1rem;
  }

  .filter-pill {
    padding: 7px 8px;
  }

  .filter-btn {
    padding: 4px 6px;
    font-size: 0.625rem;
  }

  .editor-card {
    flex: 0 0 calc(82vw);
    min-width: 180px;
    max-width: 260px;
  }
}

/* ============================================================
   HOME PAGE – specific styles (home.html)
   ============================================================ */

/* ---- HERO ---- */
.home-hero {
  position: relative;
  background: #1a1212;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
  min-height: 340px;
  width: 100%;
}

.hero-text {
  max-width: 420px;
  color: #fff;
}

.hero-from {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.60);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-badge svg {
  flex-shrink: 0;
}

/* Banner photo as background */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Left side darkens strongly so white text is readable;
     right side fades out so banner photo is visible */
  background: linear-gradient(to right,
      rgba(10, 6, 6, 0.80) 0%,
      rgba(10, 6, 6, 0.55) 32%,
      rgba(10, 6, 6, 0.15) 58%,
      rgba(10, 6, 6, 0.02) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---- PLATFORM FEATURES ---- */
.home-platform {
  padding: 28px 0;
}

.platform-tagline {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  text-align: center;
}

.platform-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow 180ms ease, transform 180ms ease;
  height: 100%;
}

.platform-feature:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.pf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fdf6ef;
  color: var(--color-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pf-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
}

/* ---- HOME PAGE REFINEMENTS (PRECISION) ---- */

/* Service/Urgent Toggle */
.home-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  /* still overlap hero slightly */
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
}

.home-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  /* remove vertical padding, use explicit height to match 84px from design */
  padding: 0 80px;
  gap: 24px;
  border: 1px solid #FFEDC2;
  width: 100%;
  /* make fluid on narrow screens */
  max-width: 600px;
  /* fixed design width */
  height: 60px;
  /* design height */
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.toggle-item span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4B5563;
  text-transform: uppercase;
}

.toggle-divider {
  width: 1px;
  height: 24px;
  background: #FFBB00;
  /* Vibrant Yellow divider */
  opacity: 0.8;
}

/* Switch Component (Refined Colors) */
.switch-box {
  position: relative;
  width: 40px;
  height: 18px;
  background: #E5E7EB;
  /* Light gray background */
  border: 1.2px solid #FFBB00;
  /* Yellow border around switch */
  border-radius: 18px;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: background-color 200ms ease;
}

.switch-box[aria-pressed="true"] {
  background: #FFBB00;
}

.switch-box::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #3D3737;
  /* Dark handle from mockup */
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 200ms ease, background-color 200ms ease;
}

.switch-box[aria-pressed="true"]::after {
  transform: translateX(18px);
  background: #fff;
}

/* Platform Section Refined */
.home-platform-centered {
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

.platform-title-large {
  font-size: 1.85rem;
  font-weight: 500;
  /* Bolder */
  color: #333333;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.platform-desc-gray {
  font-size: 0.875rem;
  color: #6B7280;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.features-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  /* Match Figma 1000px box */
  margin: 0 auto;
}

.feature-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #FFBB00;
}

.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-icon-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4B5563;
  line-height: 1.5;
  text-align: center;
  max-width: 150px;
}

@media (max-width: 991px) {
  .features-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 20px;
  }

  .platform-title-large {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .home-toggle-container {
    padding: 8px 16px;
    gap: 14px;
  }
}

/* ------------------------------------------------------------------
   Additional mobile / iPad specific tweaks for home.html layout
   These rules ensure the hero banner, platform section and other
   components scale nicely on phones (<=767px) and tablets (768-1024px).
   ------------------------------------------------------------------ */

/*==== responsive mobile menu =====*/
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-nav-text);
  margin: 4px 0;
  transition: background 0.3s ease;
}

/* overlay panel slides up from bottom */
.mobile-menu-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #fff;
  z-index: 200;
  overflow: hidden;
  transition: height 0.3s ease;
  pointer-events: none;
  /* allow interaction with page when closed */
}

.mobile-menu-overlay.open {
  height: 94%;
  pointer-events: auto;
}

/* when menu open hide mobile nav strip and prevent page scroll */
body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-nav-strip {
  display: none;
}

.mobile-menu-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.menu-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-menu-nav .arrow {
  width: 1em;
  height: 1em;
  opacity: 0.6;
}

.mobile-menu-nav .sub-menu {
  display: none;
  padding-left: 16px;
}

.mobile-menu-nav li.open>.sub-menu {
  display: block;
}

.mobile-menu-nav .free-trial {
  color: var(--color-brand);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hamburger-btn {
    display: block;
    /* keep in flow so flex layout places it between logo and actions */
    position: relative;
    top: auto;
    right: auto;
    margin-left: 12px;
    /* separate from login/join */
  }

  .mobile-nav-strip {
    display: none;
  }
}


/* responsive hero image container */
.home-hero-banner {
  position: relative;
  overflow: hidden;
}

.home-hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.hero-carousel {
  overflow: hidden;
  position: relative;
}

.hero-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  height: auto;
  /* let image/content determine height; provide sensible limits */
  min-height: 320px;
  max-height: 720px;
}

@media (max-width: 991px) {
  .hero-slide {
    height: auto;
    aspect-ratio: 1 / 1;
    /* Square for mobile to show full content */
  }
}

.hero-slide .sd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* carousel controls */
.hero-carousel .hero-next-btn,
.hero-carousel .hero-prev-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 0;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s;
}

.hero-carousel .hero-next-btn {
  right: 12px;
}

.hero-carousel .hero-prev-btn {
  left: 12px;
  display: none;
}

.hero-carousel .hero-prev-btn .icon {
  transform: rotate(180deg);
}

.hero-carousel .hero-next-btn .icon,
.hero-carousel .hero-prev-btn .icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.hero-carousel .hero-next-btn:hover,
.hero-carousel .hero-prev-btn:hover {
  background: transparent;
}



.hero-carousel .hero-slide-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .85);
  color: #444;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.875rem;
  z-index: 10;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot.active {
  background: #fff;
}

/* Mobile refinements (moved here to override desktop styles) */
@media (max-width: 991px) {

  .hero-carousel .hero-next-btn,
  .hero-carousel .hero-prev-btn {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 !important;
    width: 36px !important;
    height: 50px !important;
    top: 50% !important;
  }

  .hero-carousel .hero-next-btn {
    right: 0 !important;
  }

  .hero-carousel .hero-prev-btn {
    left: 0 !important;
  }

  .hero-carousel .hero-next-btn .icon,
  .hero-carousel .hero-prev-btn .icon {
    filter: invert(100%) !important;
    width: 20px !important;
    height: 20px !important;
  }

  .hero-carousel .hero-slide-count {
    top: 8px !important;
    right: 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem !important;
  }

  .hero-dots {
    display: none !important;
  }
}

/* ipad / small tablet (landscape) */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Slightly tighter container padding on tablets to avoid edge clipping */
  .container-custom {
    padding: 0 28px;
  }

  .container-header {
    padding: 0 24px;
  }

  /* Hero: reduce max height so images don't push content too far down */
  .home-hero-banner img {
    max-height: 420px;
  }

  .hero-slide {
    height: 420px;
  }

  .hero-inner {
    min-height: 420px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .platform-title-large {
    font-size: 1.75rem;
  }

  /* Toggle: limit width and reduce horizontal padding so it doesn't overflow */
  .home-toggle-container {
    max-width: 520px;
    padding: 0 48px;
    height: 56px;
  }

  /* Filter pill: cap width so it stays centered and doesn't wrap awkwardly */
  .filter-pill {
    max-width: 520px;
    padding: 10px 16px;
    margin: 0 auto;
  }

  .filter-pill--service-page {
    max-width: min(720px, calc(100% - 16px));
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .filter-pill--service-page .asap-wrap {
    padding-left: 8px;
    padding-right: 10px;
  }

  /* Service panel: use a fluid width and center it to avoid side overflow on iPad */
  .service-panel {
    width: calc(100% - 56px);
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  /* Editor cards: ensure 3-up layout without overflowing the row */
  .editor-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 220px;
    height: 300px;
  }

  .editors-grid--scroll .editor-card {
    min-width: 260px;
  }

  /* Hero controls: nudge buttons slightly inward so they remain tappable */
  .hero-carousel .hero-next-btn {
    right: 8px;
  }

  .hero-carousel .hero-prev-btn {
    left: 8px;
    display: flex;
  }

  /* Floating help button placement for tablet */
  .help-fab {
    right: 20px;
    bottom: 20px;
  }

  /* Small spacing adjustments for stats/trusted logos */
  .stats-top-row {
    margin-bottom: 48px;
  }

  .trusted-logos-grid {
    gap: 24px 20px;
  }

  /* Slider / hero refinements specific to iPad
     - keep a consistent aspect ratio so slides don't push content down
     - allow image to be centered/cropped more predictably
     - show previous button and make controls taller for touch
  */
  .home-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    max-height: 420px;
  }

  .hero-slide {
    height: auto;
    aspect-ratio: 16/9;
    max-height: 420px;
    display: block;
  }

  .hero-track {
    align-items: stretch;
  }

  /* Make carousel controls easier to tap on tablets */
  .hero-carousel .hero-next-btn,
  .hero-carousel .hero-prev-btn {
    background: rgba(0, 0, 0, 0.32) !important;
    border-radius: 6px !important;
    width: 42px !important;
    height: 56px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel .hero-next-btn {
    right: 8px !important;
  }

  .hero-carousel .hero-prev-btn {
    left: 8px !important;
  }

  .hero-carousel .hero-next-btn .icon,
  .hero-carousel .hero-prev-btn .icon {
    filter: invert(100%) !important;
    width: 20px !important;
    height: 20px !important;
  }

  /* Ensure the toggle stays overlapping the hero but not clipped */
  .home-toggle-wrapper {
    position: relative;
    z-index: 22;
    margin-top: -36px;
  }

  /* Service panel slightly above content and centered on tablet */
  .service-panel {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
  }

  /* Make the hero look like the rounded, compact slider in screenshot #2 */
  .home-hero-banner {
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .home-hero-banner .hero-slide,
  .hero-slide {
    overflow: hidden;
    height: 220px;
    /* compact height to match screenshot */
    max-height: 220px;
    display: block;
  }

  /* Ensure each slide fills the visible area on iPad/tablet
     - remove inner padding so slides aren't partially visible
     - force slides to be full-width and prevent track gaps */
  .home-hero-banner {
    padding: 0;
    /* let slides reach rounded card edges */
  }

  .hero-track {
    gap: 0;
  }

  .home-hero-banner .hero-slide {
    box-sizing: border-box;
    min-width: 100%;
    flex: 0 0 100%;
    margin: 0;
    padding: 0;
  }

  .home-hero-banner img,
  .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Ensure carousel controls sit inside the rounded card and are vertically centered */
  .hero-carousel .hero-next-btn,
  .hero-carousel .hero-prev-btn {
    background: rgba(0, 0, 0, 0.45) !important;
    border-radius: 6px !important;
    width: 40px !important;
    height: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
  }

  .hero-carousel .hero-prev-btn {
    left: 18px !important;
  }

  .hero-carousel .hero-next-btn {
    right: 18px !important;
  }

  /* Slide counter badge (top-right) like screenshot */
  .hero-carousel .hero-slide-count {
    top: 12px !important;
    right: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #222 !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
  }

  /* reduce spacing below hero so toggle sits close like screenshot */
  .home-toggle-wrapper {
    margin-top: 20px;
  }

  /* Prefer desktop slider images on iPad: show .desktop-img, hide .mobile-img
     Many templates include two <img> variants (desktop/mobile) — ensure tablet
     uses the desktop visual so cropping matches desktop slider. */
  .hero-slide img.desktop-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    max-height: 420px !important;
  }

  .hero-slide img.mobile-img {
    display: none !important;
  }

  /* If the markup uses helper classes like .desktop-only / .mobile-only, enforce them */
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }
}

/* phones */
@media (max-width: 767px) {

  /* tighten header padding and shrink logo/buttons */
  .header-inner {
    padding: 0 16px;
  }

  .site-logo {
    height: 36px;
  }

  .btn-pill {
    padding: 4px 12px;
    font-size: 0.8125rem;
  }

  .platform-title-large {
    font-size: 1.25rem;
  }

  .platform-desc-gray {
    padding: 0 16px;
  }

  .features-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-icon-card {
    padding: 16px 12px;
    text-align: center;
  }

  .feature-icon-wrap {
    margin-bottom: 8px;
  }

  .feature-icon-label {
    font-size: 0.75rem;
    font-weight: 500;
  }

  .home-toggle-wrapper {
    margin: 20px 16px;
  }

  .home-toggle-container {
    padding: 0 12px;
    height: 44px;
    gap: 12px;
    max-width: 100%;
    border-radius: 6px;
  }

  .toggle-item span {
    font-size: 0.625rem;
  }

  .toggle-divider {
    height: 16px;
  }

  .hsv-card-new {
    margin-bottom: 1.5rem;
  }
}


.pf-sub {
  font-size: 0.6875rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ---- SERVICES PHOTO CARDS ---- */
/* ---- SERVICES PHOTO CARDS (Redesigned) ---- */
.hsv-card-new {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hsv-media-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 419;
  /* Match Figma dimensions */
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.hsv-media-compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  z-index: 2;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-icon {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.hsv-content-new {
  padding-top: 24px;
}

/* ============================================================
   Animated yellow underline for header menu items
   Adds a left-to-right bar on hover/focus for .nav-pill and .mobile-nav-item
   ============================================================ */
.nav-pill,
.mobile-nav-item {
  position: relative;
}

.nav-pill::after,
.mobile-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 4px;
  width: 0;
  background: #FBBF24;
  /* warm yellow */
  border-radius: 2px;
  transition: width 300ms cubic-bezier(.4, 0, .2, 1), opacity 200ms ease;
  opacity: 0.98;
  transform-origin: left center;
}

.nav-pill:hover::after,
.nav-pill:focus::after,
.mobile-nav-item:hover::after,
.mobile-nav-item:focus::after {
  width: 100%;
}

/* Anchor hover/active — change color while keeping the decorative underline bar */
.nav-pill[href]:hover,
.nav-pill[href]:focus,
.mobile-nav-item[href]:hover,
.mobile-nav-item[href]:focus {
  color: var(--color-brand);
  /* keep same font-weight to avoid layout shift */
  text-decoration: none;
}

/* Add horizontal spacing between top nav items to match design */
.header-nav {
  gap: 20px;
}

/* Ensure dropdown toggle button aligns with anchors */
.nav-dropdown-toggle {
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #4a3434;
  /* chevron uses currentColor (legacy SVG fill) */
}

/* Slightly reduce chevron size and spacing for tighter alignment */
.nav-dropdown-toggle .icon,
.mobile-nav-toggle .icon {
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
}

.mobile-nav-toggle {
  padding: 6px 6px;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a3434;
}

/* When anchor is inside a nav-dropdown, reduce its right padding so chevron sits closer */
.nav-dropdown>.nav-pill {
  padding-right: 4px;
}

/* -----------------------------------------------------------------
   Unified hover for desktop: label + chevron share one underline and
   brand color (split <a> + <button> no longer hover independently)
   ----------------------------------------------------------------- */
.site-header .nav-dropdown:has(.nav-dropdown-toggle) > .nav-pill::after {
  display: none;
}

.site-header .nav-dropdown:has(.nav-dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 4px;
  width: 0;
  background: #fbbf24;
  border-radius: 2px;
  transition: width 300ms cubic-bezier(.4, 0, .2, 1), opacity 200ms ease;
  opacity: 0.98;
  transform-origin: left center;
  pointer-events: none;
}

.site-header .nav-dropdown:has(.nav-dropdown-toggle):hover::after,
.site-header .nav-dropdown:has(.nav-dropdown-toggle):focus-within::after,
.site-header .nav-dropdown:has(.nav-dropdown-toggle).is-open::after {
  width: 100%;
}

.site-header .nav-dropdown:has(.nav-dropdown-toggle):hover > .nav-pill[href],
.site-header .nav-dropdown:has(.nav-dropdown-toggle):focus-within > .nav-pill[href],
.site-header .nav-dropdown:has(.nav-dropdown-toggle).is-open > .nav-pill[href] {
  color: var(--color-brand);
  text-decoration: none;
}

.site-header .nav-dropdown:has(.nav-dropdown-toggle):hover .nav-dropdown-toggle,
.site-header .nav-dropdown:has(.nav-dropdown-toggle):focus-within .nav-dropdown-toggle,
.site-header .nav-dropdown:has(.nav-dropdown-toggle).is-open .nav-dropdown-toggle {
  color: var(--color-brand);
}

/* Mobile variant: reduce anchor right padding to bring toggle closer */
.mobile-nav-dropdown>.mobile-nav-item {
  padding-right: 6px;
}

/* Mobile: sync link + chevron color on row hover (underline stays per-item) */
.mobile-nav-dropdown:has(.mobile-nav-toggle):hover > .mobile-nav-item[href],
.mobile-nav-dropdown:has(.mobile-nav-toggle):focus-within > .mobile-nav-item[href],
.mobile-nav-dropdown:has(.mobile-nav-toggle).active > .mobile-nav-item[href] {
  color: var(--color-brand);
  text-decoration: none;
}

.mobile-nav-dropdown:has(.mobile-nav-toggle):hover .mobile-nav-toggle,
.mobile-nav-dropdown:has(.mobile-nav-toggle):focus-within .mobile-nav-toggle,
.mobile-nav-dropdown:has(.mobile-nav-toggle).active .mobile-nav-toggle {
  color: var(--color-brand);
}

/* Small placement tweak for compact header where underline might overlap */
@media (max-width: 991px) {
  .nav-pill::after {
    bottom: -4px;
    height: 3px;
  }
}


.hsv-title-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
}

.hsv-details-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hsv-text-group {
  flex: 1;
}

.hsv-price-promo {
  font-size: 0.9375rem;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.hsv-price-promo strong {
  font-weight: 700;
}

.hsv-desc-refined {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.hsv-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4A3434;
  /* Dark brown from design */
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hsv-btn-pill:hover {
  background: #3a2929;
  color: #fff;
  transform: translateY(-2px);
}

.hsv-btn-pill svg {
  transition: transform 0.2s ease;
}

.hsv-btn-pill:hover svg {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  .hsv-details-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .hsv-btn-pill {
    margin-top: 16px;
  }
}

.hsv-more-btn:hover {
  background: #374151;
}

.hsv-desc {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- FEATURED EDITORS BLOCK (Redesigned) ---- */
.featured-editors-block {
  background: linear-gradient(90deg, #F8ED67 48%, #FFFFFF 100%);
  border-radius: 14px;
  padding: 48px 0px;
  margin-bottom: 48px;
  text-align: center;
}

.featured-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4A3434;
  margin-bottom: 40px;
}

.featured-editors-block .editors-scroll-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Featured Editors Top Header (Below the yellow block) */
.home-section-header {
  margin-top: 64px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.home-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
}

.home-section-title .highlight {
  color: #FFBB00;
}

/* Refined Editor Card for home.html */
.editor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  flex: 0 0 calc(25% - 10px);
  /* Fixed width for 4 columns in scroll */
  height: 310px;
  /* Reduced height */
  text-align: left;
}

.editor-media {
  width: 100%;
  height: 140px;
  /* Reduced height from 180px */
  overflow: hidden;
}

.editor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-body {
  padding: 16px 12px 12px;
  /* Slightly reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(310px - 140px);
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.editor-name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.country {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.editor-mid-new {
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-end;
}

.pill-auto-accept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #FFBB00;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #D97706;
}

.pill-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #10B981;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
}

.editor-foot-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* slightly darker separator so it’s more visible */
  border-top: 1px solid var(--color-border-strong);
  padding-top: 9px;
}

.rating-new {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-new .star-yellow {
  width: 14px;
  height: 14px;
  filter: invert(72%) sepia(96%) saturate(2051%) hue-rotate(1deg) brightness(107%) contrast(106%);
  /* Yellow color #FFBB00 */
  flex-shrink: 0;
}

.rating-new .score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFBB00;
}

.rating-new .count {
  font-size: 0.8125rem;
  color: #999;
}

.price-new {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-label {
  font-size: 0.6875rem;
  color: #666;
}

.price-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
}

.info-gray {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* ---- TOP EDITORS CARD (Grid Layout) ---- */
.top-editor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: box-shadow 200ms ease;
}

.top-editor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-editor-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.top-editor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-editor-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.top-editor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top-editor-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.top-editor-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.top-editor-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #666;
}

.country-flag {
  display: inline;
}

.country-code {
  display: inline;
  font-weight: 500;
}

.rating-text {
  color: #999;
  font-size: 0.7rem;
}

.badge-new-offer {
  display: inline-flex;
  align-items: center;
  background: #FFB6D9;
  color: #d946a6;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-auto-accept-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #059669;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.top-editor-badges {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.pill-auto-accept-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #FFBB00;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #D97706;
}

.top-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-label-sm {
  font-size: 0.65rem;
  color: #999;
}

.price-value-sm {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #333;
}

/* ---- STATS SECTION ---- */
.home-stats {
  background: #fff;
  padding: 5px 0;
}

/* Scoped teal gradient for stats number "21" */
.home-stats .stat-number {
  background: #FFBB00;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- 3-column top row layout --- */
.stats-top-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
}

.stats-col-number {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.stats-col-label {
  flex: 0 0 auto;
  width: 260px;
  /* border-left: 3px solid #FFBB00; */
  padding-left: 24px;
  padding-right: 48px;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.stats-label-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.stats-col-numbers {
  flex: 1;
  padding-left: 48px;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0;
  column-gap: 0;
}

.stats-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 32px;
}

/* Đường kẻ ngang: hàng trên (item 1 & 2) có border-bottom */
.stats-item:nth-child(1),
.stats-item:nth-child(2) {
  border-bottom: 1px solid #e5e7eb;
}

/* Đường kẻ dọc: cột trái (item 1 & 3) có border-right */
.stats-item:nth-child(odd) {
  border-right: 1px solid #e5e7eb;
}



.stats-val-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

/* --- Stat Big Number "21" --- */
.stat-number {
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 800;
  color: #FFBB00;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.stat-label-big {
  border-left: 3px solid #FFBB00;
  font-size: 0.75rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.stat-label-big span {
  margin-left: 10px;
}


.stats-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFB039;
  color: #4A3434;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: 999px;
  margin-top: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.stats-btn-contact:hover {
  background: #ffa015;
  color: #4A3434;
  transform: translateY(-2px);
}

.stats-description {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* --- Stats values (90+, 2M+, etc.) --- */
.stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFBB00;
  line-height: 1;
  display: inline;
}

.stat-unit {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFBB00;
  display: inline;
  margin-left: 1px;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 400;
  display: block;
}

.stat-label-uppercase {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.stats-caption {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 560px;
}


/* --- Trusted logos grid (4 cols × 3 rows) --- */
.trusted-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  padding-top: 40px;
  /* border-top: 1px solid #e5e7eb; */
}

.trusted-logo-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 160ms ease, filter 160ms ease;
}

.trusted-logo-item img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.trusted-logo-item:hover {
  opacity: 0.85;
  filter: grayscale(0.4);
}

/* Legacy trusted-logos (kept for backward compat) */
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0.8;
}

.trusted-logo {
  display: flex;
  align-items: center;
  filter: grayscale(0.3);
  transition: filter 160ms ease, opacity 160ms ease;
}

.trusted-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}


/* ---- RESPONSIVE – HOME ---- */
@media (max-width: 1024px) {
  .home-hero {
    min-height: 300px;
  }

  .hero-images {
    width: 50%;
  }
}

@media (max-width: 991px) {

  /* Stats: stack number+label on top, stats grid below */
  .stats-top-row {
    flex-direction: column;
    align-items: center;
    /* Center for mobile */
    gap: 24px;
    margin-bottom: 36px;
    text-align: center;
  }

  .stats-col-number {
    padding-right: 0;
    justify-content: center;
    width: 100%;
  }

  .stats-col-label {
    width: 100%;
    border-left: none;
    padding-left: 0;
    padding-top: 0;
    padding-right: 0;
    display: flex;
    justify-content: center;
  }

  .stats-label-block {
    align-items: center;
    width: 100%;
    max-width: 500px;
  }

  .stat-label-big {
    border-left: none;
    font-size: 1rem;
    position: relative;
    padding-left: 0;
    margin-bottom: 20px;
  }

  /* Vertical bar centered above or beside? In image it's on the left but centered block */
  .stat-label-big::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    border-radius: 2px;
  }

  .stats-col-numbers {
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
  }

  .stats-item {
    border: none !important;
    /* Remove borders on mobile for cleaner look */
    padding: 16px;
  }

  .stats-val,
  .stat-unit {
    font-size: 2rem;
  }

  .trusted-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 260px;
  }

  .hero-inner {
    min-height: 260px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .home-stats {
    padding: 36px 0;
  }

  .stat-label-big {
    font-size: 0.8125rem;
  }

  .stats-description {
    font-size: 0.8125rem;
  }

  .trusted-logos {
    gap: 16px;
  }

  .trusted-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 576px) {
  .home-hero {
    min-height: 220px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 28px;
    min-height: 220px;
  }

  .hero-text {
    max-width: 58%;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    padding: 6px 10px;
    font-size: 0.5625rem;
    gap: 5px;
  }

  .hero-badge svg {
    width: 18px;
    height: 18px;
  }

  .pf-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .pf-label {
    font-size: 0.75rem;
  }

  .stat-number {
    font-size: 15rem;
    /* even bigger for mobile as requested */
    line-height: 1;
  }

  .stat-label-big {
    font-size: 1.125rem;
    border-left: 4px solid #FFBB00;
  }

  .stat-label-big span {
    margin-left: 12px;
  }
}

/* ================================================================
   DROPDOWN MENUS (Desktop Navigation)
   ================================================================ */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-width: 200px;
  padding: 12px 0;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  z-index: 100;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Make mobile nav dropdown align icon closer to text */
.mobile-nav-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--color-brand);
}

/* Grid layout for Image Specialties dropdown (3 columns) */
.dropdown-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 450px;
  padding: 16px;
  gap: 0;
}

.dropdown-menu-grid .dropdown-item {
  padding: 10px 12px;
  border-radius: 6px;
  white-space: normal;
}

.dropdown-menu-grid .dropdown-item:hover {
  background-color: #f3f4f6;
}

/* Dropdown card layout (thumbnail + label) */
.dropdown-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border-radius: 8px;
  text-align: center;
}

/* Service selection panel (shown when clicking SERVICE) */
.service-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  width: 760px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(18, 22, 30, 0.12);
  border: 1px solid var(--color-border-strong);
  padding: 5px 0;
  z-index: 120;
  display: none;
}

.service-panel.open,
.service-panel[aria-hidden="false"] {
  display: block;
}

.service-panel-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.service-left {
  width: 26%;
  padding-left: 12px;
}

.service-right {
  width: 80%;
  padding-right: 12px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.service-list-item {
  padding: 10px 6px;
}

.service-list-item a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Highlight left menu item on hover / focus / active */
.service-list-item:hover a,
.service-list-item:focus-within a,
.service-list-item.active a {
  color: var(--color-brand);
  font-weight: 600;
  transition: color 180ms ease, font-weight 180ms ease;
}



.service-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 6px;
}

/* Grouping helper: show/hide different pill groups */
.service-pills-group {
  display: none;
}

.service-pills-group.active {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 6px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  color: var(--color-nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.7125rem;
}

.service-pill:hover {
  background: #f8fafc;
  border-color: var(--color-border);
  color: var(--color-brand);
}

/* Add a small leading icon in the pill to match design */
/* Icon support:
   - Preferred: put an <img class="pill-icon" src="..."> as the first child inside the .service-pill anchor.
   - Alternative: use CSS variable on the element: style="--pill-icon: url('path/to/icon.svg');" and add the class `icon-css` to the pill.
*/
.service-pill .pill-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background: #f3f4f6;
  object-fit: contain;
  display: inline-block;
}

.service-pill.icon-css::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background-color: #f3f4f6;
  background-image: var(--pill-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  margin-right: 8px;
}

.service-pill .pill-icon,
.service-pill.icon-css::before {
  margin-right: 8px;
}

/* Browse services (?url=service) — grid ổn định, không lệch hàng như flex-wrap */
.services-catalog-grid.service-pills-group.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 14px;
  padding: 8px 0 20px;
  align-items: stretch;
}

.services-catalog-grid .service-pill {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
}

.services-catalog-grid .service-pill .pill-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .services-catalog-grid.service-pills-group.active {
    grid-template-columns: 1fr;
  }
}

/* Tweak overall panel typography */
.service-panel,
.service-panel * {
  font-family: var(--font-sans);
  color: var(--color-text-main);
}

.category-header-mobile {
  display: none;
  /* Hidden by default (desktop) */
}

/* Responsive: mobile & tablet (iPad) adjustments */
@media (max-width: 900px) {

  /* Flow in document for predictable placement under toggle */
  .service-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 12px);
    width: min(640px, 95vw);
    max-height: 520px;
    overflow-y: auto;
    margin: 0;
    border-radius: 16px;
    padding: 12px 0;
    box-shadow: 0 12px 40px rgba(18, 22, 30, 0.15);
    border: 1px solid var(--color-border-strong);
    z-index: 9999;
    background: #ffffff;
  }

  .service-panel-inner {
    flex-direction: column;
    gap: 8px;
    padding: 6px 12px 12px;
    align-items: stretch;
  }

  .service-left,
  .service-right {
    width: 100%;
    padding: 0 6px;
  }

  .service-list {
    display: block;
    padding: 0;
    margin-bottom: 6px;
  }

  .service-list-item {
    padding: 8px 6px;
  }

  .service-list-item a {
    display: inline-block;
    font-size: 0.95rem;
    padding: 6px 2px;
  }

  .service-pills {
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 2px 10px;
  }

  .service-pill {
    padding: 9px 12px;
    font-size: 0.775rem;
    border-radius: 10px;
    min-height: 38px;
  }

  .service-pill .pill-icon {
    width: 16px;
    height: 16px;
  }
}

/* iPad Air (portrait 820px) – restore desktop two-column layout */
@media (min-width: 768px) and (max-width: 900px) {
  .service-panel {
    width: min(720px, 95vw);
    max-height: none;
    overflow-y: visible;
    padding: 5px 0;
  }

  .service-panel-inner {
    flex-direction: row;
    gap: 18px;
    padding: 6px 12px 12px;
    align-items: flex-start;
  }

  .service-left {
    width: 26%;
    padding: 0 6px;
  }

  .service-right {
    width: 80%;
    padding: 0 6px;
  }

  .service-list-item a {
    font-size: 0.85rem;
    padding: 0;
  }

  .service-list-item {
    padding: 10px 6px;
  }

  .service-pills {
    gap: 10px;
    padding: 8px 6px;
  }

  .service-pill {
    padding: 7px 12px;
    font-size: 0.7125rem;
    border-radius: 5px;
    min-height: unset;
  }
}

/* iPad / small desktop tweaks */
@media (min-width: 901px) and (max-width: 1220px) {
  .service-panel {
    width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 14px;
    padding: 14px 0;
  }

  .service-panel-inner {
    gap: 12px;
  }

  .service-pill {
    padding: 8px 12px;
  }
}

/* Mobile-specific popup style (small anchor dropdown) */
@media (max-width: 600px) {
  .service-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    width: 240px;
    max-width: calc(100% - 28px);
    max-height: 380px;
    /* Fixed suitable height per request */
    overflow-y: auto;
    /* Scroll if content is longer */
    border-radius: 12px;
    padding: 10px 6px;
    box-shadow: 0 8px 25px rgba(18, 22, 30, 0.12);
    border: 1px solid #FFEDC2;
    z-index: 9999;
    background: #ffffff;
    scrollbar-width: thin;
    /* Subtle scrollbar for Firefox */
    scrollbar-color: #f1f1f1 transparent;
  }

  /* Custom scrollbar for Chrome/Safari */
  .service-panel::-webkit-scrollbar {
    width: 4px;
  }

  .service-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .service-panel::-webkit-scrollbar-thumb {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .service-panel-inner {
    display: block;
    padding: 4px 6px;
  }

  .service-left {
    width: 100%;
    padding: 6px 6px;
    border-bottom: 1px solid #f6f7f8;
    margin-bottom: 6px;
  }

  .service-list {
    margin: 0;
    padding: 0;
  }

  .service-list-item {
    padding: 2px 0;
  }

  .service-list-item a {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.85rem;
    line-height: 1.05;
  }

  /* Stack pills as vertical menu items */
  .service-right {
    width: 100%;
    padding: 4px 6px;
  }

  /* Grid pills in dropdown */
  .service-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px;
  }

  .service-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
    background: #ffffff;
    color: var(--color-text-main);
    font-size: 0.7rem;
    text-decoration: none;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
  }

  .service-pill:hover {
    background: rgba(0, 0, 0, 0.02);
  }

  .service-pill .pill-icon {
    width: 14px;
    height: 14px;
    background: transparent;
    padding: 0;
    border-radius: 6px;
    object-fit: contain;
    display: inline-block;
  }

  /* Specific refinements for compact mobile panel (multi-category or single list) */
  .panel-compact.service-panel {
    width: 280px;
    /* Slightly wider for longer names if needed */
  }

  .panel-compact .service-left {
    display: none;
    /* Hide category menu, show all in right side */
  }

  .panel-compact .service-right {
    padding: 2px 4px;
  }

  .panel-compact .service-pills-group {
    display: block !important;
    margin-bottom: 4px;
  }

  .panel-compact .service-pills {
    display: block;
    /* 1-column list for compact dropdown */
  }

  .panel-compact .category-header-mobile {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-heading);
    padding: 10px 8px 4px;
    border-bottom: 1px solid #f9f9f9;
    margin-bottom: 4px;
  }

  .panel-compact .service-pill {
    border: 0;
    background: transparent;
    padding: 6px 8px;
    margin: 1px 0;
  }

  .panel-compact .service-pill:hover {
    background: #f8fafc;
  }
}

.service-toggle {
  cursor: pointer;
  background: transparent;
  border: 0;
}

.dropdown-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  display: block;
}

.card-label {
  display: block;
  font-size: 0.775rem;
  color: var(--color-nav-text);
  margin-top: 4px;
}

/* Row style for the smaller Image Enhancement dropdown */
.dropdown-menu-row {
  display: flex;
  gap: 12px;
  min-width: 420px;
  padding: 12px;
}

/* Tweak grid spacing and centering */
.dropdown-menu-grid {
  grid-auto-rows: min-content;
  gap: 12px;
  align-items: start;
  justify-items: center;
}

/* ================================================================
   Site header mega-menu (design: white panel, cards, 3-col grid)
   Beats generic .dropdown-item from photourgent_client/style.css
   ================================================================ */
.site-header .header-nav .nav-dropdown > .dropdown-menu {
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 5px;
  box-shadow: 0 20px 50px rgba(18, 22, 30, 0.14), 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-top: 10px;
  z-index: 1080;
}

.site-header .header-nav .dropdown-menu.dropdown-menu-row {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  min-width: 480px;
  max-width: 720px;
  padding: 5px 8px !important;
}

.site-header .header-nav .dropdown-menu.dropdown-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: min-content;
  min-width: 480px;
  max-width: 800px;
  padding: 22px 28px !important;
  gap: 5px 8px !important;
  align-items: start;
  justify-items: center;
}

.site-header .header-nav .dropdown-menu .dropdown-item.dropdown-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100%;
  max-width: 200px;
  margin: 0;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  white-space: normal !important;
  text-align: center;
  text-decoration: none;
  color: #4a3434 !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.35;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.site-header .header-nav .dropdown-menu .dropdown-item.dropdown-card:first-child,
.site-header .header-nav .dropdown-menu .dropdown-item.dropdown-card:last-child {
  border-radius: 12px !important;
}

.site-header .header-nav .dropdown-menu .dropdown-item.dropdown-card:hover {
  background-color: #f3f4f6 !important;
  color: #4a3434 !important;
}

.site-header .header-nav .dropdown-menu .dropdown-item.dropdown-card:hover .card-label {
  color: #4a3434 !important;
}

.site-header .header-nav .dropdown-menu .dropdown-card img {
  width: 100%;
  max-width: 172px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block !important;
  flex-shrink: 0;
}

.site-header .header-nav .dropdown-menu .card-label {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #4a3434 !important;
  text-align: center;
  max-width: 172px;
}

/* ================================================================
   DROPDOWN MENUS (Mobile Navigation)
   ================================================================ */

.mobile-nav-dropdown {
  position: relative;
  width: 100%;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  background: #f9fafb;
  border-left: 3px solid var(--color-brand);
  padding-left: 0;
}

.mobile-nav-dropdown.active .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-dropdown-item {
  display: block;
  padding: 12px 20px;
  margin-left: 12px;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.mobile-dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--color-brand);
  padding-left: 20px;
  margin-left: 12px;
  transition: padding-left 150ms ease;
}

/* ================================================================
   IMAGE COMPARISON SLIDER ( .hsv-media-compare [data-compare] )
   - img-before  : full-width base image (image 1, left side revealed when handle right)
   - img-after   : overlay image clipped by clip-path (image 2, left side revealed when handle left)
   - compare-divider : vertical white line at handle position
   - compare-handle  : draggable icon centered on the divider
   ================================================================ */

.hsv-card-new {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hsv-content-new {
  padding: 20px 24px 24px;
}

/* === Compare container === */
.hsv-media-compare {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  user-select: none;
  cursor: ew-resize;
  aspect-ratio: 4 / 3;
}

/* both images fill the container */
.hsv-media-compare .compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* img-before: always fully visible (sits below) */
.hsv-media-compare .img-before {
  z-index: 1;
}

/* img-after: clipped overlay on top – JS controls clip-path */
.hsv-media-compare .img-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
  /* default: 50% → after image shows right half only */
}

/* === Divider line === */
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  /* JS will update */
  transform: translateX(-50%);
  width: 2px;
  background: #ffffff;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* === Handle bubble === */
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  /* JS will update */
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
}

.hsv-media-compare.is-dragging .compare-handle {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* ================================================================
   INDEX2 – Single Exposure service detail page
   (Scoped so global .hero-* rules don't break this layout)
   ============================================================ */

.breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.8125rem;
}

.breadcrumb-link:hover {
  color: var(--color-brand);
}

/* Section: full width inside container, two-column grid */
.service-detail-hero {
  width: 100%;
  margin-bottom: 40px;
}

.service-detail-hero .service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

@media (max-width: 991px) {
  .service-detail-hero .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.service-detail-left {
  min-width: 0;
  width: 100%;
}

.service-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 16px;
}

.service-detail-icon {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  flex-shrink: 0;
}

.service-detail-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 8px;
  transition: max-height 0.3s ease-out;
}

.service-detail-desc.collapsed {
  max-height: 3.2em;
  /* 2 lines * 1.6 line-height */
  overflow: hidden;
}

.service-detail-show-more {
  display: none;
  /* Hidden by default, script will show if needed */
  background: none;
  border: none;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  margin-bottom: 24px;
  position: relative;
  text-decoration: none;
}

.service-detail-show-more::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.service-detail-show-more:hover::after {
  width: 100%;
}

.service-detail-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.ideal-for-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

.ideal-for-list li {
  margin-bottom: 4px;
}

.service-detail-includes-text {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

/* Right column: carousel */
.service-detail-right {
  position: relative;
  width: 100%;
  min-width: 0;
}

.service-detail-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  width: 100%;
  height: 400px;
}

.service-detail-carousel .hero-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
}

.service-detail-carousel .hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  overflow: hidden;
  display: block;
}

.service-detail-carousel .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-carousel .hero-prev-btn,
.service-detail-carousel .hero-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.service-detail-carousel .hero-prev-btn {
  left: 8px;
}

.service-detail-carousel .hero-next-btn {
  right: 8px;
}

.service-detail-carousel .hero-prev-btn .icon {
  transform: rotate(180deg);
}

.service-detail-carousel .hero-next-btn .icon,
.service-detail-carousel .hero-prev-btn .icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.service-detail-carousel .hero-prev-btn:hover,
.service-detail-carousel .hero-next-btn:hover {
  background: var(--color-brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.service-detail-carousel .hero-prev-btn:hover .icon,
.service-detail-carousel .hero-next-btn:hover .icon {
  filter: brightness(0) invert(1);
}

/* Single_Exposure (service-detail-right): remove hover effect */
.service-detail-right .service-detail-carousel .hero-prev-btn:hover,
.service-detail-right .service-detail-carousel .hero-next-btn:hover {
  background: transparent;
  box-shadow: none;
}

.service-detail-carousel .hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.service-detail-carousel .hero-dots .dot.active {
  background: #fff;
}

@media (max-width: 991px) {
  .service-detail-right {
    margin-top: 0;
  }

  .service-detail-carousel {
    height: auto;
  }

  .service-detail-carousel .hero-slide {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .service-detail-carousel .hero-slide {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

/* Grouped Accordion Styles */
.sdl-accordions-group {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}

.sdl-accordion {
  border: none !important;
}

.sdl-accordion:not(:last-child) {
  border-bottom: 1px solid var(--color-border) !important;
}

.sdl-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
  gap: 8px;
}

.sdl-accordion-btn:hover {
  color: var(--color-brand);
}

.sdl-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sdl-accordion-btn[aria-expanded="true"] .sdl-chevron {
  transform: rotate(180deg);
}

.sdl-accordion-body {
  padding: 0 16px 16px;
}

/* ================================================================
   SD-COMPARE – Before / After comparison slider inside carousel
   ================================================================ */

.sd-compare {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border-radius: 10px;
}

.sd-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  /* Let clicks pass through to container */
}

.sd-layer--before {
  z-index: 1;
}

.sd-layer--after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

.sd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #ffffff;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.sd-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  /* Higher than badges and author */
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  /* Explicitly enable for handle */
  border-radius: 50%;
  background: none;
  /* SVG has the circle */
  box-shadow: none;
  /* SVG has the shadow */
}

.sd-handle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sd-badge {
  position: absolute;
  top: 8px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  z-index: 10;
  letter-spacing: 0.01em;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sd-badge--before {
  left: 8px;
}

.sd-badge--after {
  right: 8px;
}

@media (min-width: 992px) {
  .service-detail-right {
    margin-top: -36px;
  }
}

/* Author Credit */
.sd-author {
  position: absolute;
  bottom: 8px;
  left: 0px;
  padding: 8px 14px 10px 10px;
  z-index: 5;
  /* Lower than handle/badges */
  color: #fff;
  pointer-events: none;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  width: auto;
  max-width: 80%;
  box-sizing: border-box;
}

.sd-author-label {
  font-size: 0.6875rem;
  opacity: 0.8;
  margin-bottom: 2px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sd-author-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  /* Enable clicks */
  transition: opacity 0.2s ease;
}

.sd-author-link:hover {
  opacity: 0.85;
}

.sd-author-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 1.5px solid #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.sd-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ensure the slide itself fills its area properly */
.service-detail-carousel .hero-slide {
  display: flex;
  align-items: stretch;
}

@media (min-width: 577px) {
  .filter-pill--service-page {
    max-width: min(52rem, calc(100% - 32px));
  }
}

@media (max-width: 576px) {
  .filter-pill--service-page {
    max-width: 420px;
  }
}

.matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.matches-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.matches-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.matches-sort-label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

.matches-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.matches-sort-select {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  padding: 6px 36px 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  /* hide native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* custom up/down chevron icon positioned to the right */
.matches-sort-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M5 6l3-3 3 3H5z'/%3E%3Cpath d='M5 10l3 3 3-3H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.editors-grid--matches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 0;
  flex-direction: row;
  overflow: visible;
  scroll-snap-type: none;
}

@media (max-width: 1024px) {
  .editors-grid--matches {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .editors-grid--matches {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .editors-grid--matches {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    /* hide scrollbar but keep scroll */
    scrollbar-width: none;
  }

  .editors-grid--matches::-webkit-scrollbar {
    display: none;
  }

  .editors-grid--matches .editor-card {
    flex: 0 0 75vw;
    min-width: 230px;
    max-width: 300px;
    scroll-snap-align: start;
  }
}

.editors-grid--matches .editor-card {
  flex: none;
  min-width: 0;
  max-width: 100%;
  height: auto;
}

/* Typography per design: card names 16–18px, prices 16–18px bold */
.editors-grid--matches .editor-name {
  font-size: 1rem;
  font-weight: 700;
}

.editors-grid--matches .price .label {
  font-size: 0.75rem;
  color: #6b7280;
}

.editors-grid--matches .price .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* ============================================================
   Header hardening: keep shared header dimensions consistent
   across pages even when utility classes are mixed in.
   ============================================================ */

.site-header {
  --header-height: 72px;
  box-sizing: border-box;
  height: var(--header-height);
  min-height: var(--header-height);
  max-height: var(--header-height);
  overflow: visible;
}

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header>.header-inner {
  height: 100%;
  min-height: var(--header-height);
  max-height: var(--header-height);
  padding-top: 0;
  padding-bottom: 0;
}

.site-header .logo-wrap,
.site-header .header-nav,
.site-header .d-flex.align-items-center {
  align-items: center;
}

.site-header .nav-pill,
.site-header .btn-pill {
  line-height: 1.2;
}

@media (max-width: 768px) {
  .site-header {
    --header-height: 56px;
  }
}

@media (max-width: 576px) {
  .site-header {
    --header-height: 52px;
  }
}

@media (max-width: 576px) {
  .site-header {
    --header-height: 52px;
  }
}

/* ================================================================
   EDITOR PROFILE PAGE (Editor_list_service.html)
   ============================================================ */

.profile-layout {
  display: flex;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .profile-layout {
    flex-direction: column;
    gap: 32px;
  }

  .profile-sidebar,
  .profile-sidebar-inner {
    display: contents;
  }

  .profile-card {
    order: 0;
  }

  .profile-main {
    order: 1;
  }

  .sidebar-reviews {
    order: 2;
  }
}

/* Sidebar */
.profile-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
}

@media (max-width: 1024px) {
  .profile-sidebar {
    width: 100%;
    position: static;
  }
}

.profile-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 160ms ease;
}

.action-btn:hover {
  background: #f9f9f9;
}

.action-btn .icon {
  width: 14px;
  height: 14px;
}

.wishlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wishlist-btn .icon {
  width: 14px;
  height: 14px;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 44px 18px 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  border: 1px solid var(--color-border);
}

.profile-card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 4px 10px;
  font-size: 0.8875rem;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
}

.btn-action-pill svg {
  width: 13px;
  height: 13px;
  color: #f59e0b;
}

.btn-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5f5;
}

.btn-action-icon svg {
  width: 14px;
  height: 14px;
}

.profile-avatar-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verified-icon {
  width: 16px;
  height: 16px;
}

.auto-accept-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdfaf8;
  border: 1px solid var(--color-brand);
  color: var(--color-brand);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.profile-rating .stars {
  display: flex;
  gap: 2px;
}

.profile-rating .star {
  width: 12px;
  height: 12px;
  filter: brightness(0) saturate(100%) invert(79%) sepia(77%) saturate(748%) hue-rotate(356deg) brightness(101%) contrast(101%);
}

.rating-score {
  font-weight: 700;
  color: #FFBB00;
  font-size: 0.8125rem;
}

.review-count {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.profile-stats {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.5875rem;
}

.stat-value {
  color: var(--color-heading);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-value .flag {
  width: 16px;
  height: 12px;
}

/* Sidebar Reviews */
.sidebar-reviews {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reviews-filter-header {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 18px;
  row-gap: 12px;
  margin-left: 6px;
  justify-items: start;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.form-select-sm {
  border-radius: 8px;
  border-color: var(--color-border);
  font-size: 0.75rem;
  color: var(--color-heading);
  padding: 6px 28px 6px 12px;
  background-color: #f7f8fa;
  width: 120px;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-select-sm:focus,
.form-select:focus {
  border: 1px solid #000000;
  box-shadow: none;
  outline: none;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-left: 6px;
}

.review-item {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 14px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.reviewer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8edf7;
  color: #4b6bfb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.reviewer-avatar--c {
  background: #fff7ed;
  color: #ea580c;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-heading);
}

.review-date {
  font-size: 0.625rem;
  color: var(--color-muted);
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.review-rating .star {
  width: 10px;
  height: 10px;
  filter: brightness(0) saturate(100%) invert(79%) sepia(77%) saturate(748%) hue-rotate(356deg) brightness(101%) contrast(101%);
}

.review-qty {
  font-size: 0.625rem;
  color: var(--color-muted);
}

.review-content {
  font-size: 0.75rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin: 0;
}

.next-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  width: auto;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  align-self: flex-start;
  margin-left: 6px;
}

@media (max-width: 576px) {
  .reviews-filter-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
}

/* Main Content Area */
.profile-main {
  flex: 1;
  min-width: 0;
}

.section-title-large {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 14px;
}

.service-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tab-item {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  transition: all 160ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tab-item.active {
  color: var(--color-heading);
  border-bottom-color: #FFBB00;
}

.tab-item:hover:not(.active) {
  color: var(--color-heading);
}

.tab-item .count {
  background: #f1f3f7;
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.tab-item.active .count {
  background: #FFBB00;
  color: #fff;
}

/* Service Detail Cards Grid */
.service-grid-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.service-detail-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  width: 100%;
  height: auto;
}

.service-detail-card.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .service-grid-detail {
    grid-template-columns: 1fr;
  }

  .service-detail-card {
    width: 100%;
    height: auto;
  }
}

.sdc-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  cursor: ew-resize;
  display: flex;
}

.sdc-media .sd-compare {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.sdc-media .service-detail-carousel {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: stretch;
}

.sdc-media .service-detail-carousel .hero-track,
.sdc-media .service-detail-carousel .hero-slide {
  height: 100%;
}

.sdc-media .service-detail-carousel .hero-slide {
  display: flex;
}

.sdc-media .sd-divider {
  transform: translateX(-50%);
  margin-left: 0;
}

.sdc-media .sd-handle {
  width: 28px;
  height: 28px;
  margin-top: -2px;
}

.sdc-media .service-detail-carousel .hero-prev-btn,
.sdc-media .service-detail-carousel .hero-next-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sdc-media .service-detail-carousel .hero-prev-btn {
  left: 10px;
}

.sdc-media .service-detail-carousel .hero-next-btn {
  right: 10px;
}

.sd-badge.is-hidden {
  opacity: 0;
}

.sdc-media .sdc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sdc-media .compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.sdc-media .img-after {
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}

.sdc-media .compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.sdc-media .compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.badge-before,
.badge-after {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  z-index: 2;
}

.badge-after {
  left: auto;
  right: 12px;
}

.sdc-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sdc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.sdc-title-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
}

.sdc-title-row {
  display: contents;
}

.sdc-icon {
  width: 30px;
  height: 30px;
  color: var(--color-brand);
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  grid-row: 1 / span 2;
  align-self: center;
}

.sdc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
  grid-column: 2;
}

.whats-included {
  font-size: 0.6875rem;
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
  grid-column: 2;
}

.whats-included:hover {
  text-decoration: underline;
}

.sdc-price-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sdc-price-wrap .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
}

.sdc-price-wrap .unit {
  font-size: 0.625rem;
  color: var(--color-muted);
  font-weight: 500;
}

.sdc-stats {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.sdc-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sdc-stats .label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  white-space: nowrap;
}

.sdc-stats .value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.sdc-stats .value small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-muted);
}

.icon-info {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  opacity: 0.5;
}

.btn-start-order {
  background: var(--color-brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.6875rem;
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 160ms ease;
  cursor: pointer;
}

.btn-start-order:hover {
  background: #e66e13;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 125, 38, 0.2);
}

.sdc-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  flex-wrap: nowrap;
}

@media (min-width: 576px) {
  .sdc-footer {
    flex-direction: row;
  }
}

/* Order modal (Image Enhancement) */
.order-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.order-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.order-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.order-dialog {
  position: relative;
  width: min(555px, calc(100% - 32px));
  max-height: calc(100vh - (var(--header-height, 72px) + 24px));
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(48px);
  transition: transform 260ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.order-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  z-index: 2;
}

.order-hero {
  position: relative;
  padding: 18px 20px 20px;
  min-height: 120px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.order-modal.open .order-dialog {
  opacity: 1;
  transform: translateY(0);
}

.order-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.25)), url("../images/Imagesct01.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.order-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-hero-content h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.order-hero-link {
  color: #e5e7eb;
  font-size: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-hero-link:hover {
  text-decoration: underline;
}

.order-editor-pill {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.order-editor-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.order-body {
  padding: 18px 20px 22px;
  overflow: auto;
}

@media (min-width: 1200px) {
  .order-dialog {
    height: min(855px, calc(100vh - (var(--header-height, 72px) + 16px)));
    max-height: calc(100vh - (var(--header-height, 72px) + 16px));
  }

  .order-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
}

.order-service-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.order-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f4;
}

.order-service-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.order-service-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
}

.order-service-price {
  font-size: 0.75rem;
  color: #6b7280;
}

.order-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.qty-input {
  width: 48px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}

.order-addons-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 10px;
}

.order-addons-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.order-addons-header span {
  font-size: 0.6875rem;
  color: #6b7280;
}

.addon-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}

.addon-item input {
  margin-top: 3px;
}

.addon-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
}

.addon-desc {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 4px;
}

.addon-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .order-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 24px);
  }

  .order-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-service-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .sdc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-start-order {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .sdc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sdc-stats {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .sdc-stats .stat {
    min-width: 120px;
  }

  .btn-start-order {
    align-self: flex-start;
    margin-top: 2px;
  }
}

/* Login modal */
body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.login-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.login-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.login-dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  background: #ffffff;
  border-radius: 2px;
  padding: 28px 28px 24px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.2);
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 240ms ease, transform 260ms ease;
  will-change: opacity, transform;
  margin-top: -80px;
}

.login-modal.open .login-backdrop {
  opacity: 1;
}

.login-modal.open .login-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
  z-index: 2;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #111827;
}

.login-subtitle {
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-subtitle a {
  color: #1d4ed8;
  text-decoration: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form label {
  font-size: 0.9rem;
  color: #111827;
  font-weight: 600;
}

.login-form input,
.login-form select {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  color: inherit;
  font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
  border: 1px solid black;
  background: #ffffff;
}

.login-forgot {
  align-self: flex-end;
  font-size: 0.85rem;
  color: #1d4ed8;
  text-decoration: none;
  margin: 4px 0 10px;
}

.login-submit {
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.register-dialog {
  width: min(540px, calc(100% - 32px));
}

.auth-panels {
  position: relative;
  min-height: 580px;
}

.auth-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.auth-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.register-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-terms {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #374151;
}

.register-terms a {
  color: #1d4ed8;
  text-decoration: none;
}

.login-divider {
  margin: 18px 0 14px;
  text-align: center;
  position: relative;
  color: #9ca3af;
  font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.login-divider span {
  background: #ffffff;
  padding: 0 10px;
}

.login-social {
  width: 100%;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.login-social-facebook {
  background: #4267b2;
  border-color: #4267b2;
  color: #ffffff;
}

.social-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-icon-img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.facebook-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

.facebook-icon {
  width: 16px;
  height: 16px;
  color: #1877f2;
  display: block;
  transform: translateY(0.5px);
}

.social-icon.google {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.social-icon.facebook {
  background: #ffffff;
  color: #4267b2;
}

@media (max-width: 600px) {
  .login-dialog {
    width: calc(100% - 24px);
    padding: 50px 16px 45px;
    margin-top: -170px;
  }

  .auth-panels {
    min-height: 520px;
  }

  .login-title {
    font-size: 1.35rem;
  }

  .login-form input,
  .login-form select {
    padding: 8px 12px;
  }

  .login-submit {
    padding: 9px 14px;
  }

  .login-social {
    padding: 9px 10px;
  }

  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .login-modal[data-auth-mode="register"] .login-title {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .login-modal[data-auth-mode="register"] .login-form {
    gap: 6px;
  }

  .login-modal[data-auth-mode="register"] .register-grid {
    gap: 8px;
  }

  .login-modal[data-auth-mode="register"] .login-divider {
    margin: 12px 0 10px;
  }

  .login-modal[data-auth-mode="register"] .register-terms {
    margin-top: 8px;
    font-size: 0.85rem;
  }

  .login-modal[data-auth-mode="register"] .login-social {
    padding: 8px 10px;
  }
}

.login-modal[data-auth-mode="register"] .register-terms {
  margin-top: 8px;
  font-size: 0.85rem;
}

.login-modal[data-auth-mode="register"] .login-social {
  padding: 8px 10px;
}

/* -----------------------------------------------------------------
   Auth split pages (forgot password / set new password)
   ----------------------------------------------------------------- */
.auth-split-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: #ffffff;
  color: #111827;
}

.auth-split-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-split-form-col {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #ffffff;
}

.auth-split-form-inner {
  width: 100%;
  max-width: 400px;
}

.auth-split-heading {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.auth-split-lead {
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.auth-split-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

.auth-split-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-split-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-split-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-split-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

.auth-split-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-split-input::placeholder {
  color: #9ca3af;
}

.auth-split-input:focus {
  outline: none;
  border-color: #111827;
  background: #ffffff;
}

.auth-split-submit {
  margin-top: 8px;
  width: 100%;
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-split-submit:hover {
  background: #000000;
}

.auth-split-footer-link-wrap {
  margin: 24px 0 0;
  text-align: center;
}

.auth-split-back-link {
  font-size: 0.88rem;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.auth-split-back-link:hover {
  text-decoration: underline;
}

.auth-split-muted {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.5;
}

.auth-split-muted a {
  color: #1d4ed8;
  text-decoration: none;
}

.auth-split-muted a:hover {
  text-decoration: underline;
}

.auth-split-brand-col {
  flex: 1 1 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #f3f4f6;
  border-left: 1px solid #e5e7eb;
}

.auth-split-brand-inner {
  text-align: center;
  max-width: 320px;
}

.auth-split-brand-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.auth-split-logo {
  display: block;
  max-width: min(220px, 100%);
  height: auto;
  margin: 0 auto;
}

.auth-split-tagline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  font-weight: 500;
}

@media (max-width: 900px) {
  .auth-split-page {
    flex-direction: column;
  }

  .auth-split-form-col {
    flex: 1 1 auto;
    min-height: auto;
    padding: 40px 24px 32px;
  }

  .auth-split-brand-col {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding: 36px 24px 48px;
  }
}