:root {
    --apple-blue: #0071e3;
    --apple-green: #34c759;
    --apple-gray: #86868b;
    --bg-glass: rgba(255, 255, 255, 0.8);
}

/* CONTAINER */
.mac-roadmap {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* HEADER */
.roadmap-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    background: #fff;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: #222;
    color: #61DAFB; /* React Blue */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.header-info h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.5px; }
.header-info p { margin: 4px 0 8px; color: var(--apple-gray); font-size: 0.9rem; }

.progress-track {
    width: 200px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill { height: 100%; background: var(--apple-green); transition: width 0.5s ease; }

/* TIMELINE */
.timeline-wrapper {
    position: relative;
    padding-left: 40px;
}

.vertical-line {
    position: absolute;
    left: 19px; /* Center with dot */
    top: 20px;
    bottom: 50px;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
}

/* CARD STYLES */
.level-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* THE DOT */
.dot-indicator {
    position: absolute;
    left: -41px;
    top: 24px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 4px solid #e5e5e5;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #999;
    transition: 0.3s;
}

/* ACTIVE STATE */
.level-card.active {
    border-color: var(--apple-blue);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.1);
}
.level-card.active .dot-indicator {
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* COMPLETED STATE */
.level-card.completed { border-color: var(--apple-green); }
.level-card.completed .dot-indicator {
    background: var(--apple-green);
    border-color: var(--apple-green);
    color: white;
}

/* LOCKED STATE (The Fog) */
.level-card.locked {
    overflow: hidden; /* Keep blur inside */
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px); /* The Blur Effect */
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.level-card.locked .glass-overlay { opacity: 1; pointer-events: auto; }

.lock-message {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
}

/* TYPOGRAPHY */
.badge-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--apple-gray);
    margin-bottom: 8px;
    display: block;
}
.level-card.active .badge-status { color: var(--apple-blue); }
.level-card.completed .badge-status { color: var(--apple-green); }

.card-top h3 { margin: 0 0 8px 0; font-size: 1.2rem; }
.card-top p { margin: 0 0 20px 0; font-size: 0.9rem; color: #555; line-height: 1.5; }

/* INPUTS */
.action-area { display: flex; gap: 12px; }

.input-mac {
    flex: 1;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: 0.2s;
}
.input-mac:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--apple-blue); }

.input-mac i { color: #333; margin-right: 10px; }
.input-mac input { border: none; background: transparent; width: 100%; padding: 12px 0; outline: none; font-size: 0.9rem; }

.btn-apple {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-apple:hover { background: var(--apple-blue); }
.btn-apple.disabled { background: #e5e5e5; color: #999; cursor: not-allowed; }
.btn-apple.success { background: var(--apple-green); pointer-events: none; }

/* Status: Pending */
.level-card.pending {
    border: 1px solid #ffeeba;
    background: #fffdf5;
}

.level-card.pending .dot-indicator {
    background: #ffc107;
    color: #fff;
    border-color: #ffc107;
}

/* Reviewer Floating Button (Only for Seniors) */
.reviewer-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: transform 0.2s;
    animation: slideUp 0.5s ease-out;
}

.reviewer-fab:hover {
    transform: translateY(-2px);
    background: #000;
}

.reviewer-fab .badge {
    background: #ff3b30;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

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