        :root {
            --primary-bg: #0a0a0f;
            --secondary-bg: #141420;
            --card-bg: #1a1a2e;
            --accent-bg: #16213e;
            --primary-text: #ffffff;
            --secondary-text: #b8bcc8;
            --accent-text: #64ffda;
            --purple-accent: #8b5cf6;
            --blue-accent: #3b82f6;
            --green-accent: #10b981;
            --orange-accent: #f59e0b;
            --red-accent: #ef4444;
            --border-color: #2a2a3e;
            --hover-bg: #252541;
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
            --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
            --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.5);
            --border-radius: 20px;
        }
        
                body *:not(i):not([class*="icon"]):not([class*="fa"]):not([class*="material-icons"]) {
            font-family: "Tektur", sans-serif !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-image: url('../images/space_img.jpg');
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-text);
        }

        body::before {
            content: '';
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background:
                radial-gradient(circle at 20% 50%, rgba(116, 71, 105, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(157, 107, 147, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(116, 71, 105, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(157, 107, 147, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 10%, rgba(116, 71, 105, 0.04) 0%, transparent 50%);
            animation: rotateSpace 180s linear infinite;
            z-index: -1;
            pointer-events: none;
        }
        
            /* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-text);
}

        /* Animated Background */

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
    /* REMOVE the rotation animation */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star.large {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, white, rgba(116, 71, 105, 0.5));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.star.medium {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, white, rgba(157, 107, 147, 0.3));
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

        .profile-container {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 650px;
            margin: 20px;
        }

        .profile-card {
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            padding: 40px;
            box-shadow: var(--shadow-medium);
            position: relative;
        }

        .profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--gradient-primary);
        }

        .header {
            background: var(--gradient-primary);
            color: white;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            transition: all 0.6s;
        }

        .header:hover::before, .header:active::before {
            transform: translateX(100%) rotate(45deg);
        }

        .header:hover::before {
            animation: shine 0.6s ease-in-out;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        .header-content {
            position: relative;
            z-index: 1;
        }

        .title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0;
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            letter-spacing: 2px;
        }

        .card-top-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .back-button-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(26, 26, 46, 0.3);
            color: var(--accent-text);
            border: 1px solid var(--border-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .back-button-circle i {
            font-size: 16px;
        }

        .back-button-circle:hover {
            background: var(--hover-bg);
            color: var(--accent-text);
            box-shadow: var(--shadow-soft);
            transform: translateY(-2px) scale(1.05);
        }

        .language-switch {
            font-weight: 500;
        }
        .language-switch a {
            color: var(--accent-text);
            text-decoration: none;
            padding: 5px 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .language-switch a.active,
        .language-switch a:hover {
            background: var(--accent-text);
            color: var(--card-bg);
        }
        .language-switch span {
            color: var(--accent-text);
            margin: 0 2px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-input {
            width: 100%;
            padding: 18px 40px 18px 20px;
            background-color: var(--secondary-bg);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            color: var(--primary-text);
            font-size: 16px;
            font-weight: 700;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .form-container {
            padding: 2rem 1.5rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            background: rgba(20, 20, 32, 0.5);
            margin-bottom: 2.5rem;
        }

        .form-input::placeholder {
            color: var(--secondary-text);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-text);
            box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
            background: var(--card-bg);
        }

        .form-input:focus + .input-icon {
            color: var(--accent-text);
        }

        .form-input[readonly] {
            cursor: not-allowed !important;
            background-color: var(--accent-bg) !important;
            color: var(--secondary-text);
        }

        .input-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-text);
            transition: color 0.3s ease;
        }

        .profile-picture-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 25px;
        }

        .profile-picture {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--purple-accent);
            box-shadow: var(--shadow-medium);
            margin-bottom: 15px;
        }

        .choose-picture-label {
            cursor: pointer;
            color: var(--accent-text);
            font-weight: 600;
            transition: color 0.3s;
            font-size: 0.9rem;
        }

        .choose-picture-label:hover {
            color: white;
        }

        #profilePhoto {
            display: none;
        }

        .form-columns {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-columns .form-group {
            margin-bottom: 0;
        }

        .form-column {
            flex: 1;
        }

        .form-btn-primary {
            width: 100%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 1.1rem 2rem;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-soft);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .form-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }

        .form-btn-primary:active {
            transform: translateY(0);
        }

        .form-btn-primary::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;
        }

        .form-btn-primary:hover::before {
            left: 100%;
        }

        .password-requirements {
            background: rgba(20, 20, 32, 0.5);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 25px;
            font-size: 0.95rem;
            color: var(--secondary-text);
            box-shadow: var(--shadow-soft);
            backdrop-filter: blur(5px);
            position: relative;
        }

        .password-requirements strong {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--accent-text);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }

        .password-requirements ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 8px;
        }

        .password-requirements li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 500;
        }

        .password-requirements li::before {
            content: '✓';
            width: 20px;
            height: 20px;
            background: var(--gradient-primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .password-requirements li:hover {
            background: var(--hover-bg);
            transform: translateX(4px);
            border-color: var(--accent-text);
        }

        .divider {
            margin: 30px auto;
            width: 80%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-color), transparent);
        }

        .links {
            text-align: center;
        }
        .links a {
            color: var(--accent-text);
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 1rem;
        }
        .links a:hover {
            color: var(--primary-text);
            background: rgba(100, 255, 218, 0.1);
            transform: translateY(-1px);
        }

        .error-message, .success-message {
            padding: 1.5rem;
            border-radius: 12px;
            margin: -15px 0 1.5rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            box-shadow: var(--shadow-soft);
            backdrop-filter: blur(10px);
        }
        .error-message {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
            color: var(--red-accent);
            border: 2px solid rgba(239, 68, 68, 0.2);
        }
        .success-message {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
            color: var(--green-accent);
            border: 2px solid rgba(16, 185, 129, 0.2);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            body {
                overflow: auto;
            }

            .profile-container {
                width: 100vw;
                height: 100vh;
                max-width: none;
                margin: 0;
                padding: 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                position: relative;
            }
            .header {
                width: 100%;
                border-radius: 0;
                flex-shrink: 0;
                display: block;
                text-align: center;
                position: relative;
                top: 0;
            }
            .profile-card {
                width: 100%;
                border-radius: 0;
                padding: 40px 30px;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                height: 100%;
                background: rgba(26, 26, 46, 0.98);
                height: auto;
            }
            .title {
                font-size: 1.8rem;
            }
            .form-columns {
                flex-direction: column;
                gap: 0;
            }
            .form-columns .form-group {
                margin-bottom: 25px;
            }
            
            .error-message, .success-message {
                font-size: 1rem;
                padding: 1.5rem;
                margin: -15px 0 10px 0;
            }
            
            .password-requirements {
                padding: 20px;
                margin-bottom: 20px;
            }
        
            .password-requirements strong {
                font-size: 1rem;
                margin-bottom: 14px;
            }
        
            .password-requirements li {
                padding: 8px 14px;
                font-size: 0.9rem;
            }
        }
        
        /* Badge System Styles */
.admin-only-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    text-align: center;
}

.badges-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.badges-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.badges-btn i {
    font-size: 1.3rem;
}

/* Badge Modal */
.badge-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.badge-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.badge-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-modal-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    padding: 2rem;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.badge-modal-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.badge-stats {
    padding: 2rem;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-filters {
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--secondary-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-text);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.badge-modal-body {
    padding: 2rem;
}

.badge-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-text);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-card:hover::before {
    opacity: 1;
}

.badge-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-text);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.badge-card.locked .badge-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.badge-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.badge-card:hover .badge-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.badge-icon-wrapper.common {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.badge-icon-wrapper.rare {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge-icon-wrapper.epic {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.badge-icon-wrapper.legendary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
    }
}

.badge-icon {
    color: white;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.badge-description {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.badge-rarity {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.badge-rarity.common {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.badge-rarity.rare {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-rarity.epic {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.badge-rarity.legendary {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-points {
    font-weight: 700;
    color: var(--accent-text);
    font-size: 0.9rem;
}

.badge-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
}

.unlocked-date {
    font-size: 0.75rem;
    color: var(--green-accent);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .badge-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .badge-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .badge-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-filters {
        padding: 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}