/* --- Стили для Вкладов (Emerald Theme) --- */
:root {
    --accent-emerald: #10B981;
    --accent-emerald-dark: #047857;
    --gradient-emerald-card: linear-gradient(135deg, #34D399 0%, #059669 100%);
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Сетка */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs */
.calc-inputs { gap: 24px; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; padding: 16px; padding-right: 40px;
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.suffix, .currency { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 24px 0; }

/* Range Slider */
.range-slider {
    width: 100%; margin-top: 12px; -webkit-appearance: none; height: 6px;
    background: #E5E7EB; border-radius: 5px; outline: none; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent-emerald); cursor: pointer; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

/* Чекбокс */
.checkbox-row { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-top: 8px; }
.checkbox-row input { display: none; }
.checkbox-box {
    width: 24px; height: 24px; border: 2px solid #D1D5DB; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; color: transparent; transition: all 0.2s; flex-shrink: 0;
}
.checkbox-row input:checked + .checkbox-box { background: var(--accent-emerald); border-color: var(--accent-emerald); color: #fff; }
.checkbox-row span:last-child { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* Результаты (Emerald Card) */
.card--emerald { background: var(--gradient-emerald-card); color: #fff; border: none; }
.card--emerald h2 { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 16px; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.deposit-result {
    font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 32px; letter-spacing: -0.02em;
}

/* График */
.chart-container {
    display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
    padding: 16px; background: rgba(255,255,255,0.15); border-radius: 16px; backdrop-filter: blur(4px);
}
.donut-chart {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(#fff var(--percent, 0%), rgba(255,255,255,0.3) 0);
    position: relative;
}
.chart-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60%; height: 60%; background: var(--accent-emerald); border-radius: 50%; opacity: 0.8;
}
/* Модификация легенды для темного фона */
.chart-legend { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--base { background-color: rgba(255,255,255,0.3); }
.dot--accent { background-color: #fff; }

.summary-divider { 
    height: 1px; 
    background: rgba(255,255,255,0.2); 
    margin: 24px 0; 
}

/* Блок подсказки (Исправленный цвет текста) */
.tip-box {
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff; /* Принудительно белый цвет */
    
    /* Полупрозрачный фон для читаемости */
    background: rgba(255, 255, 255, 0.1); 
    padding: 16px; 
    border-radius: 12px; 
    backdrop-filter: blur(4px);
}

.tip-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.tip-box strong {
    color: #fff;
    font-weight: 700;
}