/* v3 — индекс качества / прозрачности в личном кабинете */
.v3-index-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0 12px;
    padding: 12px 0 4px;
}

.v3-index-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.v3-index-ring {
    display: block;
}

.v3-verified-badge {
    position: absolute;
    right: -2px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.v3-index-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.v3-private-turnover {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    max-width: 220px;
    line-height: 1.35;
}

.v3-verified-inline {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
    cursor: help;
}

/* Опрос v3 на странице заказа */
.v3-survey-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.v3-survey-bar-inner {
    max-width: 720px;
    margin: 0 auto;
}

.v3-survey-bar-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    cursor: pointer;
}

.v3-survey-bar-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.v3-survey-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.v3-survey-modal-overlay.open {
    display: flex;
}

.v3-survey-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}

.v3-survey-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.35;
}

.v3-survey-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.v3-survey-btn {
    flex: 1;
    min-width: 120px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.v3-survey-btn-primary {
    background: #1a73e8;
    color: #fff;
}

.v3-survey-btn-outline {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.v3-survey-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.v3-survey-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.v3-survey-performer-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
}

.v3-survey-performer-item.selected {
    border-color: #1a73e8;
    background: #eff6ff;
}

.v3-survey-stars {
    display: flex;
    gap: 6px;
    margin: 8px 0 12px;
}

.v3-survey-star {
    font-size: 32px;
    cursor: pointer;
    color: #d1d5db;
    background: none;
    border: none;
    padding: 0;
}

.v3-survey-star.on {
    color: #f59e0b;
}

.v3-survey-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
}

body.has-v3-survey-bar {
    padding-bottom: 84px;
}
