/* ================================
   PlacePrep — Design System
   Dark Theme (default) + Light Theme
   ================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2a;
    --border: #25253a;
    --border-light: #2a2a40;

    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555570;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);

    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.1);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.1);
    --purple: #a855f7;
    --purple-bg: rgba(168, 85, 247, 0.1);
    --cyan: #06b6d4;
    --cyan-bg: rgba(6, 182, 212, 0.1);

    --sidebar-width: 220px;
    --sidebar-collapsed: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg-primary: #f4f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #eef0f6;
    --bg-elevated: #f0f1f5;
    --border: #d5d7e2;
    --border-light: #e2e4ed;

    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #8888a0;

    --accent: #5b5ef0;
    --accent-light: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.1);
    --accent-glow-strong: rgba(99, 102, 241, 0.2);

    --green-bg: rgba(34, 197, 94, 0.08);
    --red-bg: rgba(239, 68, 68, 0.08);
    --amber-bg: rgba(245, 158, 11, 0.08);
    --blue-bg: rgba(59, 130, 246, 0.08);
    --purple-bg: rgba(168, 85, 247, 0.08);
    --cyan-bg: rgba(6, 182, 212, 0.08);

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.12) rotate(20deg);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ---- Micro-Animations ---- */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--accent-glow-strong);
    }

    50% {
        box-shadow: 0 0 16px 4px var(--accent-glow-strong);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.section.active {
    animation: fadeSlideIn 0.35s ease-out;
}

.card,
.stat-card,
.tech-category-card,
.challenge-card,
.interview-type-card,
.assignment-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.stat-card:hover,
.tech-category-card:hover,
.challenge-card:hover,
.interview-type-card:hover,
.assignment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.nav-link {
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-link:hover {
    box-shadow: inset 3px 0 0 var(--accent);
}

.nav-link.active {
    box-shadow: inset 3px 0 0 var(--accent);
    animation: fadeIn 0.3s ease;
}

.btn-primary,
.btn-secondary {
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.97);
}

/* ---- Light theme scrollbar ---- */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c0c2d0;
}

[data-theme="light"] .sidebar {
    border-right-color: var(--border);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow-strong));
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent-light);
    background: var(--accent-glow);
}

.nav-icon {
    font-size: 1.1rem;
}

/* Section labels in sidebar */
.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 14px 14px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    list-style: none;
}

/* Practice feature items - accent left border */
.nav-practice .nav-link {
    border-left: 2px solid var(--accent);
    margin-left: 4px;
    padding-left: 12px;
}

.nav-practice .nav-link:hover {
    border-left-color: var(--accent-light);
    background: var(--accent-glow);
}

.nav-practice .nav-link.active {
    border-left-color: var(--accent-light);
    border-left-width: 3px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-progress-top {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
}

.progress-ring-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-light);
}

.sidebar-footer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 28px 32px;
    padding-top: 92px;
    transition: margin-left var(--transition);
    min-height: 100vh;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.accent {
    color: var(--accent-light);
}

.subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 0.9rem;
}

.header-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

/* ================================
   STATS GRID
   ================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.aptitude-bg {
    background: var(--amber-bg);
    color: var(--amber);
}

.tech-bg {
    background: var(--blue-bg);
    color: var(--blue);
}

.code-bg {
    background: var(--green-bg);
    color: var(--green);
}

.interview-bg {
    background: var(--purple-bg);
    color: var(--purple);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   DASHBOARD GRID
   ================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-buttons .action-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.action-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-icon {
    font-size: 1.3rem;
}

.aptitude-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tech-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.code-gradient {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.interview-gradient {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.rolesim-gradient {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.activity-list {
    max-height: 220px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

/* ================================
   DIFFICULTY TABS
   ================================ */
.difficulty-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.diff-tab {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.diff-tab:hover {
    color: var(--text-primary);
}

.diff-tab.active {
    background: var(--accent);
    color: white;
}

/* ================================
   QUIZ COMPONENTS
   ================================ */
.quiz-start-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 560px;
}

.quiz-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.simple {
    background: var(--green-bg);
    color: var(--green);
}

.badge.medium {
    background: var(--amber-bg);
    color: var(--amber);
}

.badge.hard {
    background: var(--red-bg);
    color: var(--red);
}

.quiz-start-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.quiz-start-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow-strong);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Quiz Active */
.quiz-active {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.quiz-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.quiz-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-q-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quiz-timer {
    font-size: 0.85rem;
    color: var(--amber);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.quiz-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.quiz-option.correct {
    border-color: var(--green);
    background: var(--green-bg);
}

.quiz-option.wrong {
    border-color: var(--red);
    background: var(--red-bg);
}

.option-marker {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition);
}

.quiz-option.selected .option-marker {
    border-color: var(--accent);
    color: var(--accent);
}

.quiz-option.correct .option-marker {
    border-color: var(--green);
    color: var(--green);
}

.quiz-option.wrong .option-marker {
    border-color: var(--red);
    color: var(--red);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

/* Quiz Result */
.quiz-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 480px;
}

.result-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-light);
    margin: 16px 0;
}

.result-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.result-stat {
    text-align: center;
}

.result-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.result-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ================================
   TECH CATEGORIES GRID
   ================================ */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tech-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tech-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* ================================
   CODE EDITOR
   ================================ */
.coding-challenges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.challenge-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.challenge-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.challenge-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.challenge-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.challenge-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    background: var(--bg-elevated);
    border-radius: 12px;
    color: var(--text-muted);
}

.code-editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.code-problem {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.code-problem h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.code-problem .problem-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.code-problem .example {
    background: var(--bg-secondary);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}

.code-workspace {
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.editor-toolbar select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.8rem;
}

.code-editor {
    width: 100%;
    min-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--green);
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
    tab-size: 4;
}

.code-editor:focus {
    border-color: var(--accent);
}

.code-output {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    max-height: 200px;
    overflow-y: auto;
}

.output-success {
    color: var(--green);
}

.output-error {
    color: var(--red);
}

/* Run Button */
.btn-run {
    background: var(--green);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-run:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Terminal */
.terminal {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #0c0c14;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #1a1a28;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ef4444;
}

.terminal-dot.yellow {
    background: #f59e0b;
}

.terminal-dot.green {
    background: #22c55e;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    flex: 1;
    font-weight: 600;
}

.terminal-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 8px;
    border-radius: 4px;
}

.terminal-clear:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.terminal-body {
    padding: 12px 16px;
    max-height: 220px;
    overflow-y: auto;
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.muted {
    color: var(--text-muted);
}

.terminal-line.log {
    color: #e8e8f0;
}

.terminal-line.warn {
    color: var(--amber);
}

.terminal-line.error {
    color: var(--red);
}

.terminal-line.success {
    color: var(--green);
}

.terminal-line.info {
    color: var(--cyan);
}

.terminal-prompt {
    color: var(--green);
    user-select: none;
}

/* ================================
   MOCK INTERVIEW
   ================================ */
.interview-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.interview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    cursor: pointer;
    transition: all var(--transition);
}

.interview-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.interview-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.comm-bg {
    background: var(--cyan-bg);
}

.tech-int-bg {
    background: var(--blue-bg);
}

.behav-bg {
    background: var(--amber-bg);
}

.role-bg {
    background: var(--green-bg);
}

.analyst-bg {
    background: var(--purple-bg);
}

.cyber-bg {
    background: var(--red-bg);
}

.interview-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.interview-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Interview Session */
.interview-session {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 720px;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.interview-header h2 {
    font-size: 1.1rem;
}

.interview-chat {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

.chat-bubble {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.chat-bubble.ai {
    background: var(--bg-elevated);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    padding: 14px 18px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.chat-bubble.user {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: var(--radius) 0 var(--radius) var(--radius);
    padding: 14px 18px;
    max-width: 85%;
    margin-left: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.interview-controls {
    text-align: center;
}

.btn-mic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent-glow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-bottom: 8px;
}

.btn-mic:hover {
    background: var(--accent-glow-strong);
    transform: scale(1.05);
}

.btn-mic.active {
    background: var(--red-bg);
    border-color: var(--red);
    animation: pulse 1.5s infinite;
}

.mic-icon {
    font-size: 1.5rem;
}

.mic-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.voice-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.pulse-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseRing 1.2s ease infinite;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes pulseRing {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.text-input-row {
    display: flex;
    gap: 8px;
}

.text-input-row input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
}

.text-input-row input:focus {
    border-color: var(--accent);
}

/* ================================
   ASSIGNMENTS
   ================================ */
.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.assignment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.assignment-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.assignment-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.assignment-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.assignment-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.assignment-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 720px;
}

.assignment-detail h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.assignment-detail .assignment-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 16px 0;
}

.assignment-detail .assignment-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.assignment-detail .assignment-body li {
    margin-bottom: 4px;
}

.assignment-detail textarea {
    width: 100%;
    min-height: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
    margin: 12px 0;
}

.assignment-detail textarea:focus {
    border-color: var(--accent);
}

.assignment-checklist {
    margin: 16px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checklist-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* ================================
   TOAST NOTIFICATION
   ================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 320px;
}

.toast.success {
    border-left: 3px solid var(--green);
}

.toast.error {
    border-left: 3px solid var(--red);
}

.toast.info {
    border-left: 3px solid var(--blue);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ================================
   UTILITIES
   ================================ */
.hidden {
    display: none !important;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-amber {
    color: var(--amber);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .code-editor-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .interview-types {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .streak-widget {
        flex-direction: column;
        text-align: center;
    }

    .notes-topics {
        grid-template-columns: 1fr !important;
    }
}

/* ================================
   PWA INSTALL BANNER
   ================================ */
.pwa-install-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    margin-bottom: 20px;
    animation: fadeSlideIn 0.5s ease;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.pwa-install-icon {
    font-size: 2rem;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.pwa-install-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.pwa-install-btn {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
}

.pwa-dismiss-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* ================================
   STREAK WIDGET
   ================================ */
.streak-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    margin-bottom: 24px;
    animation: fadeSlideIn 0.5s ease;
}

.streak-fire {
    font-size: 2.5rem;
    animation: fireGlow 1.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    from {
        transform: scale(1);
        filter: brightness(1);
    }

    to {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

.streak-info {
    display: flex;
    flex-direction: column;
}

.streak-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}

.streak-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streak-calendar {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.streak-day {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.streak-day.active {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.streak-day.today {
    border-color: var(--amber);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
}

.streak-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ================================
   ANALYTICS SECTION
   ================================ */
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.analytics-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.analytics-card-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.analytics-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.score-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.score-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeSlideIn 0.3s ease;
}

.score-history-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.score-history-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.score-history-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-history-pct {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
}

.score-history-pct.high {
    color: var(--green);
    background: var(--green-bg);
}

.score-history-pct.mid {
    color: var(--amber);
    background: var(--amber-bg);
}

.score-history-pct.low {
    color: var(--red);
    background: var(--red-bg);
}

/* ================================
   NOTES SECTION
   ================================ */
.notes-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.note-topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-topic-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.note-topic-card h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-topic-card .note-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-height: 40px;
    overflow: hidden;
    line-height: 1.4;
}

.note-topic-card .note-badge {
    font-size: 0.7rem;
    color: var(--accent-light);
    padding: 2px 8px;
    background: var(--accent-glow);
    border-radius: 10px;
    align-self: flex-start;
}

.note-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.note-textarea {
    width: 100%;
    min-height: 450px;
    padding: 20px;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}

.note-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 4px;
}

.note-char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.note-saved-indicator {
    font-size: 0.8rem;
    color: var(--green);
    transition: opacity 0.3s ease;
}

/* ================================
   LEADERBOARD
   ================================ */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lb-header {
    display: grid;
    grid-template-columns: 50px 1fr 90px 90px 90px 80px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.lb-row {
    display: grid;
    grid-template-columns: 50px 1fr 90px 90px 90px 80px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    animation: fadeSlideIn 0.3s ease;
}

.lb-row:hover {
    background: var(--bg-card-hover);
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row.is-you {
    background: var(--accent-glow);
    border-left: 3px solid var(--accent);
    box-shadow: inset 0 0 30px var(--accent-glow);
}

.lb-row.is-you:hover {
    background: var(--accent-glow-strong);
}

.lb-rank {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

.lb-rank.gold {
    color: #fbbf24;
}

.lb-rank.silver {
    color: #94a3b8;
}

.lb-rank.bronze {
    color: #cd7f32;
}

.lb-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.lb-username {
    font-weight: 600;
    font-size: 0.9rem;
}

.lb-you-badge {
    font-size: 0.65rem;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 700;
}

.lb-stat {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.lb-stat.high {
    color: var(--green);
}

.lb-stat.mid {
    color: var(--amber);
}

.lb-stat.low {
    color: var(--red);
}

.lb-streak {
    text-align: center;
    font-size: 0.85rem;
}

/* Your Rank Highlight Card */
.lb-your-rank {
    margin-bottom: 20px;
}

.lb-your-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    animation: fadeSlideIn 0.5s ease;
}

.lb-your-position {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-light);
    line-height: 1;
}

.lb-your-position-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-your-stats {
    display: flex;
    gap: 32px;
    flex: 1;
}

.lb-your-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lb-your-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.lb-your-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.lb-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 768px) {

    .lb-header,
    .lb-row {
        grid-template-columns: 40px 1fr 70px 70px;
    }

    .lb-header span:nth-child(5),
    .lb-header span:nth-child(6),
    .lb-row span:nth-child(5),
    .lb-row .lb-streak {
        display: none;
    }

    .lb-your-card {
        flex-direction: column;
        text-align: center;
    }

    .lb-your-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ==================================
   SPLASH SCREEN — Eye-Opening Reveal
   Timing: blank 2s → eyelids open 2s → logo visible 3s → fadeout
   ================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fade out at 7s (2+2+3), takes 0.6s */
    animation: splashFadeOut 0.6s ease 7s forwards;
    pointer-events: none;
}

.splash-screen.hidden {
    display: none;
}

.splash-eye-container {
    position: relative;
    width: 300px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Eyelids that cover the logo completely for first 2s */
.splash-eyelid {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: #0a0a0f;
    z-index: 2;
}

/* Top eyelid: stays shut for 2s, then opens over 2s */
.splash-eyelid-top {
    top: 0;
    border-bottom: 2px solid #ef4444;
    animation: eyelidOpenTop 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

/* Bottom eyelid: stays shut for 2s, then opens over 2s */
.splash-eyelid-bottom {
    bottom: 0;
    border-top: 2px solid #ef4444;
    animation: eyelidOpenBottom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

/* Logo content: hidden for first 2s, fades in as eyelids open */
.splash-logo-inner {
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: scale(0.85);
    /* Start revealing at 2.5s (as eyelids start opening), finish at 4s */
    animation: splashLogoReveal 1.5s ease 2.5s forwards;
}

.splash-logo-img {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
    /* Start pulsing glow after fully revealed at 4s */
    animation: eyePulse 2s ease 4s infinite;
    border-radius: 12px;
}

.login-logo-img {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.4));
    border-radius: 8px;
    margin-bottom: 16px;
}

.sidebar-logo-img {
    border-radius: 4px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Sidebar eyelid overlays (divs) */
.sidebar-lid {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--bg-secondary);
    z-index: 2;
}

.sidebar-lid-top {
    top: 0;
    border-bottom: 1px solid #ef4444;
    animation: sidebarLidTop 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

.sidebar-lid-bottom {
    bottom: 0;
    border-top: 1px solid #ef4444;
    animation: sidebarLidBottom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

.splash-brand {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-top: 16px;
    letter-spacing: -0.5px;
    opacity: 0;
    /* Brand text appears at 3.5s */
    animation: splashTextFadeIn 1s ease 3.5s forwards;
}

.splash-powered {
    font-size: 0.8rem;
    color: #555;
    margin-top: 6px;
    opacity: 0;
    /* "Powered by" text appears at 4s */
    animation: splashTextFadeIn 1s ease 4s forwards;
}

.splash-powered strong {
    color: #ef4444;
}

/* --- Keyframe Animations --- */

/* Eyelid top slides UP to reveal */
@keyframes eyelidOpenTop {
    0% {
        height: 50%;
    }

    100% {
        height: 0%;
        border-color: transparent;
    }
}

/* Eyelid bottom slides DOWN to reveal */
@keyframes eyelidOpenBottom {
    0% {
        height: 50%;
    }

    100% {
        height: 0%;
        border-color: transparent;
    }
}

/* Logo scales up and fades in */
@keyframes splashLogoReveal {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text fades in */
@keyframes splashTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Eye glow pulse */
@keyframes eyePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0.9));
    }
}

/* Splash fades out */
@keyframes splashFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

/* ==================================
   LOGIN OVERLAY
   ================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.login-overlay.hidden {
    display: none;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 460px;
    max-width: 95vw;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.1);
    animation: slideUp 0.6s ease 0.2s both;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-eye {
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.4));
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.login-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-field input,
.login-field select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.login-field input:focus,
.login-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-field input::placeholder {
    color: var(--text-muted);
}

.login-row {
    display: flex;
    gap: 12px;
}

.login-submit {
    margin-top: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ==================================
   SIDEBAR PROFILE CARD
   ================================== */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 12px 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.sidebar-profile.hidden {
    display: none;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-logout-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.profile-logout-btn:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-bg);
}

@media (max-width: 768px) {
    .login-card {
        padding: 28px 20px;
    }

    .login-row {
        flex-direction: column;
    }
}

/* ==================================
   SOCIAL LOGIN BUTTONS
   ================================== */
.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    flex-shrink: 0;
}

/* Google */
.google-btn {
    border-color: rgba(66, 133, 244, 0.3);
}

.google-btn:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
}

/* GitHub */
.github-btn {
    border-color: rgba(255, 255, 255, 0.15);
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Microsoft */
.microsoft-btn {
    border-color: rgba(0, 164, 239, 0.3);
}

.microsoft-btn:hover {
    background: rgba(0, 164, 239, 0.1);
    border-color: #00a4ef;
}

/* Yahoo */
.yahoo-btn {
    border-color: rgba(128, 0, 255, 0.3);
}

.yahoo-btn:hover {
    background: rgba(128, 0, 255, 0.1);
    border-color: #7b0099;
}

/* LinkedIn */
.linkedin-btn {
    border-color: rgba(10, 102, 194, 0.3);
}

.linkedin-btn:hover {
    background: rgba(10, 102, 194, 0.1);
    border-color: #0a66c2;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-back-btn {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    transition: color var(--transition);
}

.login-back-btn:hover {
    color: var(--accent);
}

/* ==================================
   SIDEBAR EYE ANIMATION (Logo)
   Timing synced with splash: 2s closed → 2s opening → revealed
   ================================== */
.logo-eye-animate {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    width: 28px;
    height: 28px;
}

/* Sidebar eyelid keyframes */
@keyframes sidebarLidTop {
    0% {
        height: 50%;
    }

    100% {
        height: 0%;
        opacity: 0;
    }
}

@keyframes sidebarLidBottom {
    0% {
        height: 50%;
    }

    100% {
        height: 0%;
        opacity: 0;
    }
}

/* Subtle glow pulse after eye opens at 4s */
.logo-eye-animate::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: logoGlow 2s ease 4s forwards;
    pointer-events: none;
}

@keyframes logoGlow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Light theme adjustments for social buttons */
[data-theme="light"] .social-btn {
    background: #f8f9fa;
    color: #1a1a2e;
}

[data-theme="light"] .github-btn svg {
    fill: #1a1a2e;
}

[data-theme="light"] .yahoo-btn svg,
[data-theme="light"] .linkedin-btn svg {
    fill: #1a1a2e;
}

/* ================================
   ROLE SIMULATION
   ================================ */

/* --- Role Cards Grid --- */
.rs-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.rs-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--role-gradient);
    opacity: 0.7;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.rs-role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-glow-strong);
}

.rs-role-card:hover::before {
    height: 6px;
    opacity: 1;
}

.rs-role-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.rs-role-icon {
    font-size: 2rem;
}

.rs-role-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.rs-role-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rs-role-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.rs-skill-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid var(--accent-glow-strong);
}

.rs-role-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rs-role-progress-mini {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.rs-role-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.rs-role-completed {
    font-weight: 600;
    color: var(--accent-light);
}

.rs-role-hover-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.rs-role-card:hover .rs-role-hover-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- Scenario Cards --- */
.rs-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rs-scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rs-scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
    border-color: var(--border-light);
}

.rs-scenario-card.completed {
    border-color: var(--green);
    border-left: 4px solid var(--green);
}

.rs-scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rs-scenario-icon {
    font-size: 1.5rem;
}

.rs-scenario-priority {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rs-scenario-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rs-scenario-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.rs-scenario-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rs-scenario-start {
    color: var(--accent-light);
    font-weight: 600;
}

.rs-scenario-done {
    color: var(--green);
    font-weight: 600;
}

/* --- Lab Layout --- */
.rs-lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.rs-lab-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rs-lab-title-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rs-lab-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rs-priority-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.rs-lab-timer {
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 6px;
    animation: pulseGlow 2s infinite;
}

.rs-sla-info {
    display: flex;
    gap: 20px;
}

.rs-sla-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rs-sla-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rs-sla-value {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
}

.rs-sla-done .rs-sla-value {
    color: var(--green);
}

.rs-sla-breached .rs-sla-value {
    color: var(--red);
}

/* Lab Body — 3 Panels */
.rs-lab-body {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: 12px;
    height: calc(100vh - 280px);
    min-height: 500px;
}

/* Steps Panel */
.rs-steps-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
}

.rs-steps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.rs-steps-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.rs-steps-icon {
    font-size: 1.1rem;
}

.rs-steps-list {
    padding: 8px;
}

.rs-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.rs-step-item.locked {
    opacity: 0.4;
}

.rs-step-item.active.current {
    background: var(--accent-glow);
    border-left: 3px solid var(--accent);
}

.rs-step-item.completed {
    background: var(--green-bg);
}

.rs-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rs-step-badge.locked {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.rs-step-badge.active {
    background: var(--accent);
    color: white;
}

.rs-step-badge.completed {
    background: var(--green);
    color: white;
}

.rs-step-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rs-step-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-step-done-tag {
    font-size: 0.68rem;
    color: var(--green);
    font-weight: 600;
}

.rs-step-active-tag {
    font-size: 0.68rem;
    color: var(--accent-light);
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Workspace */
.rs-workspace {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rs-tool-bar {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow-x: auto;
}

.rs-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rs-tool-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.rs-tool-btn.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    border-color: var(--accent-glow-strong);
    border-bottom: 2px solid var(--accent);
}

.rs-tool-btn-icon {
    font-size: 1rem;
}

.rs-tool-window {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: auto;
    min-height: 0;
}

.rs-tool-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-muted);
    gap: 12px;
}

.rs-tool-placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Guidance Panel */
.rs-guidance-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.rs-guidance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.rs-guidance-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.rs-guidance-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rs-guidance-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.rs-guidance-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rs-guidance-list {
    flex: 1;
}

.rs-guidance-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rs-guidance-item:last-child {
    border-bottom: none;
}

.rs-guidance-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rs-complete-step-btn {
    margin-top: 16px;
    width: 100%;
}

/* --- Jira Tool --- */
.rs-jira-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-jira-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.rs-jira-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rs-jira-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.rs-jira-ticket {
    max-width: 640px;
}

.rs-jira-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rs-jira-ticket-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.rs-jira-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rs-jira-field {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.rs-jira-field-label {
    width: 100px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.rs-jira-field-value {
    font-weight: 500;
}

.rs-jira-description {
    margin-top: 20px;
}

.rs-jira-description h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rs-jira-description p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.rs-jira-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-jira-comment {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
}

.rs-jira-resolved-banner {
    margin-top: 20px;
    padding: 16px;
    background: var(--green-bg);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Browser Tool --- */
.rs-browser-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-browser-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.rs-browser-dots {
    display: flex;
    gap: 5px;
}

.rs-browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rs-browser-dots .dot.red {
    background: #ef4444;
}

.rs-browser-dots .dot.yellow {
    background: #eab308;
}

.rs-browser-dots .dot.green {
    background: #22c55e;
}

.rs-browser-url-bar {
    flex: 1;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rs-browser-lock {
    font-size: 0.7rem;
}

.rs-browser-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.rs-browser-error {
    text-align: center;
    max-width: 400px;
}

.rs-browser-error-code {
    font-size: 4rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.rs-browser-error h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.rs-browser-error p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rs-browser-error-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.rs-browser-success {
    text-align: center;
    max-width: 320px;
}

.rs-browser-success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.rs-browser-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.rs-browser-input {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
}

.rs-browser-login-btn {
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Monitoring Tool --- */
.rs-monitoring-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-monitoring-header {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

.rs-monitoring-body {
    padding: 16px;
    overflow-y: auto;
}

.rs-monitoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.rs-metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.rs-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rs-metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.rs-metric-value.ok {
    color: var(--green);
}

.rs-metric-value.warning {
    color: var(--amber);
}

.rs-metric-value.danger {
    color: var(--red);
}

.rs-metric-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.rs-metric-bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.rs-metric-bar-fill.danger {
    background: var(--red);
}

.rs-services-panel h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.rs-services-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rs-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.rs-service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rs-service-dot.running {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.rs-service-dot.down {
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    animation: pulse 1s infinite;
}

.rs-service-name {
    flex: 1;
    font-weight: 500;
}

.rs-service-status {
    font-size: 0.78rem;
    font-weight: 600;
}

.rs-service-status.running {
    color: var(--green);
}

.rs-service-status.down {
    color: var(--red);
}

/* --- Terminal Tool --- */
.rs-terminal-window {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border-radius: 0 0 var(--radius) var(--radius);
}

.rs-terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.rs-terminal-dots {
    display: flex;
    gap: 5px;
}

.rs-terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rs-terminal-dots .dot.red {
    background: #ef4444;
}

.rs-terminal-dots .dot.yellow {
    background: #eab308;
}

.rs-terminal-dots .dot.green {
    background: #22c55e;
}

.rs-terminal-title {
    font-size: 0.82rem;
    color: #888;
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
}

.rs-terminal-body {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
}

.rs-terminal-line {
    margin-bottom: 2px;
    word-break: break-all;
}

.rs-terminal-line.muted {
    color: #555;
}

.rs-terminal-line.prompt {
    color: #4ec9b0;
}

.rs-terminal-line.output {
    color: #ccc;
}

.rs-terminal-line.error {
    color: #f48771;
}

.rs-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #333;
    background: #111;
}

.rs-terminal-prompt {
    color: #4ec9b0;
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.rs-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e8e8e8;
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.85rem;
    outline: none;
}

.rs-terminal-input::placeholder {
    color: #444;
}

/* --- VS Code Tool --- */
.rs-vscode-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-vscode-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1e1e2e;
    border-bottom: 1px solid #333;
    font-size: 0.82rem;
    color: #888;
}

.rs-vscode-dots {
    display: flex;
    gap: 5px;
}

.rs-vscode-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rs-vscode-dots .dot.red {
    background: #ef4444;
}

.rs-vscode-dots .dot.yellow {
    background: #eab308;
}

.rs-vscode-dots .dot.green {
    background: #22c55e;
}

.rs-vscode-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.rs-vscode-sidebar {
    width: 180px;
    background: #16161f;
    border-right: 1px solid #333;
    padding: 8px;
    overflow-y: auto;
}

.rs-vscode-file {
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
}

.rs-vscode-file.active {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.rs-vscode-file:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rs-vscode-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.rs-vscode-tab-bar {
    display: flex;
    padding: 0 8px;
    background: #252526;
    border-bottom: 1px solid #333;
}

.rs-vscode-tab {
    padding: 8px 16px;
    font-size: 0.78rem;
    color: #888;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.rs-vscode-tab.active {
    color: white;
    border-bottom-color: var(--accent);
}

.rs-vscode-code {
    flex: 1;
    padding: 16px;
    overflow: auto;
}

.rs-code-content {
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #ccc;
    margin: 0;
    white-space: pre;
}

.rs-code-tag {
    color: #569cd6;
}

.rs-code-attr {
    color: #9cdcfe;
}

.rs-code-str {
    color: #ce9178;
}

.rs-code-comment {
    color: #6a9955;
}

/* --- Test Plan Tool --- */
.rs-testplan-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-testplan-header {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

.rs-testplan-body {
    padding: 16px;
    overflow-y: auto;
}

.rs-testplan-section {
    margin-bottom: 20px;
}

.rs-testplan-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rs-testplan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.rs-testplan-table th,
.rs-testplan-table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.rs-testplan-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 600;
    width: 110px;
}

.rs-testplan-table td {
    color: var(--text-secondary);
    line-height: 1.5;
}

.rs-test-pass {
    color: var(--green);
    font-weight: 600;
}

.rs-test-fail {
    color: var(--red);
    font-weight: 600;
}

.rs-test-pending {
    color: var(--amber);
    font-weight: 600;
}

/* --- Postman Tool --- */
.rs-postman-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-postman-header {
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6c37;
}

.rs-postman-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.rs-postman-request-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rs-postman-method {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--green);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
}

.rs-postman-url {
    flex: 1;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}

.rs-postman-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.rs-postman-tab {
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.rs-postman-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.rs-postman-body-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.82rem;
    resize: vertical;
    margin-bottom: 12px;
}

.rs-postman-response {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.rs-postman-response-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rs-postman-status {
    font-weight: 700;
    font-size: 0.78rem;
}

.rs-postman-status.success {
    color: var(--green);
}

.rs-postman-status.error {
    color: var(--red);
}

.rs-postman-status.loading {
    color: var(--amber);
}

.rs-postman-response-body {
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* --- Quiz --- */
.rs-quiz-container {
    max-width: 640px;
    margin: 0 auto;
}

.rs-quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.rs-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rs-quiz-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.rs-quiz-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rs-quiz-question {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 24px 0;
}

.rs-quiz-options {
    margin-bottom: 24px;
}

.rs-quiz-nav {
    display: flex;
    justify-content: space-between;
}

.rs-quiz-result {
    text-align: center;
    padding: 20px 0;
}

.rs-quiz-result-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.rs-quiz-result-score {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-light);
    margin: 12px 0;
}

.rs-quiz-result-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
    margin: 16px auto;
}

.rs-quiz-result-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.rs-quiz-result-fill.pass {
    background: var(--green);
}

.rs-quiz-result-fill.fail {
    background: var(--red);
}

.rs-quiz-result-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 16px 0 24px;
}

.rs-quiz-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Success Overlay --- */
.rs-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.rs-success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rs-success-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rs-confetti-piece {
    position: absolute;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

.rs-success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.rs-success-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.rs-success-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.rs-success-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.rs-success-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rs-success-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.rs-success-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rs-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rs-lab-body {
        grid-template-columns: 180px 1fr;
    }

    .rs-guidance-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .rs-roles-grid {
        grid-template-columns: 1fr;
    }

    .rs-scenarios-grid {
        grid-template-columns: 1fr;
    }

    .rs-lab-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .rs-steps-panel {
        max-height: 200px;
    }

    .rs-lab-header {
        flex-direction: column;
        gap: 12px;
    }

    .rs-sla-info {
        width: 100%;
        justify-content: center;
    }

    .rs-success-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ======================================================
   TOP NAVIGATION BAR
====================================================== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1100;
    gap: 32px;
    transition: transform 0.3s ease;
}

/* Vertical dropdown menu (brand click) */
.top-nav-vmenu {
    position: absolute;
    top: 64px;
    left: 12px;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1200;
}

.top-nav-vmenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.top-nav-vmenu-item:hover {
    background: #eef0f6;
    color: #111;
}

.top-nav-vmenu-sub {
    position: relative;
}

.top-nav-vmenu-sub span {
    margin-left: auto;
}

.top-nav-vmenu-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.top-nav-vmenu-sub:hover .top-nav-vmenu-submenu {
    display: block;
}

.top-nav-vmenu-submenu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.top-nav-vmenu-submenu a:hover {
    background: #eef0f6;
}

.top-nav-chevron {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* User profile avatar in top nav */
.top-nav-user-profile {
    display: flex;
    align-items: center;
}

.top-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.top-nav-brand img {
    border-radius: 8px;
}

.top-nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.top-nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.top-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.top-nav-link.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.top-nav-cta {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: white !important;
    border-radius: 8px;
}

.top-nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Dropdown */
.top-nav-dropdown {
    position: relative;
}

.top-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.top-nav-dropdown:hover .top-nav-dropdown-menu {
    display: block;
}

.top-nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.top-nav-dropdown-menu a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-nav-login-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.top-nav-login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.top-nav-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.4rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.top-nav-mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.top-nav-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
}

.top-nav-mobile-menu a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .top-nav-links {
        display: none;
    }

    .top-nav-mobile-toggle {
        display: block;
    }
}

/* Page Containers */
.page-container {
    padding-top: 64px;
    min-height: 100vh;
    background: var(--bg-main);
}

/* ======================================================
   HOME PAGE
====================================================== */
.accent-gradient {
    background: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.home-hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.home-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.home-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero-btn {
    padding: 14px 32px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

.home-hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.home-stat {
    text-align: center;
}

.home-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.home-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.home-features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.home-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.home-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.home-feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.home-feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-quote-section {
    padding: 40px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.home-quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border-left: 4px solid var(--accent);
}

.home-quote-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.home-quote-card blockquote {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 16px;
}

.home-quote-card cite {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.home-cta {
    text-align: center;
    padding: 80px 24px;
    background: radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.1), transparent 70%);
}

.home-cta h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.home-cta p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ======================================================
   ABOUT US PAGE
====================================================== */
.about-hero {
    text-align: center;
    padding: 80px 24px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.about-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-values {
    text-align: center;
    padding: 60px 24px;
}

.about-values h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 36px;
}

.about-values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.about-value {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 28px;
    text-align: center;
}

.about-value span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.about-value h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    margin: 0;
}

.about-contact {
    text-align: center;
    padding: 40px 24px 80px;
    color: var(--text-muted);
}

.about-contact h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Coming Soon Page */
.coming-soon-page {
    text-align: center;
    padding: 120px 24px;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.coming-soon-page h1 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.coming-soon-page p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ======================================================
   PROFESSIONALS / PRICING PAGE
====================================================== */
.pricing-hero {
    text-align: center;
    padding: 80px 24px 32px;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 20px;
}

.pricing-offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 32px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.pricing-featured {
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
    transform: scale(1.03);
}

.pricing-featured:hover {
    transform: scale(1.05);
}

.pricing-best-value {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.pricing-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.pricing-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.pricing-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pricing-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.pricing-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green);
}

.pricing-lifetime {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pricing-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.pricing-btn {
    width: 100%;
    padding: 12px !important;
    border-radius: 10px !important;
}

.pricing-individual {
    text-align: center;
    padding: 20px 24px 80px;
    color: var(--text-muted);
}

/* ======================================================
   CERTIFICATE MODAL
====================================================== */
.rs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.rs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rs-modal-close:hover {
    background: var(--red);
    color: white;
}

.rs-certificate-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.rs-certificate {
    background: #fefef8;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.rs-cert-border {
    border: 3px double #c9a84c;
    border-radius: 8px;
    padding: 40px 32px;
    position: relative;
}

.rs-cert-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid #e8d5a0;
    border-radius: 4px;
    pointer-events: none;
}

.rs-cert-header {
    text-align: center;
}

.rs-cert-logo {
    font-size: 3rem;
    margin-bottom: 8px;
}

.rs-cert-header h2 {
    color: #c9a84c;
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin: 0;
    font-weight: 700;
}

.rs-cert-divider {
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    margin: 16px auto;
}

.rs-cert-body {
    text-align: center;
    padding: 20px 0;
}

.rs-cert-presented {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.rs-cert-name {
    color: #1a1a2e;
    font-size: 2.2rem;
    margin: 0;
    font-family: 'Georgia', serif;
}

.rs-cert-has {
    color: #888;
    font-size: 0.85rem;
    margin: 16px 0 8px;
}

.rs-cert-lab {
    color: #6366f1;
    font-size: 1.2rem;
    margin: 0;
}

.rs-cert-role {
    color: #888;
    font-size: 0.9rem;
    margin: 8px 0 4px;
}

.rs-cert-date {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

.rs-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 32px;
}

.rs-cert-sig-line {
    width: 180px;
    border-top: 1px solid #333;
    margin-bottom: 4px;
}

.rs-cert-signature p {
    color: #666;
    font-size: 0.75rem;
    margin: 0;
}

.rs-cert-id {
    color: #bbb;
    font-size: 0.7rem;
}

.rs-cert-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ======================================================
   LINKEDIN & CERTIFICATE BUTTONS
====================================================== */
.btn-certificate {
    background: linear-gradient(135deg, #c9a84c, #e8b84f);
    color: #1a1a2e;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-linkedin {
    background: linear-gradient(135deg, #0077B5, #0A66C2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.3);
}

.btn-standup {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-standup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.rs-success-nav-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ======================================================
   STANDUP MEETING MODAL
====================================================== */
.rs-standup-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rs-standup-header {
    text-align: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.rs-standup-header h3 {
    color: var(--text-primary);
    margin: 12px 0 4px;
}

.rs-standup-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.rs-standup-video-area {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 8px;
}

.rs-standup-participant {
    text-align: center;
}

.rs-standup-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 6px;
}

.rs-standup-manager .rs-standup-avatar {
    border-color: #22c55e;
}

.rs-standup-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.rs-standup-status {
    display: block;
    font-size: 0.7rem;
    color: #22c55e;
}

.rs-standup-muted {
    color: var(--red) !important;
}

.rs-standup-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    max-height: 350px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rs-standup-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rs-standup-msg-manager {
    align-self: flex-start;
}

.rs-standup-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rs-standup-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.rs-standup-msg-bubble {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
}

.rs-standup-msg-user .rs-standup-msg-bubble {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.rs-standup-msg-sender {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.rs-standup-msg-bubble p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.rs-standup-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.rs-standup-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rs-standup-prompt-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.rs-standup-prompt-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.rs-standup-input-row {
    display: flex;
    gap: 8px;
}

.rs-standup-input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
}

.rs-standup-input:focus {
    outline: none;
    border-color: var(--accent);
}

.rs-standup-send {
    padding: 10px 20px !important;
    border-radius: 10px !important;
}

/* Mobile responsiveness for new pages */
@media (max-width: 768px) {
    .home-hero-title {
        font-size: 2.2rem;
    }

    .home-hero-stats {
        gap: 20px;
    }

    .home-stat-value {
        font-size: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-4px);
    }

    .about-title {
        font-size: 2rem;
    }

    .rs-success-actions,
    .rs-success-nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rs-certificate-card {
        padding: 16px;
    }

    .rs-cert-name {
        font-size: 1.5rem;
    }

    .rs-standup-card {
        max-height: 95vh;
    }

    .rs-standup-video-area {
        gap: 16px;
    }

    .rs-standup-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}