:root {
    /* Colors - Deep Dark Mode */
    --bg-dark: #09090b;
    --surface: rgba(24, 24, 27, 0.6);
    --surface-hover: rgba(39, 39, 42, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Accents */
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --primary-hover: #7c3aed;
    --secondary: #2dd4bf;
    
    /* Semantic Gamification */
    --color-red: #f43f5e;
    --color-orange: #f59e0b;
    --color-blue: #3b82f6;
    --color-pink: #ec4899;
    --color-teal: #14b8a6;
    --color-purple: #a855f7;

    /* text */
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    
    /* Typography */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Geist', sans-serif;
    --font-mono: 'Geist Mono', monospace;
    
    /* Spacing & Radii */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: var(--primary-glow);
}
.blob-2 {
    bottom: -20%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(45, 212, 191, 0.2);
}

/* Premium Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Utilities */
.mb-lg { margin-bottom: 2rem; }
.mt-xl { margin-top: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Navigation - Floating Premium Style */
.navbar {
    position: fixed;
    top: 24px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 64px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
    padding: 0 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo-dot {
    width: 6px; height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Buttons */
button {
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: all 0.2s ease;
}
button:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}
.btn-primary:not(:disabled):hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #3f3f46;
    box-shadow: none;
    color: #a1a1aa;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}
.btn-outline:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}
.btn-ghost {
    color: var(--text-muted);
    padding: 8px 16px;
}
.btn-ghost:hover {
    color: var(--text-main);
}
.btn-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center; justify-content: center;
    color: var(--text-muted);
}
.btn-icon:hover {
    background: var(--surface);
    color: var(--text-main);
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 64px 24px;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.view {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    max-width: 1200px;
    padding: 0 24px;
}
.view.active-view {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: auto; left: auto;
    transform: translateX(0) translateY(0);
}

/* Hero Section */
.badge-pill {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Government / I4C badge variants */
.gov-badge {
    background: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.35);
    color: #fbbf24;
}

.i4c-badge {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

/* I4C Emergency Banner */
.i4c-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(15, 10, 10, 0.92);
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(244, 63, 94, 0.25);
    animation: slideUp 0.6s ease 2s both;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.i4c-icon {
    font-size: 1rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.i4c-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.i4c-text strong {
    color: #fb7185;
    font-weight: 700;
    font-size: 0.9rem;
}

.i4c-text a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.i4c-close {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.i4c-close:hover {
    color: var(--text-main);
}

@media (max-width: 600px) {
    .i4c-banner { white-space: normal; text-align: center; }
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}
.time-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Skill Selection View */
.fade-up-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}
.section-subtitle {
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--surface-hover);
}
.skill-card:hover::before { opacity: 1; }

/* Active State for Cards */
.skill-card.selected {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 20px var(--primary-glow);
}
.skill-card.selected::after {
    content: '';
    position: absolute;
    top: 16px; right: 16px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.skill-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bg-red { background: rgba(244, 63, 94, 0.1); color: var(--color-red); border: 1px solid rgba(244, 63, 94, 0.2); }
.bg-orange { background: rgba(245, 158, 11, 0.1); color: var(--color-orange); border: 1px solid rgba(245, 158, 11, 0.2); }
.bg-blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.bg-pink { background: rgba(236, 72, 153, 0.1); color: var(--color-pink); border: 1px solid rgba(236, 72, 153, 0.2); }
.bg-teal { background: rgba(20, 184, 166, 0.1); color: var(--color-teal); border: 1px solid rgba(20, 184, 166, 0.2); }
.bg-purple { background: rgba(168, 85, 247, 0.1); color: var(--color-purple); border: 1px solid rgba(168, 85, 247, 0.2); }

.skill-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main); /* Explicitly white — prevents browser defaulting to black */
}
.skill-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Challenge Hub Specifics */
.challenge-card {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.start-challenge-btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.start-challenge-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.challenge-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.bottom-action-bar {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 50;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(-50%, 20px);
}
.bottom-action-bar.visible {
    opacity: 1; visibility: visible;
    transform: translate(-50%, 0);
}
.selected-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
#count-display {
    color: var(--text-main);
    font-size: 1.125rem;
}

/* Loader View */
.ai-brain-loader {
    position: relative;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.ring-1 {
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: spin 2s linear infinite;
}
.ring-2 {
    border-bottom-color: var(--color-pink);
    border-left-color: var(--primary);
    animation: spin 3s linear infinite reverse;
    inset: 10px;
}
.core {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .app-container { padding-top: 100px; }
}

/* =============================================
   UTILITIES
============================================= */
.w-full { width: 100%; }
.mt-sm { margin-top: 0.5rem; }
.mt-lg { margin-top: 2rem; }
.inline-block { display: inline-block; }
.text-primary { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.875rem; }
.text-primary:hover { text-decoration: underline; }
.text-red { color: var(--color-red); }

.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: rotate(25deg);
    animation: shine 4s ease-in-out infinite;
}
@keyframes shine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}

/* =============================================
   ASSESSMENT VIEW STYLES
============================================= */
.assessment-header {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    transition: width 0.5s ease;
    width: 0%;
}

.assessment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.bg-purple-subtle {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.question-context {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.option-card.selected .option-letter {
    background: var(--primary);
    color: white;
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =============================================
   RESULTS VIEW STYLES
============================================= */
.results-header {
    margin-bottom: 2rem;
}

.level-badge-container {
    display: flex;
    justify-content: center;
}

.level-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.level-icon {
    font-size: 2.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
}

.result-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Circular Progress */
.circular-progress {
    --progress: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) calc(var(--progress) * 3.6deg),
        rgba(255, 255, 255, 0.08) calc(var(--progress) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inner-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

/* Action Items */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-content p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =============================================
   CHAT DRAWER STYLES
============================================= */
.chat-drawer {
    position: fixed;
    right: -440px;
    top: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-drawer.open {
    right: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.chat-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon {
    font-size: 1.25rem;
}

.chat-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.75rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
}

.message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-message .message-bubble {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.chat-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.borderless {
    border: none !important;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* =============================================
   AUTH MODAL — Glassmorphism Premium
============================================= */
.auth-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none !important;
    width: 36px;
    height: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    /* Override any global button styles that inflate the tab */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: none !important;
    transform: none !important;
    background: none;
    border: none;
    margin: 0;
    line-height: 1.2;
    min-height: unset;
    height: auto;
}

.auth-tab.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px var(--primary-glow) !important;
    transform: none !important;
}

.auth-tab:not(.active):hover {
    color: var(--text-main);
}

/* Form Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
    color: rgba(161, 161, 170, 0.6);
}

/* Auth Error */
.auth-error {
    color: var(--color-red);
    font-size: 0.85rem;
    min-height: 0;
    transition: all 0.2s;
}

.auth-error:not(:empty) {
    padding: 8px 12px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 8px;
}

/* Auth Success Toast */
.auth-success-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.auth-success-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   USER MENU (Navbar)
============================================= */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s;
}

.user-toggle:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.user-name-text {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 150;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.875rem;
    text-align: left;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: var(--surface);
}

.dropdown-item.logout-item {
    color: var(--color-red);
}

.dropdown-item.logout-item:hover {
    background: rgba(244, 63, 94, 0.08);
}

/* =============================================
   HISTORY MODAL — Past Assessments
============================================= */
.history-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 600px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(24, 24, 27, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.history-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.history-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.history-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-card-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.history-card-info .history-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-card-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-score-badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.history-level-emoji {
    font-size: 1.5rem;
}

.history-empty {
    text-align: center;
    padding: 32px 0;
}

/* ========================================= */
/* --- 12. AI REPORT & ROADMAP STYLES --- */
/* ========================================= */

.report-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.report-section.strengths ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #34d399; /* Green */
}

.report-section.weaknesses ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fb7185; /* Red */
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 8px;
    padding-left: 16px;
}

.roadmap-step {
    position: relative;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    left: -21px; /* Center on border */
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.roadmap-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.roadmap-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.history-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.history-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Saved indicator on results */
.save-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 8px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.save-status.visible {
    opacity: 1;
}

.save-status svg {
    width: 16px;
    height: 16px;
}

/* =============================================
   MOBILE RESPONSIVE AUTH
============================================= */
@media (max-width: 768px) {
    .auth-modal {
        width: 100%;
        max-width: calc(100vw - 24px);
        padding: 32px 24px;
    }
    
    .user-name-text {
        display: none;
    }
    
    .user-toggle svg:last-child {
        display: none;
    }
    
    .history-modal {
        width: 100%;
        max-width: calc(100vw - 24px);
        padding: 24px;
    }
    
    .chat-drawer {
        width: 100vw;
        right: -100vw;
    }
}

/* =============================================
   SCROLLING HOMEPAGE SECTIONS
============================================= */

/* Hide landing sections when app view is active */
body.app-active #landing-sections {
    display: none;
}

#landing-sections {
    width: 100%;
    overflow-x: hidden;
}

.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ---- Scroll Reveal Animations ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ---- Section Eyebrow ---- */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ---- Landing Titles ---- */
.landing-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 20px;
}

.landing-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

/* ---- Stats Section ---- */
.stats-section {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-percent, .stat-unit {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 12px;
    line-height: 1.5;
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.pillar:hover {
    border-color: var(--primary);
}

.pillar-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pillar h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Radar Preview Card */
.radar-preview-card {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
    position: relative;
}

.radar-preview-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), transparent, rgba(45, 212, 191, 0.2));
    z-index: -1;
}

.radar-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    padding-bottom: 140px;
}

.cta-card {
    position: relative;
    padding: 72px 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.04);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139, 92, 246, 0.15), transparent);
    pointer-events: none;
}

/* ---- Dividers between sections ---- */
.landing-section + .landing-section {
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .landing-section { padding: 60px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 48px 24px; }
}

/* =============================================
   KALIGUURU MENTOR MESSAGE CARD
============================================= */
.mentor-message-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(45, 212, 191, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}

.mentor-avatar {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(139,92,246,0.5));
}

.mentor-msg-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.65;
    font-style: italic;
}

/* =============================================
   PHASE-BASED ROADMAP
============================================= */
.roadmap-phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.roadmap-phase-header:first-child {
    margin-top: 8px;
}

.phase-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.phase-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

.phase-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

.roadmap-steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 16px;
    border-left: 2px solid rgba(139, 92, 246, 0.2);
    margin-left: 12px;
}

/* Roadmap Step Card */
.roadmap-step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: border-color 0.2s, background 0.2s, opacity 0.3s;
    position: relative;
}

.roadmap-step-card::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    flex-shrink: 0;
    transition: background 0.3s;
}

.roadmap-step-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.04);
}

/* Completed State */
.roadmap-step-card.step-completed {
    opacity: 0.6;
    background: rgba(52, 211, 153, 0.04);
    border-color: rgba(52, 211, 153, 0.2);
}

.roadmap-step-card.step-completed::before {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.roadmap-step-card.step-completed .roadmap-step-title {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Step Top Layout (checkbox + body) */
.roadmap-step-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Custom Checkbox */
.roadmap-checkbox-label {
    flex-shrink: 0;
    margin-top: 3px;
    cursor: pointer;
}

.roadmap-check {
    display: none;
}

.roadmap-check-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-hover);
    transition: all 0.2s;
    flex-shrink: 0;
}

.roadmap-check-box:hover {
    border-color: var(--primary);
}

.roadmap-check:checked + .roadmap-check-box {
    background: #34d399;
    border-color: #34d399;
}

.roadmap-check:checked + .roadmap-check-box::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Step Content */
.roadmap-step-body {
    flex: 1;
    min-width: 0;
}

.roadmap-step-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
    transition: all 0.3s;
}

.roadmap-step-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.roadmap-step-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.roadmap-difficulty {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid;
}

.roadmap-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.roadmap-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-transform: capitalize;
}

/* Resource Link */
.roadmap-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(45, 212, 191, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.roadmap-resource-link:hover {
    color: #fff;
    border-color: rgba(45, 212, 191, 0.8);
}
