body {
    background-color: #0F172A;
    color: #F8FAFC;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.font-mono {
    font-family: 'Fira Code', monospace;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.option-btn {
    transition: all 0.2s ease-in-out;
}

.option-btn:hover {
    border-color: #06B6D4;
    background-color: rgba(6, 182, 212, 0.1);
}

.option-btn.selected {
    border-color: #06B6D4;
    background-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.review-scroll::-webkit-scrollbar {
    width: 6px;
}

.review-scroll::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

* {
    box-sizing: border-box;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero {
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 35%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.10), transparent 30%);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #22D3EE;
    margin-bottom: 10px;
    font-weight: 700;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    position: relative;
}

.hero p {
    margin: 0;
    color: #CBD5E1;
    max-width: 860px;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
}

.layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#semesters-root {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    padding: 22px;
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.semester-title {
    margin: 0;
    font-size: 21px;
}

.semester-subtitle {
    margin: 6px 0 0;
    color: #94A3B8;
    font-size: 14px;
}

.counter {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #E2E8F0;
    font-size: 13px;
    white-space: nowrap;
}

.counter.limit-reached {
    border-color: rgba(234, 179, 8, 0.8);
    color: #FDE68A;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.20) inset;
}

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

.option-btn {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 16px;
    color: #F8FAFC;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.option-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.option-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94A3B8;
    font-size: 12px;
}

.meta-pill {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.65);
    border: 1px solid rgba(71, 85, 105, 0.45);
}

.sticky-card {
    position: static;
}

.selection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    min-height: 44px;
}

.selection-pill {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.45);
    color: #CFFAFE;
    font-size: 13px;
    line-height: 1.2;
}

.muted {
    color: #94A3B8;
}

.summary-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(71, 85, 105, 0.35);
    background: rgba(15, 23, 42, 0.5);
    color: #CBD5E1;
    line-height: 1.6;
    font-size: 14px;
}

.warning-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #FDE68A;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}

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

.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    color: white;
}

.secondary-btn {
    background: rgba(51, 65, 85, 0.7);
    color: #E2E8F0;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.results-title {
    margin: 0 0 6px;
    font-size: 24px;
}

.results-subtitle {
    margin: 0 0 18px;
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.55;
}

.results-lead {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.18);
    color: #CFFAFE;
    line-height: 1.6;
    font-size: 14px;
}

.match-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.55);
    margin-bottom: 14px;
}

.match-card + .match-card {
    margin-top: 14px;
}

.match-card.top {
    border-color: rgba(6, 182, 212, 0.85);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2) inset, 0 0 18px rgba(6, 182, 212, 0.12);
}

.match-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.match-name {
    margin: 0;
    font-size: 18px;
}

.match-score {
    font-size: 18px;
    font-weight: 800;
    color: #67E8F9;
    white-space: nowrap;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.75);
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22D3EE, #06B6D4);
}

.match-description {
    margin: 0 0 12px;
    color: #CBD5E1;
    line-height: 1.6;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.4);
    background: rgba(30, 41, 59, 0.8);
    color: #BFDBFE;
    font-size: 12px;
}

.contrib-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contrib-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #BBF7D0;
    font-size: 12px;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(71, 85, 105, 0.45);
    color: #94A3B8;
    line-height: 1.6;
    background: rgba(15, 23, 42, 0.35);
}

.footer-note {
    margin-top: 22px;
    color: #64748B;
    font-size: 12px;
    line-height: 1.6;
}

.results-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #E2E8F0;
}

.skills-grid,
.knowledge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-grid .tag,
.knowledge-grid .tag {
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.28);
    color: #BAE6FD;
}

.profile-meta-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(71, 85, 105, 0.35);
}

.profile-exclusion {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #FCA5A5;
    line-height: 1.5;
    font-size: 13px;
}

.result-subgrid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

@media (min-width: 768px) {
    .result-subgrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1080px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 20px, 100%);
        padding: 20px 0 42px;
    }

    .hero,
    .panel {
        padding: 18px;
    }

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

    .match-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
}
[data-profile-card] {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-profile-card]:hover {
  transform: translateY(-2px);
  border-color: #06B6D4;
}

#pathway-content .match-card,
#multi-pathway-content .match-card {
  margin-top: 0;
}

#target-profile-picker .option-btn {
  min-width: 220px;
}
#home-screen .actions {
  margin-top: 24px;
}

#pathway-profile-list .option-btn,
#target-profile-picker .option-btn {
  min-width: 220px;
}

#quiz-screen,
#pathways-screen {
  animation: fadeIn 0.2s ease;
}

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