:root {
  --primary: #00a8e8;
  --secondary: #00171f;
  --accent-warm: #ffd29e;
  --card-radius: 14px;
  --card-shadow: 0 8px 30px rgba(0, 23, 31, 0.08);
  --card-shadow-hover: 0 16px 40px rgba(0, 168, 232, 0.18);
  --text-body: var(--secondary);
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --surface-input: #ffffff;
  --surface-input-text: var(--secondary);
  --surface-input-border: rgba(0, 168, 232, 0.22);
  --surface-input-placeholder: #94a3b8;
  --surface-hero-input: #ffffff;
  --surface-hero-input-text: var(--secondary);
  --surface-hero-input-placeholder: #64748b;
}

/* فیلدهای فرم — کلاس پایه ui-field؛ aliasهای BEM برای سازگاری */
.ui-field,
.posts-hero__search-input,
.products-hero__search-input,
.blog-hero__search-input,
.search-form__input,
.lawyers-field__input,
.section-toolbar__input {
  box-sizing: border-box;
  background: var(--surface-hero-input);
  color: var(--surface-hero-input-text);
  border: 1px solid var(--surface-input-border);
  font-weight: 600;
  outline: none;
}

.ui-field::placeholder,
.posts-hero__search-input::placeholder,
.products-hero__search-input::placeholder,
.blog-hero__search-input::placeholder,
.search-form__input::placeholder,
.lawyers-field__input::placeholder,
.section-toolbar__input::placeholder {
  color: var(--surface-hero-input-placeholder);
  opacity: 1;
}

/* جستجوی Hero — ابعاد یکسان در همه صفحات */
.posts-hero__search-input,
.products-hero__search-input,
.blog-hero__search-input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  border-radius: 0.875rem;
  padding: 0 1rem;
  font-size: 1rem;
}

.posts-hero__search-input:focus,
.products-hero__search-input:focus,
.blog-hero__search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

:where(.content-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="image"]),
:where(.content-page) select,
:where(.content-page) textarea {
  color: var(--surface-input-text);
  background-color: var(--surface-input);
}

:where(.content-page) input::placeholder,
:where(.content-page) textarea::placeholder {
  color: var(--surface-input-placeholder);
  opacity: 1;
}

/* بدون حلقه/outline آبی هنگام فوکوس روی فیلدهای فرم */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  box-shadow: none !important;
}

/* ─── Section headings ─── */
.section-heading {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 2rem;
}
.section-heading__bar {
  width: 4px;
  border-radius: 4px;
}
.section-heading__bar--dark {
  background: #000;
  height: 2rem;
}
@media (min-width: 768px) {
  .section-heading__bar--dark {
    height: 3.5rem;
  }
}
.section-heading__bar--primary {
  background: var(--primary);
  height: 1.25rem;
}
@media (min-width: 768px) {
  .section-heading__bar--primary {
    height: 2.25rem;
  }
}
.section-heading__title {
  font-size: 18px;
  font-weight: bold;
}
@media (min-width: 768px) {
  .section-heading__title {
    font-size: 30px;
  }
}

.pub-section {
  max-width: 80rem;
  margin-inline: auto;
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  .pub-section {
    padding: 4rem 1.5rem;
  }
}

/* ─── Card grids ─── */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  justify-items: stretch;
  align-items: stretch;
}
.card-carousel .card-carousel__track.cards-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: unset !important;
  width: max-content !important;
  max-width: none !important;
}
@media (min-width: 768px) {
  .cards-grid {
    gap: 1.5rem;
  }
}
.cards-grid--lawyer {
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.cards-grid--product {
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.cards-grid--institute,
.cards-grid--ad {
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.cards-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
}
@media (min-width: 1024px) {
  .cards-grid--featured {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1280px) {
  .cards-grid--featured {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.875rem;
  }
}

/* ─── Featured landing sections ─── */
.featured-section {
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
}
.featured-section--lawyers {
  background: linear-gradient(165deg, #f0faff 0%, #fff 55%, #f8fdff 100%);
  border: 1px solid rgba(0, 168, 232, 0.12);
  box-shadow: 0 8px 32px rgba(0, 168, 232, 0.06);
}
.featured-section--migration:not(.landing-featured) {
  background: linear-gradient(165deg, #fffaf3 0%, #fff 50%, #fff9f0 100%);
  border: 1px solid rgba(255, 210, 158, 0.35);
  box-shadow: 0 8px 32px rgba(255, 180, 100, 0.08);
}
.featured-section--translation:not(.landing-featured) {
  background: linear-gradient(165deg, #f3fbff 0%, #fff 50%, #eef9ff 100%);
  border: 1px solid rgba(0, 168, 232, 0.14);
  box-shadow: 0 8px 32px rgba(0, 168, 232, 0.07);
}
.featured-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.featured-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.25);
}
.featured-section__cta:hover {
  background: #0177a5;
  transform: translateY(-1px);
  color: #fff;
}
.featured-section__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}
.featured-section .v-card {
  max-width: none;
}

/* ─── Base v-card (unified) ─── */
.v-card {
  --card-pad: 1rem;
  --card-gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  padding: 0;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 168, 232, 0.1);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.cards-grid .v-card {
  max-width: none;
}
.v-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
a.v-card {
  text-decoration: none;
  color: inherit;
}

/* Lawyer card */
.v-card--lawyer {
  min-height: 20rem;
  text-align: center;
  overflow: hidden;
}
.v-card-lawyer-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 0.875rem 0.625rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 168, 232, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #f6fcff 0%, #fff 100%);
  border-bottom: 1px solid rgba(0, 168, 232, 0.1);
  flex-shrink: 0;
}
.v-card-lawyer-avatar-wrap {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  flex-shrink: 0;
  border-radius: 50%;
}
.v-card-lawyer-avatar-wrap.card-anim-avatar {
  animation: cardAvatarRing 2.8s ease-in-out infinite;
}
.v-card-lawyer-avatar-wrap.card-anim-avatar--female {
  animation: cardAvatarRingPink 2.8s ease-in-out infinite;
}
.v-card--lawyer-female .v-card-lawyer-hero {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(244, 114, 182, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #fdf2f8 0%, #fff 100%);
  border-bottom-color: rgba(244, 114, 182, 0.1);
}
.v-card--lawyer-female .v-card-lawyer-avatar.avatar-img--photo {
  border-color: rgba(244, 114, 182, 0.22);
}
@media (min-width: 768px) {
  .v-card-lawyer-avatar-wrap {
    width: 6.75rem;
    height: 6.75rem;
  }
}
.v-card-lawyer-avatar,
.v-card-lawyer-avatar-wrap .avatar-svg--interactive {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.v-card-lawyer-avatar.avatar-img--photo {
  object-fit: cover;
  border: 3px solid rgba(0, 168, 232, 0.22);
  background: #fff;
}
.v-card-lawyer-avatar-wrap .avatar-svg--interactive {
  overflow: visible;
}
.v-card-lawyer-avatar-wrap .avatar-eyes {
  transition: transform 0.08s ease-out;
}
.v-card-lawyer-avatar-wrap .avatar-mouth--idle {
  opacity: 1;
  transition: opacity 0.22s ease;
}
.v-card-lawyer-avatar-wrap .avatar-mouth--smile {
  opacity: 0;
  transition: opacity 0.22s ease;
}
.v-card--lawyer:hover .avatar-mouth--idle {
  opacity: 0;
}
.v-card--lawyer:hover .avatar-mouth--smile {
  opacity: 1;
}
.v-card-lawyer-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 168, 232, 0.2);
  box-shadow: 0 2px 8px rgba(0, 23, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.v-card-lawyer-badge img {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
}
.v-card-lawyer-exp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.18);
  box-shadow: 0 2px 6px rgba(0, 168, 232, 0.07);
}
.v-card-lawyer-exp-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.v-card-lawyer-exp-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.2;
}
.v-card-lawyer-hero {
  overflow: hidden;
}
.v-card-midbox--lawyer {
  min-height: 3.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}
.v-card--lawyer .v-card-midbox-name {
  -webkit-line-clamp: 1;
  min-height: 1.4em;
  max-height: 1.4em;
  margin-bottom: 0.375rem;
}
.v-card-lawyer-specialty {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 168, 232, 0.06);
  width: 100%;
  max-width: 100%;
  transition: background 0.3s ease;
}
.v-card-available--pin {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: 0.5rem;
  z-index: 3;
  margin: 0;
  font-size: 0.625rem;
  padding: 0.125rem 0.4375rem;
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.cards-grid--stack {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cards-grid--stack .v-card {
  max-width: 100%;
}

/* Card body */
.v-card-midbox {
  padding: 0.625rem var(--card-pad) 0.375rem;
  text-align: center;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.v-card-midbox-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  transition: color 0.3s ease;
}
.v-card-available {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Card actions */
.v-card-btns {
  padding: 0 var(--card-pad) var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
.v-card-btns-row {
  display: flex;
  gap: var(--card-gap);
  width: 100%;
}
.v-card-btns--wrap {
  flex-wrap: wrap;
  flex-direction: row;
}
.v-card-btns--wrap .v-card-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 6.5rem;
}
.v-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  white-space: nowrap;
  width: 100%;
}
.v-card-btns-row .v-card-btn {
  flex: 1;
  width: auto;
}
.v-card-btn:hover {
  transform: translateY(-1px);
}
.v-card-btn--primary {
  background: var(--primary);
  color: #fff;
}
.v-card-btn--primary:hover {
  background: #0177a5;
  color: #fff;
}
.v-card-btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.v-card-btn--outline:hover {
  background: rgba(0, 168, 232, 0.08);
}
.v-card-btn--ghost {
  background: #fff5f5;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Product card */
.v-card--product {
  max-width: 17.5rem;
  min-height: 21.5rem;
}
.v-card-product-media {
  position: relative;
  height: 9.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: linear-gradient(160deg, #f0f9ff, #fff);
  border-bottom: 1px dashed rgba(0, 168, 232, 0.2);
  overflow: hidden;
  transition: background 0.35s ease;
}
.v-card-save-icon--overlay {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 23, 31, 0.12);
}
.v-card-product-img,
.v-card-product-placeholder {
  max-height: 100%;
  max-width: 100%;
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.v-card-product-img {
  object-fit: contain;
  border-radius: 0.5rem;
}
.v-card-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
}
.v-card-product-placeholder--brand {
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 168, 232, 0.1) 0%, transparent 42%),
    linear-gradient(145deg, #f8fcff 0%, #f3f6f8 100%);
}
.v-card-product-brand {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(0, 168, 232, 0.22);
  user-select: none;
  line-height: 1;
}
.v-card-product-brand-accent {
  color: rgba(0, 23, 31, 0.14);
}
.v-card-product-placeholder .category-icon {
  height: auto;
}
.v-card-product-placeholder .category-icon__svg {
  width: 4.5rem;
  height: 4.5rem;
}
.v-card-midbox--product {
  min-height: 5rem;
  text-align: right;
  align-items: stretch;
}
.v-card--product .v-card-midbox-name {
  text-align: right;
  min-height: 2.8em;
}
.v-card-product-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
  text-align: right;
}
.v-card-product-desc--empty {
  visibility: hidden;
}
.v-card-product-footer {
  padding: 0.375rem var(--card-pad) var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  flex-shrink: 0;
}
.v-card-product-price {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}
.v-card-product-price-val {
  font-size: 1rem;
  font-weight: 800;
}
.v-card-product-price-currency {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Institute card */
.v-card--institute {
  max-width: 20rem;
  min-height: 19.5rem;
}
.v-card-institute-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem var(--card-pad) 0;
  flex-shrink: 0;
}
.v-card-midbox--institute {
  padding-top: 0.5rem;
  min-height: 6.75rem;
}
.v-card-institute-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  background: rgba(0, 168, 232, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.35s ease;
}
.v-card-institute-icon svg {
  width: 2rem;
  height: 2rem;
}
.v-card-institute-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--accent-warm);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  flex-shrink: 0;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.3s ease;
}
.v-card-midbox--institute,
.v-card--institute .v-card-midbox {
  text-align: right;
  align-items: stretch;
}
.v-card--institute .v-card-midbox-name {
  text-align: right;
  min-height: 2.8em;
}
.v-card-institute-meta {
  font-size: 0.6875rem;
  color: #9ca3af;
  margin: 0 0 0.375rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 1.25rem;
}
.v-card-institute-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.65em;
}

/* Ad card */
.v-card--ad {
  max-width: 21.25rem;
  min-height: 17.5rem;
  position: relative;
}
.v-card-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem var(--card-pad) 0;
  flex-shrink: 0;
}
.v-card-ad-date {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.2;
}
.v-card-ad-save,
.v-card-save-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(0, 168, 232, 0.08);
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.v-card-ad-save:hover,
.v-card-save-icon:hover {
  background: rgba(0, 168, 232, 0.16);
  transform: scale(1.05);
}
.v-card-ad-save--active,
.v-card-save-icon--active {
  background: var(--primary);
  color: #fff;
}
.v-card-ad-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), #38bdf8);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, width 0.3s ease;
}
.v-card-midbox--ad {
  padding: 0.375rem calc(var(--card-pad) + 6px) 0.25rem var(--card-pad);
  text-align: right;
  align-items: stretch;
  min-height: 7rem;
}
.v-card--ad .v-card-midbox-name {
  text-align: right;
  min-height: 2.8em;
}
.v-card-ad-desc {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 6.4em;
  transition: color 0.3s ease;
}

/* ─── Card animations ─── */
@keyframes cardAvatarRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(0, 168, 232, 0); }
}
@keyframes cardAvatarRingPink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(244, 114, 182, 0); }
}
.card-anim-avatar {
  animation: cardAvatarRing 2.8s ease-in-out infinite;
}
.card-anim-avatar--female {
  animation: cardAvatarRingPink 2.8s ease-in-out infinite;
}

@keyframes cardExpPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.card-anim-exp {
  display: inline-block;
}

@keyframes cardPriceGlow {
  0%, 100% { color: var(--primary); text-shadow: none; }
  50% { color: #0177a5; text-shadow: 0 0 12px rgba(0, 168, 232, 0.35); }
}
.card-anim-price {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@keyframes cardInstituteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.card-anim-institute-icon {
  transition: transform 0.35s ease;
}

@keyframes cardAdShimmer {
  0% { opacity: 0.7; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.2); width: 5px; }
  100% { opacity: 0.85; filter: brightness(1); }
}
@keyframes cardProductLift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Hover-only inner animations (avatar ring stays always on) */
.v-card--lawyer:hover .card-anim-exp {
  animation: cardExpPulse 0.55s ease;
}
.v-card--lawyer:hover .v-card-lawyer-badge {
  transform: scale(1.08);
}
.v-card--lawyer:hover .v-card-lawyer-specialty {
  background: rgba(0, 168, 232, 0.12);
}
.v-card--lawyer:hover .v-card-available {
  transform: scale(1.04);
}
.v-card--product:hover .card-anim-price {
  animation: cardPriceGlow 0.65s ease;
}
.v-card--product:hover .v-card-product-img,
.v-card--product:hover .v-card-product-placeholder {
  animation: cardProductLift 0.55s ease;
}
.v-card--product:hover .v-card-product-media {
  background: linear-gradient(160deg, #e0f4ff, #fff);
}
.v-card--product:hover .v-card-midbox-name {
  color: var(--primary);
}
.v-card--institute:hover .card-anim-institute-icon {
  animation: cardInstituteFloat 0.7s ease;
  background: rgba(0, 168, 232, 0.16);
}
.v-card--institute:hover .v-card-institute-tag {
  transform: scale(1.05);
}
.v-card--ad:hover .card-anim-ad-accent {
  animation: cardAdShimmer 0.75s ease;
}
.v-card--ad:hover .v-card-ad-desc {
  color: #374151;
}

/* Category cards */
.category-card {
  background: linear-gradient(145deg, #f0f9ff 0%, #fff 100%);
  border: 1px solid rgba(0, 168, 232, 0.15);
  border-radius: var(--card-radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  width: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 168, 232, 0.18);
  border-color: var(--primary);
}
.category-card:hover .category-icon__svg {
  transform: scale(1.08);
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9rem;
}
.category-icon__svg {
  width: 5rem;
  height: 5rem;
  transition: transform 0.3s ease;
}
@media (max-width: 767px) {
  .category-icon { height: 5rem; }
  .category-icon__svg { width: 3.5rem; height: 3.5rem; }
}

/* Page hero */
.page-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.5rem 1rem 5rem;
  background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 50%, #38bdf8 100%);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-hero--lawyers {
  min-height: 380px;
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .page-hero--lawyers { min-height: 420px; }
}
.page-hero__title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
  .page-hero__title { font-size: 1.875rem; }
}
.page-hero__title span { color: #e0f2fe; }
.page-hero__search {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.page-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,50 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Phone mockup & illustrations */
.phone-mockup:not(.phone-mockup--rich) {
  width: 260px;
  height: 480px;
  background: var(--secondary);
  border-radius: 2rem;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 23, 31, 0.25);
}
.phone-mockup__notch {
  width: 80px;
  height: 22px;
  background: var(--secondary);
  border-radius: 0 0 12px 12px;
  margin: -4px auto 8px;
}
.phone-mockup__screen {
  background: #f8fafc;
  border-radius: 1.5rem;
  height: calc(100% - 20px);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-mockup__bar { height: 8px; width: 40%; background: var(--primary); border-radius: 4px; opacity: 0.6; }
.phone-mockup__hero { height: 80px; background: linear-gradient(135deg, var(--primary), #38bdf8); border-radius: 10px; }
.phone-mockup__cards { display: flex; gap: 6px; flex: 1; }
.phone-mockup__cards span { flex: 1; background: #e2e8f0; border-radius: 8px; border-top: 3px solid var(--primary); }
.phone-mockup__btn { height: 32px; background: var(--primary); border-radius: 8px; }
.illus { display: flex; justify-content: center; align-items: center; }
.illus-earth--desktop { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
.illus-earth--mobile { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.trust-banner {
  background: var(--accent-warm);
  padding: 2.5rem 0;
}
.trust-banner__img {
  width: min(16rem, 40vw);
  height: auto;
  object-fit: contain;
  display: block;
}
/* Testimonial cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
  align-items: stretch;
  min-width: 0;
}
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.12);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 16rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-stack .testimonial-card:hover {
  transform: none;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.testimonial-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.testimonial-card__meta {
  min-width: 0;
  flex: 1;
}
.testimonial-card__client {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-card__time {
  font-size: 0.6875rem;
  color: #9ca3af;
}
.testimonial-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__star {
  font-size: 1rem;
  line-height: 1;
}
.testimonial-card__quote {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f0f9ff, #fff);
  border: 1px solid rgba(0, 168, 232, 0.1);
  margin-top: auto;
}
.testimonial-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 168, 232, 0.2);
  flex-shrink: 0;
}
.testimonial-card__lawyer {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.testimonial-card__lawyer-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.testimonial-card__lawyer-spec {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.testimonial-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.2);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.testimonial-card__link:hover {
  background: var(--primary);
  color: #fff;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-fade-up { animation: fadeUp 0.7s ease-out both; }
.animate-float { animation: float 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .card-anim-avatar,
  .card-anim-avatar--female,
  .v-card--lawyer:hover .card-anim-exp,
  .v-card--product:hover .card-anim-price,
  .v-card--product:hover .v-card-product-img,
  .v-card--product:hover .v-card-product-placeholder,
  .v-card--institute:hover .card-anim-institute-icon,
  .v-card--ad:hover .card-anim-ad-accent,
  .animate-fade-up,
  .animate-float {
    animation: none !important;
  }
  .v-card:hover { transform: none; }
  .v-card--lawyer:hover .v-card-lawyer-badge,
  .v-card--lawyer:hover .v-card-available,
  .v-card--institute:hover .v-card-institute-tag {
    transform: none;
  }
}

/* ─── Site header & footer (shared chrome) ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 168, 232, 0.1);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 23, 31, 0.08);
}
.site-header__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo,
.site-header__logo-img {
  width: 48px;
  height: 48px;
  border-radius: 0.625rem;
  padding: 0.15rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-header__logo {
  background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.35);
}

.site-header__name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
.site-header__name span { color: var(--primary); }
.site-header__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .site-header__nav { display: flex; }
}
.site-header__link {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-header__link:hover {
  color: var(--primary);
  background: rgba(0, 168, 232, 0.08);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header__search {
  display: none;
  align-items: center;
  position: relative;
}
@media (min-width: 1024px) {
  .site-header__search { display: flex; }
}
.site-header__search input {
  width: 10rem;
  padding: 0.4375rem 2rem 0.4375rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--surface-input-border);
  background: var(--surface-input);
  color: var(--surface-input-text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: width 0.3s, border-color 0.2s, box-shadow 0.2s;
}

.site-header__search input::placeholder {
  color: var(--surface-input-placeholder);
  opacity: 1;
}
.site-header__search input:focus {
  outline: none;
  width: 13rem;
  border-color: var(--primary);
}
.site-header__search-icon {
  position: absolute;
  left: 0.625rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}
.site-header__lang {
  display: none;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 168, 232, 0.25);
  background: transparent;
  cursor: pointer;
}
@media (min-width: 768px) {
  .site-header__lang { display: inline-flex; }
}
.site-header__btn {
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.site-header__btn--ghost {
  color: var(--primary);
  border: 1.5px solid rgba(0, 168, 232, 0.35);
  background: #fff;
}
@media (max-width: 480px) {
  .site-header__btn--ghost { display: none; }
}
.site-header__btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #0090c8 100%);
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.3);
}
.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  color: var(--secondary, #00171f);
}

.site-header__menu-btn img {
  display: none;
}

.sidebar-toggle.active .site-header__menu-icon {
  color: #fff;
}

.site-header__menu-icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
@media (min-width: 768px) {
  .site-header__menu-btn { display: none; }
}
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #00171f 0%, #002a38 100%);
  color: #fff;
  padding-top: 5rem;
  margin-top: 3rem;
}
.site-footer__wave {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-99%);
}
.site-footer__wave svg { width: 100%; height: 4rem; display: block; }
.site-footer__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0 1.5rem 0;
}
.site-footer__story {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__story-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer__story-title::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.site-footer__story-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.85;
  opacity: 0.8;
  max-width: 48rem;
  margin: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
}
.site-footer__enamad {
  height: 5rem;
  background: #fff;
  border-radius: var(--card-radius);
  padding: 0.25rem;
  display: none;
}
@media (min-width: 768px) {
  .site-footer__enamad { display: block; }
}
.site-footer__newsletter-label {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.site-footer__newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer__newsletter-input {
  flex: 1 1 12rem;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8125rem;
}
.site-footer__newsletter-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.site-footer__newsletter-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.site-footer__social-label {
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-align: right;
}
.site-footer__social {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
}
.site-footer__social-link {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.site-footer__social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #fff;
}
.site-footer__social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.site-footer__enamad-mobile {
  height: 5rem;
  background: #fff;
  border-radius: var(--card-radius);
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .site-footer__enamad-mobile { display: none; }
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.7;
  flex-wrap: wrap;
  justify-content: space-around;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.site-footer__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.site-footer__links a:hover { color: var(--primary); }
.site-footer__copy { text-align: center; flex: 1; display: contents;}

/* ─── Modern footer refresh ─── */
.site-footer--modern {
  overflow: hidden;
  isolation: isolate;
}
.site-footer__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.site-footer__glow--a {
  width: 24rem;
  height: 24rem;
  top: 4rem;
  right: -8rem;
  background: rgba(0, 168, 232, 0.2);
}
.site-footer__glow--b {
  width: 18rem;
  height: 18rem;
  bottom: -6rem;
  left: -4rem;
  background: rgba(255, 210, 158, 0.14);
}
.site-footer--modern .site-footer__inner {
  position: relative;
  z-index: 1;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 2rem;
}
@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1.25fr 0.9fr;
  }
}
.site-footer__brand-card,
.site-footer__newsletter-card,
.site-footer__verify {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 0.875rem;
}
.site-footer__brand span span {
  color: var(--primary);
}
.site-footer__brand-logo,
.site-footer__brand-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

.site-footer__brand-logo {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 10px 24px rgba(0, 168, 232, 0.32);
}

.site-footer__brand-logo-img {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem;
  box-shadow: 0 8px 20px rgba(0, 168, 232, 0.22);
}
.site-footer__brand-card p,
.site-footer__newsletter-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  font-size: 0.875rem;
}
.site-footer__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.site-footer__trust-row span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.12);
  color: #dff7ff;
  border: 1px solid rgba(0, 168, 232, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
}
.site-footer__mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0 0 0.875rem;
}
.site-footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: color 0.2s, transform 0.2s;
}
.site-footer__col a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}
.site-footer__verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.site-footer__verify img {
  width: 6rem;
  height: auto;
  background: #fff;
  padding: 0.35rem;
  border-radius: 0.8rem;
}
.site-footer__signature {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid rgba(0, 168, 232, 0.32);
  overflow: hidden;
  isolation: isolate;
}
.site-footer__signature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: footerSignatureSweep 3.8s ease-in-out infinite;
}
.site-footer__signature::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(0, 168, 232, 0.15), rgba(139, 228, 255, 0.85), rgba(255, 210, 158, 0.55), rgba(0, 168, 232, 0.15));
  background-size: 240% 100%;
  animation: footerSignatureBorder 5s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.site-footer__signature span,
.site-footer__signature strong {
  position: relative;
  z-index: 1;
}
.site-footer__signature span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}
.site-footer__signature strong {
  font-size: 0.9rem;
  background: linear-gradient(90deg, #8be4ff 0%, #fff 45%, #ffd29e 70%, #8be4ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: footerSignatureShine 4s ease-in-out infinite;
}
@keyframes footerSignatureSweep {
  0%, 18% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}
@keyframes footerSignatureFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.18); }
  50% { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 168, 232, 0.2); }
}
@keyframes footerSignatureShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes footerSignatureBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

/* جلوگیری از فلش سایدبار خالی قبل از لود layout */
#profileDashboard.sidebar:empty,
#sidebar:empty,
#insSidebar:empty,
#shopSidebar:empty,
#clientSidebar:empty,
#adminDashboard:empty {
  display: none !important;
}

/* ─── Modern sidebars ─── */
:root {
  --sidebar-width: 16rem;
  --site-header-height: 4rem;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  height: auto;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100%;
  color: var(--text-body);
}


#sidebar.sidebar,
#clientSidebar.sidebar,
#shopSidebar.sidebar,
#insSidebar.sidebar,
#adminDashboard.sidebar,
#profileDashboard.sidebar {
  --tw-translate-x: 0 !important;
}

@media (min-width: 768px) {
  #sidebar.sidebar,
  #clientSidebar.sidebar,
  #shopSidebar.sidebar,
  #insSidebar.sidebar,
  #adminDashboard.sidebar,
  #profileDashboard.sidebar {
    position: fixed !important;
    top: var(--site-header-height) !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: var(--sidebar-width) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    translate: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 45;
    overflow: visible;
  }

  #sidebar > aside,
  aside#sidebar,
  #clientSidebar > aside,
  #shopSidebar > aside,
  #insSidebar.sidebar > aside,
  #insSidebar > aside,
  #adminDashboard > aside,
  #profileDashboard > aside,
  #profileDashboard aside.modern-sidebar {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-top: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: -6px 0 28px rgba(0, 23, 31, 0.07) !important;
  }
}

.modern-sidebar,
#profileDashboard > aside,
#profileDashboard aside.modern-sidebar,
#sidebar > aside,
aside#sidebar,
#clientSidebar > aside,
#shopSidebar > aside,
#insSidebar > aside,
#adminDashboard > aside {
  width: 100%;
  min-height: calc(100vh - var(--site-header-height));
  margin: 0;
  padding: 0.875rem;
  border-radius: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 168, 232, 0.13) 0%, transparent 11rem),
    rgba(255, 255, 255, 0.98) !important;
  border: none;
  border-left: 1px solid rgba(0, 168, 232, 0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.modern-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #003d52 55%, var(--primary));
  margin-bottom: 1rem;
}
.modern-sidebar__logo,
.modern-sidebar__logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

.modern-sidebar__logo {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.modern-sidebar__logo-img {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem;
}
.modern-sidebar__brand strong,
#sidebar .profile-info .font-bold,
#insSidebar .profile-info .font-bold,
#adminDashboard .profile-info .font-bold {
  display: block;
  font-weight: 900;
}
.modern-sidebar__brand small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  opacity: 0.8;
}
#sidebar > div:first-child,
aside#sidebar > div:first-child,
#clientSidebar aside > div:first-child,
#shopSidebar aside > div:first-child,
#insSidebar > div:first-child,
#adminDashboard aside > div:first-child {
  min-height: 6.5rem !important;
  height: auto !important;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--secondary), #003d52 60%, var(--primary)) !important;
  margin-bottom: 1rem;
  padding: 1rem !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
#sidebar nav,
aside#sidebar nav,
#clientSidebar nav,
#shopSidebar nav,
#insSidebar nav,
#adminDashboard nav,
.modern-sidebar__nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  padding: 0 !important;
  margin: 0 !important;
}
#sidebar nav a,
aside#sidebar nav a,
#clientSidebar nav a,
#shopSidebar nav a,
#insSidebar nav a,
#adminDashboard nav a,
.modern-sidebar__nav a {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem !important;
  border-radius: 0.9rem !important;
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid transparent;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  text-decoration: none;
  transition: transform 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}
#sidebar nav a:hover,
aside#sidebar nav a:hover,
#clientSidebar nav a:hover,
#shopSidebar nav a:hover,
#insSidebar nav a:hover,
#adminDashboard nav a:hover,
.modern-sidebar__nav a:hover {
  transform: translateX(-3px);
  color: var(--primary) !important;
  background: rgba(0, 168, 232, 0.08) !important;
  border-color: rgba(0, 168, 232, 0.18);
}
#sidebar nav a.bg-white,
aside#sidebar nav a.bg-white,
#clientSidebar nav a.bg-white,
#shopSidebar nav a.bg-white,
#insSidebar nav a.bg-white,
#adminDashboard nav a.bg-white,
.modern-sidebar__nav a.bg-white {
  color: var(--primary) !important;
  background: rgba(0, 168, 232, 0.12) !important;
  border-color: rgba(0, 168, 232, 0.22);
}
#sidebar nav a img,
aside#sidebar nav a img,
#clientSidebar nav a img,
#shopSidebar nav a img,
#insSidebar nav a img,
#adminDashboard nav a img,
.modern-sidebar__nav a img {
  width: 1.35rem !important;
  height: 1.35rem !important;
  object-fit: contain;
  flex-shrink: 0;
  filter: saturate(0.95);
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.2s;
}

.sidebar-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sidebar nav a:hover .sidebar-icon,
aside#sidebar nav a:hover .sidebar-icon,
#clientSidebar nav a:hover .sidebar-icon,
#shopSidebar nav a:hover .sidebar-icon,
#insSidebar nav a:hover .sidebar-icon,
#adminDashboard nav a:hover .sidebar-icon,
.modern-sidebar__nav a:hover .sidebar-icon,
#sidebar nav a.bg-white .sidebar-icon,
aside#sidebar nav a.bg-white .sidebar-icon,
#clientSidebar nav a.bg-white .sidebar-icon,
#shopSidebar nav a.bg-white .sidebar-icon,
#insSidebar nav a.bg-white .sidebar-icon,
#adminDashboard nav a.bg-white .sidebar-icon,
.modern-sidebar__nav a.bg-white .sidebar-icon {
  color: var(--primary, #00a8e8);
}
#sidebar nav a span,
aside#sidebar nav a span,
#clientSidebar nav a span,
#shopSidebar nav a span,
#insSidebar nav a span,
#adminDashboard nav a span,
.modern-sidebar__nav a span {
  white-space: nowrap;
}
.modern-sidebar__cta {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.1), rgba(255, 210, 158, 0.14));
  border: 1px solid rgba(0, 168, 232, 0.12);
}
.modern-sidebar__cta span {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.modern-sidebar__cta a {
  display: flex;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

#overlay {
  z-index: 90;
}

@media (max-width: 767px) {
  #profileDashboard.sidebar {
    position: fixed !important;
    top: var(--site-header-height) !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: var(--sidebar-width) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100;
    transition: transform 0.28s ease, visibility 0.28s ease;
    will-change: transform;
  }

  #profileDashboard.sidebar.sidebar-collapsed1:not(:empty) {
    display: block !important;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }

  #profileDashboard.sidebar:not(.sidebar-collapsed1) {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  #profileDashboard.sidebar.sidebar-collapsed1 {
    display: none !important;
  }
}

/* ─── Inner pages (legal, search, section) ─── */
.content-page {
  background: #f3f6f8;
  color: var(--secondary);
}
.content-page__main {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: 2rem 1.5rem 3rem;
  box-sizing: border-box;
}

.content-page > .content-page__main {
  padding-top: calc(var(--site-header-height) + 1.5rem);
}
.content-page__main--narrow {
  max-width: 48rem;
}
.content-page__card {
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 23, 31, 0.05);
}
@media (min-width: 768px) {
  .content-page__card {
    padding: 2.5rem 2.25rem;
  }
}
.content-page__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 0.5rem;
}
.content-page__lead {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.9;
  margin: 0 0 1.75rem;
}
.content-page__prose {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 2;
}
.content-page__prose h2 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 1.75rem 0 0.5rem;
}
.content-page__prose p {
  margin: 0 0 1rem;
}
.content-page__prose ul {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}
.content-page__prose li {
  margin-bottom: 0.35rem;
}
.content-page__section-head {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
}
.content-page__section-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.content-page__section-bar {
  width: 4px;
  border-radius: 4px;
}
.content-page__section-bar--dark {
  background: var(--secondary);
  height: 2rem;
}
.content-page__section-bar--primary {
  background: var(--primary);
  height: 1.25rem;
}
.content-page__section-bar--warm {
  background: #ff9f43;
  height: 1.5rem;
}
.search-results__block {
  margin-bottom: 2.5rem;
}
.search-results__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 168, 232, 0.15);
}
.search-results__empty {
  color: #94a3b8;
  font-size: 0.9375rem;
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
  border: 1px dashed rgba(0, 168, 232, 0.2);
}
.search-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
}
.search-form__input {
  flex: 1;
  height: 3rem;
  border-radius: 0.875rem;
  padding: 0 1rem;
  font-size: 1rem;
}
.search-form__input:focus {
  border-color: var(--primary);
}
.search-form__btn {
  height: 3rem;
  padding: 0 1.25rem;
  border-radius: 0.875rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.search-form__btn:hover {
  background: #0177a5;
}

/* ─── Section page (institutes / lawyers) ─── */
.section-page__main {
  padding-top: 2rem;
}
.section-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.75rem 1.5rem 4.5rem;
  overflow: hidden;
  color: #fff;
}
.section-hero--institute {
  background: linear-gradient(135deg, #0c4a6e 0%, #0891b2 42%, #0ea5e9 100%);
}
.section-hero--lawyer {
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 50%, #00a8e8 100%);
}
.section-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255, 210, 158, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.section-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 80rem);
  margin-inline: auto;
}
.section-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}
.section-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}
.section-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.section-hero__sep {
  opacity: 0.5;
}
.section-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.5rem;
}
.section-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.section-hero__lead {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0;
}
.section-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.section-hero__badge,
.section-hero__count {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.section-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C360,56 720,0 1080,28 C1260,42 1380,48 1440,38 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}
.section-filters {
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.12);
  border-radius: 1.125rem;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.04);
}
.section-filters__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.section-filters__label {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--secondary);
}
.section-filters__hint {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 600;
}
.section-filters__active-lawyer {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}
.section-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 168, 232, 0.2);
  background: #f8fbfd;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.section-filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.section-filter-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 168, 232, 0.28);
}
.section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-toolbar__search {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 18rem;
  max-width: 28rem;
}
.section-toolbar__input {
  flex: 1;
  height: 2.75rem;
  border-radius: 0.75rem;
  padding: 0 0.85rem;
  font-size: 1rem;
}
.section-toolbar__input:focus {
  border-color: var(--primary);
}
.section-toolbar__btn {
  height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.section-toolbar__btn:hover {
  background: #0a2a36;
}
.section-toolbar__status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}
.section-results__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
  background: #fff;
  border-radius: 1rem;
  border: 1px dashed rgba(0, 168, 232, 0.22);
  font-weight: 600;
}

/* ─── All Lawyers page ─── */
.lawyers-page {
  background: #f3f6f8;
}
.lawyers-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.5rem 1.25rem 5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 45%, #00a8e8 100%);
}
.lawyers-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 88% 65%, rgba(255, 210, 158, 0.14) 0%, transparent 42%);
  pointer-events: none;
}
.lawyers-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 72rem);
  margin-inline: auto;
}
.lawyers-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}
.lawyers-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}
.lawyers-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.lawyers-hero__sep {
  opacity: 0.5;
}
.lawyers-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.5rem;
}
.lawyers-hero__title {
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 0.65rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.lawyers-hero__title span {
  color: #bae6fd;
}
.lawyers-hero__lead {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.lawyers-hero__search {
  padding: 1.15rem 1.25rem;
  border-radius: 1.125rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 23, 31, 0.12);
}
.lawyers-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .lawyers-search-grid {
    grid-template-columns: 1.2fr 1fr 0.7fr;
  }
}
.lawyers-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lawyers-field__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.lawyers-field__input {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  border-color: rgba(255, 255, 255, 0.35);
  padding: 0 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lawyers-field__input:focus {
  border-color: var(--primary);
}
.lawyers-field__select {
  cursor: pointer;
}
.lawyers-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.lawyers-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 22px rgba(0, 168, 232, 0.32);
}
.lawyers-search-btn:hover:not(:disabled) {
  background: #0096d1;
  transform: translateY(-1px);
}
.lawyers-search-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.lawyers-reset-btn {
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.lawyers-reset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lawyers-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C360,56 720,0 1080,28 C1260,42 1380,48 1440,38 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}
.lawyers-main {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}
.lawyers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.lawyers-toolbar__heading {
  margin-bottom: 0;
}
.lawyers-toolbar__status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  text-align: left;
}
.lawyers-grid {
  min-height: 12rem;
}
.lawyers-grid .lawyers-empty,
.lawyers-grid .lawyers-empty--error {
  grid-column: 1 / -1;
}
.lawyers-skeleton-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 168, 232, 0.1);
  animation: lawyers-shimmer 1.4s ease-in-out infinite;
}
.lawyers-skeleton-card__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #e8f4fa 25%, #f4fafd 50%, #e8f4fa 75%);
  background-size: 200% 100%;
  margin-bottom: 0.75rem;
}
.lawyers-skeleton-card__line {
  height: 0.75rem;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #e8f4fa 25%, #f4fafd 50%, #e8f4fa 75%);
  background-size: 200% 100%;
  margin-bottom: 0.5rem;
}
.lawyers-skeleton-card__line--lg {
  width: 75%;
}
.lawyers-skeleton-card__line--sm {
  width: 45%;
  margin-bottom: 0;
}
@keyframes lawyers-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.lawyers-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px dashed rgba(0, 168, 232, 0.25);
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.04);
}
.lawyers-empty--error {
  border-color: rgba(239, 68, 68, 0.3);
  background: #fffafa;
}
.lawyers-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.08);
  color: var(--primary);
  margin-bottom: 1rem;
}
.lawyers-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
}
.lawyers-empty__hint {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.7;
}
.lawyers-empty__retry {
  margin-top: 1rem;
}
.lawyers-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.lawyers-pagination[hidden],
.lawyers-end-message[hidden],
.section-pagination[hidden],
.section-end-message[hidden] {
  display: none !important;
}
.section-pagination {
  margin-bottom: 2rem;
}
.section-end-message {
  margin-bottom: 2rem;
}
.lawyers-load-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 11rem;
  height: 3rem;
  padding: 0 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 28px rgba(0, 23, 31, 0.18);
  position: relative;
}
.lawyers-load-more__btn:hover:not(:disabled):not(.is-loading) {
  background: #0a2a36;
  transform: translateY(-2px);
}
.lawyers-load-more__btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}
.lawyers-load-more__btn.is-loading .lawyers-load-more__label {
  opacity: 0.85;
}
.lawyers-load-more__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lawyers-spin 0.7s linear infinite;
}
.lawyers-load-more__btn.is-loading .lawyers-load-more__spinner {
  display: block;
}
@keyframes lawyers-spin {
  to { transform: rotate(360deg); }
}
.lawyers-load-more__hint {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}
.lawyers-load-more__hint.is-error {
  color: #dc2626;
}
.lawyers-end-message {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 168, 232, 0.12);
}

/* ─── Product detail page ─── */
.product-page__main {
  padding-top: calc(var(--site-header-height) + 1rem);
}

.product-info-card {
  padding: 1.15rem 1.1rem;
  border-radius: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.product-info-card--accent {
  background: linear-gradient(145deg, #f0f9ff 0%, #fff 100%);
  border-color: rgba(0, 168, 232, 0.2);
}

.product-info-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--secondary);
}

.product-info-card__title--primary {
  color: var(--primary);
}

.product-info-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.85;
  color: #475569;
}

.product-info-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-info-card__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 0.75rem;
  margin: 0;
  align-items: start;
}

.product-info-card__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.product-info-card__value {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #334155;
}

.product-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 2rem 0 1rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: #eef2f6;
  border: 1px solid #e2e8f0;
}

.product-tabs__btn {
  flex: 1;
  min-height: 2.65rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-tabs__btn.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 23, 31, 0.06);
}

.product-panel {
  padding: 1.25rem 1.1rem;
  border-radius: 1.125rem;
  background: #fff;
  border: 1px solid #e8edf0;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.05);
}

.product-panel__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eef2f6;
}

.product-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

.product-panel__lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #64748b;
}

.product-panel__empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 600;
}

.product-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-reviews-list .comment-reportable {
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef2f6;
}

.product-reviews-list .comment-reportable:last-child {
  border-bottom: none;
}

.product-qa-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e8edf0;
}

.product-qa-form__label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
}

.product-qa-form__input {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dbe3ea;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.product-qa-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.12);
}

.product-qa-form__btn {
  align-self: flex-start;
  min-height: 2.65rem;
  padding: 0 1.15rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}

.product-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-similar__head {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-similar__bars {
  width: 0.2rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--secondary) 55%, var(--primary) 55%);
}

.product-similar__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

@media (max-width: 640px) {
  .product-info-card__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ─── Products catalog page ─── */
.products-page {
  background: #f3f6f8;
}
.products-page__main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.products-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.5rem 1.5rem 4.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #00171f 0%, #0a5f7f 45%, #00a8e8 100%);
  color: #fff;
}
.products-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 210, 158, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
  pointer-events: none;
}
.products-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 80rem);
  margin-inline: auto;
}
.products-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}
.products-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}
.products-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.products-hero__sep {
  opacity: 0.5;
}
.products-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.products-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
}
.products-hero__title span {
  color: #ffd29e;
}
.products-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}
.products-hero__search {
  display: flex;
  gap: 0.65rem;
  max-width: 36rem;
  margin-bottom: 1rem;
}
.products-hero__search-btn {
  height: 3rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.875rem;
  background: #ffd29e;
  color: #00171f;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.products-hero__search-btn:hover {
  background: #ffc87a;
}
.products-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.products-hero__stat {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.products-hero__stat--muted {
  background: rgba(0, 0, 0, 0.15);
}
.products-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C360,56 720,0 1080,28 C1260,42 1380,48 1440,38 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}
.products-categories {
  margin-bottom: 1.75rem;
}
.products-categories__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.products-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .products-categories__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .products-categories__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
.products-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 168, 232, 0.14);
  background: linear-gradient(145deg, #fff 0%, #f4fbff 100%);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  text-align: center;
}
.products-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 168, 232, 0.14);
  border-color: var(--primary);
}
.products-category-card.is-active {
  background: linear-gradient(145deg, #e8f7fd 0%, #fff 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(0, 168, 232, 0.2);
}
.products-category-card__icon {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products-category-card__icon .category-icon__svg {
  width: 3.25rem;
  height: 3.25rem;
}
.products-category-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.5;
}
.products-clear-filter {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.products-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.products-catalog__status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}
.products-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
}
.products-sort__select {
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid var(--surface-input-border);
  padding: 0 0.75rem;
  font-weight: 600;
  background: var(--surface-input);
  color: var(--surface-input-text);
  outline: none;
}
.products-catalog__grid {
  min-height: 12rem;
}
.products-catalog__loading,
.products-catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px dashed rgba(0, 168, 232, 0.2);
  color: #64748b;
  font-weight: 600;
}
.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.products-pagination__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 168, 232, 0.2);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.products-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.products-pagination__nums {
  display: flex;
  gap: 0.35rem;
}
.products-pagination__num {
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 168, 232, 0.15);
  background: #fff;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.products-pagination__num.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.products-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #fff8ef 0%, #fff 55%, #f0faff 100%);
  border: 1px solid rgba(255, 210, 158, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.products-cta__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--secondary);
}
.products-cta__body p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.8;
  max-width: 32rem;
}
.products-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.products-cta__btn:hover {
  background: #0a2a36;
  color: #fff;
}
@media (max-width: 520px) {
  .products-hero {
    padding: 1.5rem 1rem 3.25rem;
  }
  .products-hero__title {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1.4;
    max-width: 100%;
  }
  .products-hero__title span {
    color: #ffe8c8;
  }
  .products-hero__eyebrow {
    font-size: 0.75rem;
  }
  .products-hero__lead {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  .products-hero__search {
    flex-direction: column;
    max-width: none;
    gap: 0.55rem;
  }
  .products-hero__search-input {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
    font-size: 1rem;
    border-radius: 0.75rem;
    box-sizing: border-box;
  }
  .products-hero__search-btn {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
    background: var(--primary, #00a8e8);
    color: #fff;
    border-radius: 0.75rem;
    font-size: 0.9rem;
  }
  .products-hero__search-btn:hover {
    background: #0096d1;
  }
  .products-category-card__label {
    font-size: 0.6875rem;
  }
}

/* ─── Posts / classifieds page ─── */
.posts-page {
  background: #f3f6f8;
}
.posts-page__main {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}
.posts-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.5rem 1.5rem 4.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 45%, #00a8e8 100%);
  color: #fff;
}
.posts-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 85% 70%, rgba(255, 210, 158, 0.12) 0%, transparent 38%);
  pointer-events: none;
}
.posts-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 80rem);
  margin-inline: auto;
}
.posts-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}
.posts-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}
.posts-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.posts-hero__sep {
  opacity: 0.5;
}
.posts-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.posts-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
}
.posts-hero__title span {
  color: #ffd29e;
}
.posts-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}
.posts-hero__search {
  display: flex;
  gap: 0.65rem;
  max-width: 38rem;
  margin-bottom: 1rem;
}
.posts-hero__search-btn {
  height: 3rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.875rem;
  background: #fff;
  color: var(--secondary);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 22px rgba(0, 23, 31, 0.12);
}
.posts-hero__search-btn:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}
.posts-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.posts-hero__stat {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.posts-hero__stat--muted {
  background: rgba(0, 0, 0, 0.18);
}
.posts-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C360,56 720,0 1080,28 C1260,42 1380,48 1440,38 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}
.posts-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.posts-catalog__head {
  margin-bottom: 0 !important;
}
.posts-catalog__title {
  margin: 0 !important;
  font-size: 1.125rem !important;
}
.posts-catalog__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.posts-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
}
.posts-sort__select {
  height: 2.5rem;
  border-radius: 0.625rem;
  border: 1px solid var(--surface-input-border);
  padding: 0 0.65rem;
  font-weight: 600;
  background: var(--surface-input);
  color: var(--surface-input-text);
  cursor: pointer;
}
.posts-clear-filter {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.posts-topics {
  margin-bottom: 1rem;
}
.posts-topics__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.posts-topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 168, 232, 0.25);
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.posts-topic-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.posts-topic-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 168, 232, 0.28);
}
.posts-catalog__status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}
.posts-catalog__grid {
  min-height: 10rem;
}
.posts-catalog__grid .posts-empty {
  grid-column: 1 / -1;
}
.posts-skeleton-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(0, 168, 232, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.posts-skeleton-card__line {
  height: 0.7rem;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #e8f4fa 25%, #f4fafd 50%, #e8f4fa 75%);
  background-size: 200% 100%;
  animation: posts-shimmer 1.4s ease-in-out infinite;
}
.posts-skeleton-card__line--lg {
  width: 85%;
  height: 0.9rem;
}
.posts-skeleton-card__line--sm {
  width: 35%;
}
.posts-skeleton-card__btn {
  height: 2.25rem;
  border-radius: 0.5rem;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, #e8f4fa 25%, #f4fafd 50%, #e8f4fa 75%);
  background-size: 200% 100%;
  animation: posts-shimmer 1.4s ease-in-out infinite;
}
@keyframes posts-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.posts-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px dashed rgba(0, 168, 232, 0.28);
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.04);
}
.posts-empty--compact {
  padding: 2rem 1.25rem;
}
.posts-empty--error {
  border-color: rgba(239, 68, 68, 0.3);
  background: #fffafa;
}
.posts-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.08);
  color: var(--primary);
}
.posts-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
}
.posts-empty__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.7;
}
.posts-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}
.posts-empty__btn:hover {
  background: #0096d1;
}
.posts-pagination {
  margin-top: 2rem;
}
.posts-load-more__btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 168, 232, 0.32);
}
.posts-load-more__btn:hover:not(:disabled):not(.is-loading) {
  background: #0096d1;
  transform: translateY(-2px);
}
.posts-load-more__btn--saved {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 23, 31, 0.18);
}
.posts-load-more__btn--saved:hover:not(:disabled):not(.is-loading) {
  background: #0a2a36;
}
.posts-end-message {
  border-color: rgba(0, 168, 232, 0.15);
}
.posts-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #f0faff 0%, #fff 55%, #f8fdff 100%);
  border: 1px solid rgba(0, 168, 232, 0.2);
  box-shadow: 0 12px 36px rgba(0, 168, 232, 0.08);
}
.posts-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}
.posts-cta__body {
  flex: 1 1 14rem;
}
.posts-cta__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--secondary);
}
.posts-cta__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #64748b;
  font-weight: 600;
}
.posts-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.875rem;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 8px 22px rgba(0, 23, 31, 0.15);
}
.posts-cta__btn:hover {
  background: #0a2a36;
  transform: translateY(-2px);
}
.posts-saved {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 168, 232, 0.1);
}
.posts-saved__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.posts-saved__status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
}
.posts-saved__grid {
  min-height: 6rem;
}
.posts-saved__grid .posts-empty,
.posts-saved__grid .posts-saved-login {
  grid-column: 1 / -1;
}
.posts-saved-login {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px dashed rgba(0, 168, 232, 0.22);
}
.posts-saved-login p {
  margin: 0 0 1rem;
  font-weight: 600;
  color: #64748b;
}
.posts-saved-login__btn {
  display: inline-flex;
  height: 2.75rem;
  padding: 0 1.25rem;
  align-items: center;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.posts-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
.posts-modal--open {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 23, 31, 0.55);
  backdrop-filter: blur(4px);
}
.posts-modal::backdrop {
  background: rgba(0, 23, 31, 0.55);
  backdrop-filter: blur(4px);
}
.posts-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(92vw, 40rem);
  min-height: 20rem;
  max-height: min(90vh, 34rem);
  margin: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 23, 31, 0.25);
}
.posts-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.posts-modal__topbar-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.posts-modal__close,
.posts-modal__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.posts-modal__close:hover {
  background: #e2e8f0;
}
.posts-modal__icon-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}
.posts-modal__badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f7fd;
  color: #0e7490;
}
.posts-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.4;
}
.posts-modal__body {
  flex: 1 1 auto;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #475569;
  font-weight: 600;
  min-height: 9rem;
  max-height: 18rem;
  overflow-y: auto;
}
.posts-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: auto;
  flex-shrink: 0;
}
.posts-modal__btn {
  height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.posts-modal__btn--ghost {
  background: #f1f5f9;
  color: #475569;
}
.posts-modal__btn--ghost:hover {
  background: #e2e8f0;
}
.posts-modal__btn--primary {
  background: var(--primary);
  color: #fff;
}
.posts-modal__btn--primary:hover {
  background: #0096d1;
}
@media (max-width: 520px) {
  .posts-hero {
    padding: 1.5rem 1rem 3.25rem;
  }
  .posts-hero__search {
    flex-direction: column;
    max-width: none;
    gap: 0.55rem;
  }
  .posts-hero__search-input {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
    font-size: 1rem;
    box-sizing: border-box;
    border-radius: 0.75rem;
  }
  .posts-hero__search-btn {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
    border-radius: 0.75rem;
    font-size: 0.9rem;
  }
  .posts-cta {
    flex-direction: column;
    text-align: center;
  }
  .posts-cta__btn {
    width: 100%;
  }
}

/* ─── Blog listing & post detail ─── */
.blog-page__main {
  padding-top: 2rem;
}
.blog-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 2.75rem 1.5rem 5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #082f49 0%, #0c4a6e 28%, #0369a1 58%, #0284c7 100%);
  color: #fff;
  min-height: 420px;
}
.blog-hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blog-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.blog-hero__orb--1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  background: #38bdf8;
}
.blog-hero__orb--2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  background: #7dd3fc;
  opacity: 0.3;
}
.blog-hero__orb--3 {
  width: 140px;
  height: 140px;
  top: 35%;
  left: 42%;
  background: #e0f2fe;
  opacity: 0.2;
}
.blog-hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 85%);
  pointer-events: none;
}
.blog-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(224, 242, 254, 0.2) 0%, transparent 42%),
    radial-gradient(circle at 82% 65%, rgba(255, 255, 255, 0.1) 0%, transparent 38%);
  pointer-events: none;
}
.blog-hero__layout {
  position: relative;
  z-index: 2;
  width: min(100%, 80rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .blog-hero__layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }
}
.blog-hero__main {
  min-width: 0;
}
.blog-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}
.blog-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}
.blog-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.blog-hero__sep {
  opacity: 0.5;
}
.blog-hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0f2fe;
}
.blog-hero__badge--soft {
  background: rgba(186, 230, 253, 0.12);
  border-color: rgba(186, 230, 253, 0.25);
  color: rgba(255, 255, 255, 0.88);
}
.blog-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.blog-hero__title span {
  color: #7dd3fc;
  text-shadow: 0 0 40px rgba(125, 211, 252, 0.35);
}
.blog-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}
.blog-hero__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 40rem;
  margin-bottom: 1.25rem;
}
.blog-hero__search-icon {
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.blog-hero__search-btn {
  height: 3rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.875rem;
  background: #fff;
  color: #0369a1;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.blog-hero__search-btn:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}
.blog-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 40rem;
  margin-bottom: 1.25rem;
}
.blog-hero__stat {
  padding: 0.75rem 0.85rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.blog-hero__stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.blog-hero__stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}
.blog-hero__topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.blog-hero__topics-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.blog-hero__topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-topic-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.blog-topic-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}
.blog-topic-pill.is-active {
  background: #fff;
  border-color: #fff;
  color: #0369a1;
}
.blog-hero__active-filter {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #bae6fd;
}
.blog-hero__featured {
  min-width: 0;
}
.blog-hero__featured-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-hero__featured-link {
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 16px 48px rgba(0, 23, 31, 0.15);
}
.blog-hero__featured-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 56px rgba(0, 23, 31, 0.2);
}
.blog-hero__featured-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #bae6fd;
}
.blog-hero__featured-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}
.blog-hero__featured-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
}
.blog-hero__featured-excerpt {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}
.blog-hero__featured-cta {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #7dd3fc;
}
.blog-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C240,56 480,0 720,28 C960,48 1200,52 1440,40 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}
.blog-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.blog-catalog__head {
  margin-bottom: 0;
}
.blog-catalog__title {
  margin: 0;
  font-size: 1.125rem;
}
.blog-catalog__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.blog-clear-filter {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(0, 168, 232, 0.25);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-clear-filter:hover {
  background: #f0faff;
}
.blog-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
}
.blog-sort__select {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--surface-input-border);
  border-radius: 0.65rem;
  background: var(--surface-input);
  font-weight: 700;
  color: var(--surface-input-text);
  cursor: pointer;
}
.blog-catalog__status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.blog-pagination[hidden] {
  display: none;
}
.blog-pagination__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 168, 232, 0.2);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-pagination__btn:hover:not(:disabled) {
  background: #f0faff;
}
.blog-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.blog-pagination__nums {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-pagination__num {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 168, 232, 0.15);
  background: #fff;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.blog-pagination__num:hover:not(.is-active) {
  background: #f0faff;
  color: var(--primary);
}
.blog-pagination__num.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.blog-pagination__ellipsis {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
  color: #94a3b8;
  user-select: none;
}
.blog-end-message {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
}
.blog-end-message[hidden] {
  display: none;
}
.posts-empty__btn--ghost {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(0, 168, 232, 0.3);
  color: var(--primary);
}
.posts-empty__btn--ghost:hover {
  background: #f0faff;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: 1.125rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 23, 31, 0.08);
}
.blog-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  overflow: hidden;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #0369a1;
  opacity: 0.45;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.35rem;
  gap: 0.5rem;
}
.blog-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.blog-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--secondary);
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-card__title a:hover {
  color: var(--primary);
}
.blog-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.85;
  color: #64748b;
  flex: 1;
}
.blog-card__link {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.blog-card__link:hover {
  text-decoration: underline;
}
.blog-card--skeleton {
  pointer-events: none;
}
.blog-card__shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: posts-shimmer 1.4s ease infinite;
  border-radius: 0.5rem;
}
.blog-card__shimmer--line {
  height: 0.875rem;
  margin-bottom: 0.5rem;
}
.blog-card__shimmer--short {
  width: 55%;
}
.blog-empty {
  grid-column: 1 / -1;
}
.blog-post-page__main {
  padding-top: 6.5rem;
}
.blog-post__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.25rem;
}
.blog-post__breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.blog-post__breadcrumb a:hover {
  text-decoration: underline;
}
.blog-post {
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 23, 31, 0.05);
}
@media (min-width: 768px) {
  .blog-post {
    padding: 2.5rem 2.25rem;
  }
}
.blog-post__loading {
  margin: 0;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
.blog-post__header {
  margin-bottom: 1.5rem;
}
.blog-post__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.blog-post__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--secondary);
}
.blog-post__figure {
  margin: 0 0 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
}
.blog-post__img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-post__body p {
  margin: 0 0 1rem;
}
.blog-post__back {
  margin: 1.5rem 0 0;
  text-align: center;
}
.blog-post__back a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.blog-post__back a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .blog-hero {
    padding: 2.25rem 1rem 4rem;
    min-height: auto;
  }
  .blog-hero__stats {
    grid-template-columns: 1fr;
  }
  .blog-hero__search {
    flex-direction: column;
    max-width: none;
    gap: 0.55rem;
  }
  .blog-hero__search-icon {
    display: none;
  }
  .blog-hero__search-input {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
    border-radius: 0.75rem;
  }
  .blog-hero__search-btn {
    width: 100%;
    height: 2.75rem;
    min-height: 44px;
  }
  .blog-catalog__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-catalog__controls {
    justify-content: space-between;
  }
}

/* ─── Lawyer profile page ─── */
.lawyer-profile-page {
  background: #f3f6f8;
  min-height: 100vh;
}

.lawyer-profile-page #app {
  position: relative;
  z-index: 1;
}

.content-page #app,
.lawyers-page #app,
.posts-page #app,
.products-page #app,
.blog-page #app,
.blog-post-page #app {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.lawyer-profile-loading {
  margin-top: var(--site-header-height);
  padding: 2rem 1.25rem 3rem;
}

.lawyer-profile-skeleton {
  width: min(100%, 72rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lawyer-profile-skeleton__hero,
.lawyer-profile-skeleton__aside,
.lawyer-profile-skeleton__main {
  border-radius: 1.25rem;
  background: linear-gradient(90deg, #e8edf0 0%, #f4f7f9 50%, #e8edf0 100%);
  background-size: 200% 100%;
  animation: lawyer-profile-shimmer 1.4s ease-in-out infinite;
}

.lawyer-profile-skeleton__hero {
  height: 280px;
}

.lawyer-profile-skeleton__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .lawyer-profile-skeleton__grid {
    grid-template-columns: 320px 1fr;
  }
}

.lawyer-profile-skeleton__aside {
  min-height: 320px;
}

.lawyer-profile-skeleton__main {
  min-height: 360px;
}

@keyframes lawyer-profile-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.lawyer-profile-error {
  margin-top: var(--site-header-height);
  padding: 2rem 1.25rem 4rem;
}

.lawyer-profile-error__card {
  width: min(100%, 28rem);
  margin-inline: auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 23, 31, 0.08);
  text-align: center;
}

.lawyer-profile-error__card h1 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: var(--secondary);
}

.lawyer-profile-error__card p {
  margin: 0 0 1.25rem;
  color: #64748b;
  line-height: 1.8;
}

.lawyer-profile-hero {
  position: relative;
  margin-top: var(--site-header-height);
  padding: 1.75rem 1.25rem 4.5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 45%, #00a8e8 100%);
}

.lawyer-profile-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 88% 65%, rgba(255, 210, 158, 0.14) 0%, transparent 42%);
  pointer-events: none;
}

.lawyer-profile-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 72rem);
  margin-inline: auto;
}

.lawyer-profile-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}

.lawyer-profile-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}

.lawyer-profile-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.lawyer-profile-hero__sep {
  opacity: 0.5;
}

.lawyer-profile-hero__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 23, 31, 0.18);
}

@media (min-width: 768px) {
  .lawyer-profile-hero__card {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

.lawyer-profile-hero__media {
  position: relative;
  justify-self: center;
}

.lawyer-profile-hero__avatar {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background: #fff;
}

@media (min-width: 768px) {
  .lawyer-profile-hero__avatar {
    width: 10rem;
    height: 10rem;
  }
}

.lawyer-profile-badge {
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  border: 2px solid #fff;
}

.lawyer-profile-badge--available {
  background: #10b981;
  color: #fff;
}

.lawyer-profile-badge--busy {
  background: #f59e0b;
  color: #fff;
}

.lawyer-profile-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.lawyer-profile-hero__name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
}

.lawyer-profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.lawyer-profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.lawyer-profile-chip--specialty {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}

.lawyer-profile-chip--specialty:hover {
  background: #fff;
}

.lawyer-profile-chip--muted {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lawyer-profile-hero__tagline {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42rem;
}

.lawyer-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.lawyer-profile-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.lawyer-profile-stat dt {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.lawyer-profile-stat dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.lawyer-profile-stat__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.lawyer-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.lawyer-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.65rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.lawyer-profile-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 168, 232, 0.32);
}

.lawyer-profile-btn--primary:hover {
  background: #0096d1;
  transform: translateY(-1px);
}

.lawyer-profile-btn--secondary {
  background: #fff;
  color: var(--secondary);
}

.lawyer-profile-btn--secondary:hover {
  background: #f0f9ff;
}

.lawyer-profile-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.lawyer-profile-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lawyer-profile-btn--block {
  width: 100%;
}

.lawyer-profile-btn--sm {
  min-height: 2.25rem;
  padding: 0 0.85rem;
  font-size: 0.8rem;
}

.lawyer-profile-report-host button {
  color: #fecaca !important;
  border-color: rgba(254, 202, 202, 0.45) !important;
  background: transparent !important;
}

.lawyer-profile-report-host button:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}

.lawyer-profile-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f6f8' d='M0,28 C360,56 720,0 1080,28 C1260,42 1380,48 1440,38 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}

.lawyer-profile-main {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.lawyer-profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .lawyer-profile-layout {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }
}

.lawyer-profile-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lawyer-profile-card {
  padding: 1.25rem;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.06);
  border: 1px solid #e8edf0;
}

.lawyer-profile-card--contact {
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
  border-color: #cfeefe;
}

.lawyer-profile-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

.lawyer-profile-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: #475569;
}

.lawyer-profile-card--contact .lawyer-profile-card__text {
  margin-bottom: 1rem;
}

.lawyer-profile-card--contact .lawyer-profile-btn--primary {
  color: #fff;
}

.lawyer-profile-tabs-wrap {
  min-width: 0;
}

.lawyer-profile-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 0.85rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid #e8edf0;
  box-shadow: 0 4px 16px rgba(0, 23, 31, 0.04);
}

.lawyer-profile-tab {
  flex: 1;
  min-height: 2.5rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lawyer-profile-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 168, 232, 0.28);
}

.lawyer-profile-panel {
  padding: 1.25rem;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.06);
  border: 1px solid #e8edf0;
}

.lawyer-profile-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lawyer-profile-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

.lawyer-profile-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.85;
  color: #64748b;
}

.lawyer-profile-panel .lawyer-profile-btn--outline {
  color: var(--primary);
  border-color: #bae6fd;
  background: #f0f9ff;
}

.lawyer-profile-panel .lawyer-profile-btn--outline:hover {
  background: #e0f2fe;
}

.lawyer-profile-panel #profileReviewsListSummary,
.lawyer-profile-panel #profileReviewsList {
  margin-top: 0.5rem;
}

.lawyer-profile-panel .comment-reportable {
  padding: 1rem 0;
  border-bottom: 1px solid #e8edf0;
}

.lawyer-profile-panel .comment-reportable:last-child {
  border-bottom: none;
}

.lawyer-profile-similar {
  margin-top: 2rem;
}

.lawyer-profile-similar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lawyer-profile-similar__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--secondary);
}

.lawyer-profile-similar__more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.lawyer-profile-similar__more:hover {
  text-decoration: underline;
}

.lawyer-profile-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .lawyer-profile-stats {
    grid-template-columns: 1fr;
  }

  .lawyer-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lawyer-profile-actions .lawyer-profile-btn,
  .lawyer-profile-report-host {
    width: 100%;
  }

  .lawyer-profile-report-host button {
    width: 100%;
  }
}

/* ─── Auth pages (login / register) ─── */
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f3f6f8;
  color: var(--secondary, #00171f);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem 1rem 2.5rem;
}

@media (min-width: 640px) {
  .auth-main {
    align-items: center;
    padding: 2rem 1.25rem 3rem;
  }
}

.auth-card {
  width: min(100%, 28rem);
  padding: 1.35rem 1.15rem 1.5rem;
  border-radius: 1.125rem;
  background: #fff;
  border: 1px solid #e8edf0;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.06);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 1.75rem 1.5rem 2rem;
  }
}

.auth-card--wide {
  width: min(100%, 40rem);
}

.auth-card .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-card .auth-field {
  margin-bottom: 0;
}

.auth-card .auth-field-row {
  gap: 0.75rem;
}

.auth-card .auth-checkbox {
  margin: 0;
}

.auth-card .auth-form-footer {
  margin-top: 0.75rem;
}

.auth-card .auth-login-tabs {
  margin-bottom: 0.75rem;
}

.auth-card .auth-form-lead {
  margin: 0 0 0.75rem;
}

.auth-card .auth-form-title {
  margin-bottom: 0.65rem;
}

.auth-card .auth-otp-actions {
  gap: 0.75rem;
}

.auth-card .auth-otp-inputs {
  margin: 0.25rem 0;
}

.auth-card .auth-login-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-card .auth-otp-edit {
  margin: 0 0 0.25rem;
}

.auth-card .auth-back-btn {
  margin-bottom: 0.75rem;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e8edf0;
  box-shadow: 0 2px 12px rgba(0, 23, 31, 0.04);
}

.auth-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 900;
  color: var(--secondary, #00171f);
}

.auth-topbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #0e4f68, #00a8e8);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.auth-topbar__brand span span {
  color: var(--primary, #00a8e8);
}

.auth-topbar__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-topbar__links a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  transition: background 0.2s, color 0.2s;
}

.auth-topbar__links a:hover {
  background: #f0f9ff;
  color: var(--primary, #00a8e8);
}

.auth-topbar__links a.is-active {
  background: var(--primary, #00a8e8);
  color: #fff;
}

.auth-topbar__cta {
  background: var(--primary, #00a8e8) !important;
  color: #fff !important;
}

.auth-topbar__cta:hover {
  background: #0096d1 !important;
  color: #fff !important;
}

.auth-hero-band {
  position: relative;
  padding: 2rem 1.25rem 2.5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 45%, #00a8e8 100%);
}

.auth-hero-band__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 88% 65%, rgba(255, 210, 158, 0.14) 0%, transparent 42%);
  pointer-events: none;
}

.auth-hero-band__content {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  margin-inline: auto;
}

.auth-hero-band__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.65rem;
}

.auth-hero-band__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
}

.auth-hero-band__breadcrumb a:hover {
  text-decoration: underline;
}

.auth-hero-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
}

.auth-hero-band__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.auth-select-main {
  width: min(100%, 56rem);
  margin: -1.25rem auto 2.5rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.auth-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .auth-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auth-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.125rem;
  background: #fff;
  border: 1px solid #e8edf0;
  box-shadow: 0 8px 28px rgba(0, 23, 31, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.auth-role-card:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 14px 36px rgba(0, 168, 232, 0.14);
}

.auth-role-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 100%);
  color: var(--primary, #00a8e8);
  flex-shrink: 0;
}

.auth-role-card__icon-wrap svg {
  width: 1.55rem;
  height: 1.55rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-role-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--secondary, #00171f);
}

.auth-role-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #64748b;
}

.auth-select-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-select-footer a {
  color: var(--primary, #00a8e8);
  font-weight: 700;
  text-decoration: none;
}

.auth-select-footer a:hover {
  text-decoration: underline;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 3.5rem);
}

@media (min-width: 1024px) {
  .auth-shell {
    grid-template-columns: 42% 58%;
  }
}

.auth-shell__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #00171f 0%, #0e4f68 50%, #00a8e8 100%);
  overflow: hidden;
}

.auth-shell__hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 210, 158, 0.12) 0%, transparent 42%);
  pointer-events: none;
}

.auth-shell__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  text-align: center;
}

.auth-shell__hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.auth-shell__hero-title {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.auth-shell__hero-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.auth-shell__hero-continue {
  display: none;
  width: 100%;
  min-height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--secondary, #00171f);
  font-weight: 800;
  cursor: pointer;
}

.auth-shell__hero-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e0f2fe;
  text-decoration: none;
}

.auth-shell__hero-link:hover {
  text-decoration: underline;
}

.auth-shell__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  background: #fff;
}

.auth-shell__form {
  width: min(100%, 28rem);
}

.auth-shell__form--wide {
  width: min(100%, 40rem);
}

.auth-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f0f9ff;
  color: var(--primary, #00a8e8);
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-form-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--secondary, #00171f);
}

.auth-form-lead {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.85;
  color: #64748b;
}

.auth-field {
  margin-bottom: 0.85rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid #dbe3ea;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary, #00171f);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field textarea {
  min-height: 6rem;
  padding: 0.65rem 0.85rem;
  resize: vertical;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: var(--primary, #00a8e8);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.auth-field select[multiple] {
  min-height: 6.5rem;
  padding: 0.5rem;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .auth-field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .auth-field-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #475569;
  margin: 1rem 0;
}

.auth-checkbox input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary, #00a8e8);
}

.auth-checkbox a {
  color: var(--primary, #00a8e8);
  font-weight: 700;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.auth-btn--primary {
  background: var(--primary, #00a8e8);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 168, 232, 0.28);
}

.auth-btn--primary:hover:not(:disabled) {
  background: #0096d1;
  transform: translateY(-1px);
}

.auth-btn--outline {
  background: transparent;
  color: var(--primary, #00a8e8);
  border: 1px solid #bae6fd;
}

.auth-btn--outline:hover:not(:disabled) {
  background: #f0f9ff;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-form-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.auth-form-footer a {
  color: var(--primary, #00a8e8);
  font-weight: 700;
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

.auth-login-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.auth-login-tab {
  flex: 1;
  min-height: 2.5rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-login-tab.is-active {
  background: #fff;
  color: var(--primary, #00a8e8);
  box-shadow: 0 2px 8px rgba(0, 23, 31, 0.08);
}

.auth-login-panel[hidden] {
  display: none !important;
}

.auth-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  direction: ltr;
  margin: 1.25rem 0;
}

.auth-otp-inputs input {
  width: 2.75rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  border: 1px solid #dbe3ea;
  border-radius: 0.65rem;
  outline: none;
}

.auth-otp-inputs input:focus {
  border-color: var(--primary, #00a8e8);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.auth-otp-phone {
  font-weight: 800;
  color: var(--secondary, #00171f);
}

.auth-otp-edit {
  display: inline-block;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary, #00a8e8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-otp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-back-btn:hover {
  color: var(--primary, #00a8e8);
}

@media (max-width: 1023px) {
  .auth-shell__hero {
    min-height: 14rem;
    padding: 1.5rem 1rem;
  }

  .auth-shell__hero-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .auth-shell__form-wrap {
    display: none;
  }

  .auth-shell.auth-shell--show-form .auth-shell__hero {
    display: none;
  }

  .auth-shell.auth-shell--show-form .auth-shell__form-wrap {
    display: flex;
  }
}
