:root {
    --space-dark: #0a0e27;
    --space-blue: #1a1f3a;
    --cosmic-purple: #6366f1;
    --stellar-pink: #ec4899;
    --nebula-cyan: #06b6d4;
    --star-gold: #fbbf24;
}

body {
    background: linear-gradient(135deg, var(--space-dark), var(--space-blue));
    color: #e2e8f0;
    min-height: 100vh;
}

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

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2.5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 1; }
}

/* Navbar */
.navbar {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--stellar-pink);
}

/* Profile Section */
.profile-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* Profile Card */
.profile-card {
    background: rgba(26, 31, 58, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

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

.profile-icon {
    font-size: 5rem;
    color: var(--stellar-pink);
}

.profile-header h2 {
    margin-top: 15px;
    color: #fff;
}

/* Stats */
.profile-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--nebula-cyan);
}

/* Galaxy Section */
.galaxy-section {
    text-align: center;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
}

.galaxy-section h5 {
    color: var(--star-gold);
    margin-bottom: 10px;
}

.galaxy-section .galaxy-name {
    font-size: 1.3rem;
    color: var(--nebula-cyan);
    margin-bottom: 0;
}

/* Actions */
.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-actions .btn {
    flex: 1;
}

/* Buttons */
.custom-cosmic {
    background: linear-gradient(45deg, var(--cosmic-purple), var(--stellar-pink));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.custom-cosmic:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

/* Logout Link */
.logout-link {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.3s;
}

.logout-link:hover {
    color: #f87171;
}

/* Modals */
.modal-cosmic {
    background: rgba(26, 31, 58, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-cosmic .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
}

.modal-cosmic .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cosmic-purple);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
}

.modal-cosmic .form-label {
    color: var(--nebula-cyan);
}

