﻿.avatar-xl {
  width: 150px;
  height: 150px;
  border-radius: 20px;
}

.avatar-xl img {
  border-radius: 18px;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #4b5c6b;
  background: linear-gradient(180deg, #f4f8fb, #e9f1f7);
}

.profile-back {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.profile-head-name {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.profile-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.booking-price {
  font-size: 34px;
  font-weight: 700;
  margin: 6px 0 4px;
}

.booking-disclaimer {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
}

.detail-wrap {
  padding-top: 40px;
  padding-bottom: 60px;
}

.detail-col {
  width: 100%;
}

.detail-header-card {
  margin-bottom: 20px;
}

.detail-header-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.detail-main {
  flex: 1;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f1f3f6;
  color: #3e4a56;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.detail-pill-icon {
  font-size: 12px;
  line-height: 1;
}

.detail-pill-exp {
  background: #eef4f8;
  color: #334b5b;
}

.detail-pill-med {
  background: #eaf8ef;
  color: #256045;
}

.detail-pill-clients {
  background: #edf7ff;
  color: #1f5f8a;
}

.detail-pill-verified {
  background: #fff6e6;
  color: #8b6110;
}

.detail-pill-spec {
  background: #f3f1ff;
  color: #4e3f8f;
}

.detail-pill-format {
  background: #eef4f8;
  color: #334b5b;
}

.detail-subtitle {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.detail-card-gap {
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.detail-tags .badge-gray {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f1f3f6;
  border: none;
  color: #3e4a56;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.detail-tags .detail-pill,
.detail-formats .detail-pill {
  border: 1px solid rgba(57, 85, 106, .14);
}

.detail-formats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f1f3f6;
  border: none;
  color: #3e4a56;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.detail-social-link:hover,
.detail-social-link:focus-visible {
  background: #e6edf3;
  color: #2f3f4d;
  outline: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.portfolio-item {
  padding: 10px;
  text-decoration: none;
  color: inherit;
}

.portfolio-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.portfolio-file-fallback {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  border: 1px dashed var(--sub);
  background: #f8fbfd;
}

.empty-tight {
  padding: 40px;
}

.book-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--sub);
}

.book-notes-list {
  font-size: 12px;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fav-form {
  margin-top: 10px;
}

.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}

.metric-note {
  font-size: 12px;
  color: var(--dim);
}

.bio-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid);
}

.detail-badge {
  font-size: 13px;
  padding: 6px 16px;
}

.portfolio-type {
  font-size: 12px;
  color: var(--dim);
}

.portfolio-title {
  font-size: 13px;
}

.tab-pane {
  display: none;
}

.edu-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.edu-year {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 22px;
  color: var(--gold);
  min-width: 50px;
  font-weight: 700;
}

.edu-degree {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}

.edu-inst {
  font-size: 13px;
  color: var(--dim);
}

.edu-type {
  margin-top: 6px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
}

.review-date {
  font-size: 12px;
  color: var(--dim);
}

.gold-text {
  color: var(--gold);
}

.review-stars {
  color: var(--gold);
}

.review-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

.session-note {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 20px;
}

.followup-note {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
}

.slot-dates {
  margin-bottom: 16px;
}

.slot-date-row {
  margin-bottom: 12px;
}

.slot-date-label {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 6px;
}

.notes-area {
  min-height: 70px;
}

.complaint-area {
  min-height: 80px;
}

.empty-booking {
  padding: 20px;
}

.empty-booking-icon {
  font-size: 32px;
}
.sel-slot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f5f9fc 0%, #eef4f8 100%);
  border: 1px solid #d8e5ef;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(31, 74, 104, 0.08);
}

.sel-slot-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d8e5ef;
}

.sel-slot-date {
  font-size: 14px;
  font-weight: 700;
  color: #1f2e3a;
  line-height: 1.2;
  text-transform: capitalize;
}

.sel-slot-time {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.3px;
}

.sel-slot-dur {
  font-size: 13px;
  font-weight: 600;
  color: #3f5668;
  line-height: 1.1;
}

.sel-slot-date,
.sel-slot-time,
.sel-slot-dur {
  white-space: nowrap;
}

.sel-slot-time,
.sel-slot-dur {
  padding-left: 12px;
  border-left: 1px solid #d8e5ef;
}

.sel-slot-change {
  font-size: 12px;
  color: var(--mid);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  opacity: .72;
  margin-left: auto;
}

.sel-slot-change:hover {
  color: var(--gold);
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .sel-slot-card {
    gap: 10px;
  }

  .sel-slot-time,
  .sel-slot-dur {
    border-left: none;
    padding-left: 0;
  }

  .sel-slot-change {
    margin-left: 0;
    width: 100%;
  }
}

.center-msg {
  text-align: center;
  color: var(--dim);
}

.center-msg-md {
  padding: 20px;
  font-size: 14px;
}

.center-msg-sm {
  font-size: 12px;
  margin-top: 12px;
}

.register-link {
  color: var(--gold);
}

.center-msg-tight {
  padding: 16px;
  font-size: 14px;
}

.doc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.doc-lightbox.open {
  display: flex;
}

.doc-lightbox-content {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
}

.doc-lightbox-actions {
  margin-top: 10px;
  text-align: right;
}

.doc-lightbox-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2e3a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.doc-lightbox-open-link:hover,
.doc-lightbox-open-link:focus-visible {
  background: #fff;
  color: #16a34a;
  outline: none;
}

.doc-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

.doc-lightbox-frame {
  display: none;
  width: min(92vw, 1100px);
  height: min(86vh, 900px);
  border: none;
  border-radius: 12px;
  background: #fff;
}

.doc-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.portfolio-item {
  cursor: zoom-in;
}

@media (max-width: 960px) {
  .detail-stack {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .detail-wrap {
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .detail-header-row {
    gap: 18px;
  }

  .profile-head-name {
    font-size: clamp(28px, 5.6vw, 32px);
  }

  .detail-subtitle {
    font-size: 13px;
  }

  .metric-value {
    font-size: 26px;
  }

  .booking-price {
    font-size: 30px;
  }

  .bio-text {
    font-size: 14px;
  }

  .edu-year {
    font-size: 20px;
  }

  .edu-degree {
    font-size: 14px;
  }

  .review-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .avatar-xl {
    width: 108px;
    height: 108px;
  }

  .detail-header-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-main {
    min-width: 0;
  }

  .profile-head-name {
    font-size: clamp(20px, 6.6vw, 24px);
    line-height: 1.18;
  }

  .detail-title-row {
    gap: 6px;
    margin-bottom: 2px;
  }

  .profile-metrics {
    gap: 14px;
  }

  .metric-value {
    font-size: 23px;
  }

  .booking-price {
    font-size: 26px;
  }

  .detail-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .review-name {
    font-size: 13px;
  }

  .review-date {
    font-size: 11px;
  }

  .review-text {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .profile-head-name {
    font-size: clamp(18px, 7.2vw, 21px);
  }

  .metric-value {
    font-size: 21px;
  }

  .booking-price {
    font-size: 24px;
  }

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