/* Customer profile & my listings */
.account-login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.account-login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.account-login-hero { text-align: center; margin-bottom: 1rem; }
.account-login-hero h1 { margin: .6rem 0 .35rem; font-size: 1.35rem; color: var(--navy); }
.account-login-hero p { margin: 0; color: var(--muted); font-size: .92rem; }
.account-form label { display: block; margin-top: .7rem; font-weight: 700; font-size: .88rem; color: var(--navy); }
.account-form input {
  width: 100%; margin-top: .3rem; padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: 12px; font: inherit;
}
.account-form .otp-single { letter-spacing: .35em; text-align: center; font-size: 1.2rem; font-weight: 800; }
.account-form .btn-primary { width: 100%; margin-top: 1rem; }
.account-hint { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.account-back { display: block; text-align: center; margin-top: 1rem; color: var(--muted); text-decoration: none; font-weight: 700; }

.my-listings-page { padding-bottom: 2rem; }
.my-listings-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy), #163a7a 55%, #ff6b35);
  color: #fff; border-radius: 24px; padding: 1.4rem 1.3rem; margin: 1.2rem 0 1rem;
}
.my-listings-hero .kicker { color: #ffd0a8; margin: 0; }
.my-listings-hero h1 { margin: .25rem 0; }
.my-listings-hero .lead { color: #dde6f5; margin: 0; }
.my-listings-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.btn-ghost-nav {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent;
  border-radius: 12px; padding: .55rem 1rem; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit;
}
.my-listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.my-listing-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.my-listing-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(11,31,77,.12); }
.my-listing-cover { height: 140px; position: relative; overflow: hidden; }
.my-listing-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-stage-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,.92); color: var(--navy);
  padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.my-listing-body { padding: .9rem 1rem 1rem; }
.my-listing-body h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.my-listing-meta, .my-listing-updated { color: var(--muted); font-size: .82rem; margin: .25rem 0 0; }
.my-listing-price { color: var(--orange); font-weight: 800; margin: .45rem 0 0; }
.my-listing-stats { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.my-empty-card {
  text-align: center; background: #fff; border: 1px dashed var(--line);
  border-radius: 24px; padding: 2.5rem 1.5rem;
}
.my-empty-icon { font-size: 2.5rem; }

.profile-page { padding-bottom: 2rem; }
.profile-hero {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 1.2rem; align-items: center;
  background: linear-gradient(135deg, var(--navy), #163a7a 60%, #ff6b35);
  color: #fff; border-radius: 24px; padding: 1.2rem; margin: 1.2rem 0 1rem; overflow: hidden;
}
.profile-cover-img, .profile-cover-fallback {
  width: 100%; height: 130px; border-radius: 16px; object-fit: cover;
  background: rgba(255,255,255,.08); display: grid; place-items: center; font-weight: 900;
}
.profile-hero-copy h1 { margin: .2rem 0 .4rem; }
.profile-hero-copy p { margin: .15rem 0; color: #e8eef8; font-size: .92rem; }
.kicker.light { color: #ffd0a8; }
.profile-owners, .profile-score { font-size: .86rem !important; }
.profile-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.profile-hero-actions .btn-primary { padding: .55rem 1rem; font-size: .88rem; }

.crm-pipeline-section { margin-bottom: 1rem; }
.crm-pipeline-section h2 { margin: 0 0 .7rem; color: var(--navy); }
.crm-pipeline-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
}
.crm-pipeline-step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: .75rem .7rem; text-align: center; position: relative;
}
.crm-pipeline-step b { display: block; font-size: .82rem; color: var(--navy); margin-top: .35rem; }
.crm-pipeline-step small { color: var(--muted); font-size: .72rem; }
.crm-step-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: #c9d4e6; border: 2px solid #fff; box-shadow: 0 0 0 2px #c9d4e6;
}
.crm-pipeline-step.done .crm-step-dot { background: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.crm-pipeline-step.current { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,107,53,.15); }
.crm-pipeline-step.current .crm-step-dot { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.crm-pipeline-step.rejected { border-color: #fca5a5; background: #fef2f2; }
.crm-pipeline-step.rejected .crm-step-dot { background: #dc2626; box-shadow: 0 0 0 2px #dc2626; }

.profile-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.profile-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.profile-card h2 { margin: 0 0 .7rem; font-size: 1.05rem; color: var(--navy); }
.price-edit-form label { display: block; margin-top: .5rem; font-weight: 700; font-size: .85rem; }
.price-edit-form input {
  width: 100%; margin-top: .25rem; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 12px; font: inherit;
}
.price-edit-form .btn-primary { margin-top: .75rem; }

.crm-log-item { border-bottom: 1px solid #e8edf5; padding: .75rem 0; }
.crm-log-item:last-child { border: 0; padding-bottom: 0; }
.crm-log-user { font-size: .82rem; color: #5a6a8a; margin: .2rem 0; }
.crm-log-msg { margin: .25rem 0 .4rem; line-height: 1.65; }
.crm-badge {
  display: inline-block; margin-right: .4rem; padding: .1rem .45rem; border-radius: 999px;
  background: #eef3fb; color: #0b1f4d; font-size: .72rem; font-weight: 800;
}
.crm-extra { font-size: .84rem; margin: .2rem 0; }

.calls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.call-card {
  background: #f7fbff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem;
}
.call-card-head { display: flex; align-items: center; gap: .4rem; }
.call-card-head b { flex: 1; color: var(--navy); }
.call-dur { font-size: .75rem; color: var(--muted); }
.call-card p { margin: .2rem 0; font-size: .82rem; color: var(--muted); }
.call-card a { font-size: .82rem; font-weight: 700; }

.media-list.compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.media-list.compact .media-item video,
.media-list.compact .media-item img { width: 100%; height: 72px; object-fit: cover; border-radius: 10px; }
.oil-card-link { margin: .35rem 0; font-size: .88rem; }

.listing-status-pill {
  display: inline-flex; align-items: center; margin-top: .45rem;
  padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800;
  background: rgba(255,255,255,.9); color: var(--navy);
}
.listing-status-pill.light { background: rgba(255,255,255,.18); color: #fff; }
.listing-status-pill.compact { margin-top: .3rem; font-size: .68rem; }
.listing-status-pill.status-pendingreview { background: #fff7ed; color: #c2410c; }
.listing-status-pill.status-published { background: #ecfdf5; color: #047857; }
.listing-status-pill.status-draft { background: #f1f5f9; color: #475569; }
.listing-status-pill.light.status-pendingreview { background: rgba(251,146,60,.35); color: #fff; }

.my-listing-status-badge {
  position: absolute; top: 10px; left: 10px;
  padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800;
  background: rgba(255,255,255,.95); color: var(--navy);
}
.my-listing-status-badge.status-pendingreview { background: #ffedd5; color: #c2410c; }
.my-listing-status-badge.status-published { background: #d1fae5; color: #047857; }
.my-listing-reject { color: #b91c1c; font-size: .8rem; margin: .35rem 0 0; font-weight: 700; }
.my-listing-edit-hint { display: inline-block; margin-top: .55rem; font-size: .75rem; font-weight: 700; color: var(--orange); }

.listing-review-banner { border: 1px solid #fdba74; background: linear-gradient(180deg,#fff7ed,#fff); }
.listing-reject-card { border: 1px solid #fca5a5; background: #fff5f5; }
.listing-reject-banner { margin: .55rem 0 0; color: #fecaca; font-size: .88rem; font-weight: 700; }

.listing-edit-page { padding-bottom: 2rem; }
.listing-edit-hero {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.1rem; align-items: center;
  background: linear-gradient(135deg, var(--navy), #163a7a 55%, #ff6b35);
  color: #fff; border-radius: 24px; padding: 1.2rem; margin: 1.2rem 0 1rem;
}
.listing-edit-hero-media img, .listing-edit-fallback {
  width: 100%; height: 120px; object-fit: cover; border-radius: 16px;
  background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 900;
}
.listing-edit-hero .kicker { color: #ffd0a8; margin: 0; }
.listing-edit-hero h1 { margin: .25rem 0; }
.listing-edit-hero .lead { color: #dde6f5; margin: .35rem 0 0; }
.listing-edit-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.listing-edit-form { margin-top: .2rem; }
.listing-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem;
}
.listing-edit-grid label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .88rem; color: var(--navy); }
.listing-edit-grid input, .listing-edit-grid textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; width: 100%;
}
.listing-edit-grid .span-2 { grid-column: 1 / -1; }
.listing-edit-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; align-items: center; }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--navy); background: #f8fafc;
  border-radius: 12px; padding: .55rem 1rem; font-weight: 700; text-decoration: none;
}
.listing-edit-note { margin: .9rem 0 0; color: var(--muted); font-size: .82rem; }

.my-calls-page { padding-bottom: 2rem; }
.my-calls-list { display: grid; gap: .9rem; }
.my-call-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1rem 1.05rem; box-shadow: var(--shadow);
}
.my-call-main { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.my-call-ad-label { font-size: .72rem; font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.my-call-ad h3 { margin: .2rem 0 0; color: var(--navy); font-size: 1.05rem; }
.my-call-meta { color: var(--muted); font-size: .82rem; margin: .2rem 0 0; }
.my-call-dur { font-weight: 800; color: var(--navy); font-size: .85rem; margin: .25rem 0 0; }
.my-call-player { margin-top: .85rem; }
.my-call-player audio { width: 100%; }
.my-call-transcript { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.my-call-transcript p { margin: .45rem 0 0; color: var(--navy); white-space: pre-wrap; }
.my-call-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .75rem; }
.my-call-actions a { font-weight: 800; font-size: .85rem; color: var(--orange); text-decoration: none; }

.dash-page { padding-bottom: 2rem; }
.dash-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin: 0 0 1rem;
}
.dash-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
.dash-stat b { display: block; font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.dash-stat span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.dash-stat.warn b { color: #c2410c; }
.dash-stat.accent b { color: var(--orange); }
.dash-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1.2rem;
}
.dash-quick a {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line); border-radius: 18px; padding: .95rem 1rem;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.dash-quick a:hover { transform: translateY(-2px); }
.dash-quick b { display: block; color: var(--navy); margin-bottom: .2rem; }
.dash-quick span { color: var(--muted); font-size: .8rem; }

.dash-inspect-section { margin-bottom: 1.4rem; }
.dash-inspect-empty {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  background: linear-gradient(135deg, #0b1f4d, #163a7a 55%, #ff6b35);
  color: #fff; border-radius: 22px; padding: 1.2rem 1.15rem;
}
.dash-inspect-empty-ico {
  width: 52px; height: 52px; border-radius: 16px; flex: 0 0 52px;
  display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  background: rgba(255,255,255,.14);
  animation: dash-inspect-bob 2.2s ease-in-out infinite;
}
.dash-inspect-badge {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 44px;
  display: grid; place-items: center; font-size: 1.05rem; color: var(--orange);
  background: #fff4ec; border: 1px solid #ffd8c4;
}
.dash-inspect-meta span .fa-solid,
.dash-inspect-addr .fa-solid {
  color: var(--orange);
  margin-left: 5px;
  width: 1em;
  text-align: center;
}
.dash-inspect-actions .btn-primary .fa-solid,
.dash-inspect-empty .btn-primary .fa-solid {
  margin-left: 7px;
}
.dash-inspect-empty h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.dash-inspect-empty p { margin: 0; color: #dde6f5; font-size: .88rem; max-width: 36rem; }
.dash-inspect-empty .btn-primary { margin-right: auto; }
.dash-inspect-list { display: grid; gap: .85rem; }
.dash-inspect-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1rem 1.05rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  animation: dash-inspect-in .45s ease both;
}
.dash-inspect-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 88px; height: 4px;
  background: linear-gradient(90deg, var(--orange), #163a7a);
}
.dash-inspect-card.status-open::before { background: linear-gradient(90deg, #38bdf8, #0b1f4d); }
.dash-inspect-card.status-accepted::before { background: linear-gradient(90deg, #22c55e, #0b1f4d); }
.dash-inspect-card.status-inprogress::before { background: linear-gradient(90deg, #ff6b35, #fbbf24); }
.dash-inspect-card.status-completed::before { background: linear-gradient(90deg, #16a34a, #0b1f4d); }
.dash-inspect-top {
  display: flex; align-items: flex-start; gap: .75rem;
}
.dash-inspect-title { flex: 1; min-width: 0; }
.dash-inspect-title h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.dash-inspect-status { margin: .2rem 0 0; color: var(--orange); font-weight: 800; font-size: .88rem; }
.dash-inspect-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 900; color: #15803d;
  background: #ecfdf5; border: 1px solid #86efac; border-radius: 999px;
  padding: .2rem .55rem; white-space: nowrap;
}
.dash-inspect-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: dash-live-dot 1.5s ease-out infinite;
}
.dash-inspect-mini-pipe {
  list-style: none; margin: .75rem 0 .55rem; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.dash-inspect-mini-pipe li {
  height: 6px; border-radius: 99px; background: #e8eef8;
}
.dash-inspect-mini-pipe li.done { background: linear-gradient(90deg, #ff6b35, #ff8a4c); }
.dash-inspect-mini-pipe li.on {
  background: linear-gradient(90deg, #0b1f4d, #ff6b35);
  animation: dash-pipe-glow 1.6s ease-in-out infinite;
}
.dash-inspect-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .85rem;
  color: var(--muted); font-size: .8rem; font-weight: 700;
}
.dash-inspect-addr {
  margin: .55rem 0 0; color: var(--navy); font-size: .86rem;
  background: #f7f9fc; border-radius: 12px; padding: .55rem .7rem;
}
.dash-inspect-actions { margin-top: .8rem; }
.dash-inspect-actions .btn-primary {
  display: inline-flex; padding: .55rem 1rem; font-size: .88rem; border-radius: 12px;
}
.dash-alert.tone-info { border-color: #7dd3fc; background: #f0f9ff; }

@keyframes dash-inspect-bob {
  50% { transform: translateY(-4px); }
}
@keyframes dash-inspect-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes dash-live-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes dash-pipe-glow {
  50% { filter: brightness(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-inspect-empty-ico, .dash-inspect-card, .dash-inspect-live i, .dash-inspect-mini-pipe li.on {
    animation: none !important;
  }
}
.dash-section { margin-bottom: 1.2rem; }
.dash-section h2 { margin: 0 0 .7rem; color: var(--navy); font-size: 1.05rem; }
.dash-section-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem;
}
.dash-section-head h2 { margin: 0; }
.dash-section-head a { font-weight: 800; font-size: .85rem; color: var(--orange); text-decoration: none; }
.dash-alerts { display: grid; gap: .55rem; }
.dash-alert {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  border-radius: 16px; padding: .85rem 1rem; border: 1px solid var(--line); background: #fff;
}
.dash-alert b { display: block; color: var(--navy); }
.dash-alert p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.dash-alert a { font-weight: 800; white-space: nowrap; color: var(--orange); text-decoration: none; }
.dash-alert.tone-warn { border-color: #fdba74; background: #fff7ed; }
.dash-alert.tone-danger { border-color: #fca5a5; background: #fff5f5; }
.dash-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.dash-listing-list, .dash-call-list { display: grid; gap: .65rem; }
.dash-listing-card, .dash-call-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem;
}
.dash-listing-card h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.dash-listing-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .55rem; }
.dash-listing-actions a { font-weight: 800; font-size: .82rem; color: var(--orange); text-decoration: none; }
.dash-call-card audio { width: 100%; margin: .55rem 0; }
.dash-call-card > a { font-weight: 800; font-size: .82rem; color: var(--orange); text-decoration: none; }
.my-empty-card.compact { padding: 1.4rem 1rem; }

@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .crm-pipeline-track { grid-template-columns: 1fr 1fr; }
  .calls-grid { grid-template-columns: 1fr; }
  .listing-edit-hero { grid-template-columns: 1fr; }
  .listing-edit-grid { grid-template-columns: 1fr; }
  .my-call-main { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-quick { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .crm-pipeline-track { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-quick { grid-template-columns: 1fr; }
  .dash-inspect-empty { flex-direction: column; align-items: stretch; }
  .dash-inspect-empty .btn-primary { margin-right: 0; width: 100%; justify-content: center; }
}

.phone-visibility-form { display: flex; flex-direction: column; gap: .75rem; margin-top: .6rem; }
.phone-vis-check { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; }
.phone-vis-check input { margin-top: .25rem; }
