* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at top, #0f2027, #203a43, #000);
    min-height: 100vh;
    color: white;
}

/* 🌌 Background bintang */
#stars {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.app {
    max-width: 900px;
    margin: auto;
    padding: 30px 20px;
}

/* Header */
h1 {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(45deg,#00c6ff,#00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 25px;
}

/* Card */
.glass {
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.glass:hover {
    transform: translateY(-5px);
}

/* Input */
.input-group {
    display: grid;
    gap: 10px;
}

input {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Button */
button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg,#00c6ff,#0072ff);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px #00c6ff;
}

.loc-btn {
    background: linear-gradient(45deg,#00ffcc,#00c6ff);
}

/* Hasil */
.hasil {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.hasil.show {
    opacity: 1;
    transform: translateY(0);
}

.hasil b {
    color: #00ffcc;
}

/* Chart */
canvas {
    max-height: 300px;
}

/* Footer */
.footer {
    text-align: center;
    opacity: 0.6;
    margin-top: 10px;
}