/* ================= Theme Variables ================= */
:root {
    --navy: #1a237e;
    --purple: #ab47bc;
    --teal: #26c6da;
    --dark-bg: linear-gradient(to bottom, #0f172a, #1e293b);
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f0f2f5; /* Light background for dashboard content visibility */
    overflow-x: hidden;
}

/* ================= Navbar & Background ================= */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: var(--dark-bg);
    z-index: -1;
    border-bottom-right-radius: 50% 20px;
    border-bottom-left-radius: 50% 20px;
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coins-badge {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* ================= Main Container ================= */
.main-container {
    margin-top: 100px; /* To push content below header */
    padding-bottom: 50px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ================= Profile Left Card ================= */
.profile-card {
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.avatar-container {
    position: relative;
    width: fit-content;
}

.rank-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    background: var(--teal);
    color: var(--navy);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #fff;
}

.bg-gradient-purple {
    background: linear-gradient(90deg, var(--teal), var(--purple));
}

/* Info List Items */
.icon-sq {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-soft-blue {
    background: #e3f2fd;
}
.bg-soft-teal {
    background: #e0f2f1;
}

/* ================= Right Column Stats ================= */
.stat-card {
    background: #fff;
    border-radius: 16px;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.bg-orange-100 {
    background: #fff3e0;
}
.bg-green-100 {
    background: #e8f5e9;
}
.bg-blue-100 {
    background: #e3f2fd;
}

/* Current Mission Card */
.bg-shape-decoration {
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(171, 71, 188, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--navy), var(--purple));
    border: none;
}
.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(171, 71, 188, 0.4);
}

/* ================= Badges Hexagon ================= */
.hexagon {
    width: 60px;
    height: 65px;
    background: #eee;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
    transition: 0.3s;
}
.badge-item:hover .hexagon {
    transform: rotate(360deg);
}

.bg-gradient-gold {
    background: linear-gradient(45deg, #ffd700, #ffa500);
}
.bg-gradient-blue {
    background: linear-gradient(45deg, #42a5f5, #2979ff);
}
.bg-gray {
    background: #cfd8dc;
    color: #90a4ae;
}

.badge-item.locked {
    opacity: 0.7;
    filter: grayscale(1);
}

/* Text Utils */
.text-navy {
    color: var(--navy);
}
.text-purple {
    color: var(--purple);
}
.text-teal {
    color: var(--teal);
}
.bg-teal {
    background: var(--teal);
}
.bg-purple {
    background: var(--purple);
}
