:root {
    --gold: #d4af37;
    --dark-bg: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

#starCanvas {
    position: fixed;
    top: 0; left: 0;
    z-index: -1;
}

/* Container & Layout */
.container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 20px; 
    padding: 20px;
}

/* Sidebar & Avatar - Glassy Correction 💎 */
.avatar-section {
    flex: 1;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

#avatar-container {
    position: relative;
    width: 220px;   
    height: 220px;  
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    margin: 0 auto;
}

#avatar-img { 
    width: 100%; 
    height: auto;
    display: block;
    transform: translateY(10px); 
}

.img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#display-name {
    margin-top: 20px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Form Section */
.form-section {
    flex: 2;
    max-width: 600px;
    background: var(--glass);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.5s ease; }

.input-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 10px; color: var(--gold); font-weight: 600; }

input, select {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus { outline: none; border-color: var(--gold); }

button {
    background: var(--gold);
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }

.btn-group { display: flex; gap: 15px; }
.prev-btn { background: rgba(255,255,255,0.1); color: white; }

/* Sub-options & Tickets */
.sub-options {
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border: 1px dashed var(--gold);
    display: none; 
}

.golden-ticket-area {
    margin-top: 10px;
    display: none;
}

.ticket-input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--gold);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-family: 'Orbitron';
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.05);
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 14.2%;
    transition: 0.5s ease;
    box-shadow: 0 0 10px var(--gold);
}

/* Success Card */
#success-card {
    display: none;
    text-align: center;
}

.card-inner {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--gold);
}

.code-box {
    background: #000;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-top: 15px;
}

/* Utils */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; color: var(--gold); letter-spacing: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.check-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
}

.check-label input { width: 20px; }

/* Responsive Fix */
@media (max-width: 768px) {
    .container { flex-direction: column; align-items: center; }
    .avatar-section { 
        width: 100% !important; 
        order: -1; 
        margin-bottom: 20px; 
    }
    #avatar-container {
        width: 160px;  
        height: 160px;
    }
    .form-section { width: 100% !important; }
    h2 { font-size: 1.2rem; }
}
