/* Provider insights panel */
/* ── آمار بازدید + رنک مالک (مثل اپ) ── */
.dp-provider-insights {
    margin: 0 14px 12px;
}

.dp-provider-insights[hidden] {
    display: none !important;
}

.dp-provider-insights__card {
    padding: 18px 16px 16px;
    border-radius: 22px;
    background: linear-gradient(160deg, #fffefe 0%, #f7f3ec 55%, rgba(243, 236, 220, 0.55) 100%);
    border: 1px solid rgba(201, 166, 107, 0.24);
    box-shadow:
        0 12px 32px rgba(16, 37, 29, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dp-provider-insights__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dp-provider-insights__head-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(145deg, #3f6d5a, #274842);
    box-shadow: 0 8px 18px rgba(39, 72, 66, 0.22);
}

.dp-provider-insights__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: #142824;
}

.dp-provider-insights__sub {
    margin: 2px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6f7a74;
}

.dp-provider-insights__loading,
.dp-provider-insights__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #556862;
    text-align: center;
}

.dp-provider-insights__rank {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 243, 236, 0.9));
    border: 1px solid rgba(201, 166, 107, 0.22);
}

.dp-provider-insights__rank-emblem {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--rank-color, #274842), #142824);
    box-shadow: 0 10px 22px rgba(20, 40, 36, 0.22);
}

.dp-provider-insights__rank-emblem i {
    font-size: 1.35rem;
    opacity: 0.35;
}

.dp-provider-insights__rank-level {
    position: absolute;
    font-size: 1.05rem;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dp-provider-insights__rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dp-provider-insights__rank-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #142824;
}

.dp-provider-insights__rank-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rank-color, #274842);
}

.dp-provider-insights__rank-stat {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6f7a74;
}

.dp-provider-insights__progress {
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: rgba(39, 72, 66, 0.1);
    overflow: hidden;
}

.dp-provider-insights__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3f6d5a, #c9a66b);
    transition: width 0.4s ease;
}

.dp-provider-insights__progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #556862;
}

.dp-provider-insights__progress-label--max {
    color: #a8844a;
}

.dp-provider-insights__info,
.dp-provider-insights__hint {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.55;
}

.dp-provider-insights__info {
    background: rgba(63, 109, 90, 0.08);
    color: #274842;
}

.dp-provider-insights__hint {
    background: rgba(201, 166, 107, 0.12);
    color: #6b5630;
}

.dp-provider-insights__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.dp-provider-insights__summary--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dp-provider-insights__pill {
    display: grid;
    gap: 2px;
    padding: 12px 10px;
    border-radius: 16px;
    text-align: center;
    background: rgba(63, 109, 90, 0.1);
    border: 1px solid rgba(63, 109, 90, 0.16);
}

.dp-provider-insights__pill em {
    font-style: normal;
    font-size: 1.35rem;
    font-weight: 900;
    color: #274842;
    line-height: 1.1;
}

.dp-provider-insights__pill span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #556862;
}

.dp-provider-insights__pill--gold {
    background: rgba(201, 166, 107, 0.14);
    border-color: rgba(201, 166, 107, 0.28);
}

.dp-provider-insights__pill--gold em {
    color: #a8844a;
}

.dp-provider-insights__legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #556862;
}

.dp-provider-insights__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dp-provider-insights__legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    font-style: normal;
}

.dp-provider-insights__chart-wrap {
    margin: 0 -4px 8px;
    padding: 8px 4px 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(201, 166, 107, 0.14);
}

.dp-provider-insights__chart-wrap canvas {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.dp-provider-insights__goal-note {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #6f7a74;
}

body.doctor-profile-owner .dp-provider-insights,
body.clinic-profile-owner .dp-provider-insights {
    position: relative;
    z-index: 2;
}

/* واکنش‌گرا: bn-profile-responsive.css */
