/* ===== Achievement-style Roadmap ===== */

.ach-roadmap {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.ach-roadmap__container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.ach-roadmap__header {
    text-align: center;
    margin-bottom: 40px;
}

.ach-roadmap__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.ach-roadmap__subtitle {
    font-size: 15px;
    color: #5a6f82;
    margin: 0;
}

/* ── Total progress bar ── */
.ach-total-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, .05);
    border: 1px solid rgba(76, 175, 80, .1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.ach-total-bar__label {
    font-size: 13px;
    font-weight: 700;
    color: #c5d0dc;
    white-space: nowrap;
}

.ach-total-bar__track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, .04);
    border-radius: 5px;
    overflow: hidden;
}

.ach-total-bar__fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #4caf50, #6ab2f2);
    width: 0%;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ach-total-bar__pct {
    font-size: 22px;
    font-weight: 800;
    color: #4caf50;
    min-width: 56px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Legend ── */
.ach-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    font-size: 12px;
    color: #5a6f82;
}

.ach-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ach-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ach-legend__item--done .ach-legend__dot { background: #4caf50; }
.ach-legend__item--wip .ach-legend__dot { background: #6ab2f2; }
.ach-legend__item--wait .ach-legend__dot { background: #2a3a4a; }

/* ── Phase list ── */
.ach-phases {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ach-phase {
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .3s, background .3s;
}

.ach-phase:hover {
    border-color: rgba(255, 255, 255, .1);
}

.ach-phase--done {
    border-color: rgba(76, 175, 80, .12);
}

.ach-phase--done:hover {
    border-color: rgba(76, 175, 80, .25);
    background: rgba(76, 175, 80, .02);
}

.ach-phase--active {
    border-color: rgba(106, 178, 242, .15);
}

.ach-phase--active:hover {
    border-color: rgba(106, 178, 242, .3);
    background: rgba(106, 178, 242, .02);
}

.ach-phase--locked {
    border-color: rgba(255, 255, 255, .03);
}

/* ── Phase header ── */
.ach-phase__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .2s;
    user-select: none;
}

.ach-phase__head:hover {
    background: rgba(255, 255, 255, .02);
}

/* Shield with ring */
.ach-phase__shield {
    width: 56px;
    height: 56px;
    position: relative;
    flex-shrink: 0;
}

.ach-phase__shield svg {
    width: 56px;
    height: 56px;
}

.ach-phase__shield-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ach-phase--locked .ach-phase__shield-icon {
    opacity: .2;
    filter: grayscale(1);
}

.ach-phase__wow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .1);
    transition: all .3s;
}

.ach-phase--done .ach-phase__wow-icon {
    border-color: rgba(76, 175, 80, .4);
}

.ach-phase--active .ach-phase__wow-icon {
    border-color: rgba(106, 178, 242, .4);
}

.ach-phase--locked .ach-phase__wow-icon {
    opacity: .3;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, .05);
}

/* Info */
.ach-phase__info {
    flex: 1;
    min-width: 0;
}

.ach-phase__name {
    font-size: 17px;
    font-weight: 700;
    color: #e1e3e6;
    margin-bottom: 4px;
}

.ach-phase--locked .ach-phase__name {
    color: #3a4a5a;
}

.ach-phase__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ach-phase__period {
    font-size: 12px;
    color: #5a6f82;
}

.ach-phase__count {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.ach-phase--done .ach-phase__count { color: #4caf50; }
.ach-phase--active .ach-phase__count { color: #6ab2f2; }
.ach-phase--locked .ach-phase__count { color: #2a3a4a; }

.ach-phase__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 4px;
}

.ach-phase--done .ach-phase__badge {
    background: rgba(76, 175, 80, .12);
    color: #4caf50;
}

.ach-phase--active .ach-phase__badge {
    background: rgba(106, 178, 242, .1);
    color: #6ab2f2;
}

.ach-phase--locked .ach-phase__badge {
    background: rgba(255, 255, 255, .03);
    color: #2a3a4a;
}

/* Arrow */
.ach-phase__arrow {
    color: #3a4a5a;
    font-size: 14px;
    transition: transform .3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.ach-phase--open .ach-phase__arrow {
    transform: rotate(90deg);
}

/* ── Phase body (collapsible) ── */
.ach-phase__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ach-phase--open .ach-phase__body {
    max-height: 800px;
}

.ach-phase__items {
    padding: 0 20px 18px 92px;
}

/* ── Individual items ── */
.ach-phase__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.ach-phase__item:last-child {
    border-bottom: none;
}

.ach-phase__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #2a3a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s;
}

.ach-phase__check svg {
    width: 10px;
    height: 10px;
    display: none;
}

/* Done item */
.ach-phase__item--ok .ach-phase__check {
    border-color: #4caf50;
    background: #4caf50;
}

.ach-phase__item--ok .ach-phase__check svg {
    display: block;
}

.ach-phase__item--ok .ach-phase__item-text {
    color: #b0bec5;
}

/* WIP item */
.ach-phase__item--wip .ach-phase__check {
    border-color: #6ab2f2;
    background: rgba(106, 178, 242, .15);
}

.ach-phase__item--wip .ach-phase__item-text {
    color: #8e9daa;
}

/* Waiting item */
.ach-phase__item--wait .ach-phase__check {
    border-color: #1e2d3d;
}

.ach-phase__item--wait .ach-phase__item-text {
    color: #3a4a5a;
}

.ach-phase__item-text {
    font-size: 14px;
    line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ach-roadmap { padding: 80px 0 60px; }
    .ach-roadmap__title { font-size: 24px; letter-spacing: 2px; }
    .ach-total-bar { flex-wrap: wrap; gap: 10px; }
    .ach-total-bar__label { width: 100%; }
    .ach-phase__head { gap: 12px; padding: 14px 16px; }
    .ach-phase__shield { width: 48px; height: 48px; }
    .ach-phase__shield svg { width: 48px; height: 48px; }
    .ach-phase__shield-icon { font-size: 18px; }
    .ach-phase__name { font-size: 15px; }
    .ach-phase__items { padding: 0 16px 14px 76px; }
    .ach-phase__meta { gap: 8px; }
    .ach-legend { gap: 16px; }
}

@media (max-width: 480px) {
    .ach-phase__items { padding: 0 12px 14px 12px; }
    .ach-phase__item-text { font-size: 13px; }
}
