/* ЯНДЕКС ВВОД */
.yandex-input-modern { background: rgba(227, 179, 65, 0.08); border: 1px solid var(--accent); border-radius: 16px; padding: 12px; margin-bottom: 16px; transition: all 0.3s; }
.yandex-input-header { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.yandex-inputs-row { display: flex; gap: 8px; align-items: flex-end; }
.y-input-group { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.y-input-group label { font-size: 10px; color: var(--text-muted); }
.y-input-group input { width: 100%; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text-primary); font-size: 18px; font-weight: 800; text-align: center; outline: none; transition: 0.2s; }
.y-input-group input:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(227, 179, 65, 0.2); }
#yandex-coeff-input { color: #d291ff; }
.btn-yandex-apply { background: var(--accent); color: #000; border: none; border-radius: 10px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; cursor: pointer; flex-shrink: 0; transition: transform 0.1s; }

/* ГЛАВНАЯ КАРТОЧКА */
.hero-price-card { background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%); border: 1px solid var(--border); border-radius: 24px; padding: 20px 15px; position: relative; box-shadow: 0 10px 30px var(--shadow-color); margin-bottom: 15px; transition: background 0.3s, border-color 0.3s;}
.hero-main-row { display: flex; align-items: center; justify-content: space-between; }
.hero-col { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.hero-label { font-size: 10px; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.hero-value { font-size: 32px; font-weight: 900; font-family: 'Inter', sans-serif; letter-spacing: -1px; color: var(--text-primary); }
#t-current-net { transition: color 0.3s; }
.hero-coeff-badge { position: absolute; top: -15px; right: 10px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 900; font-family: monospace; z-index: 5; transition: all 0.3s; }

/* СТРЕЛКА ПОТОКА */
.hero-flow-connector { width: 60px; display: flex; align-items: center; justify-content: center; }
.flow-arrow-container { position: relative; width: 100%; height: 30px; }
.flow-svg { width: 100%; height: 100%; fill: none; stroke: var(--border); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.arrow-line, .arrow-head { stroke: var(--border); transition: stroke 0.5s; }
.flow-pulse { position: absolute; top: 50%; left: 0; width: 15px; height: 4px; background: var(--success); filter: blur(4px); border-radius: 50%; transform: translateY(-50%); opacity: 0; }
.flow-active-positive .arrow-line, .flow-active-positive .arrow-head { stroke: var(--success); stroke-dasharray: 100; animation: flow-dash 2s linear infinite; }
.flow-active-positive .flow-pulse { opacity: 1; animation: move-pulse 1.5s infinite linear; background: var(--success); box-shadow: 0 0 15px var(--success); }
.flow-active-negative .arrow-line, .flow-active-negative .arrow-head { stroke: var(--danger); }
.flow-active-negative .flow-pulse { opacity: 1; animation: move-pulse-reverse 1s infinite linear; background: var(--danger); box-shadow: 0 0 15px var(--danger); }

/* ВТОРОСТЕПЕННЫЕ ЦЕНЫ */
.secondary-prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.sec-price-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-align: center; }
.sec-title { font-size: 9px; color: var(--text-muted); font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.sec-value { font-size: 18px; font-weight: 800; }
.detector-pulse-text { display: inline-block; transition: all 0.3s; color: var(--accent); }
.fair-glow-text { display: inline-block; color: var(--info); }
.detector-tariffs-mini { display: flex; justify-content: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--text-secondary); background: var(--bg-primary); padding: 6px; border-radius: 8px; margin-top: 4px; border: 1px solid var(--border); }
.detector-tariffs-mini span { display: flex; align-items: center; gap: 2px; }

.fair-breakdown-modern { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; background: rgba(0,0,0,0.05); padding: 6px; border-radius: 10px; border: 1px solid var(--border); }
.fb-item { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; font-family: monospace; }
.fb-cost { color: var(--danger); } .fb-cost i { color: var(--danger); }
.fb-tax { color: var(--warning); } .fb-tax i { color: var(--warning); }
.fb-goal { color: var(--success); } .fb-goal i { color: var(--success); }
.fb-divider { color: var(--text-muted); font-size: 10px; font-weight: 900; }

/* ТЕЛЕМЕТРИЯ */
.loss-banner { border-radius: 8px; padding: 8px; font-size: 12px; text-align: center; margin-bottom: 12px; font-weight: 600; }
.loss-banner.damage { background: rgba(218,54,51,0.1); color: var(--danger); border: 1px solid rgba(218,54,51,0.3); }
.telemetry-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.telemetry-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-align: center; opacity: 0.6; transition: all 0.3s ease; }
.telemetry-box.active { opacity: 1; background: var(--bg-card-hover); transform: scale(1.02); box-shadow: 0 8px 20px var(--shadow-color); z-index: 10; }
#box-pickup.active { border-color: var(--accent); }
#box-ride.active { border-color: var(--success); }
.tele-title { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.tele-data { font-size: 18px; font-weight: 800; color: var(--text-primary); font-family: monospace; }
.loss-badge { background: linear-gradient(135deg, rgba(218, 54, 51, 0.12), rgba(218, 54, 51, 0.06)); border-radius: 20px; padding: 2px 2px 2px 12px; border: 1px solid rgba(218, 54, 51, 0.25); position: relative; overflow: hidden; }
.loss-badge-inner { display: flex; align-items: baseline; gap: 2px; font-size: 10px; position: relative; z-index: 2; }
.loss-badge-value { font-size: 14px; font-weight: 800; color: var(--danger); font-family: monospace; min-width: 45px; text-align: right; }

/* РАСХОДЫ (АККОРДЕОН) */
.expenses-card { background: var(--bg-card) !important; border: 1px solid var(--border) !important; padding: 0 !important; overflow: hidden; margin-bottom: 16px; border-radius: 16px; }
.expenses-header { padding: 16px !important; display: flex; justify-content: space-between; align-items: center; font-size: 12px; cursor: pointer; color: var(--text-muted); font-weight: 700; transition: background 0.2s; }
.expenses-header:active { background: var(--bg-primary); }
.expenses-details { display: none; padding: 0 16px 16px 16px !important; border-top: 1px dashed var(--border) !important; }
.expenses-details.active { display: block; animation: fadeIn 0.3s ease; }
.expense-item { display: flex; justify-content: space-between; font-size: 11px; padding: 6px 0; color: var(--text-secondary); }
.expense-item span:last-child { font-weight: 600; color: var(--text-primary); }

/* КНОПКИ ДЕЙСТВИЙ И СВАЙП */
.action-area { margin-bottom: 20px; }
.action-btn { padding: 16px; font-size: 16px; margin-bottom: 12px; }
.active-ride-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-cancel { font-size: 12px; padding: 10px; background: transparent; border: 1px solid var(--border-light); border-radius: 12px; color: var(--text-muted); cursor: pointer; transition: all 0.2s;}
.swipe-container { position: relative; width: 100%; height: 64px; background: rgba(218, 54, 51, 0.1); border-radius: 16px; border: 1px dashed rgba(218, 54, 51, 0.4); overflow: hidden; margin-bottom: 12px; }
.swipe-text { position: absolute; width: 100%; text-align: center; line-height: 64px; color: var(--danger); font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; pointer-events: none; z-index: 1; }
.swipe-thumb { position: absolute; top: 4px; left: 4px; width: 76px; height: 54px; background: linear-gradient(135deg, var(--danger), #b91c1c); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; cursor: grab; z-index: 2; box-shadow: 2px 0 15px rgba(218, 54, 51, 0.4); }

/* КРАСИВЫЙ БЛОК ОЖИДАНИЯ ПОДПИСИ */
.waiting-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(227, 179, 65, 0.15);
    animation: fadeInUp 0.4s ease-out;
}
.wc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-alert 1.5s infinite alternate;
}
.wc-body h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; }
.wc-body p { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.wc-qr-box {
    background: #fff;
    padding: 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.wc-qr-box img, .wc-qr-box canvas { width: 180px !important; height: 180px !important; }
.wc-timer {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    font-family: monospace;
    margin-bottom: 20px;
    background: var(--input-bg);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
}
.wc-skip {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wc-skip:active { background: var(--bg-secondary); }

/* Коэффициент как бэйдж */
.hero-coeff {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    font-family: monospace;
    transition: all 0.3s ease;
    background: rgba(128, 128, 128, 0.2);
    color: #c9d1d9;
}

/* Цвета в зависимости от коэффициента */
.hero-coeff[data-coeff="1"] { background: rgba(128, 128, 128, 0.2); color: #c9d1d9; box-shadow: none; }
.hero-coeff[data-coeff="1-1.2"] { background: rgba(100, 100, 150, 0.3); color: #b87cff; }
.hero-coeff[data-coeff="1.2-1.5"] { background: rgba(100, 80, 160, 0.4); color: #d291ff; box-shadow: 0 0 5px rgba(210, 145, 255, 0.3); }
.hero-coeff[data-coeff="1.5-2"] { background: rgba(80, 50, 130, 0.5); color: #e8c3ff; box-shadow: 0 0 10px rgba(210, 145, 255, 0.5); }
.hero-coeff[data-coeff="2+"] { background: rgba(60, 20, 100, 0.8); color: #f0e6ff; box-shadow: 0 0 15px rgba(160, 100, 255, 0.7); text-shadow: 0 0 5px rgba(255,255,255,0.3); animation: coeff-pulse 1.5s infinite; }

@keyframes coeff-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(160, 100, 255, 0.7); }
    50% { box-shadow: 0 0 25px rgba(160, 100, 255, 1); }
}

.fair-breakdown-modern { 
    display: flex; 
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    margin-top: 6px; 
    background: rgba(0,0,0,0.05); 
    padding: 8px 6px; 
    border-radius: 10px; 
    border: 1px solid var(--border); 
}
.fb-item { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 10px; /* Сделали шрифт чуть меньше */
    font-weight: 700; 
    font-family: monospace; 
}