body {
    background-image: url('https://i.pinimg.com/originals/e6/1e/fd/e61efd5cb0a6e09a3f0cbf2dbf9e562f.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #a5b4fc;
    font-family: Georgia, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
 
.site-header {
    background: #a375ff;
    border-bottom: 3px solid #b18aff;
    position: relative;
    overflow: hidden;
}
 
.site-header::after {
    content: '';
    display: block;
    height: 2px;
    background: #bcabe0;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    animation: glow-line 3s ease-in-out infinite;
}
 
@keyframes glow-line {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}
 
.main-title {
    font-family: Georgia, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #e0e7ff;
    letter-spacing: 4px;
    margin-bottom: 4px;
    text-align: center;
}
 
.accent { color: #c7d2fe; }
 
.sub-title {
    font-family: Georgia, sans-serif;
    font-size: 15px;
    color: #c7d2fe;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}
 
.header-desc {
    font-size: 12px;
    color: #1e293b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}
 
main.container {
    margin-top: 80px !important;
}
 
.classifier-card {
    background: rgba(177, 138, 255, 0.45);
    border: 3px solid #b18aff;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slide-up 0.6s ease both;
}
 
@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.bolt-icon {
    font-size: 4px;
    display: inline-block;
    animation: pulse-bolt 2s ease-in-out infinite;
}
 
@keyframes pulse-bolt {
    0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 6px #c7d2fe); }
    50%       { transform: scale(1.2); filter: drop-shadow(0 0 18px #c7d2fe); }
}
 
.card-heading {
    font-family: Georgia, sans-serif;
    font-size: 16px;
    color: #e0e7ff;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
 
.card-subtext {
    font-size: 14px;
    color: #1e293b;
}
 
.kwh-input-group .kwh-label {
    background: #38bdf8;
    color: #020617;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    border: none;
    min-width: 60px;
    justify-content: center;
}
 
.kwh-input {
    background: #0a0e1a;
    border: 1px solid #2a2a4a;
    color: #e0e7ff;
    font-family: monospace;
    font-size: 16px;
    padding: 12px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
 
.kwh-input:focus {
    background: #0a0e1a;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    color: #e0e7ff;
    outline: none;
}
 
.kwh-input::placeholder { color: #3a4a70; }
 
.error-text {
    color: #ff4d4d;
    font-size: 14px;
    min-height: 18px;
}
 
.classify-btn {
    background: #60a5fa;
    color: #020617;
    font-family: Georgia, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    padding: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
 
.classify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
    color: #000;
}
 
.classify-btn:active { transform: translateY(0); }
 
.result-box {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 24px;
    animation: fade-in 0.5s ease both;
}
 
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
 
.result-icon { font-size: 40px; margin-bottom: 8px; }
 
.result-category {
    font-size: 20px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 4px;
}
 
.result-range {
    color: #c7d2fe;
    font-size: 13px;
    margin-bottom: 8px;
}
 
.result-desc {
    font-size: 14px;
    color: #e0e7ff;
    background: rgba(96, 165, 250, 0.1);
    border-left: 3px solid #60a5fa;
    border-radius: 4px;
    padding: 10px 16px;
    margin: 0;
}
 
.table-section-title {
    font-family: Georgia, sans-serif;
    font-size: 18px;
    color: #93c5fd;
    letter-spacing: 2px;
}
 
.table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}
 
.classification-table {
    background: #2b163d;
    border: 3px solid #b18aff;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slide-up 0.6s ease both;
}
 
.classification-table thead tr { background: #020617; }
 
.classification-table thead th {
    font-family: monospace;
    color: #7dd3fc;
    border-color: #2a2a4a;
    padding: 14px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #020617;
}
 
.classification-table tbody td {
    border-color: #2a2a4a;
    padding: 12px;
    vertical-align: middle;
}
 
.tier-lifeline td { background: #052e2b; }
.tier-low td       { background: #0a1f3d; }
.tier-avg td       { background: #1e293b; }
.tier-high td      { background: #172554; }
.tier-vhigh td     { background: #1e1b4b; }
 
.classification-table tbody tr:hover td {
    background: rgba(96, 165, 250, 0.12) !important;
    transition: background 0.2s;
}
 
.info-text {
    font-size: 13px;
    color: #b0b8d0;
    line-height: 1.6;
}
 
.source-link {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.2s;
}
.source-link:hover { color: #38bdf8; text-decoration: underline; }
 
.site-footer {
    border-top: 1px solid #2a2a4a;
    background: #040710;
    margin-top: auto;
}
 
.footer-text {
    font-family: monospace;
    font-size: 12px;
    color: #7a8ab0;
    margin: 0;
}
 
.praise-overlay {
    display: none;        
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
 
.praise-overlay.active {
    display: flex;
    animation: overlay-in 0.3s ease both;
}
 
@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
 
.praise-card {
    background: #141427;
    border: 1px solid #2a2a4a;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.15), 0 30px 80px rgba(0,0,0,0.6);
    animation: card-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
 
.praise-title {
    font-family: Georgia, sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #60a5fa;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
 
.praise-msg {
    font-size: 20px;
    color: #e0e7ff;
    font-weight: 600;
    margin-bottom: 4px;
}
 
.praise-sub {
    font-size: 20px;
    color: #7a8ab0;
    margin-bottom: 0;
}
 
.praise-close-btn {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    color: #020617;
    font-family: Georgia, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}
 
.praise-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    color: #000;
}