:root {
    --primary: #246bfd;
    --primary-light: rgba(36, 107, 253, 0.2);
    --secondary: #6e40ff;
    --dark: #040712;
    --card-bg: rgba(14, 22, 40, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --error: #ff4b4b;
    --success: #00e676;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.register-container {
    padding: 20px;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

/* Background Animated Blobs */
.bg-decoration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blobBounce 20s infinite alternate;
}

.blob-1 {
    background: var(--primary);
    top: -200px;
    left: -300px;
}

.blob-2 {
    background: var(--secondary);
    top: 100px;
    left: 100px;
    animation-delay: -5s;
}

@keyframes blobBounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Card Styles */
.register-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo img {
    height: 40px;
    margin-bottom: 12px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.card-header p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    transform: scale(1.2);
}

.step-line {
    width: 30px;
    height: 2px;
    background: var(--border);
}

/* Step Logic */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

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

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.input-wrapper i:not(.toggle-password) {
    position: absolute;
    left: 15px;
    color: var(--text-dim);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.availability-status {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    margin-left: 4px;
    height: 14px;
    transition: all 0.3s ease;
}

.availability-status.available {
    color: var(--success);
}

.availability-status.unavailable {
    color: var(--error);
}

/* Phone Wrapper */
.iti input {
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: white !important;
    width: 100% !important;
    height: 48px !important;
    font-size: 15px !important;
    padding-left: 89px !important;
    padding-right: 44px !important;
}

/* Fix visibility in Country list */
.iti__country-list {
    background-color: var(--dark) !important;
    border: 1px solid var(--border) !important;
}

.iti__country-name, .iti__dial-code {
    color: white !important;
    font-size: 13px !important;
}

.iti__country:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Step 2 Specifics */
.gender-selector {
    display: flex;
    gap: 10px;
}

.gender-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gender-option i {
    font-size: 18px;
    color: var(--text-dim);
}

.gender-option span {
    font-size: 12px;
}

.gender-option:hover {
    border-color: var(--primary);
}

.gender-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(36, 107, 253, 0.3);
}

.gender-option.selected i {
    color: var(--primary);
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.avatar-item {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.avatar-item:hover {
    transform: scale(1.05);
}

.avatar-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 15px rgba(36, 107, 253, 0.3);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.game-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-item img {
    width: 100%;
    max-width: 60px;
    margin-bottom: 8px;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.3s ease;
}

.game-item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
}

.game-item:hover {
    border-color: var(--primary-light);
}

.game-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.game-item.selected img {
    filter: grayscale(0) opacity(1);
    transform: translateY(-2px);
}

.game-item.selected span {
    color: white;
}

/* Buttons */
.form-footer {
    margin-top: 32px;
}

.dual-btns {
    display: flex;
    gap: 12px;
}

.submit-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 16px;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(36, 107, 253, 0.3);
}

.back-btn {
    width: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-dim);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .games-grid { grid-template-columns: 1fr 1fr; }
}
