 * {
            box-sizing: border-box;
            font-family: system-ui, -apple-system, sans-serif;
        }
        body {
            background: #f4f6f9;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
        }
        .calculator {
            background: white;
            padding: 30px;
            border-radius: 28px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            max-width: 600px;
            width: 100%;
        }
        h1 {
            font-size: 24px;
            margin-top: 0;
            margin-bottom: 10px;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        h1 small {
            font-size: 14px;
            font-weight: normal;
            color: #64748b;
        }
        .grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 20px;
        }
        .product {
            background: #f8fafc;
            padding: 20px;
            border-radius: 18px;
            border: 2px solid transparent;
            transition: 0.2s;
        }
        .product.winner {
            border-color: #22c55e;
            background: #f0fdf4;
        }
        .product.loser {
            opacity: 0.7;
        }
        .product-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .product-header span {
            font-weight: 600;
            font-size: 18px;
        }
        .badge {
            font-size: 12px;
            background: #e2e8f0;
            padding: 4px 12px;
            border-radius: 30px;
            font-weight: 600;
        }
        .badge.win {
            background: #22c55e;
            color: white;
        }
        .badge.lose {
            background: #ef4444;
            color: white;
        }
        .input-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .input-group {
            flex: 1;
            min-width: 100px;
        }
        .input-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: #475569;
            margin-bottom: 5px;
        }
        .input-group input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            font-size: 16px;
            outline: none;
            transition: 0.2s;
            background: white;
        }
        .input-group input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
        }
        .result-line {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding-top: 12px;
            border-top: 1px dashed #d1d5db;
            font-weight: 600;
            font-size: 17px;
        }
        .result-line .price-kg {
            color: #0f172a;
        }
        .result-line .total {
            color: #3b82f6;
        }

        .summary {
            margin-top: 25px;
            padding: 20px;
            background: #1e293b;
            border-radius: 18px;
            color: white;
            text-align: center;
        }
        .summary .big {
            font-size: 28px;
            font-weight: 700;
        }
        .summary .green {
            color: #4ade80;
        }
        .summary .red {
            color: #f87171;
        }
        .reset-btn {
            margin-top: 15px;
            background: #334155;
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 40px;
            font-size: 14px;
            cursor: pointer;
            transition: 0.2s;
            width: 100%;
        }
        .reset-btn:hover {
            background: #475569;
        }
        .footnote {
            font-size: 13px;
            color: #94a3b8;
            margin-top: 10px;
        }