/* Premium Light Mode Design System */
.premium-navy-theme {
    background: #ffffff !important;
    border: 1px solid rgba(15, 184, 179, 0.1) !important;
    border-radius: 32px !important;
    color: #0f172a !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    position: relative;
}

.modal-aurora-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(255, 255, 255, 0.4));
    pointer-events: none;
    z-index: 1;
}

.modal-header-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header-centered h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.modal-header-centered p {
    color: #0fb8b3;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Level Selection Row */
.level-selection-container {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

.selection-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.level-card {
    flex: 1;
    max-width: 220px;
    cursor: pointer;
    transition: all 0.4s;
}

.card-inner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.level-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 0.25rem;
    transition: transform 0.4s ease;
}

.level-card:hover .level-card-img {
    transform: scale(1.05);
}

.level-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #0fb8b3;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(15, 184, 179, 0.1);
}

.level-icon-circle {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #0fb8b3;
    border: 1px solid rgba(15, 184, 179, 0.2);
}

.level-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.level-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* Flow Arrows */
.flow-arrow {
    width: 50px;
    display: flex;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    animation: arrowPulse 2s infinite ease-in-out;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
        color: #cbd5e1;
    }

    50% {
        transform: translateX(10px);
        color: #0fb8b3;
    }
}

/* Selection Hover */
.level-card:hover {
    transform: translateY(-8px);
}

.level-card:hover .card-inner {
    background: #ffffff;
    border-color: #0fb8b3;
    box-shadow: 0 10px 30px rgba(15, 184, 179, 0.08);
}

.level-card:hover .level-icon-circle {
    background: #0fb8b3;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

/* Roadmap Map Styling */
.mindmap-view {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: transparent;
}

/* Abstract Background Deco */
.mm-background-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 1;
}

.deco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(15, 184, 179, 0.05);
    border-radius: 50%;
}

.ring-1 {
    width: 300px;
    height: 300px;
}

.ring-2 {
    width: 500px;
    height: 500px;
}

.ring-3 {
    width: 700px;
    height: 700px;
    opacity: 0.5;
}

/* Control Bar Card */
.mindmap-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin: 1.5rem 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mm-view-title {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.active-level-indicator {
    padding: 6px 14px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.back-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
    border-color: #0fb8b3;
}

/* Balanced Map Layout */
.mindmap-layout {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    z-index: 2;
}

.mm-hub {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 20;
}

.hub-content {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #0fb8b3;
    box-shadow: 0 0 40px rgba(15, 184, 179, 0.15), inset 0 0 15px rgba(15, 184, 179, 0.05);
    text-align: center;
    padding: 1.5rem;
    cursor: default;
}

.hub-pulse {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(15, 184, 179, 0.3);
    border-radius: 50%;
    animation: hubPulseGlow 3s infinite ease-in-out;
}

@keyframes hubPulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hub-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hub-subtitle {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0fb8b3;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hub-desc {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 8px;
    max-width: 140px;
}

/* Nodes Light */
.mm-node-pill {
    position: absolute;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 50px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    animation: mmFloat 4s infinite ease-in-out;
}

@keyframes mmFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.mm-node-pill:hover {
    border-color: #0fb8b3;
    box-shadow: 0 15px 35px rgba(15, 184, 179, 0.12);
    transform: translateY(-5px) scale(1.02);
}

.np-icon {
    width: 30px;
    height: 30px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0fb8b3;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.mm-node-pill:hover .np-icon {
    background: #0fb8b3;
    color: #ffffff;
    border-color: #0fb8b3;
}

.np-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.np-connector {
    position: absolute;
    top: 50%;
    height: 1.5px;
    background: #e2e8f0;
    z-index: -1;
}

.np-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    background: #0fb8b3;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px #0fb8b3;
    animation: flowDot 3s infinite linear;
}

@keyframes flowDot {
    0% {
        left: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Symmetrical Radial Splay */
.pos-1 {
    top: 10%;
    right: 65%;
    animation-delay: 0s;
}

.pos-2 {
    top: 75%;
    right: 65%;
    animation-delay: 1s;
}

.pos-3 {
    top: 10%;
    left: 65%;
    animation-delay: 0.5s;
}

.pos-4 {
    top: 75%;
    left: 65%;
    animation-delay: 1.5s;
}

/* Connectors for 2x2 symmetry */
.node-left .np-connector {
    right: -120%;
    width: 120%;
}

.node-right .np-connector {
    left: -120%;
    width: 120%;
}

.node-left .np-connector::after {
    animation-direction: reverse;
}

/* Side Panel Light (State 3) */
.module-detail-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: #ffffff;
    border-left: 1px solid #f1f5f9;
    display: none;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.05);
}

.module-detail-overlay.active {
    display: block;
    transform: translateX(0);
}

.detail-card {
    padding: 3.5rem 2.5rem;
    height: 100%;
}

.detail-header {
    margin-bottom: 2.5rem;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(15, 184, 179, 0.1);
    color: #0fb8b3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-card h4 {
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 800;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0fb8b3;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.4rem;
}

.detail-section p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.close-detail {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
}

.close-detail:hover {
    color: #0f172a;
}

/* Modal Footer CTA */
.modal-footer-cta {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.book-course-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.book-course-btn:hover {
    background: #0fb8b3;
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .selection-row {
        flex-direction: column;
        gap: 20px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        height: 40px;
    }

    .module-detail-overlay {
        width: 100%;
    }
}