/* Payapars Live — استایل کارشناسان + مودال تماس (سمت مشتری) */

/* ---------- Expert cards ---------- */
.experts-wrap { margin-bottom: 48px; }
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.expert-card {
  display: flex; align-items: center; gap: 15px; position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius); padding: 18px;
  transition: transform .3s var(--expo), border-color .25s, box-shadow .3s;
}
.expert-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(to left, var(--brand), var(--blue));
  transform: scaleX(0); transform-origin: inline-start; transition: transform .35s var(--expo);
}
.expert-card:hover { transform: translateY(-4px); border-color: rgba(238, 114, 35, .4); box-shadow: var(--shadow-soft); }
.expert-card:hover::before { transform: scaleX(1); }
.ex-avatar {
  position: relative; width: 74px; height: 74px; flex: none; border-radius: 50%;
  overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, #EE7223) 30%, transparent), rgba(0, 168, 255, .12));
  border: 2px solid color-mix(in srgb, var(--c, #EE7223) 55%, transparent);
  box-shadow: 0 8px 24px rgba(0, 10, 25, .35);
}
.ex-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.ex-fallback svg, .ex-avatar > svg { width: 100%; height: 100%; }
.ex-avatar .ex-dot { z-index: 2; }
.ex-dot { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: #5D7185; border: 3px solid rgba(2, 14, 27, .9); z-index: 3; }
.expert-card.on .ex-dot { background: var(--ok); box-shadow: 0 0 10px rgba(43, 217, 138, .7); }
.ex-info { flex: 1; min-width: 0; }
.ex-info b { display: block; font-size: 15px; margin-bottom: 2px; }
.ex-person { display: block; font-size: 12.5px; color: var(--tx-3); margin-bottom: 3px; }
.ex-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--tx-4); }
.expert-card.on .ex-status { color: var(--ok); }
.ex-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ex-call { flex: none; }
.ex-call:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ex-call svg { width: 15px; height: 15px; }
.ex-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.ex-tel {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--tx-2);
  background: var(--glass); border: 1px solid var(--line);
  transition: color .18s, border-color .18s, transform .18s;
}
.ex-tel:hover { color: var(--ok); border-color: rgba(43, 217, 138, .45); transform: translateY(-2px); }
.ex-tel svg { width: 17px; height: 17px; }

/* ---------- Call modal ---------- */
.lv-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(0, 5, 12, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 18px;
}
.lv-modal[hidden] { display: none; }
.lv-close {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 20;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(3, 16, 30, .8); border: 1px solid var(--line-2); color: var(--tx-1);
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .18s, background .18s, transform .18s;
}
.lv-close:hover { border-color: rgba(255, 107, 107, .5); background: rgba(60, 12, 12, .8); transform: rotate(90deg); }
.lv-close svg { width: 18px; height: 18px; }
.lv-card {
  position: relative;
  width: min(960px, 100%); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 24px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 10, 30, .8);
  animation: lvIn .35s var(--expo) both;
}
@keyframes lvIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.lv-stage { position: relative; aspect-ratio: 16 / 8.6; background: #01060D; }
#lv-remote { width: 100%; height: 100%; object-fit: cover; }
.lv-self {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 5;
  width: 168px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(160, 200, 255, .3); background: #02080F;
  box-shadow: 0 14px 40px rgba(0, 8, 20, .6);
}
.lv-self video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.lv-self span {
  position: absolute; bottom: 6px; inset-inline-start: 8px; font-size: 10.5px; font-weight: 700;
  background: rgba(3, 16, 30, .75); padding: 2px 9px; border-radius: 999px;
}
.lv-status {
  position: absolute; top: 16px; inset-inline: 70px; z-index: 5; text-align: center;
  font-size: 12.5px; font-weight: 700; color: var(--tx-1);
  background: rgba(3, 16, 30, .72); border: 1px solid var(--line-2);
  padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.lv-status:empty { display: none; }
.lv-mic-state {
  position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(50%);
  z-index: 5; font-size: 12px; font-weight: 700; color: #FFD2D2;
  background: rgba(60, 10, 10, .8); border: 1px solid rgba(255, 107, 107, .4);
  padding: 4px 14px; border-radius: 999px;
}
[dir="ltr"] .lv-mic-state { transform: translateX(-50%); }
.lv-mic-state[hidden] { display: none; }
.lv-idle {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(4, 26, 48, .82), rgba(0, 7, 15, .95));
}
.lv-idle b { font-size: 19px; }
.lv-idle p { color: var(--tx-3); font-size: 13.5px; margin: 0; max-width: 420px; }
.lv-pulse { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; border: 2px solid rgba(238, 114, 35, .35); position: relative; }
.lv-pulse::before { content: '📞'; font-size: 26px; }
.lv-pulse::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(238, 114, 35, .5); animation: lvPulse 1.8s ease-out infinite; }
@keyframes lvPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.lv-idle-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.lv-phone-form { margin-top: 14px; width: min(360px, 92%); }
.lv-phone-form label { display: block; font-size: 13.5px; font-weight: 700; color: #9FEFC8; margin-bottom: 9px; }
.lv-phone-row { display: flex; gap: 8px; }
.lv-phone-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px;
  border: 1px solid rgba(43, 217, 138, .4); background: rgba(0, 10, 22, .6);
  color: var(--tx-1); font-size: 16px; font-weight: 700;
}
.lv-phone-row input:focus { outline: none; border-color: var(--ok); box-shadow: 0 0 0 4px rgba(43, 217, 138, .15); }
.lv-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; border-top: 1px solid var(--line); background: rgba(0, 10, 22, .5);
}
.lv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--tx-1);
  font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s;
}
.lv-btn:hover { border-color: rgba(160, 200, 255, .5); transform: translateY(-2px); }
.lv-btn svg { width: 20px; height: 20px; }
.lv-btn.off { opacity: .45; border-color: rgba(255, 107, 107, .5); }
.lv-btn.hang { background: linear-gradient(135deg, #FF7B7B, #E14D4D); border-color: transparent; box-shadow: 0 8px 26px rgba(255, 107, 107, .4); }
.lv-btn.hang:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 107, 107, .55); }
.lv-btn.big { height: 52px; padding: 0 26px; background: linear-gradient(135deg, #FF9147, #EE7223 45%, #E05E0F); border-color: transparent; }

@media (max-width: 720px) {
  .experts-grid { grid-template-columns: 1fr; gap: 12px; }
  .expert-card { flex-wrap: wrap; padding: 15px 14px; gap: 12px 14px; align-items: center; }
  .ex-avatar { width: 64px; height: 64px; }
  .ex-info { flex: 1; min-width: calc(100% - 80px); }
  .ex-info b { font-size: 14.5px; }
  .ex-person { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ex-actions { width: 100%; display: grid; grid-template-columns: 1fr 52px; gap: 9px; }
  .ex-call { width: 100%; }
  .ex-tel { width: 52px; height: 44px; border-radius: 12px; }
  .lv-modal { padding: 10px; }
  .lv-card { border-radius: 18px; }
  .lv-stage { aspect-ratio: 3 / 3.6; }
  .lv-self { width: 110px; top: 10px; inset-inline-end: 10px; }
  .lv-bar { padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .lv-btn { height: 52px; min-width: 52px; flex: 1; }
  .lv-btn.hang { flex: 1.5; }
  .lv-close { top: 10px; inset-inline-start: 10px; width: 38px; height: 38px; }
  .lv-status { font-size: 11.5px; max-width: 62%; }
  .lv-idle b { font-size: 16px; }
  .lv-idle-actions { width: 100%; }
  .lv-idle-actions .lv-btn { flex: 1 1 44%; min-width: 0; font-size: 13px; padding: 0 8px; }
  .lv-phone-row { flex-direction: column; }
  .lv-phone-row .lv-btn { width: 100%; }
}
@media (max-width: 380px) {
  .lv-stage { aspect-ratio: 3 / 4; }
  .lv-idle-actions .lv-btn { flex: 1 1 100%; }
}

/* ---------- Team banner (v6) ---------- */
.experts-banner {
  position: relative; overflow: hidden; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 21 / 8; min-height: 230px;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: flex-end;
}
.experts-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.eb-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(1,16,31,.95) 0%, rgba(1,16,31,.62) 30%, rgba(1,16,31,.12) 60%, rgba(1,16,31,0) 78%),
    linear-gradient(to left, rgba(1,16,31,.5), rgba(1,16,31,0) 46%);
}
[dir=ltr] .eb-scrim {
  background:
    linear-gradient(to top, rgba(1,16,31,.95) 0%, rgba(1,16,31,.62) 30%, rgba(1,16,31,.12) 60%, rgba(1,16,31,0) 78%),
    linear-gradient(to right, rgba(1,16,31,.5), rgba(1,16,31,0) 46%);
}
.eb-overlay { position: relative; z-index: 2; padding: 26px 30px; max-width: 660px; }
.eb-overlay h2 { font-size: clamp(19px, 2.6vw, 28px); margin: 0 0 7px; }
.eb-overlay p { color: var(--tx-2); font-size: 14px; line-height: 1.8; margin: 0; max-width: 54ch; }
@media (max-width: 720px) {
  .experts-banner { aspect-ratio: 16 / 10; min-height: 200px; }
  .eb-overlay { padding: 18px; }
  .eb-overlay p { font-size: 13px; }
  .eb-overlay .eyebrow { margin-bottom: 10px; font-size: 12px; }
}
