:root {
    --clr-lightest: #A7EBF2;
    --clr-light: #54ACBF;
    --clr-mid: #26658C;
    --clr-dark: #023859;
    --clr-darkest: #011C40;

    --bg-body: var(--clr-darkest);
    --bg-card: rgba(2, 56, 89, 0.45);
    --bg-glass: rgba(1, 28, 64, 0.55);
    --bg-elevated: rgba(2, 47, 77, 0.85);
    --text-main: #e8f4f8;
    --text-muted: #90b8c9;

    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-glow: 0 0 30px rgba(167, 235, 242, 0.15);
    --shadow-card: 0 8px 32px rgba(1, 28, 64, 0.6);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-glass: 1px solid rgba(84, 172, 191, 0.18);
}

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

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* Background animated elements */
.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(84, 172, 191, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 172, 191, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.canvas-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    filter: blur(100px);
    animation: orbFloat 15s ease-in-out infinite alternate;
}

.glow-orb.a {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(167, 235, 242, 0.09), transparent);
    top: -100px; left: -100px;
}

.glow-orb.b {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(84, 172, 191, 0.07), transparent);
    bottom: -150px; right: -150px;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, -80px) scale(1.25); }
}

/* Premium Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-lightest), var(--clr-light), var(--clr-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Layout Architecture */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar navigation */
.sidebar {
    width: 280px;
    height: 100%;
    background: rgba(1, 28, 64, 0.85);
    backdrop-filter: blur(20px);
    border-right: var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 10;
    transition: transform var(--transition);
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 35px;
    text-align: center;
}

.sidebar-logo span {
    color: var(--clr-lightest);
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for sidebar */
.nav-menu::-webkit-scrollbar {
    width: 4px;
}
.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(84, 172, 191, 0.3);
    border-radius: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background: rgba(167, 235, 242, 0.08);
    box-shadow: 0 4px 15px rgba(167, 235, 242, 0.05);
    transform: translateX(5px);
}

.nav-item.active {
    border-left: 3px solid var(--clr-lightest);
}

.nav-item-icon {
    font-size: 1.25rem;
}

/* Sidebar Footer / User Profile Summary */
.user-profile-summary {
    background: rgba(2, 56, 89, 0.5);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(84, 172, 191, 0.15);
    margin-top: auto;
}

.profile-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-lightest);
}

.profile-level {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-xp-bar {
    width: 100%;
    height: 4px;
    background: rgba(84, 172, 191, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.profile-xp-fill {
    height: 100%;
    background: var(--clr-lightest);
    width: 0%;
    transition: width var(--transition);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(2, 56, 89, 0.15) 0%, transparent 100%);
}

.page-view {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
    padding-bottom: 80px; /* Space for mascot */
}

.page-view.active {
    display: block;
}

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

/* Header inside pages */
.page-header {
    margin-bottom: 35px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(15px) saturate(180%);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition), transform var(--transition);
    margin-bottom: 30px;
}

.glass-panel:hover {
    border-color: rgba(167, 235, 242, 0.25);
}

/* 3D Visualizer component layout */
.viewer-split-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .viewer-split-layout {
        grid-template-columns: 1fr;
    }
}

.viewer-3d-box {
    position: relative;
    height: 550px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    border: var(--border-glass);
}

.viewer-canvas {
    width: 100%;
    height: 100%;
}

.viewer-toolbar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(1, 28, 64, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 235, 242, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--clr-lightest);
}

.viewer-legends {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(1, 28, 64, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.controls-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--clr-lightest);
}

.viewer-style-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-style {
    background: transparent;
    border: 1px solid rgba(84, 172, 191, 0.3);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-style:hover {
    border-color: var(--clr-lightest);
    color: var(--clr-lightest);
    background: rgba(167, 235, 242, 0.05);
}

.btn-style.active {
    background: rgba(167, 235, 242, 0.12);
    border-color: var(--clr-lightest);
    color: var(--clr-lightest);
    box-shadow: 0 0 15px rgba(167, 235, 242, 0.15);
}

/* Floating AI Mentor Widget styling */
.mentor-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mentor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--clr-lightest), var(--clr-light), var(--clr-dark));
    box-shadow: 0 0 25px rgba(167, 235, 242, 0.4), var(--shadow-card);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
}

.mentor-avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 35px rgba(167, 235, 242, 0.6);
}

.mentor-avatar::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #10b981; /* active status green */
    border: 2.5px solid var(--clr-darkest);
    border-radius: 50%;
    bottom: 2px;
    right: 2px;
}

.mentor-avatar-face {
    font-size: 2.2rem;
    user-select: none;
}

.mentor-chat-window {
    width: 380px;
    height: 500px;
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    background: rgba(1, 28, 64, 0.93);
    backdrop-filter: blur(25px);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(1, 28, 64, 0.8), var(--shadow-glow);
    overflow: hidden;
    animation: panelPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes panelPop {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mentor-chat-header {
    padding: 16px 20px;
    background: rgba(2, 56, 89, 0.7);
    border-bottom: 1px solid rgba(84, 172, 191, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mentor-chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-lightest);
}

.mentor-chat-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mentor-chat-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color var(--transition);
}

.mentor-chat-close:hover {
    color: var(--clr-lightest);
}

.mentor-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mentor-chat-messages::-webkit-scrollbar {
    width: 4px;
}
.mentor-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(84, 172, 191, 0.2);
    border-radius: 2px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.5;
}

.chat-bubble.mentor {
    background: rgba(2, 56, 89, 0.6);
    border-left: 3px solid var(--clr-lightest);
    color: var(--text-main);
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--clr-mid);
    color: var(--text-main);
    align-self: flex-end;
}

.mentor-chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(84, 172, 191, 0.15);
    display: flex;
    gap: 10px;
    background: rgba(1, 28, 64, 0.5);
}

.mentor-text-input {
    flex-grow: 1;
    background: rgba(2, 47, 77, 0.6);
    border: 1px solid rgba(84, 172, 191, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.mentor-text-input:focus {
    border-color: var(--clr-lightest);
}

.mentor-send-btn {
    background: var(--clr-lightest);
    color: var(--clr-darkest);
    border: none;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition);
}

.mentor-send-btn:hover {
    transform: scale(1.05);
}

/* Retro command terminal layout */
.terminal-window {
    background: #000b18;
    border: 1px solid rgba(84, 172, 191, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 30px rgba(84, 172, 191, 0.08);
    font-family: var(--font-mono);
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: rgba(1, 28, 64, 0.7);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(84, 172, 191, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.r { background: #ef4444; }
.terminal-dot.y { background: #eab308; }
.terminal-dot.g { background: #22c55e; }

.terminal-header-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.terminal-output {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    color: #38bdf8;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-line {
    word-break: break-all;
}

.terminal-line.command {
    color: var(--clr-lightest);
}

.terminal-line.system {
    color: var(--text-muted);
}

.terminal-line.success {
    color: #4ade80;
}

.terminal-line.error {
    color: #f87171;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    background: rgba(1, 28, 64, 0.4);
    padding: 12px 20px;
    border-top: 1px solid rgba(84, 172, 191, 0.1);
}

.terminal-prompt {
    color: var(--clr-lightest);
    font-weight: 700;
    margin-right: 10px;
    user-select: none;
}

.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* RPG Pathways map */
.rpg-levels-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 30px 10px;
}

.rpg-levels-grid::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 35px;
    width: 2px;
    background: linear-gradient(180deg, var(--clr-lightest) 0%, rgba(84, 172, 191, 0.1) 100%);
    z-index: 0;
}

.level-card {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform var(--transition);
}

.level-card:hover {
    transform: translateX(10px);
}

.level-badge-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--clr-dark);
    border: 2px solid rgba(84, 172, 191, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.level-card.completed .level-badge-circle {
    background: var(--clr-lightest);
    color: var(--clr-darkest);
    border-color: var(--clr-lightest);
    box-shadow: 0 0 15px rgba(167, 235, 242, 0.5);
}

.level-card.active .level-badge-circle {
    background: var(--clr-mid);
    color: var(--text-main);
    border-color: var(--clr-lightest);
    box-shadow: 0 0 20px rgba(84, 172, 191, 0.4);
    animation: borderPulse 2s infinite alternate;
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 10px rgba(167, 235, 242, 0.2); }
    100% { box-shadow: 0 0 20px rgba(167, 235, 242, 0.6); }
}

.level-details {
    flex-grow: 1;
    background: rgba(2, 56, 89, 0.4);
    backdrop-filter: blur(8px);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-card.locked .level-details {
    opacity: 0.5;
    pointer-events: none;
}

.level-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.level-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.level-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.level-status.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.level-status.active { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.level-status.locked { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

/* RPG Story Card Overlay / Interactive popup modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(1, 10, 24, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: rgba(1, 28, 64, 0.95);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), var(--shadow-glow);
    position: relative;
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--clr-lightest);
}

/* Quiz Card UI components */
.quiz-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: rgba(2, 56, 89, 0.4);
    border: 1px solid rgba(84, 172, 191, 0.25);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.option-btn:hover {
    border-color: var(--clr-lightest);
    background: rgba(167, 235, 242, 0.05);
}

.option-btn.selected {
    border-color: var(--clr-lightest);
    background: rgba(167, 235, 242, 0.1);
}

.option-btn.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.option-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.quiz-explanation {
    margin-top: 15px;
    padding: 15px;
    background: rgba(2, 56, 89, 0.6);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--clr-lightest);
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Science interactive labs general utilities */
.slider-group {
    margin-bottom: 25px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.slider-label span.val {
    color: var(--clr-lightest);
    font-weight: 700;
}

input[type=range].science-range {
    -webkit-appearance: none;
    width: 100%;
    background: rgba(84, 172, 191, 0.15);
    height: 8px;
    border-radius: 4px;
    outline: none;
}

input[type=range].science-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-lightest);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(167, 235, 242, 0.5);
    transition: transform 0.2s;
}

input[type=range].science-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Mutation Playground Residue Grid */
.residue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(1, 15, 35, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(84, 172, 191, 0.1);
    margin-bottom: 20px;
}

.residue-grid::-webkit-scrollbar {
    width: 4px;
}
.residue-grid::-webkit-scrollbar-thumb {
    background: rgba(84, 172, 191, 0.2);
    border-radius: 2px;
}

.residue-node {
    height: 40px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.residue-node:hover {
    transform: scale(1.08);
}

.residue-node.active {
    border-color: var(--clr-lightest);
    box-shadow: 0 0 10px rgba(167, 235, 242, 0.3);
}

/* Residue properties coloring */
.residue-node.hydrophobic { background: rgba(38, 101, 140, 0.6); color: var(--clr-lightest); }
.residue-node.polar { background: rgba(84, 172, 191, 0.4); color: var(--text-main); }
.residue-node.charged-pos { background: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.residue-node.charged-neg { background: rgba(239, 68, 68, 0.4); color: #fecaca; }

/* Human Body SVG Hotspot view */
.body-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    background: rgba(1, 28, 64, 0.4);
    border-radius: var(--radius-md);
    border: var(--border-glass);
    position: relative;
    overflow: hidden;
}

.body-svg {
    height: 90%;
    fill: none;
    stroke: var(--clr-light);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.65;
}

.hotspot-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--clr-lightest);
    border: 3px solid var(--clr-darkest);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--clr-lightest);
    transition: all var(--transition);
}

.hotspot-dot:hover {
    transform: scale(1.4);
    background: #fff;
    box-shadow: 0 0 25px #fff;
}

.hotspot-dot::before {
    content: attr(data-label);
    position: absolute;
    white-space: nowrap;
    background: rgba(1, 28, 64, 0.85);
    border: 1px solid rgba(167, 235, 242, 0.2);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.hotspot-dot:hover::before {
    opacity: 1;
}

/* Virtual Museum grid structure */
.museum-halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.hall-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 30px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.hall-card:hover {
    transform: translateY(-8px);
    background: var(--bg-elevated);
    border-color: var(--clr-lightest);
    box-shadow: var(--shadow-glow);
}

.hall-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(167, 235, 242, 0.05), transparent);
    top: -50px; right: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.hall-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hall-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-lightest);
    margin-bottom: 10px;
}

/* Badges achievement grid styling */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge-item {
    background: rgba(1, 28, 64, 0.4);
    border: 1px solid rgba(84, 172, 191, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    filter: grayscale(1);
    opacity: 0.4;
    transition: all var(--transition);
}

.badge-item.unlocked {
    filter: grayscale(0);
    opacity: 1;
    border-color: var(--clr-lightest);
    box-shadow: 0 4px 15px rgba(167, 235, 242, 0.1);
    background: rgba(167, 235, 242, 0.05);
}

.badge-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.badge-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Certificate Generator UI popup */
.certificate-preview-box {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border: 10px double #023859;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
    color: #011c40;
    font-family: 'Outfit', sans-serif;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.certificate-canvas {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(84, 172, 191, 0.2);
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
}

/* Primary buttons standard styling */
.btn-primary {
    background: linear-gradient(135deg, var(--clr-lightest), var(--clr-light));
    color: var(--clr-darkest);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 235, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(84, 172, 191, 0.4);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--clr-lightest);
    background: rgba(167, 235, 242, 0.05);
}
