    right: -6px;
    font-size: 14px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* Hover glow boost */
.y1:hover .bubble {
    box-shadow: 0 0 35px var(--year1-glow), 0 0 60px rgba(41, 182, 246, 0.2);
}

.y2:hover .bubble {
    box-shadow: 0 0 35px var(--year2-glow), 0 0 60px rgba(102, 187, 106, 0.2);
}

.y3:hover .bubble {
    box-shadow: 0 0 35px var(--year3-glow), 0 0 60px rgba(171, 71, 188, 0.2);
}

.y4:hover .bubble {
    box-shadow: 0 0 35px var(--year4-glow), 0 0 60px rgba(255, 112, 67, 0.2);
}

/* Dimming for highlight */
.node.dimmed {
    opacity: 0.12;
    filter: grayscale(0.8);
    transform: scale(0.92);
}

.node.highlight .bubble {
    transform: scale(1.12);
    filter: brightness(1.3);
}

.node.highlight-self .bubble {
    transform: scale(1.18);
    outline: 3px solid #fff;
    outline-offset: 4px;
    filter: brightness(1.4);
}

/* ===== YEAR BANDS ===== */
.year-band {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    z-index: 0;
}

.year-band .label {
    position: absolute;
    left: 20px;
    top: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0.25;
    writing-mode: horizontal-tb;
    direction: ltr;
}

/* ===== COMPLETED, AVAILABLE & LOCKED COURSE STATES ===== */

/* 1. COMPLETED NODE (منجزة - أخضر مميز مع أيقونة صح) */
.node.completed {
    opacity: 1 !important;
    filter: none !important;
}

.node.completed .bubble {
    background: linear-gradient(145deg, #1b5e20, #388e3c) !important;
    border-color: #81c784 !important;
    box-shadow: 0 4px 22px rgba(76, 175, 80, 0.5) !important;
    color: #ffffff !important;
}

.node.completed .bubble::before {
    content: '✓';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    background: #2e7d32;
    border: 2px solid #a5d6a7;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.node.completed .code,
.node.completed .hrs {
    color: #a5d6a7 !important;
    opacity: 0.9 !important;
}

/* 2. AVAILABLE / UNLOCKED NODE (متاحة للتسجيل - لون فاتح وواضح) */
.node.available {
    opacity: 1 !important;
    filter: none !important;
}

.node.available:hover .bubble {
    transform: scale(1.08);
}

/* 3. LOCKED NODE (مغلقة - طافي ومظلم مع قفل) */
.node.locked {
    opacity: 0.35 !important;
    filter: grayscale(0.7) brightness(0.6) !important;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.node.locked .bubble {
    border-style: dashed !important;
    box-shadow: none !important;
}

.node.locked .bubble::before {
    content: '🔒';
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 14px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
    z-index: 10;
}

.node.locked:hover {
    opacity: 0.75 !important;
    filter: grayscale(0.3) brightness(0.85) !important;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== SEMESTER LABELS ===== */
.sem-label {
    position: absolute;
    left: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.18;
    direction: rtl;
}


