/* ============================================================
   Amba AI Data Analysis Platform - Clean Production Stylesheet
   Version: 3.0
   ============================================================ */

:root {
    --bg-dark: #0a0d14;
    --bg-surface: #111520;
    --bg-surface-elevated: #171c2b;
    --bg-surface-hover: #1e2437;
    --bg-input: #141824;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(99, 102, 241, 0.5);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.28);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.22);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
    
    --sidebar-width: 330px;
    --header-height: 58px;
    --footer-height: 32px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   APP LAYOUT CONTAINER
   ============================================================ */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 45;
}

/* ============================================================
   LEFT SIDEBAR: SYLLABUS CURRICULUM TREE
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100%;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                min-width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    border-right: none;
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 21, 32, 0.98);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.sidebar-brand h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
}

.sub-label {
    font-size: 10.5px;
    color: var(--text-dim);
    display: block;
    white-space: nowrap;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Sidebar Search & Expand/Collapse Controls */
.sidebar-controls {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(14, 18, 28, 0.85);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box i.fa-magnifying-glass {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 7px 28px 7px 30px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 12px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 11px;
    padding: 2px;
    transition: var(--transition);
}

.clear-btn:hover {
    color: var(--text-main);
}

.tree-actions {
    display: flex;
    gap: 8px;
}

.tree-action-btn {
    flex: 1;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.tree-action-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Topics Tree Scroll Area */
.tree-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.tree-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 180px;
    color: var(--text-muted);
    font-size: 12.5px;
    text-align: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Tree Section Items */
.tree-section {
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.tree-section-header {
    display: flex;
    align-items: center;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    gap: 7px;
}

.tree-section-header:hover {
    background-color: var(--bg-surface-hover);
}

.tree-toggle-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    transition: color 0.2s ease;
}

.tree-section.expanded > .tree-section-header .tree-toggle-icon {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.15);
}

.tree-hybrid-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tree-sec-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-hybrid-badge {
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: auto;
    margin-right: 4px;
    flex-shrink: 0;
}

.tree-topic-status-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.tree-topic-status-badge.free-tag {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.tree-topic-status-badge.unlocked-tag {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.tree-topic-status-badge.locked-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tree-count-badge {
    font-size: 9.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    min-width: 14px;
    text-align: right;
    flex-shrink: 0;
}

/* Subtopics List */
.tree-sublist {
    display: none;
    padding-left: 18px;
    margin-top: 2px;
    position: relative;
}

.tree-sublist::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 4px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.tree-section.expanded > .tree-sublist {
    display: block;
}

.tree-subgroup {
    margin: 2px 0;
}

.tree-subgroup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tree-subgroup-header:hover {
    background-color: var(--bg-surface-hover);
}

.tree-subgroup-list {
    display: none;
    padding-left: 14px;
}

.tree-subgroup.expanded > .tree-subgroup-list {
    display: block;
}

.tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11.5px;
    color: var(--text-muted);
}

.tree-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-main);
}

.tree-sub-hybrid-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    flex-shrink: 0;
    margin-right: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tree-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item-action {
    font-size: 9.5px;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.tree-item:hover .tree-item-action {
    opacity: 1;
}

.tree-item-transferred {
    outline: 2px solid var(--accent) !important;
    background: rgba(56, 189, 248, 0.2) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
    transition: all 0.3s ease;
}

/* Sidebar Footer & Bottom Account Bar */
.sidebar-footer {
    padding: 10px 12px;
    background: #0b0e16;
    border-top: 1px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.sidebar-account-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-account-bar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
}

.account-bar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px var(--primary-glow);
    flex-shrink: 0;
}

.account-bar-meta {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.account-bar-meta strong {
    display: block;
    font-size: 11.5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-bar-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #38bdf8;
    font-weight: 600;
    font-family: var(--font-mono);
}

.account-bar-trigger-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px;
    cursor: pointer;
}

/* Floating Upward Dropdown Menu */
.sidebar-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 10px;
    width: calc(100% - 20px);
    background: #141824;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.15);
    z-index: 100;
    backdrop-filter: blur(16px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dd-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dd-user-meta strong {
    display: block;
    font-size: 12px;
    color: var(--text-main);
}

.dd-user-meta span {
    display: block;
    font-size: 10.5px;
    color: var(--text-dim);
}

.dd-wallet-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dd-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.dd-wallet-row strong {
    font-family: var(--font-mono);
    color: #38bdf8;
}

.dd-status-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dd-status-badge.unlocked {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.dd-status-badge.locked {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 2px 0;
}

.dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dd-item {
    width: 100%;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dd-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.dd-item i {
    font-size: 12px;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.dd-item:hover i {
    color: var(--accent);
}

.dd-item-text strong {
    display: block;
    font-size: 11px;
}

.dd-item-text span {
    display: block;
    font-size: 9.5px;
    color: var(--text-dim);
}

.dd-price-badge {
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #000;
}

.dd-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dd-auth-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.2));
    border-color: rgba(99, 102, 241, 0.35);
}

/* ============================================================
   MAIN CHAT CONTAINER
   ============================================================ */
.chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Top Navbar */
.chat-header {
    height: var(--header-height);
    min-height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(14px);
    z-index: 30;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chat-title-group h1 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.2;
}

.chat-title-group .badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    text-transform: uppercase;
}

.subtitle {
    font-size: 10.5px;
    color: var(--text-dim);
    display: block;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-right::-webkit-scrollbar {
    display: none;
}

/* Header Buttons & Controls */
.btn-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 4px 9px;
    border-radius: 999px;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.timer-pulse-icon {
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.92); }
}

.header-clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.28);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
    color: #f1f5f9;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-clock-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
}

.header-clock-pill .clock-icon {
    color: #38bdf8;
    font-size: 11px;
}

.header-clock-pill .clock-divider {
    color: #64748b;
    margin: 0 1px;
}

.header-clock-pill .clock-display-date {
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

.header-clock-pill .clock-display-time {
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-clock-pill .clock-display-tz {
    color: #38bdf8;
    font-size: 9.5px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.32);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.session-idle-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.22));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 12px;
    padding: 12px 18px;
    margin: 12px 20px 4px 20px;
    color: #fef3c7;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    animation: slideDown 0.3s ease;
    z-index: 10;
}

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

.idle-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.idle-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 15px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.idle-banner-text strong {
    display: block;
    color: #fbbf24;
    font-size: 13.5px;
    margin-bottom: 2px;
}

.idle-banner-text span {
    display: block;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
}

.btn-resume-session {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0b0f19;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-resume-session:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.header-regional-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.help-guide-header-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-weight: 700;
}

.help-guide-header-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(56, 189, 248, 0.3));
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.recharge-header-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 179, 8, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde047;
    font-weight: 700;
}

.recharge-header-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.auth-header-btn {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}

.auth-header-btn:hover {
    background: var(--primary);
    color: white;
}

.speed-slider-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    flex-shrink: 0;
}

.speed-range-slider {
    width: 55px;
    height: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

.speed-val-badge {
    font-family: var(--font-mono);
    color: #38bdf8;
    font-weight: 700;
    font-size: 10px;
}

.step-pill.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.45);
    color: #818cf8;
}

.step-badge, .voice-badge {
    background: rgba(0, 0, 0, 0.35);
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 9px;
}

.voice-pill.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

/* Chat Body Wrapper */
.chat-body-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
}

/* Inline Notification Banner */
.inline-message-banner {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(11, 19, 38, 0.98));
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(12px);
    z-index: 35;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.inline-message-banner.warning {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.2);
}

.inline-msg-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.inline-msg-icon {
    font-size: 20px;
    color: var(--accent);
    margin-top: 2px;
}

.inline-message-banner.warning .inline-msg-icon {
    color: #f59e0b;
}

.inline-msg-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inline-msg-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-msg-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.inline-msg-countdown {
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.inline-msg-text {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Specs pills row */
.inline-msg-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.inline-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    background: rgba(30, 41, 59, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

.inline-spec-pill strong {
    color: #ffffff;
    font-weight: 700;
}

/* Action buttons row (Fix White on White Button) */
.inline-msg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.inline-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.inline-btn-action.primary {
    background: linear-gradient(135deg, #4f46e5, #0284c7) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.5) !important;
}

.inline-btn-action.primary:hover {
    background: linear-gradient(135deg, #4338ca, #0369a1) !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.65) !important;
    transform: translateY(-1px);
}

.inline-btn-action.success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
}

.inline-btn-action.success:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-1px);
}

.inline-msg-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.inline-msg-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.inline-timer-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.inline-timer-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 10s linear;
}

/* ============================================================
   MESSAGES SCROLL CONTAINER
   ============================================================ */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 24px 130px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Welcome Mode */
.welcome-hero {
    text-align: center;
    margin: 24px auto 16px auto;
    max-width: 680px;
}

.welcome-hero h2 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.welcome-hero p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.welcome-suggestions {
    max-width: 760px;
    margin: 0 auto 24px auto;
    width: 100%;
}

.suggestions-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.s-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.s-text {
    flex: 1;
    min-width: 0;
}

.s-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.s-text strong {
    font-size: 12.5px;
    color: var(--text-main);
    display: block;
}

.s-text span {
    font-size: 11px;
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
}

.free-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Chat Message Bubbles */
.message-row {
    display: flex;
    gap: 12px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
}

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

.message-row.assistant,
.message-row.assistant-msg {
    justify-content: flex-start;
}

.message-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.message-row.user .message-content,
.message-row.user-msg .message-content {
    align-items: flex-end;
    max-width: calc(100% - 46px);
}

.message-row.assistant .message-content,
.message-row.assistant-msg .message-content {
    flex: 1;
    align-items: flex-start;
    max-width: calc(100% - 46px);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.user .message-avatar,
.user-msg .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.assistant .message-avatar,
.assistant-msg .message-avatar {
    background: #181d2c;
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.message-bubble {
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    font-size: 13.8px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.user .message-bubble,
.user-msg .message-bubble {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px var(--primary-glow);
    width: fit-content;
    max-width: 100%;
    white-space: pre-wrap;
}

.assistant .message-bubble,
.assistant-msg .message-bubble {
    width: 100%;
    background: #121622;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Structured Pedagogical Callouts */
.callout-job, .callout-trap, .callout-checkpoint {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0;
    border-left: 4px solid;
    font-size: 13.5px;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.callout-job {
    background: linear-gradient(135deg, rgba(6, 44, 32, 0.95), rgba(4, 28, 20, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-left: 4px solid #10b981;
    color: #ecfdf5;
}

.callout-trap {
    background: linear-gradient(135deg, rgba(45, 26, 6, 0.95), rgba(30, 18, 4, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    color: #fef3c7;
}

.callout-checkpoint {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-left: 4px solid #38bdf8;
    color: #f8fafc;
}

/* Prevent empty boxes, bullet list items, tables and table rows from rendering before characters are typed */
.callout-job:not(:has(.char-visible)),
.callout-trap:not(:has(.char-visible)),
.callout-checkpoint:not(:has(.char-visible)),
.message-bubble li:not(:has(.char-visible)),
.message-bubble table:not(:has(.char-visible)),
.message-bubble .table-wrapper:not(:has(.char-visible)),
.message-bubble tr:not(:has(.char-visible)) {
    display: none !important;
}

.message-bubble li:has(.char-visible) {
    display: list-item !important;
}

.message-bubble table:has(.char-visible) {
    display: table !important;
    animation: fadeInSlideUp 0.35s ease forwards;
}

.message-bubble tr:has(.char-visible) {
    display: table-row !important;
}

.checkpoint-pending {
    display: none !important;
}

.checkpoint-revealed {
    display: block !important;
    animation: fadeInSlideUp 0.3s ease-out forwards;
}

.callout-checkpoint strong {
    color: #38bdf8;
    font-weight: 700;
}

/* Checkpoint Options List & Buttons (High Contrast Fix) */
.callout-checkpoint ul, 
.callout-checkpoint ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 4px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.callout-checkpoint li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.checkpoint-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #0b1329 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.checkpoint-btn:hover {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.checkpoint-btn:active {
    transform: scale(0.98);
}

/* ============================================================
   CONCEPT MASTERY CHECK & INTERACTIVE MCQ CARD
   ============================================================ */
.mcq-mastery-card {
    background: linear-gradient(145deg, rgba(11, 19, 38, 0.97), rgba(6, 11, 24, 0.99));
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 18px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.12);
    animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcq-header {
    display: none !important;
}

.mcq-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 4px 12px;
}

.mcq-milestone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
}

.mcq-scenario-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.mcq-scenario-icon {
    font-size: 15px;
    color: #38bdf8;
    margin-top: 2px;
    flex-shrink: 0;
}

.mcq-scenario-content {
    flex: 1;
    min-width: 0;
}

.mcq-scenario-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7dd3fc;
    margin-bottom: 4px;
}

.mcq-scenario-quote {
    font-style: italic;
    color: #f1f5f9;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

.mcq-question-prompt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 14px;
}

.mcq-q-icon {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.mcq-q-text {
    flex: 1;
}

.mcq-options-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 12px;
}

.mcq-option-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    background: #0c152a !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 9px !important;
    padding: 11px 16px !important;
    color: #f8fafc !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: left !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

.mcq-option-btn:hover {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4) !important;
}

.mcq-option-btn:hover .mcq-option-badge {
    background: #ffffff !important;
    color: #0284c7 !important;
    border-color: #ffffff !important;
}

.mcq-option-btn:hover .mcq-option-arrow {
    opacity: 1 !important;
    transform: translateX(3px) !important;
}

.mcq-option-btn.selected {
    background: linear-gradient(135deg, #059669, #0d9488) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.45) !important;
}

.mcq-option-btn.option-correct {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(4, 47, 46, 0.98)) !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.mcq-option-btn.option-correct .mcq-option-badge {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
}

.mcq-option-btn.option-wrong {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.95), rgba(69, 10, 10, 0.98)) !important;
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
    color: #fecaca !important;
}

.mcq-option-btn.option-wrong .mcq-option-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
}

.mcq-option-btn.option-dimmed {
    opacity: 0.5 !important;
    filter: grayscale(30%) !important;
    cursor: default !important;
    pointer-events: none !important;
}

.mcq-option-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.16);
    border: 1.5px solid #38bdf8;
    color: #38bdf8;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mcq-option-text {
    flex: 1;
    line-height: 1.5;
}

.mcq-option-arrow {
    opacity: 0.4;
    font-size: 12px;
    color: #7dd3fc;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mcq-footer-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   CONCEPT MASTERY & MCQ EXPLANATION PANEL
   ============================================================ */
.mcq-explanation-panel {
    background: linear-gradient(145deg, rgba(10, 20, 42, 0.98), rgba(6, 12, 26, 0.99));
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.12);
    animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcq-exp-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mcq-exp-header.exp-correct {
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.mcq-exp-header.exp-incorrect {
    border-bottom-color: rgba(239, 68, 68, 0.25);
}

.mcq-exp-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.exp-correct .mcq-exp-status-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1.5px solid #10b981;
}

.exp-incorrect .mcq-exp-status-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1.5px solid #ef4444;
}

.mcq-exp-status-text {
    flex: 1;
    min-width: 0;
}

.mcq-exp-status-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.exp-correct .mcq-exp-status-title {
    color: #34d399;
}

.exp-incorrect .mcq-exp-status-title {
    color: #f87171;
}

.mcq-exp-status-subtitle {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

.mcq-exp-section {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 9px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mcq-exp-section.why-correct {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(6, 44, 32, 0.4), rgba(15, 23, 42, 0.8));
}

.mcq-exp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #7dd3fc;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mcq-exp-section.why-correct .mcq-exp-section-title {
    color: #34d399;
}

.mcq-exp-section-content {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

.mcq-exp-compare-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcq-exp-compare-item {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.55;
    background: rgba(11, 19, 38, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mcq-exp-compare-item strong {
    color: #93c5fd;
}

.mcq-exp-takeaway {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12.8px;
    color: #fef3c7;
    line-height: 1.5;
}

.mcq-exp-takeaway i {
    color: #fbbf24;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.mcq-exp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mcq-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcq-continue-btn:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.mcq-explain-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcq-explain-more-btn:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.35);
}

/* Inline "Explain Differently" Tag & Container */
.msg-inline-explain-container {
    margin: 14px 0;
    width: 100%;
}

.msg-inline-explain-container.explain-hidden {
    display: none !important;
}

.msg-inline-explain-container.explain-visible {
    display: block !important;
    animation: fadeInTag 0.35s ease forwards;
}

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

.msg-inline-explain-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.inline-explain-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f1f5f9;
}

.inline-explain-icon {
    color: #f59e0b;
    font-size: 16px;
}

.msg-explain-diff-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #4f46e5, #0284c7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
}

.msg-explain-diff-btn:hover {
    background: linear-gradient(135deg, #4338ca, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.5);
}

/* ============================================================
   STEP NAVIGATOR (INTERACTIVE STEP-BY-STEP PROGRESSION)
   ============================================================ */
.step-navigator-box {
    margin: 16px 0 10px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(11, 19, 41, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInStepNav 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.step-navigator-box.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.2));
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
    padding: 10px 16px;
}

.step-nav-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.step-nav-info i {
    color: #10b981;
    font-size: 15px;
}

.step-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.next-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.next-step-btn i {
    color: #38bdf8;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.next-step-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5);
    transform: translateY(-1.5px);
}

.next-step-btn:hover i {
    transform: translateX(3px);
    color: #ffffff;
}

.next-step-btn:active {
    transform: translateY(0) scale(0.98);
}

.show-all-steps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.show-all-steps-btn i {
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.2s ease;
}

.show-all-steps-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transform: translateY(-1.5px);
}

.show-all-steps-btn:hover i {
    color: #38bdf8;
}

.show-all-steps-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Fallback for buttons inside chat bubble to guarantee high contrast */
.chat-bubble button:not(.btn-icon):not(.copy-code-btn):not(.checkpoint-btn):not(.msg-explain-diff-btn):not(.next-step-btn):not(.show-all-steps-btn) {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
    padding: 6px 14px;
}

/* ============================================================
   SPECIAL BLACK CONSOLE WINDOW (EXPLAIN DIFFERENTLY TERMINAL)
   ============================================================ */
.black-console-container {
    margin-top: 14px;
    width: 100%;
}

.black-console-window {
    background: #090e17 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
}

.console-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d1527;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.console-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 60px;
}

.ctrl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ctrl-dot.dot-close {
    background: #ef4444;
}

.ctrl-dot.dot-min {
    background: #f59e0b;
}

.ctrl-dot.dot-max {
    background: #10b981;
}

.console-title {
    color: #e2e8f0;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.console-title i {
    color: #38bdf8;
}

.console-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.console-copy-btn:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.console-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    font-size: 16px;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.console-close-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.console-screen {
    padding: 18px 20px;
    background: #080c14;
}

.console-command-line {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left: 3px solid #38bdf8;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.console-user {
    color: #34d399;
    font-weight: 700;
}

.console-path {
    color: #38bdf8;
}

.console-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.console-body {
    font-size: 13.5px !important;
    font-family: var(--font-sans), sans-serif !important;
    font-style: normal !important;
    color: #e2e8f0;
    line-height: 1.75;
    letter-spacing: 0.15px;
}

.console-body h1, .console-body h2, .console-body h3, .console-body h4 {
    color: #ffffff !important;
    margin-top: 14px;
    margin-bottom: 10px;
    font-style: normal !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: var(--font-sans), sans-serif !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-body h3 {
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 6px;
    color: #ffffff !important;
}

/* ============================================================
   DATA ANALYSIS HYBRID ICONS & STEP HEADINGS
   ============================================================ */
.heading-hybrid-node {
    margin: 16px 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
}

.heading-hybrid-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 3.5px solid var(--accent, #38bdf8);
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.heading-hybrid-bar:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(56, 189, 248, 0.16);
}

.heading-hybrid-left {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
}

.heading-hybrid-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.heading-hybrid-text {
    font-family: var(--font-sans), sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.15px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.heading-hybrid-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

/* In Explain Differently Black Console */
.console-body .heading-hybrid-bar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 22, 0.98));
    border-color: rgba(56, 189, 248, 0.32);
    margin: 4px 0 12px 0;
}

.console-body h3.heading-hybrid-node,
.console-body h2.heading-hybrid-node,
.console-body h1.heading-hybrid-node,
.console-body h4.heading-hybrid-node {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
}

.console-body p {
    margin-bottom: 10px;
    color: #e2e8f0 !important;
    font-style: normal !important;
    font-size: 13.5px !important;
    line-height: 1.75;
}

.console-body ul, .console-body ol {
    margin: 8px 0 14px 4px;
    list-style: none !important;
    padding-left: 0 !important;
}

.console-body li {
    margin-bottom: 10px;
    font-style: normal !important;
    font-size: 13.5px !important;
    position: relative;
    padding-left: 20px;
    color: #e2e8f0 !important;
    line-height: 1.7;
}

.console-body li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #38bdf8;
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
}

.console-body strong {
    color: #ffffff !important;
    font-weight: 700;
    font-style: normal;
}

.console-body em {
    color: #93c5fd !important; /* Soft sky blue for core question quotes */
    font-style: italic;
}

.console-body code {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8 !important;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px !important;
    font-style: normal !important;
}

.console-body blockquote {
    background: rgba(15, 23, 42, 0.85);
    border-left: 3px solid #38bdf8;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    color: #f8fafc !important;
    font-style: normal !important;
}

.black-console-window .mermaid-diagram-card,
.black-console-window .mermaid-caption {
    display: none !important;
}

.console-loading-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    color: #38bdf8;
    font-size: 12px;
    font-style: italic;
    font-weight: 600;
}

/* Console Resume Button (Continue From Previous Pause) */
.console-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.console-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #059669, #0284c7) !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    font-style: normal !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    transition: all 0.2s ease;
}

.console-resume-btn:hover {
    background: linear-gradient(135deg, #047857, #0369a1) !important;
    box-shadow: 0 6px 18px rgba(52, 211, 153, 0.6);
    transform: translateY(-1px);
}

/* Concept Analytical Tiers Grid (Descriptive, Diagnostic, Predictive, Prescriptive) */
.concept-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 16px 0;
    width: 100%;
}

.concept-tier-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #0d1527, #080d1a);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.concept-tier-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tier-accent, #38bdf8);
}

.concept-tier-item:hover {
    border-color: var(--tier-accent, #38bdf8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.15);
}

.concept-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--tier-bg, rgba(56, 189, 248, 0.12));
    color: var(--tier-accent, #38bdf8);
    border: 1px solid var(--tier-border, rgba(56, 189, 248, 0.3));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.concept-tier-content {
    flex: 1;
    min-width: 0;
}

.concept-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.concept-tier-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #f1f5f9;
    letter-spacing: -0.2px;
}

.concept-tier-step-num {
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--tier-accent, #38bdf8);
    opacity: 0.85;
}

.concept-tier-question {
    display: block;
    font-size: 12.8px;
    font-weight: 600;
    color: #93c5fd;
    font-style: italic;
    margin-bottom: 5px;
    line-height: 1.4;
}

.concept-tier-desc {
    font-size: 12.2px;
    color: #94a3b8;
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Tier Cards (Concept Mastery Check Quiz Mode) */
.concept-tier-item.interactive-tier {
    cursor: pointer !important;
    user-select: none;
}

.concept-tier-item.interactive-tier:hover {
    border-color: var(--tier-accent, #38bdf8) !important;
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 20px var(--tier-accent, #38bdf8)40 !important;
}

.concept-tier-item.interactive-tier:active {
    transform: translateY(-1px) scale(0.99) !important;
}

.concept-tier-action-pill {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.concept-tier-item.interactive-tier:hover .concept-tier-action-pill {
    color: #ffffff;
    background: var(--tier-accent, #38bdf8);
    border-color: var(--tier-accent, #38bdf8);
}

.concept-tier-item.tier-correct {
    border: 2px solid #10b981 !important;
    background: linear-gradient(145deg, rgba(6, 44, 32, 0.96), rgba(4, 28, 20, 0.98)) !important;
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.5), 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px) !important;
}

.concept-tier-item.tier-correct::before {
    background: #10b981 !important;
    width: 6px !important;
}

.concept-tier-item.tier-correct .concept-tier-title {
    color: #34d399 !important;
}

.concept-tier-item.tier-wrong {
    border: 2px solid #ef4444 !important;
    background: linear-gradient(145deg, rgba(45, 12, 12, 0.96), rgba(28, 6, 6, 0.98)) !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.4), 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px) !important;
}

.concept-tier-item.tier-wrong::before {
    background: #ef4444 !important;
    width: 6px !important;
}

.concept-tier-item.tier-wrong .concept-tier-title {
    color: #f87171 !important;
}

.concept-tier-item.tier-dimmed {
    opacity: 0.5 !important;
    filter: grayscale(25%) !important;
    cursor: default !important;
    pointer-events: none !important;
}

.tier-verdict-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.tier-verdict-badge.correct {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid #10b981;
}

.tier-verdict-badge.wrong {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid #ef4444;
}

/* Diagrams & Visual Architecture Cards (Enabled & Styled) */
.mermaid-diagram-card {
    background: #090d16;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius-md);
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: block !important;
}

.diagram-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.diagram-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.3px;
}

.diagram-tool-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.mermaid-svg-container {
    padding: 22px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.45) 0%, #060912 100%);
    overflow-x: auto;
}

.mermaid-svg-container svg {
    max-width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.mermaid-fallback-code {
    background: #0d1117;
    padding: 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #94a3b8;
}

/* Software Options Navigation Steps Styling */
.software-access-steps,
.steps-breakdown-container {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-left: 4px solid #6366f1;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 14px 0;
    display: block !important;
}

.software-access-steps h4 {
    color: #a5b4fc;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.software-access-steps ol,
.software-access-steps ul {
    margin: 0;
    padding-left: 20px;
}

.software-access-steps li {
    margin: 6px 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}

.menu-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 4px;
    padding: 2px 7px;
    color: #c7d2fe;
    font-weight: 600;
    font-size: 12px;
}



/* Code Blocks */
.code-block-container {
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    margin: 12px 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.copy-code-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.copy-code-btn:hover {
    color: var(--accent);
}

pre code {
    display: block;
    padding: 14px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Assistant Message Action Buttons */
.msg-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.msg-speech-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.msg-speech-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.msg-speech-btn.speaking {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

/* Word Wrapper & Non-Distracting Current Word Highlighter */
.v-word {
    display: inline;
    border-radius: 3px;
    transition: color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.v-word.current-word {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.16) !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.22);
}

/* Character Typewriter Engine */
.v-char.char-hidden {
    display: none !important;
}

.v-char.char-visible {
    display: inline !important;
    animation: charPopIn 0.04s ease-out;
}

.v-char.v-space {
    white-space: pre-wrap !important;
}

@keyframes charPopIn {
    0% { opacity: 0; transform: translateY(1px); }
    100% { opacity: 1; transform: translateY(0); }
}

.amba-typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #38bdf8;
    margin-left: 2px;
    vertical-align: -0.15em;
    animation: cursorBlink 0.6s ease infinite alternate;
}

@keyframes cursorBlink {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Console Speech Button */
.console-speech-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.console-speech-btn:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
}

.console-speech-btn.speaking {
    background: rgba(56, 189, 248, 0.2) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    animation: speechPulse 1.8s ease-in-out infinite;
}

@keyframes speechPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

/* Topic Transfer Flyer (Left Sidebar -> Input Box Transition) */
.topic-flying-pill {
    position: fixed !important;
    z-index: 999999 !important;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1.5px solid #38bdf8;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.5), 0 0 20px rgba(99, 102, 241, 0.35);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.topic-flying-pill .flyer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 12px;
}

.topic-flying-pill .flyer-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
}

.topic-flying-pill .flyer-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Scroll to Bottom Floating Button */
.scroll-bottom-floating-btn {
    position: absolute;
    bottom: 90px;
    right: 24px;
    background: #181d2c;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 35;
    transition: var(--transition);
}

.scroll-bottom-floating-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================================
   FROZEN BOTTOM INPUT AREA
   ============================================================ */
.chat-input-area.frozen-input-area {
    position: absolute;
    bottom: var(--footer-height);
    left: 0;
    right: 0;
    padding: 10px 20px 8px 20px;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.92) 0%, rgba(10, 13, 20, 0.99) 100%);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 40;
}

.chat-input-inner {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.input-box-wrapper {
    position: relative;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 8px 48px 8px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.input-box-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-box-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.5;
    resize: none;
    max-height: 160px;
    overflow-y: auto;
}

.input-box-wrapper textarea::placeholder {
    color: var(--text-dim);
}

.send-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    border: none;
    color: var(--text-dim);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.send-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--primary-glow);
}

.input-hints {
    text-align: center;
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 5px;
}

.input-hints kbd {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 9.5px;
}

/* Briefly pulse highlight when text injected from sidebar */
.input-landed-pulse {
    animation: landedPulse 0.9s ease;
}

@keyframes landedPulse {
    0% { outline: 2px solid var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
    100% { outline: none; }
}

/* ============================================================
   FROZEN FOOTER WITH AI DISCLAIMER
   ============================================================ */
.app-frozen-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: #080a10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 41;
}

.footer-disclaimer-content {
    font-size: 10.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disclaimer-icon {
    color: #f59e0b;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.15);
}

.footer-academy-link {
    color: #38bdf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.footer-academy-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* ============================================================
   MODALS AND DIALOGS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
    width: 100%;
    max-width: 520px;
    position: relative;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

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

/* Common Modal Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #3730a3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Auth Modal Tabs & Forms */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 4px;
}

.auth-dialog {
    max-width: 460px;
}

.auth-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Auth Tab Content Isolation */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.auth-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-action-row {
    display: flex;
    justify-content: flex-end;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
}

.form-error-msg {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.form-success-msg {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* ============================================================
   RECHARGE & RAZORPAY MODAL (HIGH CONTRAST & PREMIUM FORMAT)
   ============================================================ */
.recharge-dialog {
    max-width: 540px;
    width: 95%;
    background: linear-gradient(145deg, #0e1526, #090e1a) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25) !important;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
}

.recharge-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    width: 100%;
}

.recharge-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(56, 189, 248, 0.16);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.recharge-header-row .modal-close-btn {
    position: static !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.recharge-header-row .modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.recharge-card-hero {
    display: flex;
    flex-direction: column;
}

.recharge-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rp-currency-val {
    color: #fde047;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.rp-sep {
    color: #64748b;
    font-weight: 400;
}

.rp-bonus-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
}

.rp-bonus-pill i {
    color: #fbbf24;
}

.recharge-hero-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 16px;
}

.recharge-hero-desc strong {
    color: #ffffff;
    font-weight: 700;
}

.recharge-features-list {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.45;
}

.rf-item i.fa-circle-check {
    color: #10b981;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

.rf-item.rf-bonus-item {
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fef08a;
}

.rf-item.rf-bonus-item i {
    color: #fbbf24;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.rf-item strong {
    color: #ffffff;
    font-weight: 700;
}

.recharge-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-pay-razorpay {
    width: 100% !important;
    padding: 14px 22px !important;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s ease;
}

.btn-pay-razorpay:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%) !important;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.7) !important;
    transform: translateY(-1.5px);
}

.btn-pay-razorpay:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}

.recharge-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.recharge-secure-note i {
    color: #10b981;
}

/* Purchase History Ledger Modal */
.purchase-history-dialog {
    max-width: 720px;
}

.purchase-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 12px;
}

.purchase-table th, .purchase-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-table th {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}

/* Help Guide & Questionnaire Modal */
.help-guide-dialog {
    max-width: 820px;
}

.guide-categories-nav, .help-guide-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.guide-category-btn, .help-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.guide-category-btn:hover, .help-tab-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-main);
}

.guide-category-btn.active, .help-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.help-tab-panel {
    display: none;
}

.help-tab-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.guide-scenarios-grid, .guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.guide-howto-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.guide-howto-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 8px;
}

.guide-howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 12px;
    color: #e2e8f0;
}

.guide-howto-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    line-height: 1.45;
}

.guide-howto-step strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.guide-scenario-card {
    background: linear-gradient(135deg, rgba(24, 32, 47, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.guide-scenario-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

.guide-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-badge.beginner { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.guide-badge.analogy { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.guide-badge.detail { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.guide-badge.interview { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }
.guide-badge.hands-on { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.guide-badge.debugging { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.guide-badge.portfolio { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.guide-badge.practice { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.guide-badge.tool-excel { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.guide-badge.tool-powerbi { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.guide-badge.tool-sql { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.guide-badge.tool-pipeline { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

.guide-scenario-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.guide-card-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    flex: 1;
}

.guide-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.guide-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.guide-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.guide-action-btn.write-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(56, 189, 248, 0.3));
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
    font-weight: 700;
}

.guide-action-btn.write-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(56, 189, 248, 0.45));
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.guide-action-btn.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Simple Alert / Notice Dialogs */
.alert-dialog {
    max-width: 420px;
    text-align: center;
}

.alert-dialog i.alert-icon {
    font-size: 38px;
    margin-bottom: 12px;
    display: inline-block;
}

.alert-dialog h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.alert-dialog p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 900px) {
    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-backdrop.active {
        display: block;
    }
    
    .chat-header {
        padding: 0 12px;
    }
    
    .subtitle {
        display: none;
    }
    
    .chat-messages {
        padding: 16px 14px 120px 14px;
    }
    
    .chat-input-area.frozen-input-area {
        padding: 8px 12px;
    }
}

/* ============================================================
   ADMIN BUTTON & NOTIFICATION COMPONENTS
   ============================================================ */
.admin-header-btn {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(99, 102, 241, 0.25)) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    transition: var(--transition);
}

.admin-header-btn:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(99, 102, 241, 0.4)) !important;
    color: #fff !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px);
}

.header-notif-btn {
    position: relative;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-notif-btn:hover {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.4);
    background: var(--bg-surface-hover);
}

.notif-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

.dd-admin-item {
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px dashed rgba(56, 189, 248, 0.35) !important;
    border-radius: 8px;
    margin: 4px 0;
}

.dd-admin-item:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-style: solid !important;
}

.notif-card-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.notif-card-item.course_update { border-left-color: var(--success); }
.notif-card-item.alert { border-left-color: var(--danger); }
.notif-card-item.promo { border-left-color: var(--warning); }

.notif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.notif-card-date {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.notif-card-msg {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ============================================================ */
/* COURSE READY MESSAGE BOARD CARD (Post-Payment / Unlock)      */
/* ============================================================ */

.course-ready-card {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.12);
    overflow: hidden;
    animation: readyCardFadeIn 0.35s ease-out;
}

@keyframes readyCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ready-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ready-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.ready-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.ready-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ready-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #4ade80;
    width: fit-content;
}

.ready-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: readyPulse 2s infinite;
}

@keyframes readyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.ready-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.ready-subtext {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

.ready-card-desc {
    margin: 0 0 18px 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.ready-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .ready-specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.spec-tile:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

.spec-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.spec-icon-timer {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.spec-icon-wallet {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.spec-icon-unlock {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.2;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.ready-card-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.ready-card-notice i {
    color: #38bdf8;
    font-size: 17px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ready-card-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-start-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-start-course:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.65);
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%);
}

.btn-start-course:active:not(:disabled) {
    transform: translateY(0);
}

.btn-start-course:disabled {
    opacity: 0.85;
}

/* ============================================== */
/* Mathematical & .tex Formula Cards (KaTeX)    */
/* ============================================== */
.math-formula-card {
    background: #090d16;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md, 12px);
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    display: block !important;
}

.math-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.math-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.3px;
}

.math-header-title i {
    color: #10b981;
    font-size: 14px;
}

.math-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.math-formula-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.copy-tex-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.copy-tex-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.copy-tex-btn.copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
}

.math-card-body {
    padding: 20px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.7) 0%, #060912 100%);
    overflow-x: auto;
}

/* KaTeX Display Formula Block */
.katex-math-display {
    margin: 12px 0;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-sm, 8px);
    overflow-x: auto;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.math-card-body .katex-math-display {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* KaTeX Inline Formula */
.katex-math-inline {
    display: inline-block;
    padding: 1px 4px;
    margin: 0 1px;
    vertical-align: baseline;
}

/* KaTeX Dark Mode Typography Overrides */
.katex {
    font-size: 1.12em !important;
    color: #f1f5f9 !important;
}

.katex .mord, 
.katex .mbin, 
.katex .mrel, 
.katex .mop, 
.katex .minner {
    color: #f1f5f9 !important;
}

.katex .mord.mathnormal {
    color: #7dd3fc !important; /* Math variables highlighted in soft cyan */
}

.katex .mop {
    color: #34d399 !important; /* Math operators (sum, lim, etc.) in emerald */
}

.katex .mfrac .frac-line {
    border-bottom-color: rgba(241, 245, 249, 0.75) !important;
}

.katex-display {
    margin: 0.5em 0 !important;
}

.math-tex-fallback {
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    color: #38bdf8;
    overflow-x: auto;
}

/* ============================================================
   PRACTICE ASSET DOWNLOADS & DATASET TABLE CARDS
   ============================================================ */
.download-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.download-code-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.code-excel .download-code-btn {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.code-excel .download-code-btn:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.code-python .download-code-btn {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.code-python .download-code-btn:hover {
    background: rgba(234, 179, 8, 0.26);
    border-color: #facc15;
    color: #ffffff;
}

/* Dataset Table Card */
.dataset-table-card {
    background: #0f1422;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
}

.table-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.table-download-btn:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.table-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.table-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.table-responsive-wrapper {
    overflow-x: auto;
    padding: 0;
}

.table-responsive-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12.5px !important;
    font-family: var(--font-mono, monospace) !important;
}

.table-responsive-wrapper th,
.table-responsive-wrapper td {
    padding: 8px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.table-responsive-wrapper th {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
}

.table-responsive-wrapper tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table-responsive-wrapper tr:hover {
    background: rgba(56, 189, 248, 0.05) !important;
}

/* Practice Asset Card (for download:... links) */
.practice-asset-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.practice-asset-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.2);
}

.practice-asset-card.badge-excel {
    border-color: rgba(16, 185, 129, 0.45);
}

.practice-asset-card.badge-excel:hover {
    border-color: #10b981;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.2);
}

.practice-asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.badge-excel .practice-asset-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-python .practice-asset-icon {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.practice-asset-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.practice-asset-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
}

.badge-excel .practice-asset-badge {
    color: #34d399;
}

.badge-python .practice-asset-badge {
    color: #facc15;
}

.practice-asset-title {
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 700;
}

.practice-asset-filename {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
}

.practice-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition);
    white-space: nowrap;
}

.practice-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.badge-excel .practice-download-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}


