.profit-calculator {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .profit-calculator {
        grid-template-columns: 1fr;
    }
}

.input-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 20px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-item label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.form-item input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-item input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-item input::placeholder {
    color: #94a3b8;
}

.calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.results-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.result-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.result-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #3b82f6;
}

.health-section {
    background: #fffbeb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.health-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.health-icon {
    font-size: 18px;
}

.health-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.health-bar-container {
    position: relative;
    height: 24px;
    background: #fed7aa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.health-bar {
    height: 100%;
    border-radius: 12px;
    transition: all 0.5s ease;
}

.health-value {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.health-level {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.formulas-section {
    margin-top: 24px;
}

.formulas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.formula-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.formula-name {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    width: 80px;
    flex-shrink: 0;
}

.formula-text {
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .profit-calculator {
        padding: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}