.pro-profile-page,
.pro-profile-public-page {
  --pro-radius: 22px;
  --pro-border: #edf0f5;
  --pro-muted: #6b7280;
  --pro-soft: #f7f8fb;
  --pro-dark: #161b22;
  --pro-accent: #1f7aff;
}

.pro-profile-heading,
.pro-profile-public-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--pro-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid var(--pro-border);
  box-shadow: 0 18px 45px rgba(17, 24, 39, .06);
}

.pro-profile-heading h3,
.pro-profile-public-hero h1 {
  margin: 6px 0 8px;
}

.pro-profile-heading p,
.pro-profile-card-title p,
.pro-profile-public-contact-card p {
  margin: 0;
  color: var(--pro-muted);
  line-height: 1.55;
}

.pro-profile-kicker,
.pro-profile-public-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pro-muted);
}

.pro-profile-kicker span,
.pro-profile-public-label span,
.pro-profile-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #4f46e5 100%);
}

.pro-profile-menu-badge {
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
}

.pro-profile-heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pro-profile-alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ffe0a3;
  background: #fff8e8;
  color: #7a4b00;
}

.pro-profile-card,
.pro-profile-public-card {
  padding: 24px;
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border);
  background: #fff;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .04);
  margin-bottom: 18px;
}

.pro-profile-card-title {
  margin-bottom: 18px;
}

.pro-profile-card-title h4,
.pro-profile-public-card h3 {
  margin: 0 0 8px;
  font-weight: 800;
}

.pro-profile-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.pro-profile-counter-line,
.pro-profile-card small,
.pro-profile-upload small {
  display: block;
  margin-top: 8px;
  color: var(--pro-muted);
  font-size: 13px;
}

.pro-profile-photo-grid,
.pro-profile-public-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pro-profile-photo-item,
.pro-profile-public-gallery a {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--pro-soft);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--pro-border);
}

.pro-profile-photo-item img,
.pro-profile-public-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pro-profile-photo-delete,
.pro-profile-repeat-delete {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .76);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-profile-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pro-profile-switches {
  display: grid;
  gap: 12px;
}

.pro-profile-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 18px;
  background: var(--pro-soft);
}

.pro-profile-switch-row span {
  display: block;
  margin-top: 4px;
  color: var(--pro-muted);
  font-size: 13px;
}

.pro-profile-radio {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.pro-profile-radio label,
.pro-profile-checkbox-col label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.pro-profile-repeat-list {
  display: grid;
  gap: 14px;
}

.pro-profile-repeat-item {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--pro-border);
  background: var(--pro-soft);
}

.pro-profile-repeat-delete {
  top: 12px;
  right: 12px;
}

.pro-profile-sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--pro-border);
  box-shadow: 0 18px 40px rgba(17, 24, 39, .10);
}

.pro-profile-public-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pro-profile-public-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--pro-soft);
  border: 1px solid var(--pro-border);
  flex: 0 0 auto;
}

.pro-profile-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-profile-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pro-profile-public-text {
  line-height: 1.7;
  color: var(--pro-dark);
  white-space: normal;
}

.pro-profile-public-discounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-profile-public-discount {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
}

.pro-profile-public-discount-percent {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 800;
  margin-bottom: 10px;
}

.pro-profile-public-discount p,
.pro-profile-public-timeline-item p {
  margin: 8px 0 0;
  color: var(--pro-muted);
  line-height: 1.55;
}

.pro-profile-public-timeline {
  display: grid;
  gap: 18px;
}

.pro-profile-public-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.pro-profile-public-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--pro-accent);
  box-shadow: 0 0 0 6px #e8f1ff;
}

.pro-profile-muted,
.pro-profile-period {
  color: var(--pro-muted);
  font-size: 14px;
  margin-top: 3px;
}

.pro-profile-public-education {
  display: grid;
  gap: 14px;
}

.pro-profile-public-side {
  position: sticky;
  top: 20px;
}

.pro-profile-trust-list {
  display: grid;
  gap: 12px;
}

.pro-profile-trust-list div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

.pro-profile-trust-list i {
  font-size: 20px;
}

@media (max-width: 991px) {
  .pro-profile-heading,
  .pro-profile-public-hero,
  .pro-profile-card-title-row,
  .pro-profile-switch-row {
    flex-direction: column;
  }

  .pro-profile-photo-grid,
  .pro-profile-public-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pro-profile-public-discounts {
    grid-template-columns: 1fr;
  }

  .pro-profile-public-side {
    position: static;
  }
}

@media (max-width: 575px) {
  .pro-profile-heading,
  .pro-profile-card,
  .pro-profile-public-card,
  .pro-profile-public-hero {
    padding: 18px;
  }

  .pro-profile-photo-grid,
  .pro-profile-public-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-profile-sticky-actions,
  .pro-profile-public-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pro-profile-public-user {
    align-items: flex-start;
  }
}

/* v1.2 visual fixes */
.pro-profile-outline-btn {
  border: 1px solid #374151 !important;
  color: #111827 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pro-profile-outline-btn:hover {
  background: #111827 !important;
  color: #fff !important;
}

.pro-profile-white-btn {
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.pro-profile-white-btn:hover {
  background: #f8fafc !important;
}

.pro-profile-page .form-control,
.pro-profile-page input.form-control,
.pro-profile-page textarea.form-control,
.pro-profile-page select.form-control {
  background: #fff !important;
}

.pro-profile-page textarea[name="about"] {
  min-height: 300px;
}

.pro-profile-tall-textarea,
.pro-profile-page textarea[name="experience[description][]"] {
  min-height: 300px;
}

.pro-profile-choice {
  margin: 0;
  cursor: pointer;
}

.pro-profile-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pro-profile-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #9ca3af;
  background: #fff;
  color: #374151;
  font-weight: 700;
  transition: .15s ease;
}

.pro-profile-choice input:checked + span {
  border-color: #111827;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .18);
}

.pro-profile-upload-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(17, 24, 39, .08);
}

.pro-profile-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #1f7aff;
  transition: width .15s ease;
}

.pro-profile-photo-item.is-uploading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
}

.pro-profile-public-contact-card p {
  margin-bottom: 18px;
}

.pro-profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 6, 23, .88);
}

.pro-profile-lightbox.is-open {
  display: flex;
}

.pro-profile-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.pro-profile-lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
