/* Dashboard home */

.student-home-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.student-home-greeting[hidden] {
    display: none;
}

.student-home-greeting h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.student-home-greeting-meta {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-assessment-bar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 20%, rgba(255, 159, 10, 0.16), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 235, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-assessment-bar:hover,
.dashboard-assessment-bar:focus-within,
.dashboard-card:hover,
.dashboard-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
}

.dashboard-bar-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ff9f0a, #ff453a);
    color: white;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(255, 159, 10, 0.22);
}

.dashboard-assessment-copy {
    min-width: 0;
}

.dashboard-assessment-copy h3 {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.dashboard-assessment-copy p {
    margin: 4px 0 0;
    color: var(--muted-strong);
    font-size: 13px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0a84ff, #34c759);
}

.dashboard-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -34px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    pointer-events: none;
}

.dashboard-card:nth-child(2)::before {
    background: linear-gradient(90deg, #7c3aed, #0a84ff);
}

.dashboard-card:nth-child(2)::after {
    background: rgba(124, 58, 237, 0.09);
}

.dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-card h3,
.dashboard-card-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-soft-pill,
.dashboard-card-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.10);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-focus-stack {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.dashboard-focus-row {
    position: relative;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-focus-row::before,
.dashboard-study-next-list span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: linear-gradient(145deg, #0a84ff, #34c759);
    vertical-align: 1px;
}

.dashboard-focus-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-focus-row strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.dashboard-focus-row small {
    display: block;
    margin-top: 5px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-study-next-list {
    display: grid;
    gap: 7px;
}

.dashboard-study-next-list span {
    display: block;
    padding: 9px 10px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.3;
    transition: transform 0.18s ease, background 0.18s ease;
}

.dashboard-study-next-list span:hover {
    transform: translateX(2px);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.88));
}

.dashboard-progress-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.dashboard-progress-bar {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.dashboard-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #34c759);
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-progress-shell strong {
    min-width: 42px;
    color: var(--muted-strong);
    font-size: 13px;
}

.dashboard-card-link {
    margin-top: auto;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.dashboard-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-quick-actions a:hover,
.dashboard-quick-actions a:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-quick-actions a:nth-child(1) {
    color: #075985;
}

.dashboard-quick-actions a:nth-child(2) {
    color: #5b21b6;
}

.dashboard-quick-actions a:nth-child(3) {
    color: #15703d;
}

.dashboard-quick-actions a:nth-child(4) {
    color: #b42318;
}

.dashboard-quick-actions a:nth-child(5) {
    color: #9f5b00;
}

.journey-card {
    position: relative;
    overflow: visible;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,248,252,0.88));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    margin-top: 2px;
    animation: journeyCardIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.journey-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -90px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10,132,255,0.18), transparent 68%);
    pointer-events: none;
}

.journey-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.journey-copy h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.journey-copy p {
    margin: 16px 0 0;
    max-width: 720px;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.55;
}

.journey-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.journey-summary {
    display: grid;
    gap: 14px;
}

.journey-summary-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.22s ease;
    animation: journeyStatIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.journey-summary-card:nth-child(1) {
    animation-delay: 0.12s;
}

.journey-summary-card:nth-child(2) {
    animation-delay: 0.2s;
}

.journey-summary-card:nth-child(3) {
    animation-delay: 0.28s;
}

.journey-summary-card:nth-child(4) {
    animation-delay: 0.36s;
}

.journey-summary-card:hover,
.journey-summary-card:focus-within {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.journey-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.journey-summary-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.arena-question-widget {
    position: relative;
    margin: 22px 0 0 auto;
    display: grid;
    gap: 8px;
    width: min(320px, 100%);
    padding: 24px 24px 22px;
    text-align: left;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(103, 193, 255, 0.34), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255,255,255,0.6) inset,
        0 0 34px rgba(10, 132, 255, 0.12);
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.24s ease;
    animation: arenaWidgetFloat 6.6s ease-in-out infinite;
}

.arena-question-widget:hover,
.arena-question-widget:focus-visible {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 28px 52px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255,255,255,0.65) inset,
        0 0 44px rgba(10, 132, 255, 0.18);
    border-color: rgba(10, 132, 255, 0.18);
}

.arena-question-widget.is-pulsing {
    animation: arenaWidgetPulse 0.44s ease;
}

.arena-question-widget:hover .arena-question-count,
.arena-question-widget:focus-visible .arena-question-count {
    transform: scale(1.04);
}

.arena-question-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.1);
    color: #0a5fd0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.arena-question-badge {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: #3b82c4;
    font-size: 12px;
    font-weight: 700;
}

.arena-question-count {
    display: block;
    margin-top: 2px;
    font-size: clamp(58px, 7vw, 74px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: #111827;
    transition: transform 0.24s ease;
}

.arena-question-title {
    display: block;
    margin-top: 2px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.arena-question-subtitle {
    display: block;
    max-width: 240px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.arena-question-orb,
.arena-question-spark {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.arena-question-orb {
    right: 22px;
    top: 24px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(103,193,255,0.38) 52%, rgba(10,132,255,0.08) 75%, transparent 100%);
    filter: blur(0.2px);
    opacity: 0.95;
}

.arena-question-spark {
    right: 76px;
    top: 44px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(186,230,253,0.8));
    box-shadow: 0 0 18px rgba(10, 132, 255, 0.2);
}

.arena-question-toast {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.arena-question-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes arenaWidgetFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes arenaWidgetPulse {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.018);
    }
    100% {
        transform: scale(1);
    }
}

#journeyStepTimelineDetails {
    white-space: pre-line;
}

.journey-progress-wrap {
    margin-top: 24px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow: visible;
}

.journey-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.08);
    overflow: hidden;
}

.journey-track-fill {
    height: 100%;
    border-radius: inherit;
    width: 0%;
    background: linear-gradient(90deg, #0a84ff, #34c759);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-rail {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.module-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted);
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    gap: 8px;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.24s ease, filter 0.22s ease;
}

.module-pill.completed {
    background: rgba(52, 199, 89, 0.14);
    color: #15703d;
    border-color: rgba(52, 199, 89, 0.18);
}

.module-pill.current {
    background: rgba(10, 132, 255, 0.14);
    color: var(--accent-strong);
    border-color: rgba(10, 132, 255, 0.22);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.1);
    transform: translateY(-1px);
}

.module-pill.future {
    background: rgba(17, 19, 24, 0.04);
    color: #98a2b3;
}

.module-pill:hover,
.module-pill:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
    filter: saturate(1.01);
    outline: none;
    z-index: 5;
}

.module-pill.completed:hover,
.module-pill.completed:focus-visible {
    box-shadow: 0 15px 28px rgba(52, 199, 89, 0.12);
}

.module-pill.current:hover,
.module-pill.current:focus-visible {
    box-shadow: 0 16px 30px rgba(10, 132, 255, 0.12);
}

.module-pill.future:hover,
.module-pill.future:focus-visible {
    background: rgba(17, 19, 24, 0.07);
    color: #667085;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.module-pill-label {
    position: relative;
    z-index: 1;
}

.module-pill-check {
    display: none;
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: #15703d;
    opacity: 0.82;
}

.module-pill.completed .module-pill-check {
    display: inline-flex;
}

.module-pill.current::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(10, 132, 255, 0.16);
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.12);
    animation: currentModulePulse 2.6s ease-out infinite;
    pointer-events: none;
}

.module-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px) scale(0.98);
    width: max-content;
    max-width: 250px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.22s;
    transition-delay: 0s, 0s, 0.22s;
    z-index: 20;
}

.module-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.module-tooltip-code {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.module-tooltip-name {
    display: block;
    margin-top: 3px;
    color: var(--muted-strong);
}

.module-tooltip-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.module-pill:hover .module-tooltip,
.module-pill:focus-visible .module-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0.3s, 0.3s, 0.3s;
}

.journey-motivation {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 700;
}

.journey-status-line {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@keyframes currentModulePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.12);
        opacity: 0.8;
    }

    70% {
        box-shadow: 0 0 0 9px rgba(10, 132, 255, 0);
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0);
        opacity: 0;
    }
}

@keyframes journeyCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes journeyStatIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .dashboard-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .student-home-greeting {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-home-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-assessment-bar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-assessment-bar .dashboard-card-note,
    .dashboard-assessment-bar .dashboard-card-link {
        grid-column: 1 / -1;
    }

    .dashboard-card-head {
        flex-direction: column;
    }

    .module-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .journey-card {
        padding: 26px 22px;
    }

    .arena-question-widget {
        margin: 18px 0 0;
        width: 100%;
    }
}
