/* --- МОДУЛЬ: КАРТОЧКА АЗС И ИНТЕРАКТИВ --- */
@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sc-hidden { display: none !important; }
.sc-fade-in { animation: fadeInStep 0.3s ease forwards; }

.sc-header { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 10; }
.sc-header-left { display: flex; gap: 12px; align-items: center; }
.sc-logo { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--red); font-size: 12px; }
.sc-brand { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }
.sc-address { font-size: 12px; color: var(--text-muted); }
.sc-header-actions { display: flex; gap: 8px; }
.sc-icon-btn { background: var(--bg-main); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-muted); font-size: 14px; transition: 0.2s; }
.sc-icon-btn:hover { background: #e5e7eb; color: var(--text-main); }

.sc-body { padding: 20px; }

/* 🚀 3-Х УРОВНЕВЫЙ СТАТУС-БЛОК */
.sc-status-panel { background: #f9fafb; border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.sc-status-panel.yellow { background: #fef9c3; border-color: #fef08a; }
.sc-status-panel.green { background: #f0fdf4; border-color: #bbf7d0; }
.sc-status-panel.red { background: #fef2f2; border-color: #fecaca; }

.sc-sp-top { display: flex; gap: 12px; align-items: center; margin-bottom: 15px; }
.sc-sp-icon { width: 32px; height: 32px; background: #9ca3af; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sc-status-panel.yellow .sc-sp-icon { background: #ca8a04; }
.sc-status-panel.green .sc-sp-icon { background: var(--green); }
.sc-status-panel.red .sc-sp-icon { background: var(--red); }

.sc-sp-title { font-size: 18px; font-weight: 800; color: #4b5563; margin-bottom: 2px; }
.sc-status-panel.yellow .sc-sp-title { color: #854d0e; }
.sc-status-panel.green .sc-sp-title { color: #166534; }
.sc-status-panel.red .sc-sp-title { color: #991b1b; }

.sc-sp-meta { font-size: 11px; color: #6b7280; }
.sc-status-panel.yellow .sc-sp-meta { color: #a16207; }
.sc-status-panel.green .sc-sp-meta { color: #15803d; }
.sc-status-panel.red .sc-sp-meta { color: #b91c1c; }

.sc-conf-header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.sc-status-panel.yellow .sc-conf-header { color: #854d0e; }
.sc-status-panel.green .sc-conf-header { color: #166534; }
.sc-status-panel.red .sc-conf-header { color: #991b1b; }

.sc-conf-bar { height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.sc-conf-fill { height: 100%; background: #22c55e; border-radius: 3px; }
.sc-conf-text { font-size: 10px; margin-bottom: 15px; }
.sc-status-panel.yellow .sc-conf-text { color: #a16207; }
.sc-status-panel.green .sc-conf-text { color: #15803d; }
.sc-status-panel.red .sc-conf-text { color: #b91c1c; }

.sc-warning-box { background: #fef08a; padding: 12px; border-radius: 12px; margin-bottom: 15px; font-size: 11px; color: #854d0e; display: flex; gap: 8px; line-height: 1.4; }
.sc-warning-icon { font-size: 16px; }

.sc-driver-notes { background: rgba(255,255,255,0.6); padding: 12px; border-radius: 12px; margin-bottom: 15px; }
.sc-note-title { font-size: 11px; font-weight: 700; color: #854d0e; margin-bottom: 6px; }
.sc-note-item { font-size: 12px; font-weight: 700; color: #854d0e; display: flex; align-items: center; gap: 6px; }
.sc-note-item::before { content: '▾'; font-size: 10px; }

.sc-actions-label { font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 8px; text-align: center; }
.sc-action-row { display: flex; gap: 8px; margin-bottom: 8px; }
.sc-btn { flex: 1; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; transition: 0.2s; border: none; }
.sc-btn:active { transform: scale(0.98); }
.sc-btn-confirm { background: #22c55e; color: #fff; }
.sc-btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-main); }
.sc-btn-share { width: 100%; background: transparent; border: 1px solid #10b981; color: #10b981; }

/* ФОРМА "СИТУАЦИЯ ИЗМЕНИЛАСЬ" */
.sc-form-container { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sc-form-text { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; text-align: center; }
.sc-status-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.sc-ss-btn { flex: 1; padding: 20px 10px; border-radius: 16px; border: 2px solid var(--border); background: #fff; cursor: pointer; text-align: center; transition: 0.2s; }
.sc-ss-btn .icon { font-size: 24px; margin-bottom: 8px; display: block; }
.sc-ss-btn .text { font-size: 14px; font-weight: 700; color: var(--text-main); }
.sc-ss-btn.active-green { border-color: var(--green); background: var(--green-light); }
.sc-ss-btn.active-red { border-color: var(--red); background: var(--red-light); }
.sc-step-block { margin-bottom: 20px; padding-top: 15px; border-top: 1px dashed var(--border); }
.sc-step-title { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.sc-step-num { width: 18px; height: 18px; background: var(--green); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.sc-step-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.sc-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-f-chip { padding: 10px 16px; border: 1px solid var(--border); background: #fff; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-main); transition: 0.2s; }
.sc-f-chip.active { border-color: var(--green); color: var(--green); background: var(--green-light); }
.sc-f-chip.active-red { border-color: var(--red); color: var(--red); background: var(--red-light); }
.sc-f-chip.active-orange { border-color: #d97706; color: #b45309; background: #fef3c7; }
.sc-f-chip-full { width: 100%; text-align: left; padding: 12px 16px; border: 1px solid var(--border); background: #fff; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-main); transition: 0.2s; }
.sc-f-chip-full.active { border-color: #3b82f6; color: #1d4ed8; background: #eff6ff; }
.sc-tc-desc { font-size: 10px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; padding: 0 4px; }

/* ЦЕНА ЗА ЛИТР */
.sc-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; width: 100%; box-sizing: border-box; }
.sc-price-label { font-size: 14px; font-weight: 700; width: 50px; flex-shrink: 0; color: var(--text-muted); }
.sc-price-same-btn { flex: 1; min-width: 0; padding: 12px 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-main); text-align: center; transition: 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-price-same-btn:active { transform: scale(0.97); }
.sc-price-same-btn:hover { background: #f9fafb; }
.sc-price-input-wrap { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; background: #fff; transition: 0.2s; overflow: hidden; }
.sc-price-input-wrap.error { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1); }
.sc-price-input { width: 100%; min-width: 0; border: none; background: transparent; padding: 12px 5px; font-size: 15px; font-weight: 700; outline: none; color: var(--text-main); text-align: center; }
.sc-price-extra { font-size: 12px; color: #6b7280; margin-top: 15px; cursor: pointer; }
.sc-global-price-error { color: #f59e0b; font-size: 12px; font-weight: 700; margin-top: 10px; }
.sc-submit-btn { width: 100%; background: var(--green); color: #fff; border: none; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 15px; transition: 0.2s; }
.sc-submit-btn:active { transform: scale(0.98); }
.sc-submit-subtext { font-size: 10px; color: #9ca3af; text-align: center; margin-top: 12px; }

/* ЦЕНЫ И ИСТОРИЯ */
.sc-section-title { font-size: 16px; font-weight: 800; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.sc-section-title span { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.sc-price-display { margin-bottom: 25px; }
.sc-pd-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bg-main); }
.sc-pd-fuel { font-size: 14px; font-weight: 600; color: var(--text-muted); width: 50px; }
.sc-pd-val { font-size: 15px; font-weight: 800; color: var(--text-main); flex: 1; }
.sc-pd-time { font-size: 11px; color: #d1d5db; }
.sc-history { margin-bottom: 25px; }
.sc-hist-item { display: flex; gap: 15px; margin-bottom: 20px; }
.sc-hist-icon { width: 32px; height: 32px; background: #fef9c3; color: #ca8a04; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.sc-hist-icon.green { background: var(--green-light); color: var(--green); }
.sc-hist-icon.red { background: var(--red-light); color: var(--red); }
.sc-hist-icon.yellow { background: #fef9c3; color: #ca8a04; }
.sc-hist-body { flex: 1; }
.sc-hist-header { display: flex; justify-content: space-between; margin-bottom: 4px; align-items: center; }
.sc-hist-status { font-size: 13px; font-weight: 700; color: #854d0e; }
.sc-hist-status.green { color: #166534; }
.sc-hist-status.red { color: #991b1b; }
.sc-hist-status.yellow { color: #854d0e; }
.sc-hist-time { font-size: 11px; color: var(--text-muted); }
.sc-hist-time.highlight { color: var(--green); font-weight: 800; background: var(--green-light); padding: 2px 6px; border-radius: 6px; }
.sc-hist-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.sc-hist-tag { font-size: 10px; font-weight: 800; background: #f3f4f6; color: var(--text-muted); padding: 2px 6px; border-radius: 4px; }
.sc-hist-desc { font-size: 11px; color: #ef4444; font-weight: 600; }
.sc-hist-desc::before { content: '▾ '; }

.sc-route-box { padding: 20px; background: #f9fafb; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border: 1px solid var(--border); transition: 0.2s; margin-bottom: 30px;}
.sc-route-box:hover { border-color: var(--green); }
.sc-route-info { display: flex; align-items: center; gap: 12px; }
.sc-route-icon { width: 36px; height: 36px; background: #e0f2fe; color: #0284c7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sc-route-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.sc-route-sub { font-size: 11px; color: var(--text-muted); }

/* Модалки (МАРШРУТЫ И УСПЕХ) */
.modal-route { background: #fff; width: 100%; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: 0.3s; position: absolute; bottom: 0; display: flex; flex-direction: column; overflow: hidden;}
.modal-backdrop:not(.hidden) .modal-route { transform: translateY(0); }
.mr-header { padding: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.mr-btn { width: 100%; padding: 20px; background: #fff; border: none; border-bottom: 1px solid var(--bg-main); font-size: 16px; font-weight: 700; color: var(--text-main); display: flex; justify-content: space-between; cursor: pointer; transition: 0.2s; }
.mr-btn:hover { background: #f9fafb; }
.mr-btn::after { content: '›'; color: #d1d5db; }
.mr-cancel { width: 100%; padding: 20px; background: #f9fafb; border: none; font-size: 15px; font-weight: 700; color: var(--text-muted); cursor: pointer; }

.success-popup { background: #fff; width: 90%; max-width: 360px; border-radius: 24px; padding: 30px 20px; position: relative; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.sp-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer; }
.sp-heart { font-size: 40px; color: var(--red); margin-bottom: 10px; }
.sp-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; line-height: 1.2; }
.sp-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.sp-alert { background: #f0fdf4; border: 1px dashed var(--green); border-radius: 12px; padding: 15px; margin-bottom: 20px; }
.sp-alert-text { font-size: 12px; font-weight: 700; color: #166534; line-height: 1.4; }
.sp-alert-text b { color: var(--green); font-size: 14px; display: block; margin-top: 5px; }
.sp-card { border: 1px solid var(--border); border-radius: 16px; padding: 15px; text-align: left; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sp-btn-share { width: 100%; background: var(--green); color: #fff; border: none; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 10px; }
.sp-socials { display: flex; gap: 8px; margin-bottom: 10px; }
.sp-soc { flex: 1; padding: 12px; border: none; border-radius: 12px; color: #fff; font-weight: 800; cursor: pointer; font-size: 13px; }
.sp-copy { width: 100%; background: #fff; border: 1px solid var(--border); padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 🚀 СВЕТЯЩИЕСЯ МАРКЕРЫ НА КАРТЕ */
.custom-pin-wrap { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding-bottom: 8px; }
.custom-pin { width: 32px; height: 32px; background: #1c2024; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; border: 2px solid #fff; transition: 0.3s; z-index: 2;}
.custom-pin.green { box-shadow: 0 0 16px 6px rgba(16, 185, 129, 0.45); }
.custom-pin.yellow { box-shadow: 0 0 16px 6px rgba(234, 179, 8, 0.45); }
.custom-pin.red { box-shadow: 0 0 16px 6px rgba(239, 68, 68, 0.45); }
.custom-pin.gray { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.custom-pin::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 5px 5px 0; border-style: solid; border-color: #1c2024 transparent transparent transparent; }
.pin-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; z-index: 3;}
.pin-dot.green { background: var(--green); }
.pin-dot.yellow { background: var(--yellow); }
.pin-dot.red { background: var(--red); }
.pin-dot.gray { background: #9ca3af; }
.status-text.yellow { color: #ca8a04; }
.dot.yellow { background: var(--yellow); }