* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eef2f5;
    font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.card {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    background: #1a3e4c;
    padding: 20px 24px;
    color: #fff;
}

.header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 6px;
    font-weight: 400;
}

.body {
    padding: 24px;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 700px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.inputs-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    margin-bottom: 4px;
}

.label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f3e48;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    padding: 12px 32px 12px 12px;
    font-size: 1rem;
    border: 1.5px solid #dce5ec;
    border-radius: 20px;
    background: #fff;
    font-family: 'Noto Sans Hebrew', monospace;
    text-align: right;
    direction: rtl;
    font-weight: 500;
    color: #0a2b32;
}

.input-wrap input:focus {
    outline: none;
    border-color: #2f8b6e;
    box-shadow: 0 0 0 3px rgba(47, 139, 110, 0.15);
}

.symbol {
    position: absolute;
    right: 14px;
    top: 11px;
    font-weight: 600;
    color: #2c6e5c;
    pointer-events: none;
    font-size: 0.9rem;
}

.slider-wrap {
    margin-top: 8px;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #cbdde6;
    border-radius: 5px;
    margin: 10px 0 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #2f8b6e;
}

.rate-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #577b8c;
    margin-top: 4px;
}

.reset-btn {
    background: #ecf3f0;
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #1f5e4f;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    transition: 0.1s;
    font-family: 'Noto Sans Hebrew', sans-serif;
}

.reset-btn:active {
    background: #dde8e4;
}

.results-area {
    background: #f9fdfb;
    border-radius: 24px;
    padding: 20px 16px;
    border: 1px solid #e2eee9;
}

.monthly-box {
    text-align: center;
    background: #fff;
    border-radius: 26px;
    padding: 18px 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.monthly-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #458573;
    margin-bottom: 8px;
}

.monthly-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a6a58;
    line-height: 1.2;
}

.stats {
    display: flex;
    gap: 12px;
}

.stat {
    flex: 1;
    background: #fff;
    text-align: center;
    padding: 12px 4px;
    border-radius: 20px;
    border: 1px solid #e0eee8;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #628d7e;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e4a3f;
    margin-top: 6px;
}

footer {
    background: #f6faf8;
    font-size: 0.65rem;
    text-align: center;
    padding: 12px;
    color: #7b9a8e;
    border-top: 1px solid #e2eee9;
    font-family: 'Noto Sans Hebrew', sans-serif;
}

@media (max-width: 550px) {
    .body {
        padding: 16px;
    }
    .monthly-value {
        font-size: 1.9rem;
    }
}