* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    color: #fff;
}

/* Agreement Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.agreement-box {
    background: linear-gradient(135deg, #1e2139 0%, #2a2f4a 100%);
    padding: 50px;
    border-radius: 20px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.agreement-box h2 {
    margin-bottom: 25px;
    color: #5865f2;
    font-size: 2em;
    font-weight: 700;
}

.agreement-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #d1d5db;
}

.agreement-subtext {
    font-size: 0.95em !important;
    color: #9ca3af !important;
    margin-top: 25px !important;
}

/* Main Content */
#main-content {
    position: relative;
    width: 100%;
    height: 100vh;
    transition: filter 0.5s ease;
}

#main-content.blurred {
    filter: blur(10px);
}

/* Stars Canvas */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Steps */
.step {
    display: none;
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(30, 33, 57, 0.9) 0%, rgba(42, 47, 74, 0.9) 100%);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(88, 101, 242, 0.15);
    max-width: 550px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

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

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

.step h1 {
    margin-bottom: 20px;
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step p {
    margin-bottom: 35px;
    color: #d1d5db;
    font-size: 1.15em;
    line-height: 1.6;
}

/* Buttons */
.btn-primary, .btn-discord {
    padding: 16px 45px;
    font-size: 1.15em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before, .btn-discord:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c44a8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c44a8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* Success/Error Icons */
.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    margin: 0 auto 20px;
}

.success-icon {
    background: #43b581;
    animation: scaleIn 0.5s ease;
}

.error-icon {
    background: #f04747;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Loader */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(88, 101, 242, 0.3);
    border-top-color: #5865f2;
    border-radius: 50%;
    margin: 30px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
