/* --- 1. General & Background Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0c0a18;
    color: #d1d5db;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill="%231a1a2e" fill-opacity="0.4"%3E%3Ccircle cx="50" cy="50" r="1"/%3E%3Ccircle cx="10" cy="10" r="1"/%3E%3Ccircle cx="90" cy="90" r="1"/%3E%3Ccircle cx="10" cy="90" r="1"/%3E%3Ccircle cx="90" cy="10" r="1"/%3E%3Ccircle cx="30" cy="70" r="1"/%3E%3Ccircle cx="70" cy="30" r="1"/%3E%3Ccircle cx="30" cy="30" r="1"/%3E%3Ccircle cx="70" cy="70" r="1"/%3E%3Ccircle cx="50" cy="10" r="1"/%3E%3Ccircle cx="10" cy="50" r="1"/%3E%3Ccircle cx="90" cy="50" r="1"/%3E%3Ccircle cx="50" cy="90" r="1"/%3E%3C/g%3E%3C/svg%3E');
}

/* --- 2. Typography --- */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.glow-text {
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6), 0 0 12px rgba(129, 140, 248, 0.4);
}

.miss { text-align: center; font-size: 2rem; }
.info { text-align: center; font-size: 1.5rem; }

/* --- 3. Components & Cards --- */
.glass-card {
    background: rgba(20, 18, 38, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.loader {
    border: 4px solid #312e81; 
    border-top: 4px solid #818cf8; 
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 4. Original Button Styles (Unified) --- */
/* This rule applies the same base style to BOTH .btn-primary and .submit-btn */
.btn-primary,
.submit-btn {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none; /* Ensure buttons don't have a default border */
    color: white;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.btn-primary:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.7);
}

.submit-btn:disabled {
    background: #4c1d95;
    cursor: not-allowed;
    opacity: 0.7;
    transform: translateY(0);
    box-shadow: none;
}

/* --- 5. Navigation Styling --- */
nav a {
    transition: all 0.3s ease;
}

nav a.active {
    color: white;
    font-weight: 600;
}

/* --- 6. Form Styles --- */
.form-group {
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: rgba(12, 10, 29, 0.7);
    border: 1px solid rgba(128, 90, 213, 0.3);
    color: #d1d5db;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-input::placeholder { color: #6b7280; }

.form-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}