
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
            background: #f0f9f4;
            color: #1e2f2d;
            line-height: 1.5;
            padding: 12px;
        }
        .container {
            max-width: 1300px;
            margin: 0 auto;
            background: white;
            border-radius: 2rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            border: 1px solid rgba(0, 128, 0, 0.15);
        }
        .header {
            background: linear-gradient(145deg, #004d40, #1b5e20);
            color: white;
            padding: 2rem 1.5rem;
        }
        .header h1 {
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
            margin-bottom: 0.5rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }
        .header h1 span {
            background: #ffb74d;
            color: #1e2f2d;
            padding: 0.1rem 1rem;
            border-radius: 100px;
            font-size: 1.5rem;
            display: inline-block;
            white-space: nowrap;
        }
        .header p {
            font-size: 1.1rem;
            max-width: 700px;
            opacity: 0.9;
        }
        .main-panel {
            display: flex;
            flex-wrap: wrap;
        }
        .input-section {
            flex: 1.2;
            min-width: 300px;
            padding: 2rem 1.5rem;
            background: #f8fefb;
            border-right: 2px dashed #c8e6c9;
        }
        .result-section {
            flex: 1;
            min-width: 280px;
            padding: 2rem 1.5rem;
            background: #ffffff;
        }
        .section-title {
            font-size: 1.6rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1e3a2f;
        }
        .section-title i {
            font-size: 2rem;
        }
        .form-group {
            margin-bottom: 1.5rem;
        }
        label {
            font-weight: 600;
            display: block;
            margin-bottom: 0.5rem;
            color: #1e4d3b;
            font-size: 1rem;
        }
        select, input {
            width: 100%;
            padding: 0.9rem 1.2rem;
            font-size: 1rem;
            border: 2px solid #c5e1cc;
            border-radius: 60px;
            background: white;
            transition: 0.2s;
            font-family: inherit;
            appearance: none;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
            background-repeat: no-repeat;
            background-position: right 1.2rem center;
            background-size: 1.2rem;
        }
        select:focus, input:focus {
            border-color: #2e7d32;
            outline: none;
            box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
        }
        .appliance-row {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        .appliance-row select, .appliance-row input {
            width: auto;
            flex: 1 1 100px;
            min-width: 0;
        }
        .appliance-row .remove-btn {
            background: #ffcdd2;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-weight: bold;
            font-size: 1.3rem;
            color: #b71c1c;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .appliance-row .remove-btn:hover {
            background: #ef9a9a;
        }
        .btn-add {
            background: #e8f5e9;
            border: 2px dashed #66bb6a;
            color: #1b5e20;
            padding: 0.8rem 1.5rem;
            border-radius: 60px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 0.5rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: 0.2s;
        }
        .btn-add:hover {
            background: #c8e6c9;
            border-style: solid;
        }
        .btn-calculate {
            background: #2e7d32;
            color: white;
            border: none;
            padding: 1.2rem 1.5rem;
            font-size: 1.3rem;
            font-weight: 700;
            border-radius: 60px;
            width: 100%;
            cursor: pointer;
            transition: 0.2s;
            margin: 1.5rem 0 1rem;
            box-shadow: 0 8px 14px rgba(0, 80, 0, 0.3);
            letter-spacing: 0.5px;
        }
        .btn-calculate:hover {
            background: #1b5e20;
            transform: scale(1.02);
        }
        .result-card {
            background: #eaf5ec;
            border-radius: 30px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid #a5d6a7;
        }
        .result-item {
            display: flex;
            justify-content: space-between;
            padding: 0.8rem 0;
            border-bottom: 1px solid #b8dfba;
            font-size: 1.1rem;
            gap: 10px;
            flex-wrap: wrap;
        }
        .result-item:last-child {
            border-bottom: none;
        }
        .result-item .label {
            font-weight: 500;
            color: #1e4d3b;
        }
        .result-item .value {
            font-weight: 700;
            color: #004d40;
            font-size: 1.2rem;
            text-align: right;
        }
        .savings-badge {
            background: #2e7d32;
            color: white;
            padding: 0.7rem 1.2rem;
            border-radius: 60px;
            font-weight: 600;
            text-align: center;
            margin: 1.5rem 0;
            font-size: 1.1rem;
        }
        .share-wa {
            background: #25D366;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 1rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 1.2rem;
            border: none;
            width: 100%;
            cursor: pointer;
            transition: 0.2s;
            margin-top: 2rem;
        }
        .share-wa:hover {
            background: #128C7E;
        }
        .footer-note {
            text-align: center;
            font-size: 0.9rem;
            color: #2d5a4b;
            margin-top: 2rem;
            padding: 0 0.5rem;
        }
        .footer-note a {
            color: #004d40;
            font-weight: 600;
            text-decoration: none;
        }
        #map-legend {
            font-size: 0.9rem;
            background: #f1f8e9;
            border-radius: 30px;
            padding: 0.6rem 1.2rem;
            margin-top: 1rem;
            display: inline-block;
            color: #1e2f2d;  /* dark text on light background */
        }
        .state-selector {
            background: #f1f8e9;
            border-radius: 40px;
            padding: 1rem 1.5rem;
            margin-bottom: 1.5rem;
        }
        /* small screens adjustments */
        @media (max-width: 700px) {
            body { padding: 8px; }
            .header h1 { font-size: 1.8rem; }
            .header h1 span { font-size: 1.3rem; }
            .header p { font-size: 1rem; }
            .section-title { font-size: 1.4rem; }
            .input-section, .result-section { min-width: 100%; }
            .input-section { border-right: none; border-bottom: 2px dashed #c8e6c9; }
            .appliance-row select, .appliance-row input { flex-basis: 100%; }
            .appliance-row .remove-btn { width: 100%; border-radius: 40px; margin-top: 4px; }
            .result-item { font-size: 1rem; }
            .result-item .value { font-size: 1.1rem; }
            .btn-calculate { font-size: 1.2rem; }
        }
        @media (max-width: 380px) {
            .header h1 { font-size: 1.5rem; }
            .header h1 span { font-size: 1.1rem; }
        }
