.resume-quiz-btn {
    font-size: 1.1em;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.18), 0 2px 8px rgba(118,75,162,0.12);
    border: none;
    margin-top: 2.2rem;
    transition: box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
}
.resume-quiz-btn:hover {
    box-shadow: 0 8px 24px rgba(102,126,234,0.22), 0 4px 16px rgba(118,75,162,0.16);
    transform: translateY(-2px) scale(1.03);
}
/* Dashboard warning icon wrapper and tooltip placement fix */
.warning-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.warning-wrapper > span[style*="cursor: help"] {
    position: relative;
    z-index: 2;
}
.warning-wrapper div[style*="position: absolute"] {
    z-index: 1001;
}

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Import Cinzel Font for refined logo styling */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

/* Import Playfair Display for archetype titles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* --- COLORS --- */
:root {
  --polaris-navy: #0F172A; /* Dark Navy Background */
  --polaris-gold: #F59E0B; /* The "Wizard Gold" */
  --polaris-white: #F8FAFC;
  
  /* 1. BRAND FONT (Logo Only) */
  --font-brand: 'Cinzel', serif;
  
  /* 2. HEADING FONT (Archetypes & "Ye Olde" Headers) */
  --font-heading: 'Playfair Display', serif;
  
  /* 3. UI FONT (Everything else: Body, Buttons, Nav, Inputs) */
  --font-ui: 'Montserrat', sans-serif;
  
  /* 4. DATA FONT (Coordinates, Status tags) */
  --font-mono: 'Courier New', monospace;
}

.navbar-link {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: inline-block; /* Changed from inline-flex */
    vertical-align: middle;
    height: 44px;
    line-height: 28px; /* Center text vertically */
    box-sizing: border-box;
    z-index: 1; /* Ensure link stays visible above parent effects */
    opacity: 1 !important; /* Force visibility always */
    visibility: visible !important; /* Force visibility always */
}

/* Simplified hover effects - no expansion */
.navbar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0; /* Changed from -1 to prevent going behind nav-bar background */
    pointer-events: none;
}

.navbar-link::after {
    display: none; /* Disable sliding effect */
}

.navbar-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* Ensure text stays above ::before hover effect */
}
.nav-brand {
    display: flex;
    align-items: flex-end;
    min-height: 100px;
    gap: 12px;
    flex: 0 0 auto;
    align-self: flex-end;
}
.page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 100;
    overflow: visible; /* Allow navbar dropdown to overflow */
}
.dashboard-container {
    position: relative;
    z-index: 1;
    overflow: visible; /* Allow navbar dropdown to show above */
}
#nav-bar {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.08) 0%, 
        rgba(59, 130, 246, 0.06) 25%, 
        rgba(237, 137, 54, 0.04) 50%, 
        rgba(102, 126, 234, 0.06) 75%, 
        rgba(138, 43, 226, 0.08) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    margin: 0 auto 20px;
    padding: 8px 20px;
    max-width: 1100px; /* Match page-shell width */
    box-sizing: border-box; /* Include padding in width calculation */
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.1), 
                0 2px 8px rgba(59, 130, 246, 0.08);
    overflow: visible; /* Critical: allows dropdown to overflow */
    z-index: 1000; /* Ensure navbar itself is above content below */
}

#nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        rgba(59, 130, 246, 0.08),
        rgba(237, 137, 54, 0.06),
        transparent
    );
    transition: left 3s ease;
    z-index: 0;
    pointer-events: none;
}

#nav-bar:hover::before {
    left: 100%;
}

#nav-bar > * {
    position: relative;
    z-index: 1;
}
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center; /* Changed from space-evenly for better control */
    align-items: center;
    gap: 16px; /* Added gap for consistent spacing */
    max-width: 580px;
    align-self: center;
    position: relative;
    z-index: 2; /* Ensure links stay above nav-bar shimmer effect */
}

.nav-actions {
    display: flex;
    align-items: center; /* Changed from flex-end for better vertical centering */
    gap: 8px; /* Reduced from 12px */
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 250px; /* Match approximate width of nav-brand for balance */
    padding-bottom: 4px; /* Fine-tune vertical alignment */
    position: relative;
    z-index: 2; /* Ensure actions stay above nav-bar shimmer effect */
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom: 0;
}

.nav-logo-container {
    position: relative;
    display: inline-block;
    margin-right: 0px;
    margin-bottom: -20px; /* Adjusted for circle logo */
    margin-top: -15px; /* Adjusted for circle logo */
}

.nav-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.star-effect {
    position: absolute;
    top: 40%; /* Adjusted higher */
    left: 90%; /* Adjusted right */
    transform: translate(-50%, -50%);
    width: 70px; /* Larger */
    height: 70px; /* Larger */
    pointer-events: none;
}

.star-effect::before,
.star-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px; /* Larger */
    height: 5px; /* Larger */
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 
        0 0 12px #fbbf24,
        0 0 24px #f59e0b,
        0 0 36px #f59e0b; /* Larger shadow */
    animation: twinkle 2s ease-in-out infinite;
}

.star-effect::after {
    animation-delay: 0.5s;
    width: 4px; /* Larger */
    height: 4px; /* Larger */
    top: 35%; /* Adjusted higher */
    left: 60%; /* Adjusted right */
}

.star-effect::before {
    animation-delay: 0s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.star-effect::before {
    box-shadow: 
        0 0 10px #fbbf24,
        0 0 20px #f59e0b,
        0 0 30px #f59e0b,
        0 0 40px #f59e0b; /* Larger shadow */
}

.star-effect::after {
    box-shadow: 
        0 0 8px #fbbf24,
        0 0 16px #f59e0b,
        0 0 24px #f59e0b,
        0 0 32px #f59e0b; /* Larger shadow */
}
.nav-brand-center-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    height: 90%;
    min-height: 20px;
}
.nav-brand-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0;
    filter: brightness(1.3) contrast(1.2) 
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 60px rgba(251, 191, 36, 0.7))
            drop-shadow(0 0 90px rgba(251, 191, 36, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand-logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.4) contrast(1.3)
            drop-shadow(0 0 40px rgba(255, 255, 255, 1))
            drop-shadow(0 0 80px rgba(251, 191, 36, 0.8))
            drop-shadow(0 0 120px rgba(251, 191, 36, 0.6));
}

.nav-brand-logo {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--polaris-white);
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 4px;
}

.nav-brand-subtitle {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 10px;
  color: var(--polaris-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: -2px;
  display: block;
}

.ghost-btn {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #f6ad55 !important;
}
.ghost-btn:hover {
    background: rgba(255,255,255,0.08) !important;
}
.navbar-link:hover, .navbar-link:focus {
    background: rgba(46,196,241,0.18);
    color: #2ec4f1;
    transform: none; /* Removed translateY */
    box-shadow: 0 2px 8px rgba(46,196,241,0.15);
    text-shadow: 0 0 8px rgba(46,196,241,0.3);
}

.navbar-link:hover::before {
    opacity: 1; /* Just fade in, no size change */
}
.navbar-dropdown {
    position: relative;
    display: inline-block; /* Changed from inline-flex */
    vertical-align: middle;
}

/* Hover bridge to keep dropdown open when moving mouse toward it */
.navbar-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px; /* Matches the gap in top: calc(100% + 8px) */
    z-index: 9999;
    pointer-events: none; /* Only intercepts hover, not clicks */
}

/* When hovering the container (including the bridge), show dropdown */
.navbar-dropdown:hover::after {
    pointer-events: auto; /* Activate bridge on hover */
}

/* Ensure About link text and arrow are perfectly centered */
.navbar-dropdown > .navbar-link {
    display: inline-block;
    line-height: 28px;
}

.navbar-dropdown > .navbar-link span {
    display: inline;
    line-height: inherit;
}

/* Simple hover trigger - just on container */
.navbar-dropdown:hover .navbar-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: linear-gradient(135deg, 
        rgba(35, 41, 70, 0.95) 0%, 
        rgba(45, 55, 72, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 
                0 4px 16px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease 0s, transform 0.2s ease 0s, visibility 0s linear 0.3s; /* Delay hiding */
    z-index: 10000;
    pointer-events: none;
}

/* When visible, remove the delay */
.navbar-dropdown:hover .navbar-dropdown-content {
    transition: opacity 0.2s ease 0s, transform 0.2s ease 0s, visibility 0s linear 0s; /* Instant show */
}

.navbar-dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 43, 226, 0.5), 
        rgba(59, 130, 246, 0.5), 
        transparent);
}
.navbar-dropdown-content a {
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 1em;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-dropdown-content a:first-child {
    border-radius: 12px 12px 0 0; /* Match container top corners */
}

.navbar-dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px; /* Match container bottom corners */
}

.navbar-dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(138, 43, 226, 0.8), 
        rgba(59, 130, 246, 0.8));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.navbar-dropdown-content a:hover {
    background: linear-gradient(90deg, 
        rgba(46,196,241,0.15) 0%, 
        rgba(46,196,241,0.08) 100%);
    color: #2ec4f1;
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(46,196,241,0.3);
}

.navbar-dropdown-content a:hover::before {
    transform: scaleY(1);
}

/* Apply hover styles to About link - no transforms */
.navbar-dropdown:hover > .navbar-link {
    background: rgba(46,196,241,0.18);
    color: #2ec4f1;
    box-shadow: 0 2px 8px rgba(46,196,241,0.15);
    text-shadow: 0 0 8px rgba(46,196,241,0.3);
}

/* --- SLEEK MODERN TIER LIST & JOB CARD POLISH (2026) --- */
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}



.summary-card.job-card {
    background: #20232a;
    border-radius: 14px;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
    padding: 1rem 1.25rem 0.875rem 1.25rem;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
    margin-bottom: 0.5rem;
}

/* \ud83d\udc4e Gray-out styling for thumbs-down feedback */
.summary-card.job-card.job-card-grayed-out,
.compass-recommendation-box.job-card-grayed-out {
    opacity: 0.5;
    filter: grayscale(60%) brightness(0.8);
    pointer-events: auto; /* Keep interactive so users can change their mind */
    position: relative;
}

.summary-card.job-card.job-card-grayed-out::after,
.compass-recommendation-box.job-card-grayed-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.08) 10px,
        rgba(0, 0, 0, 0.08) 20px
    );
    pointer-events: none;
    border-radius: 14px;
    z-index: 1;
}

/* 👍 Subtle gold border for thumbs-up feedback */
.summary-card.job-card.job-card-thumbs-up,
.compass-recommendation-box.job-card-thumbs-up {
    border: 2px solid rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25), 0 2px 8px rgba(0,0,0,0.16) !important;
    pointer-events: auto;
    position: relative;
}

.summary-card.job-card.job-card-thumbs-up::before,
.compass-recommendation-box.job-card-thumbs-up::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
}

.summary-card.job-card:hover {
    transform: scale(1.01) translateY(-2px);
    box-shadow: 0 0 20px rgba(255,255,255,0.08), 0 2px 8px 0 rgba(0,0,0,0.16);
    border-color: rgba(255,255,255,0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h2 {
    margin: 0 0 0.25rem 0;
}

.rank-badge {
    background: #23272f;
    color: #7dd3fc;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 1em;
    font-weight: 800;
    margin-right: 0.7rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: none;
}

.job-card h4 {
    color: #f3f4f6;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
}

.match-reason-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #23272f;
    color: #7dd3fc;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1.5px solid #7dd3fc;
    box-shadow: none;
    animation: popIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    width: fit-content;
    max-width: 100%;
}
.reason-icon {
    font-size: 1.1rem;
}
.job-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}


.score-item {
    background: #23272f;
    border-radius: 8px;
    padding: 1rem 1rem 0.7rem 1rem;
    color: #e5e7eb;
    font-weight: 600;
    box-shadow: none;
    text-align: left;
    min-width: 200px;
    max-height: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 
                0 4px 16px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 3000;
    border-radius: 12px;
    top: 100%;
    left: 0;
    transform: none;
    margin-top: 0;
    border: 1px solid rgba(138, 43, 226, 0.2);
    overflow: visible;
}

.job-desc {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: none;
}
.job-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.job-card li {
    color: #fff;
    line-height: 1.2;
    padding: 0.2rem 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
}
.job-card li:last-child {
    border-bottom: none;
}

.job-card li span {
    color: #fbbf24;
    font-size: 1.25em;
    margin-right: 0.5rem;
    font-weight: 700;
}
.thumbs-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.thumbs-container .icon-btn {
    font-size: 2rem !important;
    padding: 0.2em 0.5em !important;
    background: none;
    border: none;
    color: #7dd3fc;
    cursor: pointer;
    transition: color 0.2s;
}
.thumbs-container .icon-btn:hover {
    color: #fbbf24;
}


.tier-header {
    font-size: 2rem;
    font-weight: 900;
    color: #7dd3fc;
    margin-bottom: 0.1rem;
    letter-spacing: -1px;
    text-shadow: none;
    background: none;
    border: none;
    padding: 0.5rem 0 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.tier-header.stretch {
    color: #fbbf24;
}
.tier-header.longterm {
    color: #a78bfa;
}

.tier-header-sub {
    font-size: 1.05rem;
    color: #b5bac6;
    font-weight: 500;
    margin-bottom: 1.2rem;
    margin-left: 2.5rem;
    letter-spacing: 0.01em;
}
.show-more-btn, .load-more-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 0;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.show-more-btn:hover, .load-more-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .summary-card.job-card {
        padding: 1.1rem 0.5rem 1rem 0.5rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .job-scores {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .tier-header {
        font-size: 1.3rem;
        padding: 0.3rem 0 0.1rem 0;
    }
    .show-more-btn, .load-more-btn {
        font-size: 1rem;
        padding: 12px 0;
    }
}
/* --- SEXY TIER LIST & JOB CARD POLISH (2026) --- */
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.summary-card.job-card {
    background: #181b20;
    border-radius: 12px;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
    padding: 1rem 1.25rem 0.875rem 1.25rem;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
    margin-bottom: 0.5rem;
}
.summary-card.job-card:hover {
    transform: scale(1.01) translateY(-2px);
    box-shadow: 0 0 20px rgba(255,255,255,0.08), 0 2px 8px 0 rgba(0,0,0,0.16);
    border-color: rgba(255,255,255,0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h2 {
    margin: 0 0 0.25rem 0;
}

.rank-badge {
    background: #23272f;
    color: #fbbf24;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 1em;
    font-weight: 800;
    margin-right: 0.7rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: none;
}
.job-card h4 {
    color: #e5e7eb;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
}
.match-reason-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--sexy-pink) 0%, var(--sexy-yellow) 100%);
    color: var(--sexy-purple);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 1px 8px rgba(255,95,162,0.07);
    animation: popIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    width: fit-content;
    max-width: 100%;
}
.reason-icon {
    font-size: 1.1rem;
}
.job-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.score-item {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem 1rem 0.7rem 1rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 8px rgba(67,198,172,0.08);
    text-align: left;
    min-width: 0;
}
.score-item strong {
    color: var(--sexy-yellow);
    font-size: 1.1em;
    font-weight: 800;
}
.score-item small {
    color: var(--sexy-pink);
    font-size: 0.85em;
    font-weight: 600;
}
.job-desc {
    color: #ffe156;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(67,198,172,0.08);
}
.job-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.job-card li {
    color: #fff;
    line-height: 1.2;
    padding: 0.2rem 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
}
.job-card li:last-child {
    border-bottom: none;
}
.job-card li span {
    color: var(--sexy-pink);
    font-size: 1.1em;
    margin-right: 0.5rem;
    font-weight: 700;
}
.thumbs-container {
    display: flex;
    gap: 10px;
    align-items: center;
}
@media (max-width: 768px) {
    .summary-card.job-card {
        padding: 1.1rem 0.5rem 1rem 0.5rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .job-scores {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}
/* Dashboard Hub Styles */
.dashboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
}
.identity-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(102,126,234,0.08) 100%);
    border: 1px solid rgba(59,130,246,0.35);
    width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
}
.identity-hero .identity-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    padding: 8px 0;
}
.identity-hero .identity-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.identity-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.identity-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59,130,246,0.15);
    color: #bfdbfe;
    font-weight: 700;
    border: 1px solid rgba(59,130,246,0.4);
    margin-bottom: 8px;
}
.identity-desc {
    color: var(--mid-text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.identity-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.identity-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.identity-data-summary {
    color: var(--mid-text);
    font-weight: 700;
    letter-spacing: -0.2px;
}
.ghost-strong {
    background: transparent !important;
    color: #f6ad55 !important;
    border: 1.5px solid rgba(246,173,85,0.7) !important;
    box-shadow: none !important;
    font-weight: 700;
    padding: 10px 14px;
}
.ghost-strong:hover {
    background: rgba(246,173,85,0.12) !important;
}
.identity-data-summary {
    color: var(--mid-text);
    font-weight: 700;
    letter-spacing: -0.2px;
}
.identity-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(67,217,173,0.15);
    color: #6ee7b7;
    font-weight: 700;
    border: 1px solid rgba(67,217,173,0.45);
}
.outline-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.5);
    color: #e5e7eb;
    font-weight: 700;
}
.outline-btn:hover {
    background: rgba(255,255,255,0.18);
}
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}
.dashboard-header h1 {
    border: none;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--light-text);
}
.dashboard-header p {
    font-size: 0.98em;
    color: var(--mid-text);
    margin: 0 auto;
    max-width: 540px;
}
.dashboard-big-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 2rem;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
}
.dashboard-big-cards.full-width {
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .dashboard-big-cards {
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
        row-gap: 20px;
    }
}
.hub-big-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 24px;
    background: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.hub-big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.compass-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s ease;
    overflow: hidden;
}
.compass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 150, 0.1),
        rgba(0, 255, 255, 0.1),
        rgba(255, 209, 102, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 0;
    pointer-events: none;
}
.compass-card:hover::before {
    left: 100%;
}
.compass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 30px rgba(255, 209, 102, 0.15);
    border-color: rgba(255, 209, 102, 0.3);
}
.compass-card > * {
    position: relative;
    z-index: 1;
}
.profile-card {
    background: linear-gradient(135deg, rgba(66,153,225,0.1) 0%, rgba(49,130,206,0.05) 100%);
    border: 1px solid rgba(66,153,225,0.2);
}
.assessment-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(45,55,72,0.6) 100%) !important;
    border: 1px solid rgba(102,126,234,0.35) !important;
}
.assessment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}
.assessment-card.archetype-mini-card {
    background: linear-gradient(140deg, rgba(37, 99, 235, 0.12) 0%, rgba(30,64,175,0.22) 100%);
    border: 2px solid rgba(59,130,246,0.6);
    box-shadow: 0 10px 24px rgba(59,130,246,0.25);
}

/* ============================================================================ */
/* DASHBOARD TOP ROW: STAR CHART + CALIBRATION (50/50 SPLIT) */
/* ============================================================================ */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-top-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.hub-compact-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1.5rem;
    background: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.hub-compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ============================================================================ */
/* LIVE MARKET MATCHES WIDGET */
/* ============================================================================ */
.live-market-container {
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(45,55,72,0.6) 100%);
    border: 1px solid rgba(102,126,234,0.35);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.live-market-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

.live-market-container .section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.market-jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .market-jobs-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.market-job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(237,137,54,0.2);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.market-job-card:nth-child(1) { animation-delay: 0.1s; }
.market-job-card:nth-child(2) { animation-delay: 0.2s; }
.market-job-card:nth-child(3) { animation-delay: 0.3s; }
.market-job-card:nth-child(4) { animation-delay: 0.4s; }

.market-job-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(237,137,54,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.market-job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.market-job-company {
    font-size: 0.9rem;
    color: var(--mid-text);
    margin-bottom: 0.25rem;
}

.market-job-location {
    font-size: 0.85rem;
    color: var(--mid-text);
    margin-bottom: 0.75rem;
}

.market-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.market-match-badge {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff5fa2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    white-space: nowrap;
}

.market-view-btn {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.market-view-btn:hover {
    color: #ff5fa2;
    gap: 0.5rem;
}

/* Loading skeleton */
.market-job-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    padding: 1.25rem;
    min-height: 150px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live Market Tabs (3-Tab System) */
.live-market-tab {
    transition: all 0.2s ease;
    text-align: center;
}

.live-market-tab:hover {
    background: rgba(46, 196, 241, 0.08) !important;
}

/* Market Jobs Grid - Updated for 3-column layout */
.market-jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .market-jobs-list {
        grid-template-columns: 1fr;
    }
    
    .live-market-tab {
        font-size: 0.85rem !important;
        padding: 0.75rem !important;
    }
}

/* Archetype Flip Card Styles - Now Simple Click Card */
.archetype-flip-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.05) 100%);
    border: 1px solid rgba(102,126,234,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 12px;
    height: 240px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.archetype-flip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
    border-color: rgba(102,126,234,0.5);
}

/* Hide the inner flip mechanism */
.archetype-flip-inner {
    width: 100%;
    height: 100%;
}

.archetype-flip-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.archetype-flip-back {
    display: none;
}

/* Archetype Job Count Badge - Marketing Feature */
.archetype-job-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(245,166,35,0.95) 0%, rgba(255,107,53,0.95) 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    white-space: nowrap;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    pointer-events: none; /* Let clicks pass through to card */
}

.archetype-flip-card:hover .archetype-job-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245,166,35,0.6);
}

.archetype-job-badge.loading {
    background: linear-gradient(135deg, rgba(102,126,234,0.6) 0%, rgba(118,75,162,0.6) 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================================ */
/* ARCHETYPE JOB TEASER MODAL (Product-Led Growth) */
/* ============================================================================ */
.archetype-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.archetype-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.archetype-modal-content {
    position: relative;
    background: linear-gradient(180deg, rgba(25,35,52,0.98) 0%, rgba(36,46,69,0.98) 100%);
    border: 2px solid rgba(237,137,54,0.4);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.archetype-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(237,137,54,0.1);
    border: 1px solid rgba(237,137,54,0.3);
    color: var(--primary-orange);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.archetype-modal-close:hover {
    background: rgba(237,137,54,0.2);
    border-color: var(--primary-orange);
    transform: rotate(90deg);
}

.archetype-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#archetypeModalIcon {
    font-size: 2.5rem;
}

.archetype-location-badge {
    display: inline-block;
    background: rgba(46, 196, 241, 0.15);
    border: 1px solid rgba(46, 196, 241, 0.3);
    color: rgba(46, 196, 241, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.archetype-modal-subtitle {
    color: var(--mid-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(237,137,54,0.2);
}

.archetype-job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.archetype-job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(237,137,54,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.archetype-job-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(237,137,54,0.4);
    transform: translateX(4px);
}

.archetype-job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.archetype-job-company {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.archetype-job-location {
    font-size: 0.9rem;
    color: var(--mid-text);
}

.archetype-modal-cta {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(237,137,54,0.15) 100%);
    border: 2px solid rgba(237,137,54,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.archetype-cta-message {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.archetype-cta-message strong {
    color: var(--primary-orange);
}

.archetype-cta-button {
    background: linear-gradient(90deg, var(--primary-orange), #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237,137,54,0.3);
}

.archetype-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237,137,54,0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .archetype-modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .archetype-modal-title {
        font-size: 1.4rem;
    }
    
    #archetypeModalIcon {
        font-size: 2rem;
    }
}

.discovery-card {
    grid-column: 1 / -1;
    background: 
        radial-gradient(ellipse at top left, rgba(138, 43, 226, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(237, 137, 54, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, rgba(25,35,52,0.95) 0%, rgba(36,46,69,0.95) 100%);
    border: 2px solid rgba(237,137,54,0.3);
    position: relative;
    overflow: hidden;
}

.discovery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 15% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 35% 85%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: constellationTwinkle 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes constellationTwinkle {
    0%, 100% { 
        background-position: 0% 0%;
        opacity: 0.6;
    }
    25% { 
        background-position: 30% 20%;
        opacity: 0.8;
    }
    50% { 
        background-position: 60% 40%;
        opacity: 0.5;
    }
    75% { 
        background-position: 90% 60%;
        opacity: 0.7;
    }
}

.discovery-card {
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 6px 16px rgba(237,137,54,0.2);
    padding: 24px;
}
.hub-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.hub-card-emoji {
    font-size: 2.8rem;
    color: var(--primary-orange);
    margin-top: 0;
    margin-bottom: 10px;
}
.compass-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(45,55,72,0.6) 100%);
    border: 1px solid rgba(102,126,234,0.35);
}
.discovery-subtitle {
    font-size: 1rem;
    color: var(--light-text);
    margin: 4px 0 0 0;
}
.badge-top-right {
    position: absolute;
    top: 14px;
    right: 14px;
}
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(56,161,105,0.12);
    color: #a3e635;
    border: 1px solid rgba(56,161,105,0.35);
    min-width: 120px;
    justify-content: center;
}
.compass-status {
    background: rgba(66,153,225,0.16) !important;
    color: #90cdf4 !important;
    border: 1px solid rgba(66,153,225,0.5) !important;
}
.hub-card-desc {
    font-size: 0.96rem;
    color: var(--light-text);
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
}
.hub-card-status {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Hide duplicate assessment status text in star chart card */
#assessmentStatusText {
    display: none;
}
.hub-big-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2px 0 4px 0;
}
.hub-card-btn {
    width: auto;
    min-width: 200px;
    padding: 12px 20px;
    font-size: 1.02rem;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    margin: 20px auto 0 auto;
    flex-shrink: 0;
}

/* Keep discovery button consistent with other hub buttons */
.discovery-card .hub-card-btn {
    width: auto;
    min-width: 200px;
    padding: 14px 20px;
    font-size: 1.02rem;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    margin: 20px auto 0 auto;
    flex-shrink: 0;
}

.ghost-btn {
    background: transparent !important;
    color: var(--primary-orange) !important;
    border: 1.5px solid var(--primary-orange) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: var(--font-ui) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}
.ghost-btn:hover,
.ghost-btn:focus-visible {
    background: rgba(var(--primary-orange-rgb), 0.08) !important;
    color: #ffd166 !important;
    border-color: #ffd166 !important;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4) !important;
}
.ghost-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 150, 0.3),
        rgba(0, 255, 255, 0.3),
        rgba(255, 209, 102, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: -1;
}
.ghost-btn:hover::before {
    left: 100%;
}
.assessment-btn {
    background: #9f7aea;
}
.discovery-btn {
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(237,137,54,0.3);
}
/* Visually hidden text for accessibility */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}
@media (max-width: 768px) {
    .dashboard-big-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .hub-big-card {
        padding: 20px !important;
    }
    .live-market-container {
        padding: 20px !important;
    }
    .discovery-card {
        grid-column: span 1 !important;
        padding: 24px !important;
    }
    .dashboard-header h1 {
        font-size: 2rem !important;
    }
    .hub-big-card h3 {
        font-size: 1.3rem !important;
    }
}

/* Footer layout */
.site-footer {
    margin-top: 60px;
    padding: 24px;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
    justify-items: center;
    text-align: center;
}
.site-footer a {
    color: var(--primary-orange);
    font-weight: 600;
}
.footer-links nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
}
.footer-links {
    grid-column: 1 / -1;
    text-align: center;
}
.footer-legal p {
    font-size: 0.82em;
    color: var(--mid-text);
    line-height: 1.6;
    opacity: 0.75;
    margin: 0;
    text-align: center;
}
.footer-research {
    grid-column: 1 / -1;
    text-align: center;
}
.footer-research p {
    font-size: 0.9em;
    color: var(--mid-text);
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    max-width: 1100px;
}
.footer-legal {
    grid-column: 1 / -1;
    max-width: 1100px;
}
.footer-legal {
    grid-column: 1 / -1;
}
.site-footer nav a {
    text-decoration: none;
}
.site-footer nav a:hover {
    text-decoration: underline;
}
/* Cosmic Home Background */
.cosmic-home {
    background: 
        radial-gradient(ellipse at top left, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(237, 137, 54, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(25,35,52,0.95) 0%, rgba(36,46,69,0.95) 100%);
    position: relative;
    overflow: hidden;
}

.cosmic-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 50% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 15% 60%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 35% 85%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: cosmicTwinkle 25s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes cosmicTwinkle {
    0%, 100% { 
        background-position: 0% 0%;
        opacity: 0.4;
    }
    25% { 
        background-position: 30% 20%;
        opacity: 0.6;
    }
    50% { 
        background-position: 60% 40%;
        opacity: 0.3;
    }
    75% { 
        background-position: 90% 60%;
        opacity: 0.5;
    }
}

.cosmic-home > * {
    position: relative;
    z-index: 1;
}

/* Typewriter Effect */
.typewriter-container {
    position: relative;
    display: inline-block;
}

.typewriter-text {
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

/* Thin monospaced text span used by the JS typewriter */
.typewriter-text-span {
    /* Use page's main UI font but not bold to mimic subtle typewriter feel */
    font-family: var(--font-ui);
    font-weight: 400; /* normal */
    font-style: normal;
    letter-spacing: 0.005em;
    color: inherit;
}


@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typewriter-cursor {
    display: inline-block;
    width: 1.6px;
    height: 1.05em;
    background-color: var(--primary-orange);
    margin-left: 6px;
    animation: blink 1s steps(1) infinite;
    vertical-align: bottom;
}

/* --- GLOBAL PALETTE & BASE --- */
:root {
    --primary-orange: #f5a623;
    /* RGB form of primary orange for use in rgba() where opacity is needed */
    --primary-orange-rgb: 245,166,35;
    --secondary-orange: #ffb74d;
    --dark-bg: #1a202c;
    --medium-dark-bg: #2d3748;
    --light-text: #e2e8f0;
    --mid-text: #cbd5e0;
    --border-color: #4a5568;
    --success: #38a169;
    --danger: #c53030;
    --info: #4299e1;
    --sexy-pink: #ff5fa2;
    --sexy-purple: #7f53ac;
    --sexy-blue: #43c6ac;
    --sexy-yellow: #ffe156;
    --sexy-glow: 0 0 16px 2px rgba(255,95,162,0.25), 0 0 32px 4px rgba(127,83,172,0.15);
    
}

.career-compass-section {
    background: linear-gradient(135deg, var(--sexy-purple) 0%, var(--sexy-pink) 100%);
    border-radius: 18px;
    box-shadow: var(--sexy-glow);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: popIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes popIn {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    80% { transform: scale(1.03) translateY(-8px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.career-compass-section h2, .career-compass-section h3 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(127,83,172,0.18);
    font-weight: 800;
    letter-spacing: -1px;
}

.career-compass-tasks {
    margin-top: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(67,198,172,0.08);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    animation: fadeInUp 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.career-compass-tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.career-compass-task-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.10) 0%, rgba(255,95,162,0.10) 100%);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 8px rgba(255,95,162,0.07);
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.career-compass-task-item:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 4px 24px 0 rgba(255,95,162,0.18), 0 1.5px 8px rgba(67,198,172,0.10);
    background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,95,162,0.18) 100%);
}

.career-compass-task-icon {
    min-width: 2.5rem;
    min-height: 2.5rem;
    background: linear-gradient(135deg, var(--sexy-yellow) 0%, var(--sexy-pink) 100%);
    color: var(--sexy-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(255,225,86,0.12);
    margin-right: 0.5rem;
    border: 2.5px solid rgba(255,255,255,0.18);
    transition: background 0.2s, color 0.2s;
}
.career-compass-task-item:hover .career-compass-task-icon {
    color: var(--sexy-blue);
}

.career-compass-task-desc {
    font-size: 1.08rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(67,198,172,0.08);
}

@media (max-width: 768px) {
    .career-compass-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .career-compass-tasks {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .career-compass-task-item {
        padding: 0.8rem 0.7rem;
    }
    .career-compass-task-icon {
        min-width: 2rem;
        min-height: 2rem;
        font-size: 1.1rem;
    }
}

:root {
    /* Visualization colors for gap analysis */
    --color-deficit-start: #ff7a59;
    --color-deficit-end: #ff4d4d;
    --color-surplus-start: #4da6ff;
    --color-surplus-end: #2b8cff;
    --color-neutral: #c9b037;
    /* Error/Warning theme colors (WCAG AA compliant) */
    --color-error-text: #742a2a;
    --color-error-text-strong: #9b2c2c;
    --color-error-bg-start: #fed7d7;
    --color-error-bg-end: #fef5e7;
    --color-error-border: #fc8181;
    --color-error-shadow: rgba(252, 129, 129, 0.2);
    /* Hover/interaction colors */
    --color-row-hover: rgba(49, 151, 149, 0.25); /* Teal hover for report rows */
    /* Badge colors */
    --badge-apply: #2f855a;
    --badge-apply-text: #fff;
    --badge-train: #c53030;
    --badge-train-text: #fff;
    --badge-energize: #f6ad55;
    --badge-energize-text: #1a202c;
    --badge-drain: #718096;
    --badge-drain-text: #fff;
}

html, body {
    min-height: 100vh;
    height: 100%;
}

body {
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    padding: 20px;
    font-size: 16px;
}

/* Force Headings to match the vibe */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 700;
}

/* Special Case: Archetype Titles (The "Magical" headers) */
.archetype-title, 
.card-title-serif {
    font-family: var(--font-heading);
    font-style: italic;
}

/* Captain's Log aesthetic for status tags and coordinates */
.status-tag, .coordinates {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

h2, h3, h4 {
    color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 600;
}

h3 {
    color: var(--secondary-orange);
    font-size: 1.1em;
    border-bottom: none;
    margin-top: 15px;
}

p {
    color: var(--mid-text);
    line-height: 1.6;
}

/* --- APP CONTAINER & STRUCTURE --- */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0;
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-logo {
    max-width: 300px;
    height: auto;
    background-color: var(--light-text); /* White background */
    padding: 10px 20px;
    border-radius: 8px;
}

/* Style for all step containers */
#step0, #step1, #step2, #step3 {
    background-color: var(--medium-dark-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.paid-feature-box {
    background-color: var(--dark-bg);
    border: 2px solid var(--primary-orange);
    padding: 10px 20px;
}
.paid-feature-box h3 {
    color: var(--primary-orange);
}

#step0 h2 {
    color: var(--light-text);
    border-bottom: none;
}

#step0 p {
    color: var(--mid-text);
}



/* --- APP STRUCTURE & NAV --- */
.top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.top-nav-bar .button {
    margin-top: 0; /* Remove top margin for buttons in this bar */
}

#wizardNavigationTop {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background-color: transparent;
    z-index: 100;
    padding: 6px 0 2px 0;
    border-bottom: none;
}

#wizardProgressContainer {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

#wizardNavigationTop .button,
#wizardNavigationBottom .button {
    margin-top: 0;
    width: 48%; /* Make prev/next buttons split the space */
}

/* --- STEP 1: FORM STYLING --- */
/* Enhanced Profile Edit Page Styles (Feb 2026)
 * Improvements include:
 * - Modern form sections with hover effects
 * - Better search input and dropdown styling
 * - Enhanced credential and work history cards
 * - Improved button states and interactions
 * - Responsive design for mobile devices
 * - Better visual hierarchy and spacing
 */

/* Modern Form Section Styling */
.form-section {
    background: var(--medium-dark-bg);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
    margin-top: 0;
    color: var(--light-text);
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section p {
    font-size: 0.9em;
    color: var(--mid-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--mid-text);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group small {
    display: block;
    font-size: 0.85em;
    color: var(--mid-text);
    margin-top: 6px;
    font-style: italic;
}

/* Input Field Styling */
label {
    display: block;
    font-weight: 600;
    color: var(--mid-text);
    margin-top: 15px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.2s ease;
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: var(--primary-orange);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
    background-color: rgba(var(--dark-bg), 0.8);
}

select:disabled {
    background-color: var(--border-color);
    opacity: 0.7;
    cursor: not-allowed;
}

input:read-only {
    background-color: var(--border-color);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Profile Page Instruction Banner */
#step1 > p[style*="background: #ebf8ff"] {
    background: linear-gradient(135deg, #ebf8ff 0%, #e0f2fe 100%) !important;
    padding: 16px 20px !important;
    border-radius: 10px !important;
    border-left: 4px solid #4299e1 !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.1) !important;
}

/* Resume Upload Section Styling */
#resumeUploadContainer {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--medium-dark-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

#resumeUploadContainer:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15);
}

#resumeUploadContainer label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 8px;
}

/* File Input Styling */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input[type="file"]:hover {
    border-color: var(--primary-orange);
    background-color: rgba(245, 166, 35, 0.05);
}

input[type="file"]::-webkit-file-upload-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary-orange);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--secondary-orange);
    transform: translateY(-1px);
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary-orange);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--secondary-orange);
    transform: translateY(-1px);
}

/* Selected Jobs Display Area */
.selected-jobs-display {
    margin-top: 16px;
    padding: 16px;
    background: var(--dark-bg);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.selected-jobs-display:empty::after {
    content: 'No items added yet';
    color: var(--mid-text);
    font-size: 0.9em;
    font-style: italic;
}

.selected-jobs-display p {
    color: var(--mid-text);
    font-size: 0.9em;
    margin: 0;
}

/* Checkbox Styling for "No Work Experience" */
.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Validation errors */
.validation-error {
    padding: 10px 12px;
    margin: 8px 0;
    background: rgba(220, 38, 38, 0.12);
    border-left: 3px solid #dc2626;
    border-radius: 0 6px 6px 0;
    color: #1f2937;
    animation: validationPulse 2s infinite;
}

@keyframes validationPulse {
    0% { opacity: 1; }
    50% { opacity: 0.82; }
    100% { opacity: 1; }
}

/* Top Navigation Bar for Profile */
.top-nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--medium-dark-bg);
    border-radius: 10px;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Validation Error Box */
.validation-error-box {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.1);
}

.validation-error-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Profile Page Header */
#step1 > h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}


/* --- SEARCH BOX STYLING --- */
.search-container {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}


.search-input::placeholder {
    color: var(--mid-text);
    opacity: 0.7;
}

.search-options {
    display: none;
    position: absolute;
    background-color: var(--light-text);
    color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.search-options.active {
    display: block;
}

.search-item {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
}

.search-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.search-item:first-child {
    border-radius: 8px 8px 0 0;
}

.search-item:hover {
    background-color: var(--secondary-orange);
    color: #1a202c;
    padding-left: 22px;
    box-shadow: inset 4px 0 0 var(--primary-orange);
}

.search-item:active {
    background-color: var(--primary-orange);
    color: white;
}

/* Smooth scrollbar for search results */
.search-options::-webkit-scrollbar {
    width: 8px;
}

.search-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.search-options::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.search-options::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange);
}

/* Phase 4: Credential Search Styling */
.credential-search-item {
    padding: 14px 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.credential-search-item:last-child {
    border-bottom: none;
}

.credential-search-item:hover {
    background-color: rgba(66, 153, 225, 0.15);
    color: #1a202c;
    padding-left: 22px;
    box-shadow: inset 4px 0 0 #4299e1;
}

.credential-entry {
    background: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.credential-entry:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.15);
    transform: translateX(4px);
}

.credential-entry-content {
    flex: 1;
}

.credential-entry-title {
    font-weight: 600;
    color: var(--light-text);
    font-size: 1em;
    margin-bottom: 4px;
}

.credential-entry-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.credential-entry-remove:hover {
    color: #fff;
    background-color: var(--danger);
}

/* Phase 4: 3-State Skill Bars */
.skill-bar-container {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 8px 0;
}

.skill-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.skill-bar-empty {
    background: #a0aec0; /* Gray - Empty/Baseline */
}

.skill-bar-ghost {
    background: repeating-linear-gradient(
        45deg,
        #4299e1,
        #4299e1 10px,
        #63b3ed 10px,
        #63b3ed 20px
    );
    opacity: 0.6; /* Semi-transparent - Ghost-filled */
}

.skill-bar-verified {
    background: #48bb78; /* Solid Green - Verified */
}

.skill-bar-verified::after {
    content: '✓';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.job-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
/* Entry Card Base (used by work history & education) */
.entry-card {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.entry-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.entry-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--mid-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-card input,
.entry-card select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95em;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--medium-dark-bg);
    color: var(--light-text);
    transition: all 0.2s ease;
}

.entry-card input:focus,
.entry-card select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
    background-color: var(--dark-bg);
}

.entry-card input:hover,
.entry-card select:hover {
    border-color: var(--primary-orange);
}

/* Date Range Layout */
.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .date-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.date-group {
    display: flex;
    flex-direction: column;
}

.date-group label {
    margin-bottom: 8px;
}

/* Enhanced Date Input Styling - Larger, More User-Friendly */
input[type="date"] {
    font-size: 1.05rem !important;
    padding: 12px !important;
    min-height: 48px;
    cursor: pointer;
    position: relative;
}

/* Prevent manual text entry in date inputs - force calendar picker */
input[type="date"] {
    padding-right: 40px !important; /* Space for calendar icon */
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    position: absolute;
    right: 8px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Make calendar popup larger on supported browsers */
input[type="date"]::-webkit-datetime-edit {
    padding: 4px;
    font-size: 1.05rem;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 4px;
}

input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 0.3em;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 4px;
    border-radius: 3px;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background-color: rgba(46, 196, 241, 0.2);
    outline: none;
}

/* Visual feedback for invalid dates */
input[type="date"]:invalid {
    border-color: #d97706;
    border-width: 2px;
}

.date-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-inputs select {
    flex: 0 0 75px;
    margin-bottom: 0;
}

.date-inputs input {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.remove-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 12px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.remove-btn:hover {
    color: #fff;
    background-color: var(--danger);
    border-color: var(--danger);
    transform: scale(1.05);
}

.remove-btn:active {
    transform: scale(0.95);
}

/* Legacy table styles (kept for backward compatibility if needed) */
.job-history-table th,
.job-history-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    min-width: 60px;
}
.job-history-table th {
    font-size: 0.85em;
    color: var(--mid-text);
}
.job-history-table input,
.job-history-table select {
    padding: 8px;
    font-size: 0.9em;
}
.remove-job-btn {
    color: var(--danger);
    font-weight: bold;
    cursor: pointer;
}
.remove-degree-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}
.remove-degree-btn:hover {
    color: #fff;
    background-color: var(--danger);
    border-radius: 50%;
}

/* --- PROFILE PAGE ENHANCEMENTS --- */

/* Education List Styling */
#educationList {
    margin-top: 16px;
}

#educationList:empty::before {
    content: 'No education entries added yet. Click "Add Education" to begin.';
    display: block;
    padding: 20px;
    text-align: center;
    color: var(--mid-text);
    font-style: italic;
    background: var(--dark-bg);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

/* Selected Credentials Styling */
#selectedCredentials {
    min-height: 80px;
}

#selectedCredentials:empty::before {
    content: 'No credentials added. Search and select credentials above.';
    display: block;
    padding: 20px;
    text-align: center;
    color: var(--mid-text);
    font-style: italic;
}

/* Selected Jobs Display Enhancements */
#selectedCandidateJobs {
    min-height: 100px;
}

#selectedCandidateJobs:not(:has(*)) p {
    text-align: center;
    padding: 30px 20px;
}

/* Add Education Button Hover */
#addEducationBtn {
    transition: all 0.2s ease;
}

#addEducationBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 166, 35, 0.3);
}

/* Save Profile Buttons Enhancement */
#saveProfileButtonTop,
#saveProfileButtonBottom {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#saveProfileButtonTop:not(:disabled):hover,
#saveProfileButtonBottom:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

#saveProfileButtonTop:disabled,
#saveProfileButtonBottom:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Bottom Button Row */
#step1 > div:last-child {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .form-section {
        padding: 20px 16px;
    }
    
    .entry-card {
        padding: 20px 16px;
    }
    
    .top-nav-bar {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    #saveProfileButtonTop,
    #saveProfileButtonBottom {
        width: 100%;
    }
    
    .remove-btn {
        top: 12px;
        right: 12px;
        font-size: 1rem;
        padding: 4px 8px;
    }
    
    #step1 > h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .form-section h3 {
        font-size: 1.1em;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-inputs select {
        flex: 1;
        width: 100%;
    }
}

/* --- STEP 2: COMPETENCY WIZARD --- */
.ksa-group-header {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--primary-orange);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    margin-bottom: 5px;
}
#ksaWizardContent .ksa-group-header:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.ksa-group-definition {
    font-size: 0.9em;
    color: var(--mid-text);
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-orange);
    padding-left: 10px;
    font-style: italic;
}

.wizard-category-definition {
    font-size: 0.9em;
    color: var(--mid-text);
    font-style: italic;
}
.wizard-guidance-dimension {
    font-size: 1.0em; 
    color: var(--light-text); 
    font-weight: 600; 
    margin-bottom: 8px;
}
.wizard-guidance-instruction {
    font-size: 0.9em;
    color: var(--mid-text);
    margin-bottom: 16px;
}

.ksa-item-definition {
    font-size: 0.9em;
    color: var(--light-text); /* The "lighter white" you wanted */
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ksa-item-label-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ksa-item-label {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 4px;
}

.input-group {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.input-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.input-group label {
    color: var(--light-text);
}

/* --- ANCHOR & RADIO BUTTON ALIGNMENT FIX --- */
.anchor-row {
    position: relative;
    width: 100%;
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Distribute items evenly */
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px; /* Space between text and the dashed line */
}
.anchor-tick {
    /* position: absolute; -- REMOVED to let flexbox handle positioning */
    color: var(--mid-text);
    font-size: 0.8em;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    width: 14%; /* Give each tick a consistent width */
    text-align: center; /* Center the text within its column */
}
.anchor-tick.generic-anchor-tick {
    font-size: 0.75em;
}
.onet-anchor-tick {
    color: var(--secondary-orange);
    font-weight: 600;
}
.anchor-row-below {
    margin-top: 10px;
    min-height: 40px;
    border-bottom: none;
}

/* Competition circle and component card styles */
.competition-chart-container {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.competition-chart-canvas {
    width: 220px !important;
    height: 220px !important;
}
.component-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.component-card {
    background: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 260px;
}
.component-card h4 { margin: 0 0 6px 0; }
.component-score { font-size: 1.15em; font-weight: 700; color: var(--light-text); }
.coverage-pill { font-size: 0.85em; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--mid-text); }
.partial-flag { color: var(--primary-orange); font-weight: 700; }

/* Two-signal dials (competency + satisfaction) */
.two-dial-container {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.dial {
    min-width: 220px;
    max-width: 320px;
    background: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
}
.dial .dial-label { font-weight: 700; color: var(--light-text); margin-bottom: 6px; }
.dial .dial-bar {
    height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}
.dial .dial-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#38a169,#68d391); transition: width 400ms ease; }
.dial .dial-fill.satisfaction { background: linear-gradient(90deg,#f6ad55,#f56565); }
.dial .dial-meta { font-size: 0.85em; color: var(--mid-text); margin-top: 8px; }
.dial .badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-weight:700; font-size:0.85em; margin-left:8px; }

/* General badge styling */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75em;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.badge-apply { background: var(--badge-apply, #2f855a); color: var(--badge-apply-text, #fff); }
.badge-train { background: var(--badge-train, #c53030); color: var(--badge-train-text, #fff); }
.badge-energize { background: var(--badge-energize, #f6ad55); color: var(--badge-energize-text, #1a202c); }
.badge-drain { background: var(--badge-drain, #718096); color: var(--badge-drain-text, #fff); }

/* Spinner styles */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.12);
    border-top-color: #2081e2;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
    margin: 0 auto;
}

/* Small spinner for auth modal */
.small-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Super Match Badge Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255,107,53,0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255,107,53,0.7), 0 0 20px rgba(255,107,53,0.3);
        transform: scale(1.05);
    }
}

.auth-modal { 
    display: none; 
    position: fixed; 
    left: 0; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.85) !important; /* Increased opacity for better coverage */
    z-index: 1000; 
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(2px); /* Add subtle blur to background */
}

.auth-modal.active,
.auth-modal[style*="flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.85) !important; /* Ensure consistent background */
    backdrop-filter: blur(2px) !important; /* Ensure consistent blur */
}

.auth-modal .auth-modal-content {
    display: block !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1001 !important;
    background: #0f172a; /* high-contrast dark card */
    color: #e5e7eb;
    padding: 24px;
    border-radius: 10px;
    width: 420px !important;
    min-width: 320px !important;
    min-height: 260px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    margin: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: none !important;
    flex-shrink: 0;
}
.auth-error { color: var(--danger); margin-top: 6px; }

.radio-group-container {
    display: flex;
    justify-content: space-between; /* This is the key fix */
    align-items: center;
    margin-top: 15px;
}

.radio-label-group {
    display: flex;
    flex-direction: column; /* Stack button on top of label */
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    width: 14%; /* Match anchor tick width */
    margin: 0; /* Remove old margin */
}

.radio-label-group input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--medium-dark-bg);
    margin: 0;
    color: currentColor;
    width: 1.5em;
    height: 1.5em;
    border: 2px solid var(--mid-text);
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: all 120ms ease-in-out;
    cursor: pointer;
}
.radio-label-group input[type="radio"]::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    background-color: var(--primary-orange);
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}
.radio-label-group input[type="radio"]:checked {
    border-color: var(--primary-orange);
}
.radio-label-group input[type="radio"]:checked::before {
    transform: scale(1);
}
.radio-label-group input[type="radio"]:hover {
    border-color: var(--secondary-orange);
}

/* Ghost-filled (suggested) styling - more subtle than selected */
.radio-label-group.suggested-choice {
    position: relative;
}

.radio-label-group.suggested-choice input[type="radio"]:checked {
    border-color: #3b82f6; /* Blue instead of orange */
    border-style: dashed; /* Dashed to indicate suggestion */
    border-width: 2px;
}

.radio-label-group.suggested-choice input[type="radio"]:checked::before {
    background-color: #3b82f6; /* Blue fill */
    opacity: 0.6; /* More transparent */
}

/* Add subtle target icon for suggested values */
.radio-label-group.suggested-choice::after {
    content: '🎯';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.radio-label-group label {
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 8px; /* Space between radio and label */
    cursor: pointer;
}

/* --- QUIZ STYLES (RIASEC, etc.) --- */
.riasec-radio-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}
.riasec-radio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
}
.riasec-radio-wrapper.selected-choice {
    background-color: var(--medium-dark-bg);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px var(--primary-orange);
    transform: scale(1.02);
    transition: all 0.2s ease;
}
.riasec-radio-wrapper input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--medium-dark-bg);
    margin: 0;
    width: 1.5em;
    height: 1.5em;
    border: 2px solid var(--mid-text);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.riasec-radio-wrapper input[type="radio"]::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    background-color: var(--primary-orange);
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}
.riasec-radio-wrapper input[type="radio"]:checked {
    border-color: var(--primary-orange);
}
.riasec-radio-wrapper input[type="radio"]:checked::before {
    transform: scale(1);
}
.riasec-radio-wrapper label {
    font-size: 0.8em;
    color: var(--mid-text);
    margin-top: 5px;
}
.riasec-radio-wrapper:hover input[type="radio"] {
    border-color: var(--secondary-orange);
}
.riasec-radio-wrapper:hover label {
    color: var(--light-text);
}
/* Fix for Work Values quiz definition text */
.riasec-radio-wrapper label span {
    color: var(--mid-text);
}

/* --- BUTTONS --- */
.button {
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 1em;
    padding: 12px 24px;
    border: none;
    border-radius: 10px; /* Softer corners */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: auto;
    margin-top: 10px;
    font-family: var(--font-ui);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}
.button:hover {
        background-color: var(--secondary-orange);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Remove pink/orange glow */

.hero-headline {
    font-family: var(--font-heading), serif;
    font-size: 2.7em;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.hero-subheadline {
    margin-top: 1.5rem;
    font-size: 1.15em;
    color: var(--mid-text);
    max-width: 650px;
    line-height: 1.6;
}
.hero-cta-btn {
    margin-top: 2.2rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    transition: box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
}
.hero-cta-btn:hover {
    box-shadow: 0 4px 16px rgba(102,126,234,0.25), 0 2px 8px rgba(118,75,162,0.18);
    transform: translateY(-2px) scale(1.03);
}
}
.button:disabled {
    background-color: var(--border-color);
    color: var(--mid-text);
    cursor: not-allowed;
    transform: translateY(0);
    opacity: 0.6;
    box-shadow: none;
}

/* Make main step buttons full-width again */
#step2 .top-nav-bar {
    justify-content: center;
}
#saveProfileButtonStep2 {
    margin-left: 0;
    margin-right: 0;
    display: block;
    margin: 0 auto 0 auto;
    min-width: 220px;
    max-width: 320px;
}

/* Wizard step header style improvement */
#step2 h2 {
    background: linear-gradient(90deg, var(--medium-dark-bg) 60%, var(--primary-orange) 120%);
    color: var(--light-text);
    border-radius: 8px;
    padding: 16px 18px 12px 18px;
    font-size: 1.35em;
    font-weight: 700;
    border-bottom: none;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* Wizard Nav Buttons */
#wizardNavigationTop .button[onclick="prevKsaStep()"],
#wizardNavigationBottom .button[onclick="prevKsaStep()"] {
    background-color: var(--medium-dark-bg);
    color: var(--light-text);
    border: 1px solid var(--border-color);
}
#wizardNavigationTop .button[onclick="prevKsaStep()"]:hover,
#wizardNavigationBottom .button[onclick="prevKsaStep()"]:hover {
    background-color: var(--border-color);
    color: var(--light-text);
}

/* --- STEPPER --- */
/* --- OTHER --- */
.loading-overlay {
    /* ... existing styles ... */
    background: rgba(45, 55, 72, 0.9); /* Match dark theme */
}
.loading-spinner {
    border-top-color: var(--primary-orange);
}

.user-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background-color: var(--medium-dark-bg);
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}
#userEmail {
    color: var(--mid-text);
    margin-right: 15px;
    font-size: 0.9em;
}
#logoutButton {
    background: var(--border-color);
    color: var(--light-text);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
#logoutButton:hover {
    background: var(--danger);
}

/* --- REPORT TABLE STYLING --- */
.detailed-ksa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-top: 10px;
}

.detailed-ksa-table th { 
    text-align: left; 
    padding: 10px; 
    background-color: var(--dark-bg); 
    color: var(--secondary-orange); 
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.detailed-ksa-table td { padding: 10px; border-bottom: 1px solid var(--border-color); color: var(--light-text); }

/* Zebra Striping for readability */ .detailed-ksa-table tbody tr:nth-child(odd) { background-color: rgba(255, 255, 255, 0.03); }

.detailed-ksa-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.08); }

/* --- Calculated Field Overrides --- */
.calculated-field-container { display: block; }
#candExperienceContainer { margin-bottom: 1rem; }
.read-only-input { width: 100%; background-color: var(--surface); cursor: not-allowed; opacity: 0.8; }

.feedback-list {
    list-style: none;
    padding-left: 0;
}

.feedback-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.feedback-list.opportunities-list li {
    padding-left: 36px;
}

.feedback-list li:last-child {
    border-bottom: none;
}

.feedback-list.opportunities-list li::before {
    content: '💼';
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 1.3em;
}

/* Opportunity description styling */
.opportunity-description {
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-orange);
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--mid-text);
    line-height: 1.5;
}

/* --- GROUP CARD STYLING --- */
.ksa-group-card {
    background-color: var(--medium-dark-bg); /* Matches step bg */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px; /* Big gap between groups */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle lift */
    position: relative; /* For positioning context */
    overflow: hidden; /* Keeps header inside rounded corners */
}
/* Enhance the header to look like a "Banner" */
.ksa-group-card h4.ksa-group-header {
    background-color: var(--medium-dark-bg); /* Keep bg consistent */
    color: var(--primary-orange);
    margin: -20px -20px 15px -20px; /* Stretch to edges of card */
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    border-top: none !important; /* Override old styles */
    font-size: 1.3em;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
}

/* Add a small icon/marker before the header text */
.ksa-group-card h4.ksa-group-header::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--primary-orange);
    margin-right: 12px;
    border-radius: 3px;
}

/* Style the definition inside the card */
.ksa-group-card .ksa-group-definition {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle highlight */
    padding: 12px 15px;
    border-radius: 6px;
    border-left: none; /* Remove old border */
    margin-bottom: 20px;
    color: var(--light-text);
}

/* --- Radar & Gap Analysis Visuals --- */
.radar-wrap { display:flex; gap:18px; align-items:flex-start; margin-top:10px; }
.radar-box { flex: 0 0 360px; }
.radar-chart-canvas { width: 360px !important; height: 300px !important; }

.gap-analysis { margin-top: 12px; background: transparent; }
.gap-analysis h3 { margin: 8px 0; color: var(--secondary-orange); }
.gap-analysis .explain { font-size: 0.95em; margin-bottom: 8px; opacity: 0.95; }

.lollipop-row { display:flex; align-items:center; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.03); }
.gap-label { width:260px; flex:0 0 260px; padding-right:12px; color:var(--light-text); font-weight:600; }
.lollipop-bar-wrap { flex:1; position:relative; height:34px; display:flex; align-items:center; }
.scale-bar { height:6px; background:var(--border-color, #4a5568); width:100%; border-radius:3px; position:relative; }
.scale-tick { position:absolute; transform:translateX(-50%); height:18px; width:2px; background:var(--mid-text, #cbd5e0); top:8px; }
.lollipop-dot { position:absolute; transform:translateX(-50%); height:12px; width:12px; border-radius:50%; top:6px; box-shadow:0 2px 6px rgba(0,0,0,0.12); }
.lollipop-connector { position:absolute; height:2px; top:12px; transform:translateX(0); }
.gap-right-meta { flex:0 0 120px; text-align:right; padding-left:12px; font-size:0.9em; color:var(--mid-text); }

.bucket-header { margin-top:8px; font-size:1em; color:var(--light-text); }
.btn.small { padding:6px 10px; font-size:0.9em; border-radius:6px; background:var(--border-color); color:var(--light-text); border:1px solid rgba(255,255,255,0.03); cursor:pointer; }
.btn.small:hover { background:var(--primary-orange); color:var(--dark-bg); }

/* Color helpers for connectors and dots (applied inline where dynamic color gradients are used) */
.deficit { background: linear-gradient(90deg, var(--color-deficit-start, #ff7a59), var(--color-deficit-end, #ff4d4d)); }
.surplus { background: linear-gradient(90deg, var(--color-surplus-start, #4da6ff), var(--color-surplus-end, #2b8cff)); }
.neutral { background: var(--color-neutral, #c9b037); }

/* Collapsible baseline list default */
.baseline-list { display:none; margin-top:6px; }

/* Dot color helpers */
.lollipop-dot.deficit { background: var(--color-deficit-end, #ff4d4d); }
.lollipop-dot.surplus { background: var(--color-surplus-end, #2b8cff); }
.lollipop-dot.neutral { background: var(--color-neutral, #c9b037); }

/* Match badge styling */
.match-badge { display:flex; align-items:center; gap:12px; padding:10px 14px; background: linear-gradient(90deg,#2c5282 0%, #2b6cb0 100%); color: #fff; border-radius:8px; width:160px; margin: 8px auto; text-align:center; }
.match-badge-value { font-size:28px; font-weight:800; line-height:1; }
.match-badge-label { font-size:0.85em; opacity:0.95; }

/* Visual header / toggle */
.visuals-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.visuals-explain { font-size:0.95em; color: var(--mid-text); flex:1; }
.toggle-visuals { background: var(--surface); border:1px solid var(--border-color); padding:6px 8px; border-radius:6px; cursor:pointer; color: var(--light-text); }
.toggle-visuals:hover { background: var(--dark-bg); }

.grouped-tables-container { margin-top:10px; }

/* Keep the scale headers visible while scrolling through long lists */
.assessment-table th {
    position: sticky;
    top: 0;
    background-color: var(--dark-bg); /* Opaque background needed so text doesn't bleed */
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Also keep the wizard step header and guidance visible while scrolling */
/* Keep only the main step header sticky to avoid overlapping guidance text */
#ksaWizardContent > h3 {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, var(--medium-dark-bg) 0%, var(--dark-bg) 100%);
    z-index: 12;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding-top: 8px;
    color: var(--light-text);
}
/* Ensure guidance text flows naturally under header */
#ksaWizardContent .wizard-guidance-instruction { position: relative; z-index: 1; }

/* Save indicator (visual autosave heartbeat) */
.save-indicator { display:inline-block; font-size:0.9em; color:#2d3748; opacity:0; transition: opacity 0.25s ease, transform 0.25s ease; }
.save-indicator.visible { opacity:1; transform: translateY(-2px); color: #2f855a; }

/* Make the radio hit area larger for better touch targets */
#ksaWizardContent .riasec-radio-wrapper,
#ksaWizardContent .riasec-radio-container .riasec-radio-wrapper,
#ksaWizardContent .ksa-item-group .riasec-radio-wrapper,
#ksaWizardContent .ksa-item-group label {
    position: relative;
    padding: 10px 12px;
    cursor: pointer;
}

#ksaWizardContent input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

/* Keyboard focus styles for accessibility */
#ksaWizardContent input[type="radio"]:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

#ksaWizardContent .riasec-radio-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

/* Simple custom dot for radio wrappers (optional) */
#ksaWizardContent .riasec-radio-wrapper::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(45,55,72,0.18);
    background: transparent;
    z-index: 1;
}
#ksaWizardContent .riasec-radio-wrapper.selected-choice::after { background: #3182ce; border-color: #3182ce; }

/* Print stylesheet helpers */
@media print {
    .no-print, .wizard-stepper, .top-nav-bar, #wizardNavigationTop, #wizardNavigationBottom { display: none !important; }
    
    /* Force color rendering for better print output */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Base colors for print */
    body { 
        background: #fff !important; 
        color: #000 !important; 
    }
    
    /* Page breaks */
    h1, h2 {
        page-break-after: avoid !important;
    }
    
    .report-block, .summary-card {
        page-break-inside: avoid !important;
    }
    
    /* Override heading colors to dark for print readability */
    h1, h2, h3, h4, h5, h6 {
        color: #1a202c !important;
        background: none !important;
    }
    
    /* Override link colors to dark with underline */
    a {
        color: #2d3748 !important;
        text-decoration: underline !important;
    }
    
    /* Badge styling for print - replace backgrounds with borders */
    .badge, .status-badge, .metric-badge {
        background: #fff !important;
        color: #1a202c !important;
        border: 2px solid #2d3748 !important;
        box-shadow: none !important;
    }
    
    /* Status classes - convert to bordered text-only styling */
    .status-strong-alignment, .status-exceeds-requirement,
    .status-good-fit, .status-meets-requirement,
    .status-okay-fit, .status-minor-gap,
    .status-fit-risk, .status-needs-development {
        background: #fff !important;
        color: #1a202c !important;
        border: 1px solid #4a5568 !important;
    }
    
    /* Cards and blocks */
    .card, .report-block { 
        box-shadow: none !important; 
        border: 1px solid #ccc !important; 
        background: #fff !important;
    }
    
    /* Override accent colors for print */
    .primary-text, .accent-text {
        color: #2d3748 !important;
    }
    
    /* Remove background fills from highlighted sections */
    .highlight, .callout, .info-box {
        background: #fff !important;
        border: 1px solid #718096 !important;
        color: #1a202c !important;
    }
    
    /* Print footer with copyright */
    #resultsArea::after {
        content: '';
        display: block;
        height: 60px;
    }
    
    @page {
        margin: 0.75in;
        @bottom-center {
            content: "Job Fit Score © 2025 · All Rights Reserved";
            font-size: 10pt;
            color: #718096;
        }
    }
}

/* Score Bar Colors */
.bg-success { background-color: #38a169 !important; }
.bg-warning { background-color: #d69e2e !important; }
.bg-danger { background-color: #e53e3e !important; }

/* --- Report Status Indicators (Traffic Light Badges) --- */
/* Base Badge Style */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

/* 🟢 MATCH (Safe Zone) */
.status-match {
    background-color: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
}

/* 🔵 SURPLUS (Asset) */
.status-surplus {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

/* 🟡 WARNING (Minor Gap) */
.status-warning {
    background-color: #fffff0;
    color: #d69e2e;
    border: 1px solid #fefcbf;
}

/* 🔴 DANGER (Needs Development) */
.status-danger {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}


/* Small toggle spacing when nested in headers */
.toggle-baseline { margin-left: 12px; }

/* --- Custom Radio Buttons (Fitts's Law Optimized) --- */

/* 1. Make the label fill the entire table cell */
.custom-radio-cell {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 50px; /* Ensure a nice big hit target */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0; /* Reset default label margins */
    position: relative;
}

/* 2. Hover effect for the whole cell */
.custom-radio-cell:hover { background-color: var(--surface); }

/* 3. Hide the default ugly browser radio button */
.custom-radio-cell input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 4. The Custom Circle (The visual part) */
.radio-checkmark {
    height: 24px;
    width: 24px;
    background-color: var(--medium-dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* 5. Checked State - Outer Border */
.custom-radio-cell input:checked ~ .radio-checkmark {
    border-color: var(--primary-orange);
    background-color: var(--primary-orange);
}

/* 6. Checked State - Inner White Dot */
.radio-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    /* Style the inner white dot - centered */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--medium-dark-bg);
}

/* Show the dot when checked */
.custom-radio-cell input:checked ~ .radio-checkmark::after { display: block; }

/* 7. Keyboard Focus Styles (Accessibility) */
.custom-radio-cell input:focus ~ .radio-checkmark {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

.custom-radio-cell input:focus-visible ~ .radio-checkmark {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.5);
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
    transform: scale(1.1);
}

/* 8. Disabled State */
.custom-radio-cell input[disabled] ~ .radio-checkmark {
    opacity: 0.5;
    border-color: var(--border-color);
    background-color: var(--surface);
    cursor: not-allowed;
}

.custom-radio-cell input[disabled]:checked ~ .radio-checkmark {
    background-color: var(--mid-text);
    border-color: var(--mid-text);
    opacity: 0.5;
}

.custom-radio-cell:has(input[disabled]) {
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-radio-cell:has(input[disabled]):hover {
    background-color: transparent;
}

/* Dashboard missing-items link styling */
.missing-item-link {
    font-size: 0.9em;
    color: var(--info);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.03);
    padding: 6px 8px;
    border-radius: 6px;
    transition: transform 120ms ease, box-shadow 160ms ease, background-color 120ms ease;
}
.missing-item-link:hover {
    transform: translateY(-2px);
    background-color: rgba(66,153,225,0.12);
    box-shadow: 0 6px 18px rgba(66,153,225,0.06);
}

/* Temporary highlight applied when jumping to a missing item */
.missing-highlight {
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12) inset, 0 6px 18px rgba(245,166,35,0.06);
    border-radius: 8px;
    transition: box-shadow 240ms ease;
}

/* Small inline info button shown next to element names in tables */
.elem-info-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--mid-text);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
    font-size: 0.85em;
    transition: all 0.2s ease;
}
.elem-info-btn:hover { 
    color: var(--primary-orange); 
    background: rgba(245,166,35,0.1);
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

/* transient popup for element definitions */
.elem-def-popup { 
    opacity: 0;
    pointer-events: none;
}

/* Highlight the Sign Up button when the entered email looks new */
.highlight-signup {
    background: linear-gradient(180deg, var(--primary-orange), var(--secondary-orange));
    color: #1a202c;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 6px 18px rgba(245,166,35,0.12);
    transform: translateY(-2px);
}

/* subtle attention animation */
@keyframes pulseHighlight { 0% { box-shadow: 0 6px 18px rgba(245,166,35,0.06);} 50% { box-shadow: 0 10px 26px rgba(245,166,35,0.12);} 100% { box-shadow: 0 6px 18px rgba(245,166,35,0.06);} }
.highlight-signup { animation: pulseHighlight 2.8s ease-in-out infinite; }

/* --- HYBRID REPORT GRID (Unified Visual + Data View) --- */
.hybrid-report-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.report-header-row, .report-row {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr; /* Name | Visual | Status */
    background-color: var(--dark-bg);
    padding: 16px;
    align-items: center;
    gap: 16px;
}

.report-header-row {
    font-weight: 700;
    background-color: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
    z-index: 10;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-text);
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.report-row:hover {
    background-color: var(--color-row-hover, rgba(49, 151, 149, 0.25));
    transition: background-color 0.15s ease;
}

/* Column: Name */
.col-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.col-name strong {
    color: var(--light-text);
    font-size: 0.95em;
}

.category-badge {
    font-size: 0.75em;
    color: var(--mid-text);
    text-transform: capitalize;
}

/* Column: Visual Track (Lollipop Chart) */
.col-visual {
    display: flex;
    align-items: center;
}

.visual-track {
    position: relative;
    height: 24px;
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.job-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background-color: var(--light-text);
    z-index: 2;
    box-shadow: 0 0 4px rgba(226,232,240,0.3);
}

.user-dot {
    position: absolute;
    top: 5px;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid var(--medium-dark-bg);
}

.connector-line {
    position: absolute;
    top: 10px;
    height: 4px;
    opacity: 0.5;
    z-index: 1;
    border-radius: 2px;
}

/* Column: Status */
.col-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-danger {
    background-color: rgba(197,48,48,0.2);
    color: #fc8181;
}

.status-badge.status-warning {
    background-color: rgba(214,158,46,0.2);
    color: #f6ad55;
}

.status-badge.status-surplus {
    background-color: rgba(49,130,206,0.2);
    color: #63b3ed;
}

.status-badge.status-match {
    background-color: rgba(56,161,105,0.2);
    color: #68d391;
}

.importance-meta {
    font-size: 0.85em;
    color: var(--mid-text);
}

/* Bucket Section Headers */
.bucket-section-header {
    padding: 12px 16px;
    font-weight: 700;
    border-radius: 6px;
    margin: 16px 0 8px 0;
}

/* Gate Failure Styling - WCAG AA compliant with theme variables */
.gate-fail {
    color: var(--color-error-text, #742a2a);
    background: linear-gradient(135deg, var(--color-error-bg-start, #fed7d7) 0%, var(--color-error-bg-end, #fef5e7) 100%);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid var(--color-error-border, #fc8181);
    box-shadow: 0 4px 12px var(--color-error-shadow, rgba(252, 129, 129, 0.2));
    font-size: 0.95em;
    line-height: 1.6;
}

.gate-fail strong {
    color: var(--color-error-text-strong, #9b2c2c);
    font-weight: 700;
}

/* Mobile Responsive */
/* ==================================
   BIG CARD DASHBOARD STYLES
   ================================== */
.hub-big-card {
    cursor: pointer;
    position: relative;
}

.hub-big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

.dashboard-big-cards {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   ASSESSMENT FOCUS MODE
   ================================== */
.focus-mode-card {
    background: var(--medium-dark-bg);
    border-radius: 16px;
    padding: 32px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeInCard 0.4s ease-out forwards;
    border: 1px solid var(--border-color);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.focus-mode-card.fade-out {
    animation: fadeOutCard 0.3s ease-in forwards;
}

@keyframes fadeOutCard {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.focus-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.focus-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange) 0%, #ed8936 100%);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 3px;
}

/* Theme classes for Assessment Wizard */


/* Palate Cleanser Card Animation */
.palate-cleanser-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth theme transition */
#ksaWizardContent {
    transition: opacity 0.4s ease;
}

/* RIASEC Horizontal Emoji-First Scale */
.riasec-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 32px 0;
}

.riasec-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-width: 80px;
    background: var(--card-bg);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.riasec-btn:hover {
    border-color: rgba(249,115,22,0.5);
    transform: scale(1.05);
}

.riasec-btn.selected {
    background: rgba(249,115,22,0.15);
    border: 2px solid #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
    transform: scale(1.05);
}

/* Paired Comparison Symmetrical Boxes */
.pair-choice-btn {
    transition: all 0.3s ease;
}

.pair-choice-btn:hover:not(:disabled) {
    border-color: rgba(249,115,22,0.6) !important;
    transform: scale(1.02);
}

/* Paired response scale embellishments */
.pair-choices-wrapper {
    position: relative;
}
.vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0F172A;
    color: #F59E0B;
    border: 2px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    z-index: 10;
}
.pair-choice-btn.dimmed {
    opacity: 0.5;
    filter: grayscale(0.4);
}
.pair-choice-btn.highlighted {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.2), 0 10px 24px rgba(0,0,0,0.25);
}
.card-selected {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border: 2px solid #F59E0B !important;
    box-shadow: 0 0 15px rgba(245,158,11,0.2) !important;
    transform: translateY(-2px);
}
.keyboard-hint {
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Tech grid buttons for proficiency (future reuse) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.tech-grid .tech-option {
    background: #1E293B;
    border: 1px solid #334155;
    color: #E2E8F0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    transition: all 0.2s ease;
}
.tech-grid .tech-option:hover {
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.tech-grid .tech-option.selected {
    background: #F59E0B;
    color: #0f172a;
    border-color: #F59E0B;
    box-shadow: 0 12px 28px rgba(245,158,11,0.35);
}

/* Gatekeeper selected card tint */
.gatekeeper-option-card.selected {
    border-color: #F59E0B !important;
    box-shadow: 0 0 15px rgba(245,158,11,0.25);
}

/* Gatekeeper options grid - responsive layout */
.gatekeeper-options-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column by default */
    gap: 20px;
    margin-bottom: 32px;
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
    .gatekeeper-options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Completion manifest buttons */
.completion-manifest {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1f2937;
}
.completion-manifest .manifest-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #1f2937;
    border-radius: 10px;
    background: #111827;
    color: #e5e7eb;
    font-weight: 600;
    transition: all 0.2s ease;
}
.completion-manifest .manifest-btn:hover {
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.completion-manifest .manifest-lock {
    color: #f59e0b;
}


.focus-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* Wizard navigation buttons (Previous/Next) - styled as ghost buttons */
#prevStepButton, #nextStepButton, #prevStepButtonTop, #nextStepButtonTop {
    background: transparent !important;
    color: var(--primary-orange) !important;
    border: 1.5px solid var(--primary-orange) !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

#prevStepButton:hover, #nextStepButton:hover, 
#prevStepButtonTop:hover, #nextStepButtonTop:hover,
#prevStepButton:focus-visible, #nextStepButton:focus-visible,
#prevStepButtonTop:focus-visible, #nextStepButtonTop:focus-visible {
    background: rgba(var(--primary-orange-rgb), 0.08) !important;
    color: #ffd166 !important;
    border-color: #ffd166 !important;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4) !important;
}

/* Standardized Quiz Styling - Based on Interest Vector Design */
.quiz-card {
    background-color: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.quiz-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.quiz-title {
    font-size: 1.2rem !important;
    color: #F59E0B !important;
    font-weight: 600 !important;
}

.quiz-counter {
    font-size: 0.8rem !important;
    color: #64748b !important;
    font-family: 'Courier New', monospace !important;
}

.quiz-progress-bar {
    height: 4px !important;
    background: #1e293b !important;
    border-radius: 2px !important;
    margin-bottom: 32px !important;
    position: relative !important;
    overflow: hidden !important;
}

.quiz-progress-fill {
    height: 100% !important;
    background: #F59E0B !important;
    border-radius: 2px !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
    transition: width 0.3s ease !important;
}

.quiz-question {
    font-family: var(--font-ui) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #F8FAFC !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    line-height: 1.4 !important;
}

.quiz-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 32px !important;
    gap: 16px !important;
}

.secondary-btn {
    background: #334155 !important;
    color: #E2E8F0 !important;
    border: 2px solid #475569 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: var(--font-ui) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
}

.secondary-btn:hover:not(:disabled) {
    background: #475569 !important;
    border-color: #64748b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.secondary-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.quiz-keyboard-hint {
    text-align: center !important;
    margin-top: 16px !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    font-family: 'Courier New', monospace !important;
}

/* Planetary Scale Buttons - Interest Vector Style */
.planetary-scale {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 2rem 0 !important;
    padding: 1rem !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.planetary-btn {
    width: 85px !important;
    height: 85px !important;
    border-radius: 50% !important;
    background: #1e293b !important;
    border: 3px solid #475569 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.planetary-btn:hover {
    border-color: #F59E0B !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4) !important;
}

.planetary-btn.selected {
    border-color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5) !important;
    transform: scale(1.12) !important;
}

.planetary-btn .emoji {
    font-size: 2.1rem !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
}

.planetary-btn .label {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.1 !important;
}

/* Medium screens - slight adjustment to ensure single row fits */
@media (max-width: 640px) and (min-width: 481px) {
    .planetary-scale {
        gap: 10px !important;
        padding: 0.7rem !important;
        flex-wrap: nowrap !important;
    }
    
    .planetary-btn {
        width: 65px !important;
        height: 65px !important;
    }
    
    .planetary-btn .emoji {
        font-size: 1.5rem !important;
    }
    
    .planetary-btn .label {
        font-size: 0.65rem !important;
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .quiz-card {
        padding: 24px 16px !important;
        max-width: 95% !important;
    }
    
    .planetary-scale {
        gap: 10px !important;
        padding: 0.8rem !important;
        margin: 1.5rem 0 !important;
        flex-wrap: wrap !important;
    }
    
    .planetary-btn {
        width: 68px !important;
        height: 68px !important;
        border-width: 2px !important;
    }
    
    .planetary-btn .emoji {
        font-size: 1.6rem !important;
        margin-bottom: 3px !important;
    }
    
    .planetary-btn .label {
        font-size: 0.65rem !important;
    }
    
    .quiz-question {
        font-size: 1.3rem !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .quiz-card {
        padding: 20px 12px !important;
    }
    
    .planetary-scale {
        gap: 8px !important;
        padding: 0.5rem !important;
        flex-wrap: wrap !important;
        justify-content: space-around !important;
    }
    
    .planetary-btn {
        width: 58px !important;
        height: 58px !important;
    }
    
    .planetary-btn .emoji {
        font-size: 1.3rem !important;
    }
    
    .planetary-btn .label {
        font-size: 0.58rem !important;
    }
    
    .quiz-question {
        font-size: 1.1rem !important;
        margin-bottom: 24px !important;
    }
    
    .quiz-navigation {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .quiz-navigation .secondary-btn {
        width: 100% !important;
    }
}

/* Pair Choice Cards - Work Values/Styles Quizzes */
.pair-choice-btn {
    flex: 1 !important;
    min-width: 250px !important;
    max-width: 350px !important;
    width: 100% !important;
    padding: 32px 24px !important;
    background: #1E293B !important;
    border: 3px solid #334155 !important;
    border-radius: 16px !important;
    color: #E2E8F0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.pair-choice-btn:hover {
    border-color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.05) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-2px) !important;
}

.pair-choice-btn.selected {
    border-color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.1) !important;
    /* Add a subtle gold glow for selection feedback */
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.28), 0 0 16px 4px rgba(245, 158, 11, 0.18), 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    transform: scale(1.03) !important;
}

.pair-choice-btn.selected .pair-title {
    color: #F59E0B !important;
}

.pair-choice-btn.dimmed {
    opacity: 0.5 !important;
    transform: scale(0.98) !important;
}

.pair-choice-btn.highlighted {
    transform: translateY(-4px) scale(1.02) !important;
}

.pair-title {
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
    color: #E2E8F0 !important;
}

.pair-description {
    font-size: 0.9rem !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* VS Badge for Pair Comparisons */
.vs-badge {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #F59E0B !important;
    color: #1E293B !important;
    padding: 12px 20px !important;
    border-radius: 50% !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
    z-index: 5 !important;
}

/* Tournament card styling to match quiz cards */
.tournament-splash-card {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    padding: 32px !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    color: #E2E8F0 !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
}

.tournament-splash-card.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tournament-splash-card .tournament-type {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.85rem !important;
    color: #F59E0B !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}

.tournament-splash-card .tournament-title {
    color: #F59E0B !important;
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.25 !important;
    font-family: var(--font-ui) !important;
}

.tournament-splash-card .tournament-description {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.6rem !important;
    color: #E2E8F0 !important;
}

.tournament-splash-card .tournament-description strong {
    color: #fff !important;
}

.tournament-splash-card .tournament-meta {
    font-size: 0.95rem !important;
    color: rgba(245,158,11,0.8) !important;
    font-weight: 600 !important;
}

/* Transition Cards - Standardized styling */
.transition-card {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    padding: 32px !important;
    text-align: center !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45) !important;
}

.transition-card .emoji-icon {
    font-size: 2.2rem !important;
    margin-bottom: 16px !important;
}

.transition-card .phase-title {
    font-size: 1.3rem !important;
    color: #F59E0B !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.transition-card .main-title {
    font-size: 1.6rem !important;
    color: #F8FAFC !important;
    margin-bottom: 14px !important;
    font-weight: 800 !important;
    font-family: var(--font-ui) !important;
}

.transition-card .subtitle {
    font-size: 1.05rem !important;
    color: #cbd5e1 !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    max-width: 540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.transition-card .meta-info {
    font-size: 0.95rem !important;
    color: #eab308 !important;
    margin-bottom: 24px !important;
    letter-spacing: 0.5px !important;
}

.transition-card .continue-btn {
    background: #F59E0B !important;
    color: #0f172a !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 0 16px rgba(245,158,11,0.35) !important;
    transition: all 0.3s ease !important;
}

.transition-card .continue-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(245,158,11,0.45) !important;
}

/* Planetary buttons - standardized size (updated for larger buttons) */
.planetary-btn {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    background: #1e293b !important;
    border: 3px solid #475569 !important;
    color: #e2e8f0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
}

.planetary-btn:hover {
    border-color: var(--primary-orange) !important;
    background: #334155 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
}

.planetary-btn.selected {
    background: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: var(--dark-bg) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5) !important;
}

/* Focus next button - styled as ghost button */
#focusNextBtn {
    background: transparent !important;
    color: var(--primary-orange) !important;
    border: 1.5px solid var(--primary-orange) !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

#focusNextBtn:hover,
#focusNextBtn:focus-visible {
    background: rgba(var(--primary-orange-rgb), 0.08) !important;
    color: #ffd166 !important;
    border-color: #ffd166 !important;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4) !important;
}

/* Standardize all navigation button sizes */
#prevStepButton, #nextStepButton, #prevStepButtonTop, #nextStepButtonTop,
#focusPrevBtn, #focusNextBtn {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-height: 44px !important;
}

.focus-nav-buttons button {
    flex: 1;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-height: 44px !important;
    background: transparent !important;
    color: var(--primary-orange) !important;
    border: 1.5px solid var(--primary-orange) !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.focus-nav-buttons button:hover,
.focus-nav-buttons button:focus-visible {
    background: rgba(var(--primary-orange-rgb), 0.08) !important;
    color: #ffd166 !important;
    border-color: #ffd166 !important;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4) !important;
}

.rating-scale-container {
    margin-bottom: 12px;
}

.focus-rating-grid {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-top: 16px;
}

.focus-rating-btn {
    flex: 1;
    min-height: 80px;
    border: 2px solid;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.3rem;
    font-weight: 700;
}

.focus-rating-btn:hover {
    background: rgba(66,153,225,0.2);
    border-color: rgba(66,153,225,0.5);
    transform: scale(1.05);
}

.focus-rating-btn.selected {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white !important;
    transform: scale(1.1);
}

.focus-rating-btn.anchor-point {
    border-color: #3b82f6;
    color: #3b82f6;
}

.focus-rating-btn.non-anchor-point {
    border-color: #9ca3af;
    color: #9ca3af;
}

.focus-rating-btn.anchor-point.selected {
    border-color: var(--primary-orange);
    color: white !important;
}

.focus-rating-btn.non-anchor-point.selected {
    border-color: var(--primary-orange);
    color: white !important;
}

/* Phase 3: Visual highlight for suggested value (ghost-fill calibration) */
.focus-rating-btn.suggested-value {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 0 12px rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
    border-width: 2px !important;
    position: relative;
}

.focus-rating-btn.suggested-value::before {
    content: '🎯';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    background: #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.focus-rating-btn.suggested-value:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 16px rgba(59, 130, 246, 0.3) !important;
    transform: scale(1.05);
}

.focus-rating-btn.suggested-value.selected {
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.4), 0 0 12px rgba(237, 137, 54, 0.3) !important;
    border-color: var(--primary-orange) !important;
}

/* Anchor examples row */
.anchor-examples-row {
    display: flex;
    justify-content: space-between;
    gap: 0;
}

.anchor-cell {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.anchor-text {
    font-size: 0.7rem;
    color: var(--mid-text);
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 6px;
    max-width: 120px;
}

.anchor-connector {
    width: 2px;
    height: 4px;
    background: #9ca3af;
    border-radius: 1px;
    margin: 0 auto 12px auto;
    opacity: 0.3;
}

/* Ensure exactly 16px spacing from anchor text to button row */
.anchor-examples-row {
    margin-bottom: 0;
}

.focus-rating-grid {
    margin-top: 16px;
}

/* Button content structure */
.button-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.semantic-label {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
}

.label-spacer {
    height: 20px;
}

.unlock-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(237, 137, 54, 0.95);
    color: white;
    border: 2px solid #ed8936;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.focus-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--mid-text);
    margin-top: 8px;
}

/* RIASEC Focus Mode Grid - 5 buttons */
.focus-rating-grid.riasec-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 32px 0;
}

.focus-rating-btn.riasec-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-width: 80px;
    background: var(--card-bg);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-rating-btn.riasec-btn:hover:not(:disabled) {
    border-color: rgba(249,115,22,0.5);
    transform: scale(1.05);
}

.focus-rating-btn.riasec-btn.selected {
    background: rgba(249,115,22,0.15);
    border: 2px solid #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
    transform: scale(1.05);
}

/* Paired Comparison Buttons */
.pair-choice-btn:hover:not(:disabled) {
    border-color: rgba(249,115,22,0.6) !important;
    transform: scale(1.02);
}

/* ==================================
   MOBILE RESPONSIVE
   ================================== */
@media (max-width: 768px) {
    .report-header-row, .report-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .visual-track {
        height: 20px;
    }
    
    .user-dot {
        height: 12px;
        width: 12px;
    }
    
    /* Dashboard Big Cards - Stack on Mobile */
    .dashboard-big-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hub-big-card {
        padding: 20px !important;
    }
    
    /* Discovery card no longer spans full width on mobile */
    .hub-big-card[style*="grid-column:span 2"] {
        grid-column: span 1 !important;
    }
    
    #dashboardHub h1 {
        font-size: 2rem !important;
    }
    
    .hub-big-card h3 {
        font-size: 1.3rem !important;
    }
    
    /* Focus Mode Mobile Adjustments */
    .focus-mode-card {
        padding: 24px 20px !important;
        margin: 16px !important;
    }
    
    .focus-question-text {
        font-size: 1.1rem !important;
    }
    
    .focus-rating-grid {
        gap: 6px !important;
    }
    
    .focus-rating-btn {
        font-size: 1rem !important;
    }
    
    .focus-nav-buttons {
        flex-direction: column !important;
    }
    
    .focus-nav-buttons button {
        width: 100% !important;
    }
}

/* ============================================================================
   DETAILED CAREER REPORT: Professional I-O Psychology Styling
   ============================================================================ */

/* 1. Skill-Gap Mini-Bar Widget (Dual-Layer Gauge) */
.match-gauge-container {
    height: 12px;
    width: 100%;
    background-color: #edf2f7; /* Light gray background */
    border-radius: 6px;
    position: relative;
    margin: 10px 0;
    overflow: hidden;
}

/* The User's Current Level */
.user-progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease-in-out;
}

/* Status Colors */
.bar-strength { 
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%); /* Green */
}

.bar-gap { 
    background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%); /* Red/Coral */
}

/* The Job Requirement Marker (A subtle vertical notch) */
.requirement-marker {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #2d3748; /* Dark navy for contrast */
    z-index: 2;
    box-shadow: 0 0 2px rgba(45, 55, 72, 0.5);
}

/* 2. Category "Pill" Styling - Actionable Headers */
.category-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Actionable Category Colors */
.pill-technical { 
    background: #ebf8ff; 
    color: #3182ce; 
} /* Blue: Knowledge/Skills */

.pill-competency { 
    background: #faf5ff; 
    color: #805ad5; 
} /* Purple: Abilities */

.pill-culture { 
    background: #fff5f5; 
    color: #e53e3e; 
} /* Red: Values/Interests */

.pill-behavior { 
    background: #fffaf0; 
    color: #dd6b20; 
} /* Orange: Work Styles */

/* 3. Bottom Line Typography - Enhanced Readability */
.bottom-line-summary {
    font-size: 0.95rem !important;
    color: var(--light-text) !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    margin: 0 0 16px 0 !important;
    opacity: 0.9 !important;
}

.summary-card h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--light-text) !important;
    margin: 0 0 8px 0 !important;
}

.inline-definition {
    font-size: 0.85rem !important;
    color: #718096 !important;
    font-style: italic !important;
    line-height: 1.5 !important;
    margin: 0 0 12px 0 !important;
}

/* 4. Impactful "Call to Action" Widget */
.verify-cta-button {
    margin-top: 12px;
    width: 100%;
    padding: 10px 16px;
    background-color: white;
    border: 1.5px dashed #cbd5e0;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verify-cta-button:hover {
    border-color: #3182ce;
    color: #3182ce;
    background-color: #ebf8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

.verify-cta-button:active {
    transform: translateY(0);
}

/* ============================================================================
   UX FIX 3: Inline Error Message Styling
   Expert UX refinement - January 2026
   ========================================================================== */
.inline-error-message {
    color: #fc8181;
    font-size: 0.85em;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(254, 178, 178, 0.1);
    border-left: 3px solid #fc8181;
    border-radius: 4px;
    animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight entries with validation errors */
.education-entry:has(+ .inline-error-message) {
    border-left: 2px solid #fc8181;
    padding-left: 18px;
}

/* Add visual indicator to job tags with errors */
[data-job-index]:has(+ .inline-error-message) {
    border-left: 2px solid #fc8181;
    padding-left: 8px;
}

/* --- COMPASS RECOMMENDATION BOX --- */
.compass-recommendation-box {
    background: #23272f;
    border-radius: 14px;
    border: 1.5px solid #7dd3fc;
    box-shadow: none;
    padding: 2.2rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-orange);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s, border 0.18s;
}
.compass-recommendation-box:hover {
  box-shadow: 0 8px 40px 0 rgba(67,198,172,0.18), 0 2px 12px rgba(67,198,172,0.10);
  border-color: #fbbf24;
}
.compass-recommendation-box .compass-icon {
  font-size: 2.8rem;
  margin-right: 1.2rem;
  color: #7dd3fc;
  filter: drop-shadow(0 2px 8px #7dd3fc44);
}
.compass-recommendation-box h3 {
  margin: 0 0 0.25rem 0;
  font-size: 2em;
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: -1px;
}
.compass-recommendation-box p {
  margin: 0;
  color: #e5e7eb;
  font-size: 1.08em;
}
.compass-recommendation-box .compass-inner {
  background: #181b20;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 1.2rem;
  color: #fff;
  box-shadow: 0 1px 8px rgba(67,198,172,0.04);
}
@media (max-width: 600px) {
  .compass-recommendation-box {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .compass-recommendation-box h3 {
    font-size: 1.2em;
  }
  .compass-recommendation-box .compass-icon {
    font-size: 2rem;
    margin-right: 0.7rem;
  }
  .compass-recommendation-box .compass-inner {
    padding: 0.7rem 0.7rem;
  }
}


/* --- COMPASS SLIDER ENHANCEMENTS --- */
.compass-slider-container {
    position: relative;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Keep all compass slider wrappers the same width in the grid */
#compassPreferencesForm .compass-slider-wrapper {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Allow slider description to wrap and not expand the cell */
.slider-description {
    white-space: normal !important;
    word-break: break-word;
    max-width: 180px;
    display: inline-block;
    text-align: center;
}

.compass-slider-container:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.north-star-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.north-star-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.north-star-card:hover::before {
    left: 100%;
}

.north-star-card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.north-star-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* --- COMPASS MODAL WIDTH OVERRIDE --- */
#compassPreferencesModal .auth-modal-content {
    max-width: 900px !important;
    width: 95% !important;
    min-width: unset !important;
    max-height: 85vh !important;
    padding: 32px !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* --- ASSESSMENT BRIEFING MODAL WIDTH OVERRIDE --- */
#assessmentBriefingModal .auth-modal-content {
    max-width: 1200px !important;
    width: 92% !important;
    min-width: unset !important;
    max-height: 85vh !important;
    padding: 40px 60px !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

#compassPreferencesModal .compass-slider-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#compassPreferencesModal input[type="range"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure loading modals are transparent (but not auth/betaGate modals) */
#profileValidationModal .auth-modal-content,
#profileSaveLoadingModal .auth-modal-content {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 20px !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#profileSaveLoadingModal .spinner {
    width: 32px !important;
    height: 32px !important;
    border: 3px solid rgba(255,255,255,0.15) !important;
    border-top-color: var(--primary-orange) !important;
    margin: 0 auto 16px auto !important;
}

#profileSaveLoadingModal #profileSaveLoadingMessage {
    color: var(--light-text) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* --- PROFILE METHOD DIALOG ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quota notification animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Dashboard warning banner animation */
@keyframes slideDownBanner {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HOME PAGE FACELIFT ENHANCEMENTS --- */

/* Hero Section Responsiveness */
@media (max-width: 768px) {
    .hero-section div[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .hero-section div[style*="text-align: left"] {
        text-align: center !important;
    }
    
    .hero-section .typewriter-text,
    .hero-section #static-headline {
        font-size: 2em !important;
    }
    
    .hero-section #hero-subheadline {
        font-size: 1.1em !important;
    }
    
    /* Make archetype cards image stack below on mobile */
    .hero-section img[alt="Discover your archetype"] {
        max-width: 350px !important;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section .typewriter-text,
    .hero-section #static-headline {
        font-size: 1.6em !important;
    }
    
    .hero-section #hero-subheadline {
        font-size: 1em !important;
    }
    
    .hero-section img[alt="Discover your archetype"] {
        max-width: 280px !important;
    }
    
    /* Adjust topographic background for mobile */
    .hero-section {
        background-size: 400px !important;
    }
}

/* Testimonial Section Responsiveness */
@media (max-width: 768px) {
    .testimonial-section div[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .testimonial-section blockquote {
        text-align: center !important;
        font-size: 1.1em !important;
    }
    
    .testimonial-section div[style*="width: 140px"] {
        margin: 0 auto 1rem;
    }
}

/* Step Cards Icon Responsiveness */
@media (max-width: 768px) {
    .how-section .report-block h3 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
}

/* Venn Diagram Responsiveness */
@media (max-width: 600px) {
    .solution-section img[alt*="Interests, Values"] {
        max-width: 320px !important;
    }
}

/* ============================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS - 2026 UPDATE
   ============================================================================ */

/* Navigation Bar Mobile Responsiveness */
@media (max-width: 992px) {
    #nav-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .nav-brand {
        flex: 0 0 auto;
        min-width: 200px;
    }
    
    .nav-logo {
        width: 90px;
        height: 90px;
    }
    
    .nav-brand-logo {
        font-size: 22px;
    }
    
    .nav-links {
        flex: 1 1 100%;
        order: 3;
        margin-top: 12px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }
    
    .nav-actions {
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-end;
    }
    
    .navbar-link {
        padding: 6px 16px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    #nav-bar {
        padding: 10px 12px;
    }
    
    .nav-brand {
        min-width: 160px;
        gap: 4px;
    }
    
    .nav-logo {
        width: 70px;
        height: 70px;
        margin-bottom: -15px;
        margin-top: -10px;
    }
    
    .nav-brand-logo {
        font-size: 18px;
    }
    
    .nav-brand-subtitle {
        font-size: 8px;
        letter-spacing: 2px;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .nav-actions button {
        padding: 6px 14px !important;
        font-size: 0.9em !important;
    }
    
    #userEmail {
        display: none !important; /* Hide email on mobile to save space */
    }
    
    .navbar-link {
        padding: 6px 14px;
        font-size: 0.9em;
        height: auto;
        line-height: 1.4;
    }
    
    .navbar-dropdown-content {
        left: 50%;
        transform: translateX(-50%);
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        min-width: 140px;
    }
    
    .nav-logo {
        width: 60px;
        height: 60px;
    }
    
    .nav-brand-logo {
        font-size: 16px;
    }
    
    .nav-brand-subtitle {
        font-size: 7px;
        letter-spacing: 1.5px;
    }
    
    .navbar-link {
        padding: 5px 12px;
        font-size: 0.85em;
    }
    
    .nav-actions button {
        padding: 5px 12px !important;
        font-size: 0.85em !important;
    }
}

/* Page Shell and Container Mobile Responsiveness */
@media (max-width: 768px) {
    .page-shell {
        padding: 0 12px;
    }
    
    body {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 0 8px;
    }
    
    body {
        padding: 8px;
    }
}

/* Dashboard Identity Hero Mobile */
@media (max-width: 768px) {
    .identity-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px;
    }
    
    .identity-hero .identity-left {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .identity-hero .identity-right {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .identity-hero .identity-right button {
        width: 100%;
    }
}

/* Dashboard Big Cards Mobile - Already exists but ensuring consistency */
@media (max-width: 768px) {
    .dashboard-big-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hub-big-card {
        padding: 20px 16px !important;
    }
    
    .hub-big-card h3 {
        font-size: 1.25rem !important;
    }
    
    .hub-card-desc {
        font-size: 0.95rem !important;
    }
}

/* Auth Modal Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-modal {
        padding: 20px 12px;
    }
    
    .auth-modal-content {
        max-width: 95% !important;
        width: 95% !important;
        padding: 24px 20px !important;
        margin: 20px auto !important;
    }
    
    #assessmentBriefingModal .auth-modal-content {
        padding: 24px 20px !important;
    }
    
    #compassPreferencesModal .auth-modal-content {
        max-width: 95% !important;
        width: 95% !important;
        padding: 24px 20px !important;
    }
    
    #compassPreferencesForm {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 20px 16px !important;
    }
    
    .auth-modal-content h2 {
        font-size: 1.4em !important;
    }
}

/* Form Elements Mobile Responsiveness */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 12px !important;
    }
    
    .button {
        font-size: 1em !important;
        padding: 12px 20px !important;
    }
    
    .search-input {
        font-size: 16px !important;
    }
}

/* Quiz/Assessment Mobile Responsiveness */
@media (max-width: 768px) {
    .focus-mode-card {
        margin: 12px !important;
        padding: 20px 16px !important;
    }
    
    .focus-question-text {
        font-size: 1.1rem !important;
    }
    
    .focus-rating-grid {
        gap: 8px !important;
    }
    
    .focus-rating-btn {
        padding: 10px 8px !important;
        font-size: 0.9rem !important;
    }
    
    .focus-nav-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .focus-nav-buttons button {
        width: 100% !important;
    }
    
    /* RIASEC Quiz Cards */
    .riasec-card {
        padding: 16px !important;
    }
    
    .riasec-option {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
    
    /* Paired Choice Buttons */
    .pair-choice-btn {
        padding: 16px 12px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .focus-mode-card {
        padding: 16px 12px !important;
    }
    
    .focus-question-text {
        font-size: 1rem !important;
    }
    
    .focus-rating-btn {
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
    }
}

/* Match Results / Discovery Page Mobile */
@media (max-width: 768px) {
    .tier-list {
        gap: 1.5rem !important;
    }
    
    .tier-header {
        font-size: 1.5rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .summary-card.job-card {
        padding: 16px 12px !important;
    }
    
    .job-card h4 {
        font-size: 1.1rem !important;
    }
    
    .rank-badge {
        font-size: 0.9em !important;
        padding: 3px 10px !important;
    }
    
    .match-reason-pill {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
    }
    
    /* Job Scores Grid */
    .job-scores {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .score-item {
        padding: 8px !important;
    }
}

/* Drill-Down Modal Mobile */
@media (max-width: 768px) {
    .drill-down-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px 16px !important;
        margin: 10px !important;
    }
    
    .drill-down-modal h2 {
        font-size: 1.4em !important;
    }
    
    .drill-down-modal h3 {
        font-size: 1.2em !important;
    }
    
    .report-row {
        padding: 12px 10px !important;
    }
    
    .report-row-label {
        font-size: 0.9rem !important;
    }
}

/* Profile/Wizard Page Mobile */
@media (max-width: 768px) {
    #step1 h2 {
        font-size: 1.6em !important;
    }
    
    .form-section {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .form-section h3 {
        font-size: 1.15em !important;
    }
    
    .search-container {
        margin-bottom: 16px !important;
    }
    
    .selected-jobs-display {
        gap: 10px !important;
    }
    
    .job-tag {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .entry-card {
        padding: 16px 12px !important;
        margin-bottom: 12px !important;
    }
    
    .remove-btn {
        top: 8px !important;
        right: 8px !important;
        font-size: 1rem !important;
    }
}

/* About Page Mobile */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    main > div {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    main img[alt*="Clay"] {
        width: 150px !important;
        height: 150px !important;
    }
    
    main h1 {
        font-size: 1.8em !important;
    }
    
    main h2 {
        font-size: 1.2em !important;
    }
    
    main p {
        font-size: 1em !important;
    }
}

/* Polaris12 and JobFit12 Pages Mobile */
@media (max-width: 768px) {
    .archetype-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .archetype-card {
        padding: 2rem 1.5rem !important;
    }
    
    .archetype-name {
        font-size: 1.5em !important;
    }
    
    .archetype-quote {
        font-size: 1.05em !important;
    }
    
    .archetype-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* Tables Mobile Responsiveness */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 8px 6px !important;
        font-size: 0.9rem !important;
    }
}

/* Toast/Notification Mobile */
@media (max-width: 768px) {
    .toast {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        max-width: 90% !important;
        font-size: 0.9rem !important;
    }
}

/* Compass Slider Mobile Improvements */
@media (max-width: 768px) {
    .compass-slider-container {
        padding: 1rem !important;
    }
    
    .slider-description {
        max-width: 100% !important;
        font-size: 0.85rem !important;
    }
    
    .north-star-card {
        padding: 0.75rem !important;
    }
    
    .north-star-card div:first-child {
        font-size: 0.9rem !important;
    }
    
    .north-star-card div:last-child {
        font-size: 0.7rem !important;
    }
}

/* Loading Spinner Mobile */
@media (max-width: 768px) {
    .loading-overlay {
        padding: 20px !important;
    }
    
    .loading-spinner {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 12px !important;
        margin-top: 40px !important;
    }
    
    .footer-links nav {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .footer-legal p,
    .footer-research p {
        font-size: 0.75em !important;
    }
}

/* Ensure all button text is readable on mobile */
@media (max-width: 480px) {
    .button {
        white-space: normal !important;
        word-wrap: break-word !important;
        min-height: 44px !important; /* iOS recommended tap target size */
    }
    
    .nav-btn {
        min-width: 70px !important;
    }
}

/* Profile Save Button Position on Mobile */
@media (max-width: 768px) {
    #step1 > div:first-of-type {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    #saveProfileButtonTop {
        width: 100% !important;
    }
}

/* Visual Track/Progress Bars Mobile */
@media (max-width: 768px) {
    .visual-track {
        height: 18px !important;
    }
    
    .user-dot {
        height: 10px !important;
        width: 10px !important;
    }
    
    .track-label {
        font-size: 0.75rem !important;
    }
}

/* Category Pills Mobile */
@media (max-width: 480px) {
    .category-pill {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }
}

/* Ensure clickable elements have adequate spacing on mobile */
@media (max-width: 768px) {
    .navbar-link,
    .button,
    .ghost-btn,
    .hub-card-btn,
    .focus-rating-btn,
    .pair-choice-btn {
        min-height: 44px !important; /* iOS recommended minimum */
        min-width: 44px !important;
    }
}

/* Resume Upload Section Mobile */
@media (max-width: 768px) {
    .resume-upload-section {
        padding: 16px !important;
    }
    
    .resume-upload-tip {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
}

/* Search Options Dropdown Mobile */
@media (max-width: 768px) {
    .search-options {
        max-height: 250px !important;
        font-size: 0.9rem !important;
    }
    
    .search-option {
        padding: 10px !important;
    }
}

/* Education Entry Mobile */
@media (max-width: 480px) {
    .education-entry label {
        font-size: 0.9rem !important;
    }
    
    .education-entry select,
    .education-entry input {
        font-size: 0.9rem !important;
    }
}

/* Ensure proper text sizing for readability */
@media (max-width: 480px) {
    body {
        font-size: 15px !important; /* Slightly larger base on very small screens */
    }
    
    h1 {
        font-size: 1.8em !important;
    }
    
    h2 {
        font-size: 1.5em !important;
    }
    
    h3 {
        font-size: 1.3em !important;
    }
}

/* Golden Question Widget - Responsive Grid */
.golden-question-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 1rem;
}

@media (min-width: 768px) {
    .golden-question-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
        padding: 0 2rem; /* Add horizontal padding on desktop */
    }
}

/* Pairwise Assessment - Ensure Left vs Right Layout on Desktop */
@media (min-width: 769px) {
    .pair-choices-wrapper #pairChoices {
        flex-wrap: nowrap !important;
    }
    
    .pair-choice-btn {
        min-width: 220px !important;
        max-width: 340px !important;
    }
}

/* Resume Quiz Button Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4),
                    0 0 20px rgba(240, 147, 251, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(240, 147, 251, 0.6),
                    0 0 35px rgba(240, 147, 251, 0.4);
        transform: scale(1.02);
    }
}

/* ============================================================================
   ADZUNA JOB LISTINGS INTEGRATION STYLES
   ============================================================================ */

/* Adzuna Modal Overlay */
.adzuna-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adzuna Modal Content Container */
.adzuna-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adzuna Modal Header */
.adzuna-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.6);
}

.adzuna-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

/* Adzuna Modal Close Button */
.adzuna-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.adzuna-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    transform: scale(1.1);
}

/* Adzuna Modal Body */
.adzuna-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for modal body */
.adzuna-modal-body::-webkit-scrollbar {
    width: 8px;
}

.adzuna-modal-body::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 10px;
}

.adzuna-modal-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 10px;
}

.adzuna-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Job Listing Card */
.job-listing-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.job-listing-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Job Match Badge */
.job-match-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.02em;
}

/* Job Title */
.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px 0;
    padding-right: 120px; /* Space for match badge */
}

/* Job Company */
.job-company {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Job Location */
.job-location {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-location::before {
    content: "📍";
    font-size: 0.85em;
}

/* Job Salary */
.job-salary {
    font-size: 0.95rem;
    color: #7dd3fc;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-salary::before {
    content: "💰";
    font-size: 0.9em;
}

/* Job Description */
.job-description {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Job Apply Button */
.job-apply-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.job-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    text-decoration: none;
    color: #fff;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .adzuna-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }
    
    .adzuna-modal-header {
        padding: 20px 16px;
    }
    
    .adzuna-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .adzuna-modal-body {
        padding: 16px;
    }
    
    .job-listing-card {
        padding: 16px;
    }
    
    .job-title {
        font-size: 1.1rem;
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .job-match-badge {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }
}

