:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --bg: #030712;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }

body { background: var(--bg); color: white; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }

/* Galaxy & Stars */
.space { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; background: #020617; }
.stars { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)), radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)), radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)); background-repeat: repeat; background-size: 200px 200px; opacity: 0.3; }

.shooting-stars span { position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; background: #fff; border-radius: 50%; box-shadow: 0 0 20px #fff; animation: animateSS 3s linear infinite; }
.shooting-stars span::before { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 150px; height: 1px; background: linear-gradient(90deg, #fff, transparent); }

@keyframes animateSS {
    0% { transform: rotate(315deg) translateX(0); opacity: 1; }
    100% { transform: rotate(315deg) translateX(-800px); opacity: 0; }
}

/* Container & Main Card */
.container { position: relative; z-index: 10; padding: 20px; width: 100%; display: flex; justify-content: center; }
.glass-card { background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border); backdrop-filter: blur(20px); padding: 30px 20px; border-radius: 24px; width: 100%; max-width: 380px; text-align: center; }

.header h1 { font-size: 22px; font-weight: 800; background: linear-gradient(to right, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 10px 0; }
.header p { font-size: 13px; color: #94a3b8; margin-bottom: 25px; }

.form-group { text-align: left; margin-bottom: 15px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: #818cf8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

input[type="text"] { width: 100%; background: #000; border: 1px solid var(--border); padding: 12px; border-radius: 12px; color: white; font-size: 14px; }
.file-drop-area { border: 2px dashed var(--border); border-radius: 12px; padding: 15px; position: relative; text-align: center; font-size: 13px; }
#fileInput { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }

.btn-glow { width: 100%; padding: 15px; background: linear-gradient(45deg, var(--primary), var(--accent)); border: none; border-radius: 12px; color: white; font-weight: 800; cursor: pointer; margin-top: 10px; }

/* MODAL REVISI - FIXED OVERLAY */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #0f172a; border: 1px solid var(--primary); padding: 30px 20px; border-radius: 24px; width: 100%; max-width: 340px; text-align: center; animation: zoomIn 0.3s ease; }
.success-icon { font-size: 40px; margin-bottom: 10px; }
.url-wrapper { background: #000; padding: 10px; border-radius: 10px; margin: 15px 0; border: 1px solid #333; }
#resultUrl { width: 100%; background: none; border: none; color: #818cf8; text-align: center; font-family: monospace; font-size: 13px; outline: none; }

.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); text-decoration: none; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.btn-close-link { width: 100%; background: #1e293b; color: #94a3b8; border: none; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 12px; }

/* Toast */
#toast-container { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 1000; width: 90%; max-width: 300px; }
.toast { background: #6366f1; color: white; padding: 12px 20px; border-radius: 50px; text-align: center; font-size: 13px; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.3); margin-top: 10px; animation: slideUp 0.3s ease; }

/* WA Float */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 900; display: flex; align-items: center; text-decoration: none; }
.wa-float img { width: 45px; height: 45px; position: relative; z-index: 2; }
.wa-text { background: #25d366; color: white; padding: 6px 15px 6px 25px; border-radius: 20px; margin-right: -20px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.wa-pulse { position: absolute; right: 0; width: 45px; height: 45px; background: #25d366; border-radius: 50%; animation: pulse 2s infinite; }

@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }
