/* Public expert profile — premium indigo/teal (parity with center-page.css) */
.ep {
  --ep-ink: #0f172a;
  --ep-muted: #475569;
  --ep-soft: #64748b;
  --ep-line: #e2e8f0;
  --ep-line-strong: #c7d2fe;
  --ep-card: #fff;
  --ep-wash: #f8fafc;
  --ep-sage: #0f766e;
  --ep-sage-soft: #f0fdfa;
  --ep-primary: #3d5afe;
  --ep-indigo-soft: #eef2ff;
  --ep-radius: 20px;
  --ep-radius-sm: 14px;
  --ep-shadow: 0 6px 10px -2px rgba(15, 23, 42, .06), 0 18px 40px -12px rgba(61, 90, 254, .18);
  --ep-shadow-lg: 0 14px 28px -8px rgba(15, 23, 42, .1), 0 32px 64px -16px rgba(61, 90, 254, .22);
  --ep-ring: 0 0 0 1px rgba(61, 90, 254, .1), 0 0 0 5px rgba(61, 90, 254, .05);
}

.ep-page {
  background:
    radial-gradient(ellipse 90% 50% at 12% -8%, rgba(61, 90, 254, .11), transparent 55%),
    radial-gradient(ellipse 70% 40% at 92% 8%, rgba(15, 118, 110, .08), transparent 50%),
    linear-gradient(180deg, rgba(61, 90, 254, .05) 0%, rgba(248, 250, 252, .9) 42%, var(--ep-wash) 100%);
  padding: 0 0 3.5rem;
  overflow-x: hidden;
}
.ep-page .site-wrap { max-width: 1100px; }

.ep-crumb {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  font-size: .84rem; color: var(--ep-soft); padding: 1.35rem 0 .85rem;
}
.ep-crumb a { color: var(--ep-muted); text-decoration: none; font-weight: 600; }
.ep-crumb a:hover { color: var(--ep-primary); }
.ep-crumb span[aria-hidden] { opacity: .55; }

/* Hero */
.ep-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 1.75rem; align-items: start;
  margin: 0 0 1.5rem; padding: 1.7rem 1.8rem 1.8rem;
  background: linear-gradient(145deg, #fff 0%, #fff 28%, var(--ep-indigo-soft) 62%, #f0fdfa 100%);
  border: 1px solid rgba(199, 210, 254, .55); border-radius: 24px;
  box-shadow: var(--ep-shadow-lg), var(--ep-ring); position: relative; overflow: hidden;
}
.ep-hero::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 42%; height: 100%;
  background: radial-gradient(ellipse at 20% 30%, rgba(61, 90, 254, .07), transparent 70%);
  pointer-events: none;
}
.ep-hero > * { position: relative; z-index: 1; }

.ep-avatar {
  width: 128px; height: 128px; object-fit: cover; border-radius: 20px; flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px -8px rgba(61, 90, 254, .35), 0 0 0 1px rgba(199, 210, 254, .6);
  background: linear-gradient(145deg, var(--ep-indigo-soft), #e2e8f0);
}
.ep-avatar--placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #94a3b8;
}

.ep-hero-body { min-width: 0; }
.ep-kicker {
  margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: var(--ep-sage); text-transform: uppercase;
}
.ep-title-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .75rem; margin-bottom: .35rem;
}
.ep-name {
  margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2; color: var(--ep-ink); word-break: break-word;
}
.ep-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ep-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .28rem .7rem;
  border-radius: 999px; font-size: .72rem; font-weight: 750; white-space: nowrap;
  border: 1px solid transparent;
}
.ep-badge--verified {
  background: var(--ep-indigo-soft); color: #3730a3; border-color: var(--ep-line-strong);
  box-shadow: 0 1px 2px rgba(61, 90, 254, .06);
}
.ep-badge--featured {
  background: linear-gradient(135deg, #f59e0b, #eab308); color: #fff;
}

.ep-rating {
  margin: .2rem 0 .45rem; font-size: 1rem; color: #eab308;
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
}
.ep-rating-meta { font-size: .82rem; color: var(--ep-soft); font-weight: 650; }

.ep-subtitle { font-size: .98rem; color: var(--ep-muted); margin: 0 0 .2rem; font-weight: 600; line-height: 1.4; }
.ep-spec { font-size: .92rem; color: var(--ep-primary); font-weight: 700; margin: 0 0 .55rem; }

.ep-chip-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: .15rem 0 .65rem;
}
.ep-chip {
  font-size: .76rem; font-weight: 650; background: rgba(255,255,255,.9); color: #312e81;
  border: 1px solid var(--ep-line-strong); border-radius: 999px; padding: .28rem .72rem;
  box-shadow: 0 1px 2px rgba(61, 90, 254, .06);
}
.ep-chip--sage { color: #115e59; border-color: #99f6e4; background: var(--ep-sage-soft); }
.ep-chip--sky { color: #0369a1; border-color: #bae6fd; background: #f0f9ff; }

.ep-fee { margin: .15rem 0 .65rem; font-size: .88rem; font-weight: 700; color: var(--ep-ink); }
.ep-fee-note { font-weight: 500; color: var(--ep-soft); font-size: .78rem; }

.ep-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .35rem; }
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .62rem 1.05rem; border-radius: 12px; font-size: .88rem; font-weight: 750;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.ep-btn:hover { transform: translateY(-1px); }
.ep-btn--primary {
  background: linear-gradient(135deg, #3d5afe, #0f766e); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(61, 90, 254, .55);
}
.ep-btn--primary:hover { filter: brightness(1.04); color: #fff; }
.ep-btn--call { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.ep-btn--call:hover { background: #e0f2fe; color: #0369a1; }
.ep-btn--wa { background: #25d366; color: #fff; }
.ep-btn--wa:hover { filter: brightness(1.05); color: #fff; }
.ep-btn--ghost { background: #fff; color: var(--ep-ink); border-color: var(--ep-line-strong); }
.ep-btn--ghost:hover { background: var(--ep-indigo-soft); color: var(--ep-ink); }
.ep-btn--block { width: 100%; }

.ep-hero-nav {
  display: flex; flex-wrap: wrap; gap: .45rem .65rem; margin-top: .95rem; padding-top: .85rem;
  border-top: 1px solid rgba(199, 210, 254, .45);
}
.ep-hero-nav a {
  font-size: .8rem; font-weight: 700; color: var(--ep-muted); text-decoration: none; padding: .2rem 0;
}
.ep-hero-nav a:hover { color: var(--ep-primary); }

/* Layout */
.ep-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 1.5rem 1.75rem; align-items: start;
}
.ep-main { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.ep-aside {
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
  position: sticky; top: 1rem;
}

/* Surfaces */
.ep-surface {
  background: var(--ep-card); border: 1px solid rgba(199, 210, 254, .45);
  border-radius: var(--ep-radius); padding: 1.45rem 1.5rem 1.55rem; box-shadow: var(--ep-shadow);
}
.ep-h2 {
  margin: 0 0 .85rem; font-size: 1.12rem; font-weight: 800; letter-spacing: -.015em; color: var(--ep-ink);
}
.ep-body { font-size: .96rem; line-height: 1.75; color: #334155; }
.ep-body--fallback { color: var(--ep-muted); }

/* Org */
.ep-org { background: linear-gradient(135deg, #f0fdfa 0%, #fff 70%); border-color: #99f6e4; }
.ep-org-link { font-weight: 750; color: var(--ep-sage); text-decoration: none; font-size: 1rem; }
.ep-org-link:hover { text-decoration: underline; }
.ep-org-note { margin: .4rem 0 0; font-size: .8rem; color: var(--ep-soft); line-height: 1.5; }
.ep-sib-label { font-size: .82rem; font-weight: 750; color: var(--ep-ink); margin: 1rem 0 .55rem; }
.ep-sib-grid { display: grid; gap: .55rem; }
.ep-sib {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem;
  border: 1px solid var(--ep-line); border-radius: 12px; text-decoration: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ep-sib:hover { border-color: #99f6e4; box-shadow: 0 4px 14px -6px rgba(15, 118, 110, .25); }
.ep-sib img, .ep-sib-ph {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ep-sib-ph {
  display: flex; align-items: center; justify-content: center; background: #ecfdf5; font-size: 1rem;
}
.ep-sib-name { font-weight: 750; font-size: .88rem; color: var(--ep-ink); }
.ep-sib-role { font-size: .75rem; color: var(--ep-soft); }

/* Process */
.ep-process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ep-process-list li {
  display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem;
  background: linear-gradient(135deg, #f8fafc, var(--ep-indigo-soft));
  border: 1px solid rgba(199, 210, 254, .5); border-radius: 14px;
}
.ep-process-num {
  flex: 0 0 auto; width: 1.85rem; height: 1.85rem; border-radius: 999px;
  background: linear-gradient(135deg, #3d5afe, #0f766e); color: #fff;
  font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center;
}
.ep-process-list strong { display: block; font-size: .92rem; color: var(--ep-ink); margin-bottom: .15rem; }
.ep-process-list p { margin: 0; font-size: .84rem; color: var(--ep-soft); line-height: 1.5; }
.ep-process-cta {
  display: inline-flex; margin-top: .95rem; font-weight: 750; font-size: .9rem;
  color: var(--ep-primary); text-decoration: none;
}
.ep-process-cta:hover { text-decoration: underline; }

/* Info */
.ep-info-list { margin: 0; padding: 0; font-size: .9rem; }
.ep-info-row {
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: .35rem .85rem; padding: .55rem 0; border-bottom: 1px solid #eef2ff;
}
.ep-info-row:last-child { border-bottom: 0; }
.ep-info-row dt { margin: 0; color: var(--ep-soft); font-weight: 600; }
.ep-info-row dd { margin: 0; font-weight: 650; color: var(--ep-ink); word-break: break-word; }
.ep-link { color: var(--ep-primary); font-weight: 700; text-decoration: none; }
.ep-link:hover { text-decoration: underline; }

/* Reviews */
.ep-reviews { display: grid; gap: .65rem; }
.ep-review {
  padding: 1rem 1.05rem; background: var(--ep-wash); border: 1px solid var(--ep-line); border-radius: 14px;
}
.ep-review-head {
  display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem;
}
.ep-review-head strong { font-size: .88rem; color: var(--ep-ink); }
.ep-review-stars { color: #eab308; font-size: .9rem; }
.ep-review p { margin: 0; font-size: .85rem; color: var(--ep-muted); line-height: 1.55; }
.ep-review-reply {
  margin-top: .55rem; padding: .55rem .7rem; background: #ecfdf5; border-radius: 10px;
  font-size: .8rem; color: #166534; line-height: 1.5;
}
.ep-review-form-card {
  background: linear-gradient(135deg, #faf5ff 0%, #fff 65%); border-color: #e9d5ff;
}

/* Aside panels */
.ep-panel {
  background: var(--ep-card); border: 1px solid rgba(199, 210, 254, .55);
  border-radius: var(--ep-radius); padding: 1.4rem 1.35rem 1.45rem; box-shadow: var(--ep-shadow);
}
.ep-panel--lead {
  background: linear-gradient(165deg, #fff 0%, var(--ep-indigo-soft) 120%);
  border-color: rgba(199, 210, 254, .7);
  box-shadow: var(--ep-shadow-lg), var(--ep-ring);
}
.ep-panel-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: var(--ep-ink); }
.ep-panel-sub { margin: 0 0 1rem; font-size: .82rem; color: var(--ep-soft); line-height: 1.5; }

.ep-form { display: flex; flex-direction: column; gap: .65rem; }
.ep-form input, .ep-form select, .ep-form textarea {
  width: 100%; box-sizing: border-box; padding: .62rem .8rem; border: 1px solid #d1d5db;
  border-radius: 10px; font-size: .88rem; background: #fff; color: var(--ep-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ep-form input:focus, .ep-form select:focus, .ep-form textarea:focus {
  outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(61, 90, 254, .12);
}
.ep-form textarea { resize: vertical; min-height: 4.5rem; }
.ep-form-msg { margin: 0; font-size: .78rem; display: none; line-height: 1.45; }
.ep-form-note { margin: .75rem 0 0; font-size: .74rem; color: var(--ep-soft); line-height: 1.5; }
.ep-form-note a { color: var(--ep-muted); text-decoration: underline; }
.ep-quick { display: flex; flex-direction: column; gap: .5rem; }

.ep-trust {
  padding: 1rem 1.05rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px;
}
.ep-trust p { margin: 0; font-size: .78rem; color: #78350f; line-height: 1.55; }

/* SEO / FAQ */
.ep-seo { margin: 1.5rem 0 0; }
.ep-hub {
  margin: 0 0 1.15rem; padding: 1.1rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(199, 210, 254, .5); box-shadow: var(--ep-shadow);
}
.ep-hub-label {
  margin: 0 0 .55rem; font-size: .76rem; font-weight: 750; color: var(--ep-soft);
  text-transform: uppercase; letter-spacing: .04em;
}
.ep-hub-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-hub-row a {
  display: inline-flex; align-items: center; padding: .45rem .85rem; border-radius: 999px;
  background: #fff; border: 1px solid #cbd5e1; color: var(--ep-sage);
  font-size: .84rem; font-weight: 750; text-decoration: none;
}
.ep-hub-row a:hover { border-color: var(--ep-sage); background: #ecfdf5; }

.ep-faq {
  padding: 1.4rem 1.3rem; border-radius: 18px; background: #fff;
  border: 1px solid rgba(199, 210, 254, .45); box-shadow: var(--ep-shadow);
}
.ep-faq h2 { font-size: 1.12rem; font-weight: 800; color: var(--ep-ink); margin: 0 0 .35rem; }
.ep-faq-lead { font-size: .88rem; color: var(--ep-soft); margin: 0 0 1rem; line-height: 1.5; }
.ep-faq details { border-top: 1px solid #eef2ff; padding: .85rem 0; }
.ep-faq details:last-child { border-bottom: 1px solid #eef2ff; }
.ep-faq summary { cursor: pointer; font-weight: 750; color: var(--ep-ink); font-size: .92rem; line-height: 1.4; }
.ep-faq details p { margin: .5rem 0 0; font-size: .88rem; line-height: 1.65; color: var(--ep-muted); }

/* Bottom CTA — soft indigo/teal (not heavy navy) */
.ep-bottom {
  margin-top: 1.75rem; padding: 2rem 0;
  background: linear-gradient(135deg, rgba(61, 90, 254, .92) 0%, #312e81 48%, #0f766e 140%);
  color: #eef2ff;
}
.ep-bottom-inner {
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.ep-bottom-eyebrow {
  margin: 0 0 .35rem; font-size: .75rem; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; opacity: .85;
}
.ep-bottom-title { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
.ep-bottom-text { margin: 0; font-size: .88rem; line-height: 1.55; opacity: .9; max-width: 36rem; }
.ep-bottom-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.ep-bottom-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem;
  border-radius: 12px; font-weight: 750; font-size: .9rem; text-decoration: none;
  background: #fff; color: #312e81; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .35);
}
.ep-bottom-btn:hover { filter: brightness(1.03); color: #312e81; }
.ep-bottom-btn--ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); box-shadow: none;
}
.ep-bottom-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Suppress old page-hero band when using ep crumb */
.ep-page ~ .page-hero,
body:has(.ep-page) > .page-hero { display: none; }

@media (max-width: 900px) {
  .ep-layout { grid-template-columns: 1fr; }
  .ep-aside { position: static; }
}
@media (max-width: 768px) {
  .ep-page { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .ep-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.35rem 1.15rem 1.45rem;
    gap: 1rem;
  }
  .ep-title-row,
  .ep-badges,
  .ep-rating,
  .ep-chip-row,
  .ep-hero-actions,
  .ep-hero-nav { justify-content: center; }
  .ep-avatar,
  .ep-avatar--placeholder { width: 104px; height: 104px; }
  .ep-info-row {
    grid-template-columns: 1fr;
    gap: .15rem;
    padding: .6rem 0;
  }
  .ep-bottom-inner { flex-direction: column; align-items: flex-start; }
  .ep-bottom-actions { width: 100%; }
  .ep-bottom-btn { flex: 1 1 auto; }
  .ep-surface,
  .ep-panel { padding: 1.2rem 1.1rem 1.3rem; }
}
@media (max-width: 375px) {
  .ep-name { font-size: 1.28rem; }
  .ep-badge { font-size: .66rem; padding: .22rem .55rem; }
  .ep-btn { width: 100%; }
}

/* Directory card polish (uzmanlar) */
.ex-dir-card {
  border-color: rgba(199, 210, 254, .55) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ex-dir-card:hover {
  box-shadow: 0 14px 32px -10px rgba(61, 90, 254, .22) !important;
  border-color: #a5b4fc !important;
  transform: translateY(-2px);
}
.ex-dir-card--featured {
  border-color: rgba(199, 210, 254, .85) !important;
  background: linear-gradient(135deg, #eef2ff 0%, #fff 55%) !important;
}
.ex-dir-photo { border-radius: 16px !important; border-color: #e0e7ff !important; }
.ex-dir-verified {
  background: #eef2ff !important; color: #3730a3 !important; border: 1px solid #c7d2fe;
}
.ex-dir-spec { color: #3d5afe !important; }
.ex-dir-featured-wrap {
  background: linear-gradient(135deg, rgba(61, 90, 254, .06), rgba(15, 118, 110, .06)) !important;
  border-color: #c7d2fe !important;
}
.ex-dir-cta {
  background: linear-gradient(135deg, #3d5afe, #0f766e) !important;
  border-radius: 12px !important;
}
.ex-dir-sort a.active {
  background: linear-gradient(135deg, #3d5afe, #0f766e) !important;
  color: #fff !important; border-color: transparent !important;
}
.ex-dir-filters {
  border-color: rgba(199, 210, 254, .55) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .05);
}
