:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --safe: #16a34a;
    --risky: #d97706;
    --danger: #dc2626;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 10px 0;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.panel {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.sticky-result {
    position: sticky;
    top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-block {
    margin-bottom: 40px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.label-row label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.num-box {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 10px 15px;
    width: 140px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    color: var(--primary);
    outline: none;
    transition: 0.2s;
}

.num-box:focus {
    border-color: var(--primary);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
    margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    background: var(--primary);
    color: white;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.status-icon {
    font-size: 5rem;
    margin-bottom: 10px;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.prog-bg {
    background: #f1f5f9;
    height: 14px;
    border-radius: 10px;
    margin: 25px 0 10px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.percent-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.stat-item span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.stat-item strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.btn-action {
    width: 100%;
    padding: 20px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 30px;
    transition: 0.3s;
}

.btn-action:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.tips-section {
    margin-top: 80px;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 800;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border-top: 6px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tip-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-container {
    max-width: 800px;
    margin: 80px auto;
}

details {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

details:hover {
    border-color: var(--primary);
}

summary {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer {
    margin-top: 100px;
    border-top: 1px solid var(--border);
    padding-top: 50px;
    text-align: center;
}

.disclaimer-box {
    background: #e2e8f0;
    padding: 30px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: left;
    line-height: 1.7;
}