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

:root {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --radius: 0.5rem;
}

:root {
    --bg-deep: hsl(222.2 84% 4.9%);
    --bg-primary: hsl(222.2 84% 4.9%);
    --bg-secondary: hsl(217.2 32.6% 12%);
    --bg-card: hsl(222.2 84% 6.5%);
    --bg-hover: hsl(217.2 32.6% 14%);
    --bg-elevated: hsl(217.2 32.6% 16%);
    --text-primary: hsl(210 40% 98%);
    --text-secondary: hsl(215 20.2% 65.1%);
    --text-muted: hsl(215 20.2% 50%);
    --accent: hsl(212.7 80% 60%);
    --accent-hover: hsl(212.7 80% 70%);
    --accent-glow: hsla(212.7 80% 60% / 0.12);
    --accent-green: hsl(142 70% 50%);
    --accent-orange: hsl(32 100% 55%);
    --accent-purple: hsl(270 80% 65%);
    --accent-red: hsl(0 75% 55%);
    --accent-pink: hsl(340 80% 65%);
    --border: hsl(217.2 32.6% 14%);
    --border-card: hsl(217.2 32.6% 12%);
    --border-hover: hsla(212.7 80% 60% / 0.2);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.6);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.625rem;
    --radius-xl: 0.75rem;
    --transition: 0.15s ease;
    --sidebar-width: 240px;
    --header-height: 56px;
    --adm-green: #4ade80;
    --adm-amber: #fbbf24;
    --adm-red: #ef4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, hsl(212.7 80% 10% / 0.4), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, hsl(270 80% 10% / 0.3), transparent),
        radial-gradient(ellipse 50% 30% at 10% 80%, hsl(142 70% 10% / 0.2), transparent),
        var(--bg-deep);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    font-size: 0.875rem;
}

::selection { background: hsl(212.7 80% 60% / 0.25); color: var(--text-primary); }

a { color: hsl(212.7 80% 65%); text-decoration: none; transition: var(--transition); }
a:hover { color: hsl(212.7 80% 75%); }

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: hsl(222.2 84% 5.5%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    padding: 8px 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav-links li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    gap: 10px;
    border-radius: var(--radius);
}
.nav-links li a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.4;
}
.nav-links li a:hover {
    color: var(--text-primary);
    background: hsl(217.2 32.6% 14%);
}
.nav-links li a.active {
    color: var(--text-primary);
    background: hsl(212.7 80% 60% / 0.1);
}
.nav-links li a.active .nav-icon {
    opacity: 1;
    color: hsl(212.7 80% 60%);
}

.sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(222.2 84% 4.9% / 0.85);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
}

.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.25rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius); }
.menu-toggle:hover { background: hsl(217.2 32.6% 14%); }

.page-header h1 {
    font-size: 0.8125rem;
    font-weight: 500;
    flex: 1;
    color: var(--text-muted);
}

.header-search input {
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    width: 220px;
    outline: none;
    transition: var(--transition);
}
.header-search input:focus { border-color: hsl(212.7 80% 60% / 0.5); }
.header-search input::placeholder { color: var(--text-muted); }

/* ===== CONTENT SECTIONS ===== */
.content-sections { flex: 1; padding: 32px; }

.content-section { display: none; }
.content-section.active { display: block; animation: fadeIn 0.2s ease; }

.section-hero { margin-bottom: 28px; }
.section-hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.section-hero p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ===== ROADMAP ===== */
.roadmap-container { display: flex; flex-direction: column; gap: 0; position: relative; }
.roadmap-container::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, hsl(212.7 80% 60% / 0.4), transparent 80%);
}

.roadmap-item { position: relative; padding: 16px 0 16px 56px; }
.roadmap-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid hsl(212.7 80% 60% / 0.5);
    background: var(--bg-deep);
    z-index: 1;
    transition: var(--transition);
}
.roadmap-item.completed::before { background: hsl(142 70% 50%); border-color: hsl(142 70% 50%); }
.roadmap-item.in-progress::before {
    background: hsl(32 100% 55%);
    border-color: hsl(32 100% 55%);
    box-shadow: 0 0 0 4px hsl(32 100% 55% / 0.15);
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: var(--transition);
}
.roadmap-card:hover {
    border-color: hsl(212.7 80% 60% / 0.15);
    background: hsl(222.2 84% 7%);
    box-shadow: var(--shadow-card);
}
.roadmap-card h3 { font-size: 0.9375rem; font-weight: 600; color: hsl(212.7 80% 65%); margin-bottom: 4px; }
.roadmap-card .topic-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 1px 8px;
    border-radius: 999px;
    background: hsl(212.7 80% 60% / 0.08);
    color: hsl(212.7 80% 65%);
    margin: 4px 4px 0 0;
}
.roadmap-card p { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.roadmap-card .resources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.roadmap-card .resources a {
    font-size: 0.75rem;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: hsl(217.2 32.6% 10%);
    transition: var(--transition);
    color: var(--text-secondary);
}
.roadmap-card .resources a:hover { border-color: hsl(212.7 80% 60% / 0.3); background: hsl(212.7 80% 60% / 0.06); color: var(--text-primary); }

/* ===== DSA GRID ===== */
.dsa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.dsa-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}
.dsa-card:hover {
    border-color: hsl(270 80% 65% / 0.15);
    background: hsl(222.2 84% 7%);
    box-shadow: var(--shadow-card);
}
.dsa-card h3 { font-size: 0.9375rem; font-weight: 600; color: hsl(270 80% 65%); margin-bottom: 6px; }
.dsa-card p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.dsa-card .topics { display: flex; flex-wrap: wrap; gap: 4px; }
.dsa-card .topics span {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: hsl(270 80% 65% / 0.08);
    color: hsl(270 80% 65%);
}

/* ===== PROJECTS ===== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}
.project-card:hover {
    border-color: hsl(32 100% 55% / 0.15);
    background: hsl(222.2 84% 7%);
    box-shadow: var(--shadow-card);
}
.project-card .level {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.project-card .level.beginner { background: hsl(142 70% 50% / 0.1); color: hsl(142 70% 50%); }
.project-card .level.intermediate { background: hsl(32 100% 55% / 0.1); color: hsl(32 100% 55%); }
.project-card .level.advanced { background: hsl(0 75% 55% / 0.1); color: hsl(0 75% 55%); }
.project-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.project-card p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.project-card .tech-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.project-card .tech-stack span {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: hsl(212.7 80% 60% / 0.08);
    color: hsl(212.7 80% 65%);
}

/* ===== INFO CARDS (API / DB / INTERVIEW) ===== */
.api-container, .db-container, .interview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}
.info-card:hover {
    border-color: hsl(212.7 80% 60% / 0.15);
    background: hsl(222.2 84% 7%);
    box-shadow: var(--shadow-card);
}
.info-card h3 { font-size: 0.9375rem; font-weight: 600; color: hsl(212.7 80% 65%); margin-bottom: 4px; }
.info-card .subtitle { font-size: 0.75rem; color: hsl(142 70% 50%); margin-bottom: 6px; }
.info-card p, .info-card li { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; }
.info-card ul { list-style: none; padding: 0; margin-top: 8px; }
.info-card ul li { padding: 3px 0 3px 16px; position: relative; }
.info-card ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: hsl(212.7 80% 60% / 0.5); }
.info-card .links { margin-top: 10px; }
.info-card .links a { font-size: 0.8125rem; display: inline-block; margin-right: 12px; }

/* ===== GITHUB REPOS ===== */
.github-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.btn-filter {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.btn-filter:hover { border-color: hsl(212.7 80% 60% / 0.3); color: var(--text-primary); }
.btn-filter.active { border-color: hsl(212.7 80% 60%); color: hsl(212.7 80% 65%); background: hsl(212.7 80% 60% / 0.08); }

.github-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.repo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    transition: var(--transition);
}
.repo-card:hover {
    border-color: hsl(212.7 80% 60% / 0.15);
    background: hsl(222.2 84% 7%);
    box-shadow: var(--shadow-card);
}
.repo-card .repo-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.repo-card .repo-header .repo-icon { font-size: 1rem; }
.repo-card .repo-header a { font-size: 0.875rem; font-weight: 600; }
.repo-card .repo-desc { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.repo-card .repo-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.repo-card .repo-meta span { display: flex; align-items: center; gap: 4px; }
.repo-card .repo-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.repo-card .repo-tags span { font-size: 0.6875rem; padding: 2px 8px; border-radius: 999px; background: hsl(212.7 80% 60% / 0.08); color: hsl(212.7 80% 65%); }

/* ===== MY REPOS ===== */
.myrepos-form { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.myrepos-form .rb-input, .myrepos-form .task-select { flex: 1; min-width: 140px; }
.myrepos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.myrepo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.myrepo-card:hover { border-color: hsl(212.7 80% 60% / 0.15); background: hsl(222.2 84% 7%); }
.myrepo-card .myrepo-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius);
    background: hsl(212.7 80% 60% / 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; flex-shrink: 0;
}
.myrepo-card .myrepo-info { flex: 1; min-width: 0; }
.myrepo-card .myrepo-info a { font-size: 0.8125rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myrepo-card .myrepo-info .myrepo-project { font-size: 0.6875rem; color: var(--text-muted); }
.myrepo-card .myrepo-delete {
    background: none; border: none; color: var(--text-muted);
    font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.myrepo-card .myrepo-delete:hover { color: hsl(0 75% 55%); background: hsl(0 75% 55% / 0.08); }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: hsl(217.2 32.6% 14%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-elevated);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 200;
    max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== PAGE FOOTER ===== */
.page-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: block; }
    .main-content { margin-left: 0; }
    .page-header { padding: 0 16px; }
    .header-search input { width: 160px; }
    .content-sections { padding: 20px; }
    .resume-builder-layout { grid-template-columns: 1fr; }
    .rb-toolbar { flex-direction: column; align-items: stretch; }
    .rb-toolbar-left { justify-content: center; }
    .rb-toolbar-right { justify-content: center; }
    .rb-progress-bar-wrap { width: 100%; }
}

/* ===== RESUME BUILDER ===== */
.rb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.rb-toolbar-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 12px;
    background: hsl(212.7 80% 60% / 0.08);
    border-radius: 999px;
}
.rb-toolbar-stat svg { color: hsl(212.7 80% 65%); }
.rb-progress-bar-wrap { width: 160px; }
.rb-milestone-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(212.7 80% 65%);
    white-space: nowrap;
}
.rb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rb-export-btn {
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
    gap: 6px !important;
}
.rb-export-btn svg { flex-shrink: 0; }

.resume-builder-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; min-height: 600px; align-items: start; }
.resume-left, .resume-right { display: flex; flex-direction: column; gap: 14px; }

.rb-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.rb-panel h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skill-counter { font-size: 0.75rem; color: hsl(212.7 80% 65%); background: hsl(212.7 80% 60% / 0.08); padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.rb-hint { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.rb-milestone { text-align: center; font-size: 0.8125rem; font-weight: 500; color: hsl(212.7 80% 65%); margin-top: 10px; min-height: 20px; }

.skill-category { margin-bottom: 16px; }
.skill-category-projects { border-top: 1px solid hsl(32 100% 55% / 0.15); padding-top: 10px; margin-top: 4px; }
.skill-category-projects .skill-category-header { color: hsl(32 100% 55%); }
.skill-category-header {
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(212.7 80% 65%);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.skill-item {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 0; font-size: 0.8125rem;
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
    border-radius: var(--radius-sm);
}
.skill-item:hover { color: var(--text-primary); background: hsl(217.2 32.6% 10%); padding: 4px 6px; margin: 0 -6px; }
.skill-item input[type="checkbox"] {
    appearance: none;
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-radius: 4px; background: transparent;
    cursor: pointer; flex-shrink: 0;
    transition: var(--transition); position: relative;
}
.skill-item input[type="checkbox"]:checked { background: hsl(142 70% 50%); border-color: hsl(142 70% 50%); }
.skill-item input[type="checkbox"]:checked::after { content: '✓'; position: absolute; top: -2px; left: 2px; font-size: 11px; color: #fff; font-weight: 700; }
.skill-item.checked { color: hsl(142 70% 50%); }
.skill-item-project .skill-label { display: flex; align-items: center; gap: 6px; }
.proj-level { font-size: 0.625rem; font-weight: 500; padding: 1px 6px; border-radius: 999px; }
.proj-level.beginner { background: hsl(142 70% 50% / 0.1); color: hsl(142 70% 50%); }
.proj-level.intermediate { background: hsl(32 100% 55% / 0.1); color: hsl(32 100% 55%); }
.proj-level.advanced { background: hsl(0 75% 55% / 0.1); color: hsl(0 75% 55%); }
.proj-tech { font-size: 0.6875rem; color: var(--text-muted); margin-left: auto; margin-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.skill-add-badge { font-size: 0.625rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: hsl(142 70% 50% / 0.1); color: hsl(142 70% 50%); opacity: 0; transition: opacity 0.3s; flex-shrink: 0; }
.skill-add-badge.visible { opacity: 1; }
.proj-learn-toggle { font-size: 0.6875rem; color: hsl(212.7 80% 65%); cursor: pointer; padding: 2px 6px; border-radius: var(--radius-sm); flex-shrink: 0; opacity: 0.5; transition: opacity 0.2s; }
.proj-learn-toggle:hover { opacity: 1; background: hsl(212.7 80% 60% / 0.06); }
.proj-resources { margin: 0 0 6px 24px; border-left: 2px solid hsl(32 100% 55% / 0.25); padding-left: 12px; animation: fadeSlideIn 0.2s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.proj-resources-inner { background: hsl(217.2 32.6% 10%); border-radius: var(--radius); padding: 10px 14px; font-size: 0.75rem; }
.proj-what-learn { margin-bottom: 8px; }
.proj-what-learn strong { display: block; color: hsl(32 100% 55%); margin-bottom: 4px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; }
.proj-learn-list { display: flex; flex-wrap: wrap; gap: 4px; }
.proj-learn-list span { font-size: 0.6875rem; padding: 2px 8px; border-radius: 999px; background: hsl(32 100% 55% / 0.08); color: hsl(32 100% 55%); }
.proj-links strong { display: block; color: hsl(212.7 80% 65%); margin-bottom: 4px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; }
.proj-links a { display: inline-block; font-size: 0.6875rem; padding: 2px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); color: hsl(212.7 80% 65%); transition: var(--transition); }
.proj-links a:hover { border-color: hsl(212.7 80% 60% / 0.3); background: hsl(212.7 80% 60% / 0.06); }

.rb-progress-bar { height: 4px; background: var(--border); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.rb-progress-fill { height: 100%; background: linear-gradient(90deg, hsl(142 70% 50%), hsl(212.7 80% 60%)); border-radius: 999px; transition: width 0.5s ease; width: 0%; }

/* Editor Panel */
.editor-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.editor-tab {
    padding: 8px 16px; background: transparent; border: none;
    color: var(--text-muted); font-size: 0.8125rem; cursor: pointer;
    border-bottom: 2px solid transparent; transition: var(--transition);
    font-weight: 500;
}
.editor-tab:hover { color: var(--text-secondary); }
.editor-tab.active { color: hsl(212.7 80% 65%); border-bottom-color: hsl(212.7 80% 60%); }
.editor-content { position: relative; }
.editor-pane { display: none; padding-top: 16px; }
.editor-pane.active { display: block; }

.latex-editor {
    width: 100%; height: 520px;
    background: hsl(222.2 84% 3%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: hsl(212 20% 85%);
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 16px;
    resize: vertical;
    tab-size: 2;
    white-space: pre;
    overflow: auto;
}
.latex-editor:focus { outline: none; border-color: hsl(212.7 80% 60% / 0.5); box-shadow: 0 0 0 2px hsl(212.7 80% 60% / 0.1); }

.editor-actions { display: flex; gap: 8px; margin-top: 10px; }

/* shadcn/ui-style Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
    gap: 0.5rem;
}
.btn:hover { background: hsl(217.2 32.6% 14%); }
.btn-primary {
    background: hsl(212.7 80% 50%);
    border-color: hsl(212.7 80% 50%);
    color: #fff;
}
.btn-primary:hover { background: hsl(212.7 80% 45%); }
.btn-secondary {
    background: hsl(217.2 32.6% 14%);
    border-color: hsl(217.2 32.6% 14%);
    color: var(--text-primary);
}
.btn-secondary:hover { background: hsl(217.2 32.6% 18%); }
.btn.btn-pdf {
    background: hsl(0 75% 55% / 0.08);
    border-color: hsl(0 75% 55% / 0.2);
    color: hsl(0 75% 55%);
}
.btn.btn-pdf:hover { background: hsl(0 75% 55% / 0.15); }
.btn-copy {
    background: hsl(212.7 80% 60% / 0.08);
    border-color: hsl(212.7 80% 60% / 0.2);
    color: hsl(212.7 80% 65%);
}
.btn-copy:hover { background: hsl(212.7 80% 60% / 0.15); }
.btn-download {
    background: hsl(142 70% 50% / 0.08);
    border-color: hsl(142 70% 50% / 0.2);
    color: hsl(142 70% 50%);
}
.btn-download:hover { background: hsl(142 70% 50% / 0.15); }

/* Resume Preview */
.resume-preview {
    background: #fff; color: #222;
    font-size: 10.5px; line-height: 1.35;
    padding: 32px 36px;
    border-radius: var(--radius);
    min-height: 580px; max-height: 660px;
    overflow-y: auto;
    font-family: 'Times New Roman', Times, serif;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.resume-preview .rp-name { font-size: 22px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.resume-preview .rp-title { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.resume-preview .rp-contact { font-size: 9.5px; text-align: center; color: #444; margin-bottom: 10px; }
.resume-preview .rp-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 2px; margin: 10px 0 6px 0; letter-spacing: 0.5px; }
.resume-preview .rp-summary { font-size: 10px; color: #333; margin-bottom: 8px; text-align: justify; }
.resume-preview .rp-skills-row { font-size: 9.5px; margin-bottom: 3px; line-height: 1.4; }
.resume-preview .rp-skills-label { font-weight: 700; }
.resume-preview .rp-exp-item { margin-bottom: 8px; }
.resume-preview .rp-exp-header { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; }
.resume-preview .rp-exp-sub { display: flex; justify-content: space-between; font-size: 9.5px; font-style: italic; color: #444; }
.resume-preview .rp-exp-list { margin: 3px 0 0 14px; padding: 0; list-style: none; }
.resume-preview .rp-exp-list li { font-size: 9.5px; color: #333; padding: 1px 0; position: relative; }
.resume-preview .rp-exp-list li::before { content: '•'; position: absolute; left: -10px; color: #333; }
.resume-preview .rp-project { margin-bottom: 8px; }
.resume-preview .rp-project-header { font-size: 10px; font-weight: 700; display: flex; justify-content: space-between; }
.resume-preview .rp-project-tech { font-style: italic; font-weight: 400; font-size: 9.5px; color: #555; }
.resume-preview .rp-project-list { margin: 3px 0 0 14px; list-style: none; }
.resume-preview .rp-project-list li { font-size: 9.5px; color: #333; padding: 1px 0; position: relative; }
.resume-preview .rp-project-list li::before { content: '•'; position: absolute; left: -10px; color: #333; }
.resume-preview .rp-education { font-size: 10px; }
.resume-preview .rp-edu-item { display: flex; justify-content: space-between; font-weight: 700; }
.resume-preview .rp-edu-sub { display: flex; justify-content: space-between; font-size: 9.5px; font-style: italic; color: #444; }
.resume-preview .rp-cert-list { margin: 3px 0 0 14px; list-style: none; }
.resume-preview .rp-cert-list li { font-size: 9.5px; color: #333; padding: 1px 0; position: relative; }
.resume-preview .rp-cert-list li::before { content: '•'; position: absolute; left: -10px; }

/* Form fields */
.rb-form-group { margin-bottom: 12px; }
.rb-form-group label { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.rb-textarea { width: 100%; background: hsl(217.2 32.6% 10%); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-size: 0.8125rem; line-height: 1.5; padding: 10px 12px; resize: vertical; }
.rb-textarea:focus { outline: none; border-color: hsl(212.7 80% 60% / 0.5); box-shadow: 0 0 0 2px hsl(212.7 80% 60% / 0.1); }
.rb-textarea-lg { min-height: 280px; }
.rb-input { width: 100%; background: hsl(217.2 32.6% 10%); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); padding: 8px 12px; font-size: 0.8125rem; transition: var(--transition); }
.rb-input:focus { outline: none; border-color: hsl(212.7 80% 60% / 0.5); box-shadow: 0 0 0 2px hsl(212.7 80% 60% / 0.1); }
.rb-input::placeholder { color: var(--text-muted); }

/* ===== ATS ===== */
.ats-container { padding: 4px 0; }
.ats-loading { text-align: center; padding: 48px; color: var(--text-muted); font-size: 0.875rem; }
.ats-score-card { background: hsl(217.2 32.6% 10%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.ats-score-header { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.ats-score-circle { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; border: 3px solid var(--border); }
.ats-score-circle.high { border-color: hsl(142 70% 50%); color: hsl(142 70% 50%); }
.ats-score-circle.medium { border-color: hsl(32 100% 55%); color: hsl(32 100% 55%); }
.ats-score-circle.low { border-color: hsl(0 75% 55%); color: hsl(0 75% 55%); }
.ats-score-info h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.ats-score-info p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.ats-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.ats-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ats-section-header h4 { font-size: 0.8125rem; font-weight: 600; }
.ats-section-header .ats-sec-score { font-size: 0.75rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.ats-section-header .ats-sec-score.good { background: hsl(142 70% 50% / 0.1); color: hsl(142 70% 50%); }
.ats-section-header .ats-sec-score.ok { background: hsl(32 100% 55% / 0.1); color: hsl(32 100% 55%); }
.ats-section-header .ats-sec-score.bad { background: hsl(0 75% 55% / 0.1); color: hsl(0 75% 55%); }
.ats-keyword-list { display: flex; flex-wrap: wrap; gap: 4px; }
.ats-keyword { font-size: 0.6875rem; padding: 2px 8px; border-radius: 999px; }
.ats-keyword.found { background: hsl(142 70% 50% / 0.08); color: hsl(142 70% 50%); }
.ats-keyword.missing { background: hsl(0 75% 55% / 0.08); color: hsl(0 75% 55%); }
.ats-suggestions { margin-top: 12px; }
.ats-suggestions h4 { font-size: 0.8125rem; font-weight: 600; color: hsl(32 100% 55%); margin-bottom: 8px; }
.ats-suggestions ul { list-style: none; padding: 0; }
.ats-suggestions ul li { font-size: 0.8125rem; color: var(--text-secondary); padding: 4px 0 4px 16px; position: relative; line-height: 1.5; }
.ats-suggestions ul li::before { content: '→'; position: absolute; left: 0; color: hsl(32 100% 55%); font-weight: 700; }
.ats-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.ats-bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.ats-bar-fill.high, .ats-bar-fill.good { background: hsl(142 70% 50%); }
.ats-bar-fill.medium, .ats-bar-fill.ok { background: hsl(32 100% 55%); }
.ats-bar-fill.low, .ats-bar-fill.bad { background: hsl(0 75% 55%); }

/* Print styles */
@media print {
    body * { visibility: hidden; }
    .print-resume, .print-resume * { visibility: visible; }
    .print-resume { position: fixed; left: 0; top: 0; width: 100%; background: white; color: black; font-family: 'Times New Roman', Times, serif; font-size: 11pt; padding: 0.75in; }
}

/* ===== TASK BOARD ===== */
.task-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.task-select { background: hsl(217.2 32.6% 10%); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); padding: 8px 12px; font-size: 0.8125rem; transition: var(--transition); }
.task-select:focus { outline: none; border-color: hsl(212.7 80% 60% / 0.5); }
.task-stats { margin-left: auto; font-size: 0.8125rem; color: var(--text-muted); }

.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; min-height: 400px; }
.kanban-column {
    background: hsl(217.2 32.6% 8%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.kanban-header {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kanban-header.todo { color: hsl(212.7 80% 65%); }
.kanban-header.progress { color: hsl(32 100% 55%); }
.kanban-header.done { color: hsl(142 70% 50%); }
.kanban-count { font-size: 0.75rem; background: hsl(217.2 32.6% 14%); padding: 2px 8px; border-radius: 999px; color: var(--text-muted); font-weight: 500; }

.kanban-list { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.kanban-card:hover { border-color: hsl(212.7 80% 60% / 0.2); background: hsl(222.2 84% 8%); box-shadow: var(--shadow-card); }
.kanban-card .card-title { font-size: 0.8125rem; font-weight: 500; margin-bottom: 4px; }
.kanban-card .card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--text-muted); flex-wrap: wrap; margin-top: 6px; }
.kanban-card .card-priority { padding: 1px 6px; border-radius: 999px; font-weight: 500; font-size: 0.625rem; }
.kanban-card .card-priority.high { background: hsl(0 75% 55% / 0.12); color: hsl(0 75% 55%); }
.kanban-card .card-priority.medium { background: hsl(32 100% 55% / 0.12); color: hsl(32 100% 55%); }
.kanban-card .card-priority.low { background: hsl(142 70% 50% / 0.12); color: hsl(142 70% 50%); }
.kanban-card .card-label { padding: 1px 6px; border-radius: 999px; background: hsl(212.7 80% 60% / 0.08); color: hsl(212.7 80% 65%); font-size: 0.625rem; }
.kanban-card .card-due { color: var(--text-muted); font-size: 0.6875rem; }
.kanban-card.dragging { opacity: 0.4; border-style: dashed; }
.kanban-list.drag-over { background: hsl(212.7 80% 60% / 0.04); border-radius: var(--radius); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: hsl(0 0% 0% / 0.6); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.modal-overlay.active { display: flex; }
.modal {
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    animation: modalIn 0.15s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 0.9375rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; padding: 4px; line-height: 1; border-radius: var(--radius-sm); }
.modal-close:hover { color: var(--text-primary); background: hsl(217.2 32.6% 14%); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.rb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== SORTABLE.JS KANBAN STYLES ===== */
.sortable-ghost {
    opacity: 0.3;
    background: hsl(212.7 80% 60% / 0.08);
    border: 2px dashed hsl(212.7 80% 60% / 0.5);
    border-radius: var(--radius);
}
.sortable-drag {
    opacity: 1 !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    transform: rotate(1.5deg) scale(1.02);
    z-index: 1000;
}
.sortable-chosen {
    border-color: hsl(212.7 80% 60% / 0.5);
    background: hsl(212.7 80% 60% / 0.05);
}
.sortable-fallback {
    opacity: 1 !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    transform: rotate(1.5deg) scale(1.02);
    z-index: 1000;
}
.kanban-list { min-height: 60px; transition: background 0.2s; border-radius: var(--radius); }
.kanban-list.sortable-over { background: hsl(212.7 80% 60% / 0.06); }
.dragging * { pointer-events: none; }

/* ===== PLANE CONSOLE ===== */
.plane-toggle-btn { gap: 6px; }
.plane-toggle-btn svg { flex-shrink: 0; }
.plane-console {
    background: var(--card-bg, hsl(217.2 32.6% 8%));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}
.plane-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.plane-console-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}
.plane-console-title svg { color: hsl(212.7 80% 65%); }
.plane-console-status {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: hsl(212.7 80% 60% / 0.1);
    color: hsl(212.7 80% 65%);
}
.plane-console-status.disconnected {
    background: hsl(0 70% 50% / 0.08);
    color: hsl(0 70% 65%);
}

/* Plane Setup */
.plane-setup {
    padding: 30px 24px;
    text-align: center;
}
.plane-setup-icon {
    margin-bottom: 12px;
    color: hsl(212.7 80% 60% / 0.4);
}
.plane-setup h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.plane-setup p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.plane-setup-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}
.plane-setup-row {
    display: flex;
    gap: 12px;
}
.plane-setup-row .ai-form-group { flex: 1; }
.plane-setup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* Plane Issues List */
.plane-issues-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
}
.plane-issues-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-sm { padding: 5px 10px; font-size: 0.6875rem; }
.btn-sm svg { width: 12px; height: 12px; }
.plane-issues-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
}
.plane-issues-list::-webkit-scrollbar { width: 4px; }
.plane-issues-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.plane-issue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid hsl(217.2 32.6% 12%);
    transition: background 0.15s;
    cursor: default;
}
.plane-issue-item:last-child { border-bottom: none; }
.plane-issue-item:hover { background: hsl(217.2 32.6% 10%); }
.plane-issue-id {
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(212.7 80% 60%);
    min-width: 50px;
    font-family: 'JetBrains Mono', monospace;
}
.plane-issue-title {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plane-issue-priority {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plane-issue-priority.urgent { background: hsl(0 75% 55% / 0.12); color: hsl(0 75% 60%); }
.plane-issue-priority.high { background: hsl(25 95% 55% / 0.12); color: hsl(25 95% 60%); }
.plane-issue-priority.medium { background: hsl(32 100% 55% / 0.12); color: hsl(32 100% 55%); }
.plane-issue-priority.low { background: hsl(142 70% 50% / 0.12); color: hsl(142 70% 55%); }
.plane-issue-priority.none { background: hsl(217 10% 50% / 0.1); color: var(--text-muted); }
.plane-issue-state {
    font-size: 0.6875rem;
    color: var(--text-muted);
    min-width: 70px;
    text-align: right;
}
.plane-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Touch scroll hint */
@media (hover: none) and (pointer: coarse) {
    .kanban-list::after {
        content: '⋮⋮ Drag to reorder';
        display: block;
        text-align: center;
        font-size: 0.6875rem;
        color: var(--text-muted);
        padding: 8px;
        opacity: 0.5;
    }
}

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: hsl(0 0% 0% / 0.6); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.modal-overlay.active { display: flex; }
.modal {
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    animation: modalIn 0.15s ease;
}
.journey-modal { max-width: 600px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 0.9375rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; padding: 4px; line-height: 1; border-radius: var(--radius-sm); }
.modal-close:hover { color: var(--text-primary); background: hsl(217.2 32.6% 14%); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* Journey modal content */
.journey-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.journey-modal-header h2 { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.journey-status { font-size: 0.6875rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.journey-status.completed { background: hsl(142 70% 50% / 0.15); color: hsl(142 70% 50%); }
.journey-status.in-progress { background: hsl(32 100% 55% / 0.15); color: hsl(32 100% 55%); }
.journey-status.pending { background: hsl(212.7 80% 60% / 0.15); color: hsl(212.7 80% 60%); }
.journey-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.journey-topics .topic-tag { font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; background: hsl(212.7 80% 60% / 0.08); color: hsl(212.7 80% 65%); }
.journey-description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.journey-resources h4 { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.journey-resources .resources { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-resources .resources a { font-size: 0.75rem; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: hsl(217.2 32.6% 10%); transition: var(--transition); color: var(--text-secondary); }
.journey-resources .resources a:hover { border-color: hsl(212.7 80% 60% / 0.3); background: hsl(212.7 80% 60% / 0.06); color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

.roadmap-item { animation: slideLeft 0.3s ease backwards; }
.roadmap-item:nth-child(1) { animation-delay: 0.03s; }
.roadmap-item:nth-child(2) { animation-delay: 0.06s; }
.roadmap-item:nth-child(3) { animation-delay: 0.09s; }
.roadmap-item:nth-child(4) { animation-delay: 0.12s; }
.roadmap-item:nth-child(5) { animation-delay: 0.15s; }
.roadmap-item:nth-child(6) { animation-delay: 0.18s; }
.roadmap-item:nth-child(7) { animation-delay: 0.21s; }
.roadmap-item:nth-child(8) { animation-delay: 0.24s; }
.roadmap-item:nth-child(9) { animation-delay: 0.27s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(217.2 32.6% 16%); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(217.2 32.6% 20%); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .kanban-board { grid-template-columns: 1fr; }
    .rb-form-row { grid-template-columns: 1fr; }
    .dsa-grid, .projects-container, .github-grid, .myrepos-grid,
    .api-container, .db-container, .interview-container { grid-template-columns: 1fr; }
    .section-hero h2 { font-size: 1.25rem; }
    .header-search { display: none; }
}

/* ===== LAZY LOAD PLACEHOLDER ===== */
.resume-builder-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.placeholder-content { text-align: center; padding: 24px; }
.placeholder-content p { margin-bottom: 16px; }

/* ===== JOURNEY MODAL ===== */
.journey-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}
.journey-modal-overlay.active { display: flex; }
.journey-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
    animation: modalIn 0.2s ease;
}
.journey-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}
.journey-modal-header h2 { font-size: 1.125rem; font-weight: 600; }
.journey-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}
.journey-status.completed { background: hsl(142 70% 50% / 0.1); color: hsl(142 70% 50%); }
.journey-status.in-progress { background: hsl(32 100% 55% / 0.1); color: hsl(32 100% 55%); }
.journey-status.pending { background: hsl(217.2 32.6% 14%); color: var(--text-muted); }
.journey-modal-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; padding: 4px; line-height: 1;
    border-radius: var(--radius-sm);
}
.journey-modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.journey-modal-body { padding: 20px; }
.journey-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.journey-topics .topic-tag { font-size: 0.75rem; }
.journey-description { color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.journey-resources h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.journey-resources .resources { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-resources .resources a {
    font-size: 0.75rem; padding: 6px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: hsl(217.2 32.6% 10%); color: var(--text-secondary);
    transition: var(--transition);
}
.journey-resources .resources a:hover { border-color: hsl(212.7 80% 60% / 0.3); background: hsl(212.7 80% 60% / 0.06); color: var(--text-primary); }

/* ===== AUTH BUTTON ===== */
.auth-btn {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.auth-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-panel-link {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: #a78bfa;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.admin-panel-link:hover { border-color: #a78bfa; background: #a78bfa15; }
.auth-btn.signed-in {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}
.auth-avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.auth-overlay.active { opacity: 1; pointer-events: all; }
.auth-modal {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 32px;
    width: 400px;
    max-width: 90vw;
    position: relative;
    overflow: hidden;
}
.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
}
.auth-close:hover { color: var(--text); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--accent) / 0.1);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.auth-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}
.auth-header h2 { font-size: 1.25rem; color: var(--text); margin: 0 0 4px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { position: relative; }
.auth-input {
    width: 100%;
    padding: 12px 14px;
    background: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--accent); }
.auth-label {
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s;
}
.auth-input:focus + .auth-label,
.auth-input:not(:placeholder-shown) + .auth-label {
    top: -8px;
    left: 10px;
    font-size: 0.7rem;
    background: hsl(var(--card));
    padding: 0 4px;
    color: var(--accent);
}
.auth-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-btn {
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}
.auth-btn:hover { opacity: 0.9; }
.auth-btn.loading .auth-btn-text { opacity: 0; }
.auth-btn.loading .auth-btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-btn.loading .auth-btn-loader::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: hsl(var(--border));
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-social { display: flex; gap: 8px; }
.auth-social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.auth-social-btn:hover { background: hsl(var(--input)); }
.auth-footer-text {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: inherit;
}
.auth-link:hover { text-decoration: underline; }
.auth-error {
    background: hsl(0 84% 60% / 0.1);
    border: 1px solid hsl(0 84% 60% / 0.3);
    color: hsl(0 84% 60%);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}
.auth-otp-field { text-align: center; }
.auth-otp-input {
    font-size: 1.5rem !important;
    letter-spacing: 8px;
    text-align: center;
    font-family: monospace;
}
.auth-2fa-setup { text-align: center; }
.auth-qr-container { margin: 16px 0; }
.auth-qr-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: hsl(var(--input));
    border-radius: 12px;
}
.auth-qr-code canvas { border-radius: 8px; }
.auth-qr-loading { color: var(--text-muted); font-size: 0.8rem; }
.auth-secret-container { margin: 16px 0; }
.auth-secret-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.auth-secret-code {
    font-family: monospace;
    font-size: 0.9rem;
    background: hsl(var(--input));
    padding: 8px 12px;
    border-radius: 6px;
    letter-spacing: 2px;
    user-select: all;
}
.auth-profile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.auth-profile-btn {
    padding: 10px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.auth-profile-btn:hover { background: hsl(var(--input)); }
.auth-profile-btn-danger { color: hsl(0 84% 60%); }
.auth-profile-btn-danger:hover { background: hsl(0 84% 60% / 0.1); }

/* ===== AI MENTOR ===== */
.ai-mentor-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    min-height: 500px;
    align-items: start;
}
.ai-left-panel { display: flex; flex-direction: column; gap: 14px; }
.ai-right-panel { display: flex; flex-direction: column; gap: 14px; }
.ai-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.ai-panel h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-hint { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* Skill Gap Analysis */
.skill-gap-form { display: flex; flex-direction: column; gap: 12px; }
.skill-gap-form .rb-form-group { margin-bottom: 0; }
.skill-input-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: hsl(217.2 32.6% 10%);
}
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: hsl(212.7 80% 60% / 0.1);
    border: 1px solid hsl(212.7 80% 60% / 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
    color: hsl(212.7 80% 65%);
}
.skill-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.7;
}
.skill-tag button:hover { opacity: 1; }
.skill-input-field {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8125rem;
    outline: none;
}
.skill-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.skill-suggestion {
    padding: 4px 10px;
    background: hsl(217.2 32.6% 14%);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.skill-suggestion:hover {
    background: hsl(212.7 80% 60% / 0.1);
    border-color: hsl(212.7 80% 60% / 0.3);
    color: hsl(212.7 80% 65%);
}

/* Chat */
.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 520px;
    background: var(--card-bg, hsl(217.2 32.6% 8%));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 5px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.ai-chat-messages::-webkit-scrollbar-thumb:hover { background: hsl(212.7 80% 60% / 0.4); }

.ai-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 10px;
    padding: 30px 20px;
}
.ai-welcome-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 4px;
}
.ai-chat-welcome h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.ai-chat-welcome p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 320px;
}
.ai-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    max-width: 420px;
}
.ai-quick-btn {
    padding: 7px 14px;
    background: hsl(212.7 80% 60% / 0.08);
    border: 1px solid hsl(212.7 80% 60% / 0.2);
    border-radius: 999px;
    color: hsl(212.7 80% 70%);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ai-quick-btn:hover {
    background: hsl(212.7 80% 60% / 0.15);
    border-color: hsl(212.7 80% 60% / 0.35);
    color: hsl(212.7 80% 75%);
}

.ai-chat-input {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: hsl(217.2 32.6% 6%);
    flex-shrink: 0;
}
.ai-chat-input .rb-input {
    flex: 1;
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    padding: 10px 18px;
    outline: none;
    transition: var(--transition);
}
.ai-chat-input .rb-input:focus {
    border-color: hsl(212.7 80% 60% / 0.5);
    box-shadow: 0 0 0 2px hsl(212.7 80% 60% / 0.1);
}
.ai-chat-input .btn {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 10px 20px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 82%;
    animation: chatSlideIn 0.25s ease;
}
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.assistant { align-self: flex-start; }
.chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-message.user .chat-avatar { background: hsl(212.7 80% 60% / 0.15); }
.chat-message.assistant .chat-avatar { background: hsl(142 70% 50% / 0.15); }
.chat-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.8125rem;
    line-height: 1.6;
}
.chat-message.user .chat-bubble {
    background: hsl(212.7 80% 60% / 0.15);
    color: var(--text-primary);
    border-bottom-right-radius: 6px;
}
.chat-message.assistant .chat-bubble {
    background: hsl(217.2 32.6% 12%);
    color: var(--text-secondary);
    border-bottom-left-radius: 6px;
    border: 1px solid var(--border);
}

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

.ai-thinking {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 4px 0;
}
.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(212.7 80% 60%);
    animation: dotPulse 1.2s infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.ai-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: hsl(212.7 80% 60%);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-error-msg {
    color: var(--accent-red, hsl(0 70% 60%));
    font-size: 0.8125rem;
}
.ai-error-msg a {
    color: hsl(212.7 80% 65%);
    margin-left: 6px;
    text-decoration: underline;
}

/* ===== AI CARD ===== */
.ai-card {
    background: var(--card-bg, hsl(217.2 32.6% 8%));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.ai-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.ai-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
}
.ai-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.ai-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.ai-form-row {
    display: flex;
    gap: 16px;
}
.ai-form-row .ai-form-group { flex: 1; margin-bottom: 14px; }
.ai-analyze-btn { margin-top: 4px; }

/* ===== AI MENTOR TABS ===== */
.ai-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: hsl(217.2 32.6% 10%);
    border-radius: 999px;
    padding: 4px;
}
.ai-tab-btn {
    background: none;
    border: none;
    padding: 9px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s ease;
}
.ai-tab-btn:hover { color: var(--text-secondary); background: hsl(217.2 32.6% 14%); }
.ai-tab-btn.active {
    color: hsl(212.7 80% 70%);
    background: hsl(212.7 80% 60% / 0.12);
}
.ai-tab-content { display: none; }
.ai-tab-content.active { display: block; animation: fadeIn 0.2s ease; }

.ai-form-group { margin-bottom: 14px; }
.ai-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ai-form-group .rb-textarea,
.ai-form-group .rb-input {
    width: 100%;
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 10px 12px;
    resize: vertical;
    transition: var(--transition);
}
.ai-form-group .rb-textarea:focus,
.ai-form-group .rb-input:focus {
    outline: none;
    border-color: hsl(212.7 80% 60% / 0.5);
    box-shadow: 0 0 0 2px hsl(212.7 80% 60% / 0.1);
}
.ai-form-group .rb-textarea::placeholder,
.ai-form-group .rb-input::placeholder {
    color: var(--text-muted);
}

/* Skill Gap Results */
.ai-result {
    background: var(--card-bg, hsl(217.2 32.6% 8%));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
}
.skill-gap-result { display: flex; flex-direction: column; gap: 22px; }
.sg-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sg-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: hsl(212.7 80% 60% / 0.12);
    color: hsl(212.7 80% 65%);
    font-size: 0.6875rem;
    font-weight: 700;
}
.sg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sg-tag {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.15s ease;
}
.sg-missing {
    background: hsl(0 70% 50% / 0.08);
    border-color: hsl(0 70% 50% / 0.2);
    color: hsl(0 70% 70%);
}
.sg-project {
    background: hsl(142 70% 50% / 0.08);
    border-color: hsl(142 70% 50% / 0.2);
    color: hsl(142 70% 60%);
}
.sg-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    background: hsl(217.2 32.6% 10%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.sg-empty {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
}
.sg-error {
    padding: 14px 16px;
    background: hsl(0 70% 50% / 0.06);
    border: 1px solid hsl(0 70% 50% / 0.15);
    border-radius: var(--radius);
    color: hsl(0 70% 65%);
    font-size: 0.8125rem;
    text-align: center;
}

/* Chat markdown */
.chat-bubble strong { color: var(--text-primary); font-weight: 600; }
.chat-bubble em { color: hsl(212.7 80% 70%); font-style: italic; }
.chat-bubble code {
    background: hsl(217.2 32.6% 16%);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: 'JetBrains Mono', monospace;
    color: hsl(142 70% 60%);
}
.chat-bubble a {
    color: hsl(212.7 80% 65%);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.chat-bubble a:hover { color: hsl(212.7 80% 75%); }
.chat-list-item {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    line-height: 1.6;
}
.chat-list-num {
    color: hsl(212.7 80% 65%);
    font-weight: 600;
    min-width: 20px;
}
.chat-list-bullet {
    color: hsl(142 70% 50%);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-form-row { flex-direction: column; }
    .ai-chat-container { height: 420px; }
    .ai-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .ai-tab-btn { white-space: nowrap; padding: 8px 14px; font-size: 0.75rem; }
}
